shish 2 年之前
父節點
當前提交
e36ab15eae
共有 1 個文件被更改,包括 17 次插入3 次删除
  1. 17 3
      hdApp/src/pagesPurchase/wechatPay.vue

+ 17 - 3
hdApp/src/pagesPurchase/wechatPay.vue

@@ -41,7 +41,17 @@
           <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
           <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
 
 
           <view style="margin-top:30upx;text-align: center;">
           <view style="margin-top:30upx;text-align: center;">
-            <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
+            <block v-if="hasRenew == 0">
+              <view style="width:290upx;height:290upx;margin:0 auto;position: relative;" @click="openAliPay()">
+                <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
+                <view style="font-size:32upx;width:290upx;height:140upx;line-height:140upx;background-color: white;z-index: 9999;position: absolute;top:70upx;left:0upx;font-weight: bold;color:#3385ff;">
+                  点此显示完整
+                </view>
+              </view>
+            </block>
+            <block v-else>
+              <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
+            </block>
             <view style="margin-top:10upx;font-size:32upx;">支付宝扫此二维码付款</view>
             <view style="margin-top:10upx;font-size:32upx;">支付宝扫此二维码付款</view>
           </view>
           </view>
           <button class="button-com ali-btn" @click="savePayCode" style="margin-top:10upx;">保存二维码</button>
           <button class="button-com ali-btn" @click="savePayCode" style="margin-top:10upx;">保存二维码</button>
@@ -58,7 +68,6 @@
           <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
           <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
         </div>
         </div>
         <!-- #endif -->
         <!-- #endif -->
-
         </block>
         </block>
       </div>
       </div>
     </div>
     </div>
@@ -104,7 +113,8 @@ export default {
       info:[],
       info:[],
       hasRequestApi:false,
       hasRequestApi:false,
       needCheck:0,
       needCheck:0,
-      aliPayCodeImg:''
+      aliPayCodeImg:'',
+      hasRenew:0
     };
     };
   },
   },
   onLoad (options) {
   onLoad (options) {
@@ -125,6 +135,9 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    openAliPay(){
+      this.$msg('商家还未开通此功能')
+    },
     teachPayFn() {
     teachPayFn() {
 				this.pageTo({ url: "/admin/ghs/teachPay"})
 				this.pageTo({ url: "/admin/ghs/teachPay"})
 		},
 		},
@@ -165,6 +178,7 @@ export default {
           this.getPayType = res.data.getPayType
           this.getPayType = res.data.getPayType
           that.hasDebtPay = res.data.hasDebtPay
           that.hasDebtPay = res.data.hasDebtPay
           that.balance = res.data.balance
           that.balance = res.data.balance
+          that.hasRenew = res.data.hasRenew ? res.data.hasRenew : 0
           this.info = res.data
           this.info = res.data
           that.remainPayTime = res.data.remainPayTime
           that.remainPayTime = res.data.remainPayTime
           if(that.remainPayTime > 0){
           if(that.remainPayTime > 0){