shish před 2 měsíci
rodič
revize
601bc16b44
2 změnil soubory, kde provedl 16 přidání a 38 odebrání
  1. 1 37
      ghsApp/src/admin/home/me.vue
  2. 15 1
      ghsApp/src/admin/shop/renew.vue

+ 1 - 37
ghsApp/src/admin/home/me.vue

@@ -396,44 +396,8 @@ export default {
 		},
     selectShopFn(){
     },
-    goRenew (type) {
-      let that = this
-      let url = '/admin/shop/renew'
-      if(type == 1){
-        url = '/admin/home/me'
-      }
-      // #ifdef APP-PLUS
-      if (plus.runtime.isApplicationExist({ pname: 'com.tencent.mm', action: 'weixin://' })) {
-        plus.share.getServices(function (s) {
-          var sweixin
-          for (var i = 0; i < s.length; i++) {
-            var t = s[i]
-            if (t.id == 'weixin') {
-              sweixin = t
-            }
-          }
-          let d = that.getDictionariesInfo
-          let miniOriginalId = d && d.miniOriginalId && d.miniOriginalId.current && d.miniOriginalId.current.ghs ? d.miniOriginalId.current.ghs : ''
-          if (sweixin && sweixin.nativeClient) {
-            sweixin.launchMiniProgram({
-              id: miniOriginalId,
-              path: '/admin/shop/renew',
-              type: 0
-            })
-          } else {
-            that.$msg('没有找到微信服务')
-          }
-        }, function (e) {
-          that.$msg('没有找到微信服务哦')
-        })
-      } else {
-        that.$msg('请安装微信,再打开小程序')
-      }
-      return
-      // #endif
-      // #ifndef APP-PLUS
+    goRenew () {
       this.$util.pageTo({ url: '/admin/shop/renew' })
-      // #endif
     },
     goOldRenew(){
       this.$util.pageTo({ url: '/admin/shop/renewal'})

+ 15 - 1
ghsApp/src/admin/shop/renew.vue

@@ -8,6 +8,9 @@
         </view>
 
         <view class="renew-body">
+            <!-- #ifdef APP-PLUS -->
+            <view class="app-pay-tip">请打开「销花宝微信小程序」付款</view>
+            <!-- #endif -->
             <view class="info-card">
                 <view class="info-row">
                     <text class="info-label">当前系统到期时间</text>
@@ -235,7 +238,7 @@ export default {
         startRenew(type,price){
             let that = this
             // #ifdef APP-PLUS
-            that.$msg("APP不能操作,请打开微信小程序操作")
+            that.$msg('请打开「销花宝微信小程序」付款')
             // #endif
             // #ifdef MP-WEIXIN
             uni.showLoading({mask:true})
@@ -682,6 +685,17 @@ export default {
     justify-content: center;
 }
 
+.app-pay-tip {
+    margin-bottom: 24upx;
+    padding: 24upx 28upx;
+    border-radius: 16upx;
+    background: #fff8e6;
+    color: #b45309;
+    font-size: 28upx;
+    line-height: 40upx;
+    text-align: center;
+}
+
 .renew-buy-btn {
     width: 100%;
     max-width: 100%;