123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- Component({
- properties: {
- show:{
- type: Boolean,
- observer: function (newVal) {
- this.setData({ show: newVal });
- }
- },
- theam:{
- type: String,
- value:'redContent',
- observer: function (newVal) {
- this.setData({ theam: newVal });
- }
- },
- prizeInfo:{
- type: Object,
- observer: function (newVal) {
- this.setData({ prizeInfo: newVal });
- }
- }
- },
- data: {
- show:false,
- height:'80%',
- theam:'',
- prizeInfo:{}
- },
- methods: {
- // 关闭弹窗
- closeTip(e){
- this.close(e.detail)
- },
- // 确定
- closePopup(){
- this.close(false)
- },
- close(data){
- this.triggerEvent("close", {
- status:data,
- type:'award'
- });
- }
- }
- })
|