1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // component/popup/popup.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- typeOf: {
- type: "String",
- value: ''
- },
- title: {
- type: "String",
- value: ''
- },
- headTextOne: {
- type: "String",
- value: ''
- },
- headTextTwo: {
- type: "String",
- value: ''
- },
- content: {
- type: "Array",
- value: ''
- }
- },
- /**
- * 组件的初始数据
- */
- data: {
- closeFlag: true
- },
- /**
- * 组件的方法列表
- */
- methods: {
- close: function () {
- this.setData({
- closeFlag: !this.data.closeFlag
- })
- this.triggerEvent('Close', {})
- },
- launchGroup: function () {
- this.triggerEvent('Group', {})
- }
- }
- })
|