Răsfoiți Sursa

续费优化

shish 1 an în urmă
părinte
comite
51023b0ef9
2 a modificat fișierele cu 16 adăugiri și 10 ștergeri
  1. 8 5
      ghsApp/src/admin/home/workbench.vue
  2. 8 5
      ghsApp/src/admin/shop/renew.vue

+ 8 - 5
ghsApp/src/admin/home/workbench.vue

@@ -162,13 +162,14 @@
 
 	<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 v-if="renewType == 0">为了加快系统的开发进度,实现大家需要的上下游连通、连麦芽田一键发跑腿、会员充值、散客到店自助下单等重要功能,特向您收取未来时间的年费,感谢您对公司的支持</view>
+            <view v-else-if="renewType == 2">系统试用即将到期,请点击下方按钮续期</view>
+            <view v-else>因您最近系统提现不足3万/月,请付费使用软件,未续费系统将暂停提供服务</view>
 			<view style="margin-top:24upx;">当前系统到期时间:{{ currentDeadline }}</view>
 			<view style="margin-top:24upx;">续期一年到期时间:<text style="color:#3385FF;">{{ newDeadline }}</text></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>
+				<button class="admin-button-com big default" @click="closeRenew()" style="width:200upx;">稍后</button>
+        		<button class="admin-button-com big blue" @click="startRenew()" style="margin-left:80upx;width:200upx;">续期</button>
 			</view>
         </view>
     </uni-popup>
@@ -244,7 +245,8 @@ export default {
 			val: '',
 			keyShow:true,
 			sendOrderList:[],
-			showSendPage:0
+			showSendPage:0,
+			renewType:0
 		};
 	},
 	onShareAppMessage(res) {
@@ -353,6 +355,7 @@ export default {
 					if(res.code == 1){
 						that.currentDeadline = res.data.currentDeadline
 						that.newDeadline = res.data.newDeadline
+						that.renewType = res.data.renewType?res.data.renewType:0
 						if(res.data.need && res.data.need == 1){
 							that.$refs.renewRef.open('center')
 						}

+ 8 - 5
ghsApp/src/admin/shop/renew.vue

@@ -1,13 +1,14 @@
 <template>
     <view>
         <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 v-if="renewType == 0">为了加快系统的开发进度,实现大家需要的上下游连通、连麦芽田一键发跑腿、会员充值、散客到店自助下单等重要功能,特向您收取未来时间的年费,感谢您对公司的支持</view>
+            <view v-else-if="renewType == 2">系统试用即将到期,请点击下方按钮续期</view>
+            <view v-else>因您最近系统提现不足3万/月,请付费使用软件,未续费系统将暂停提供服务</view>
 			<view style="margin-top:24upx;">当前系统到期时间:{{ currentDeadline }}</view>
 			<view style="margin-top:24upx;">续期一年到期时间:<text style="color:#3385FF;">{{ newDeadline }}</text></view>
 			<view style="margin-top:40upx;text-align:center;" v-if="hasRenew == 0">
-				<button class="admin-button-com big default" @click="closeRenew()">稍后再说</button>
-        		<button class="admin-button-com big blue" @click="startRenew()" style="margin-left:80upx;">支持公司,续期一年</button>
+				<button class="admin-button-com big default" @click="closeRenew()" style="width:200upx;">稍后</button>
+        		<button class="admin-button-com big blue" @click="startRenew()" style="margin-left:80upx;width:200upx;">续期</button>
 			</view>
         </view>
     </view>
@@ -21,7 +22,8 @@ export default {
         return {
 			currentDeadline:'',
 			newDeadline:'',
-            hasRenew:0
+            hasRenew:0,
+            renewType:0
         }
     },
     computed: {
@@ -35,6 +37,7 @@ export default {
                 that.hasRenew = res.data.hasRenew ? res.data.hasRenew : 0
                 that.currentDeadline = res.data.currentDeadline
                 that.newDeadline = res.data.newDeadline
+                that.renewType = res.data.renewType?res.data.renewType:0
             }
         })
     },