|
|
@@ -229,8 +229,8 @@ Page({
|
|
|
saveData() {
|
|
|
let _this = this
|
|
|
return this.excute(this.data.service, this.data.service.insert, this.data.params).then(res => {
|
|
|
- if (res.data.code == Constants.SUCESS_CODE) {
|
|
|
- if (!res.data.data) {
|
|
|
+ if (res.data.code == Constants.SUCESS_CODE) {
|
|
|
+ if (!res.data.data) {
|
|
|
wx.showToast({
|
|
|
title: '签到成功',
|
|
|
image: '/static/image/success.png',
|
|
|
@@ -241,9 +241,12 @@ Page({
|
|
|
let dateArrs = util.getCurrentDateMonth(serverDate)
|
|
|
_this.getSignData(dateArrs[0], dateArrs[1])
|
|
|
_this.getIntegral()
|
|
|
+ _this.setData({
|
|
|
+ loading: false,
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
|
|
|
})
|