|
|
@@ -128,9 +128,16 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
- <uni-popup ref="renewRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
- <view style="display:flex;padding:20upx;height:auto;width:90vw;">
|
|
|
- <view>为了支持软件公司的发展</view>
|
|
|
+ <uni-popup ref="renewRef" background-color="#fff" type="center" :animation="false" class="class-popup-style" :mask-click="false">
|
|
|
+ <view style="padding:40upx 20upx 40upx 20upx;height:auto;width:95vw;font-size:36upx;">
|
|
|
+ <view>为了加快系统的开发进度,实现大家需要的<text style="font-weight:bold;color:#3385FF;">上下游连通</text>、<text style="font-weight:bold;color:#3385FF;">连麦芽田一键发跑腿</text>、<text style="font-weight:bold;color:#3385FF;">会员和充值</text>、<text style="font-weight:bold;color:#3385FF;">散客到店自助下单</text>等重要功能</view>
|
|
|
+ <view style="margin-top:24upx;">特向您收取未来时间的年费,感谢您对公司的支持</view>
|
|
|
+ <view style="margin-top:24upx;">当前系统到期时间:{{ currentDeadline }}</view>
|
|
|
+ <view style="margin-top:24upx;">续期一年到期时间:{{ newDeadline }}</view>
|
|
|
+ <view style="margin-top:40upx;text-align:center;">
|
|
|
+ <button class="admin-button-com big default" @click="closeRenew()">稍后再说</button>
|
|
|
+ <button class="admin-button-com big blue" @click="startRenew()" style="margin-left:80upx;">续期一年</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
@@ -150,7 +157,7 @@ import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
|
import { getWeixinId } from "@/api/invite/index";
|
|
|
import { getErrorPrice } from "@/api/item"
|
|
|
import { getStaffInfo } from "@/api/shop-admin"
|
|
|
-import { renewShop } from "@/api/renew"
|
|
|
+import { renewShop,noRemind,needRemind } from "@/api/renew"
|
|
|
import wexinPay from "@/utils/pay/wxPay";
|
|
|
export default {
|
|
|
name: "workbench",
|
|
|
@@ -195,7 +202,9 @@ export default {
|
|
|
loginStyle :0,
|
|
|
errorPirceList:[],
|
|
|
lookMoney:0,
|
|
|
- notifyNum:0
|
|
|
+ notifyNum:0,
|
|
|
+ currentDeadline:'',
|
|
|
+ newDeadline:''
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -255,10 +264,23 @@ export default {
|
|
|
toPhone(){
|
|
|
uni.makePhoneCall({ phoneNumber:'15280215347' })
|
|
|
},
|
|
|
+ closeRenew(){
|
|
|
+ this.$refs.renewRef.close()
|
|
|
+ noRemind().then(res=>{ })
|
|
|
+ },
|
|
|
popRenew(){
|
|
|
- this.$refs.renewRef.open('center')
|
|
|
+ let that = this
|
|
|
+ needRemind().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.currentDeadline = res.data.currentDeadline
|
|
|
+ that.newDeadline = res.data.newDeadline
|
|
|
+ if(res.data.need && res.data.need == 1){
|
|
|
+ that.$refs.renewRef.open('center')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- start(){
|
|
|
+ startRenew(){
|
|
|
renewShop().then(res=>{
|
|
|
if(res.code == 1){
|
|
|
wexinPay(res.data, this.getSuccess, this.getError)
|
|
|
@@ -745,4 +767,8 @@ export default {
|
|
|
font-size: 34upx;
|
|
|
}
|
|
|
}
|
|
|
+.class-popup-style{
|
|
|
+ z-index:99999;
|
|
|
+ border-radius:20upx;
|
|
|
+}
|
|
|
</style>
|