xuxueyang
2024-07-25 96aeb2a232d85306ced2061f024a2ff491a92ff7
pages/login/supplier-login.vue
@@ -58,11 +58,13 @@
                  <view class="topic-font" v-if="loginType=='pwd'" @click="loginType='code'">手机验证码登录</view>
                  <view class="topic-font" v-if="loginType=='code'" @click="loginType='pwd'">账号密码登录</view>
                  <!-- #ifndef PUB_CUSTOMER -->
                  <view class="topic-font m-l-a m-r-0" @click="toReg">前往注册</view>
            <!-- #ifdef PUB_CUSTOMER -->
            <view class="topic-font m-l-a m-r-0" @click="toHome">返回首页</view>
                  <!-- #endif -->
               </view>
            </form>
         </view>
      </view>
@@ -184,6 +186,11 @@
               holdTime--;
            }, 1000)
         },
    toHome(){
      uni.redirectTo({
        url: '/pages//pages/home/home'
      })
    },
         toReg() {
            // uni.switchTab({
            //    url: '/pages/index/index'
@@ -200,8 +207,12 @@
               url: '/pages/login/supplier-reg'
            })
            // #endif
      // #ifdef PUB_CUSTOMER
      addstr = '?source=step'
      uni.navigateTo({
        url: '/sub_pages/customer/customer-info/customer-info' + addstr
      })
      // #endif
         },
         changeAll(e) {
            this.pcfvalue = e.detail.value[0]
@@ -260,7 +271,7 @@
            const resp = await this.$store.dispatch(this.apitype, post);
            // uni.hideLoading()
            if (resp.code == 0) {
      if (resp.code === 0) {
               // myCache.cache("userToken", res.data.accessToken)
               // let userRes = await gzmzApi.getMemberInfo();