You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
// pages/RulesList/RulesList.js
|
|
Page({
|
|
data: {
|
|
modalVisible: false,
|
|
modalContent: '',
|
|
modalVisible1: false,
|
|
modalContent1: '',
|
|
modalVisible2: false,
|
|
modalContent2: '',
|
|
modalVisible3: false,
|
|
modalContent3: '',
|
|
},
|
|
showCustomDialog: function() {
|
|
this.setData({
|
|
modalVisible: true,
|
|
modalContent: '加0~5分'
|
|
});
|
|
},
|
|
onCloseModal: function() {
|
|
this.setData({
|
|
modalVisible: false
|
|
});
|
|
},
|
|
showCustomDialog1: function() {
|
|
this.setData({
|
|
modalVisible: true,
|
|
modalContent: '减1~2分'
|
|
});
|
|
},
|
|
onCloseModal1: function() {
|
|
this.setData({
|
|
modalVisible: false
|
|
});
|
|
},
|
|
showCustomDialog2: function() {
|
|
this.setData({
|
|
modalVisible: true,
|
|
modalContent: '积分翻倍'
|
|
});
|
|
},
|
|
onCloseModal2: function() {
|
|
this.setData({
|
|
modalVisible: false
|
|
});
|
|
},
|
|
showCustomDialog3: function() {
|
|
this.setData({
|
|
modalVisible: true,
|
|
modalContent: '积分减半'
|
|
});
|
|
},
|
|
onCloseModal3: function() {
|
|
this.setData({
|
|
modalVisible: false
|
|
});
|
|
},
|
|
goBack: function() {
|
|
wx.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
}); |