|
@@ -94,7 +94,6 @@ export default {
|
|
|
that.hasRenew = res.data.hasRenew ? res.data.hasRenew : 0
|
|
that.hasRenew = res.data.hasRenew ? res.data.hasRenew : 0
|
|
|
that.currentDeadline = res.data.currentDeadline
|
|
that.currentDeadline = res.data.currentDeadline
|
|
|
that.newDeadline = res.data.newDeadline
|
|
that.newDeadline = res.data.newDeadline
|
|
|
- that.renewType = res.data.renewType?res.data.renewType:0
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -106,13 +105,20 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
startRenew(type,price){
|
|
startRenew(type,price){
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
let type = uni.getSystemInfoSync().platform
|
|
let type = uni.getSystemInfoSync().platform
|
|
|
that.$msg("APP不能操作,请打开微信小程序操作")
|
|
that.$msg("APP不能操作,请打开微信小程序操作")
|
|
|
// #endif
|
|
// #endif
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
uni.showLoading({mask:true})
|
|
uni.showLoading({mask:true})
|
|
|
|
|
+ if(type == 1){
|
|
|
|
|
+ if(Number(price) <= 0){
|
|
|
|
|
+ that.$msg("请输入金额")
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.renewType = type
|
|
|
renewShop({price:price,type:type}).then(res=>{
|
|
renewShop({price:price,type:type}).then(res=>{
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
@@ -122,10 +128,9 @@ export default {
|
|
|
// #endif
|
|
// #endif
|
|
|
},
|
|
},
|
|
|
getSuccess(){
|
|
getSuccess(){
|
|
|
- this.$util.pageTo({url:"/admin/shop/renewSuccess",type:2})
|
|
|
|
|
|
|
+ this.$util.pageTo({url:"/admin/shop/renewSuccess?type="+this.renewType,type:2})
|
|
|
},
|
|
},
|
|
|
getError(){
|
|
getError(){
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
closeRenew(){
|
|
closeRenew(){
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|