2662043119@qq.com před 1 rokem
rodič
revize
6998e23770
2 změnil soubory, kde provedl 49 přidání a 5 odebrání
  1. 30 5
      src/pages/my/wxLogin.vue
  2. 19 0
      src/pagesB/orderingfood/payTheBill.vue

+ 30 - 5
src/pages/my/wxLogin.vue

@@ -8,14 +8,14 @@
                 <view class='stitle'>欢迎来到 - {{ shopInfo.shop_name }}</view>
             </view>
             
-            <view class="btnBar " :class="!agree?'disable':''">
+            <view class="btnBar " :class="!agree?'disable' :''">
                 <!-- <image class='icon' mode='widthFix' src='@/static/my/weixin.png'></image>
                 <button open-type="getPhoneNumber" class='no-authorize_btn' @getphonenumber="onGotPhoneNumber" lang="zh_CN">微信授权手机号登录</button> -->
                 <button class="no-authorize_btn flex_r flex_ac flex_jc" open-type="getPhoneNumber" @getphonenumber="onGotPhoneNumber" lang="zh_CN" :disabled="!agree">
-                    <image class='icon' mode='widthFix' 
+                    <!-- <image class='icon' mode='widthFix' 
                     :src="agree ? '/static/my/weixin.png' : '/static/my/weixin_dis.png'"
-                    ></image>
-                    <span>微信授权手机号登录</span>
+                    ></image> -->
+                    <span>手机号快捷登录</span>
                 </button>
             </view>
             
@@ -32,7 +32,11 @@
                     <span @tap.stop="goto('/pages/agreement/index',{tit:'隐私协议',type:27})" class="hover_a">《隐私协议》</span>
                 </view>
             </div>
-            
+        </view>
+        <view class="nologin-btnBar" @click="back">
+            <button class="nologin flex_r flex_ac flex_jc">
+                <span>暂不登录</span>
+            </button>
         </view>
     </view>
 </template>
@@ -96,6 +100,9 @@ export default {
         checkboxChange(e) {
             this.agree = e.detail.value.includes("agree")
         },
+        back(){
+            uni.navigateBack({ delta: 1 });
+        }
         // toPage(e,q){
         //     this.goto('/pages/agreement/index',{tit:'隐私协议',type:27})
         //     // uni.navigateTo({
@@ -227,6 +234,24 @@ export default {
     }
 
 }
+.nologin-btnBar{
+    position: fixed;
+    bottom: 80rpx;
+    left: calc((100% - 84%) / 2 + 32rpx);
+    width: calc(84% - 64rpx);
+    overflow: hidden;
+    box-sizing: border-box;
+    border-radius: 50rpx;
+    border: 2rpx solid #979b96;
+    background: #fff;
+}
+.nologin{
+    color: #000;
+    font-size: 30rpx;   
+    border-radius: 50rpx;
+    margin: unset;
+    background: #fff;
+}
 .disable{
     border: 2rpx solid #979b96;
 }

+ 19 - 0
src/pagesB/orderingfood/payTheBill.vue

@@ -105,6 +105,25 @@ export default {
             this.userinfo = await uni.userfun();
         },
         payBill(){
+            if (!this.userinfo.mobile) {
+                // #ifdef  MP-WEIXIN
+                uni.showModal({
+                    title: "温馨提示",
+                    content: "您还未登录",
+                    showCancel: true,
+                    confirmText: "前往登录",
+                    confirmColor: "#f02f2f",
+                    success(res) {
+                        if (res.confirm) {
+                            uni.navigateTo({url:"/pages/my/wxLogin"})
+                        }
+                        
+                    },
+                    
+                });
+                // #endif
+                return
+            }
             let that = this
             let localInfo = uni.getStorageSync("localInfo");
             let um = localInfo.property;