Browse Source

移除个人中心

master
453530270@qq.com 2 years ago
parent
commit
9e24fa69b3
  1. 4
      pages/user/index.vue
  2. 19
      pages/user/mycertinfo/orgverify.vue

4
pages/user/index.vue

@ -5,12 +5,12 @@
<image class="bg-image" src="/static/background/user-header2.png" mode="scaleToFill"></image> <image class="bg-image" src="/static/background/user-header2.png" mode="scaleToFill"></image>
<!-- 用户信息 --> <!-- 用户信息 -->
<view v-if="isLogin" class="user-info"> <view v-if="isLogin" class="user-info">
<view class="user-avatar" @click="handlePersonal()"> <view class="user-avatar">
<avatar-image :url="userInfo.avatar" :width="100" /> <avatar-image :url="userInfo.avatar" :width="100" />
</view> </view>
<view class="user-content"> <view class="user-content">
<!-- 会员昵称 --> <!-- 会员昵称 -->
<view class="nick-name oneline-hide" @click="handlePersonal()">{{ userInfo.username }}</view> <view class="nick-name oneline-hide">{{ userInfo.username }}</view>
<!-- 会员无等级时显示手机号 --> <!-- 会员无等级时显示手机号 -->
<view class="mobile">{{ userInfo.cellPhone }} ({{ userInfo.username }}) </view> <view class="mobile">{{ userInfo.cellPhone }} ({{ userInfo.username }}) </view>

19
pages/user/mycertinfo/orgverify.vue

@ -40,10 +40,10 @@
<!-- step 2 --> <!-- step 2 -->
<view class="vfbox" v-if="step==2"> <view class="vfbox" v-if="step==2">
<view class="form-item"> <view class="form-item">
<input class="form-item--input" v-model="Organizationcode" maxlength="18" placeholder="统一社会信用代码" @change="chkinput()"/> <input class="form-item--input" v-model="Organizationcode" maxlength="18" placeholder="统一社会信用代码"/>
</view> </view>
<view class="vfbtn"> <view class="vfbtn">
<button>下一步</button> <button @click="chkinput()">下一步</button>
</view> </view>
</view> </view>
<!-- step 3 --> <!-- step 3 -->
@ -77,12 +77,16 @@
}, },
// //
chkinput(){ chkinput(){
const app = this let Code = this.Organizationcode
let Code = app.Organizationcode if(Code==""){
this.$toast("统一社会信用代码不能为空")
return false
}
// //
const patrn = /^[0-9A-Z]+$/ const patrn = /^[0-9A-Z]+$/
if(Code.length!=18 || patrn.test(Code) ==false){ if(Code.length!=18 || patrn.test(Code) ==false){
app.$toast("统一社会信用代码格式不对")
this.$toast("统一社会信用代码格式不对")
return false; return false;
}else{ }else{
let Ancode; // let Ancode; //
@ -107,11 +111,14 @@
let checkcode = Code.substring(17, 18); let checkcode = Code.substring(17, 18);
if (logiccheckcode != checkcode) { if (logiccheckcode != checkcode) {
this.$toast("统一社会信用代码格式不对")
return false; return false;
} else { } else {
console.info("yes"); console.info("yes");
} }
return true;
// this.$toast("")
// return true;
} }
} }
} }

Loading…
Cancel
Save