Browse Source

修改注册的区号问题和隐藏客服

master
liaoxinyu 1 month ago
parent
commit
6cc1033411
  1. 16
      pages/base/home.vue
  2. 8
      pages/reg/index.vue

16
pages/base/home.vue

@ -859,14 +859,14 @@
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link>
<v-link :to="isLogin?'/pages/assets/userfeedback':'/pages/login/index'" tag="div" <!-- <v-link :to="isLogin?'/pages/assets/userfeedback':'/pages/login/index'" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img src="@/static/img/information.png" alt="" class="h-20 m-r-xs" /> <img src="@/static/img/information.png" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{ $t("base.h3") }}</span> <span class="color-light">{{ $t("base.h3") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<v-link to="/pages/accountSettings/accountSettings" tag="div" <v-link to="/pages/accountSettings/accountSettings" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
@ -1038,9 +1038,9 @@
watch: { watch: {
isShow(n) { isShow(n) {
if(n&&this.isLogin){ if(n&&this.isLogin){
this.chatcount = setInterval(()=>{ // this.chatcount = setInterval(()=>{
this.chat() // this.chat()
},2000) // },2000)
} else if(!n){ } else if(!n){
clearInterval(this.chatcount); clearInterval(this.chatcount);
} }
@ -1419,9 +1419,9 @@
this.getCollegeLinks(); this.getCollegeLinks();
if (this.isLogin) { if (this.isLogin) {
this.chatcount = setInterval(()=>{ // this.chatcount = setInterval(()=>{
this.chat() // this.chat()
},5000) // },5000)
this.createWalletAddress(); this.createWalletAddress();
this.getAuthInfo() this.getAuthInfo()
} }

8
pages/reg/index.vue

@ -255,13 +255,15 @@ export default {
this.$toast(this.$t('common.c14')); this.$toast(this.$t('common.c14'));
return; return;
} }
if(!this.form.country_code||!this.form.phone){ if(!this.form.country_id||!this.form.phone){
this.$toast(this.$t('common.phonenumber')); this.$toast(this.$t('common.phonenumber'));
return; return;
} }
this.form.type=this.form.type this.form.type=this.form.type
this.form.country_code = this.country_code || 86; // this.form.country_code = this.country_code || 86;
this.form.country_code = this.form.country_id || 86;
// console.log(this.form);
Member.register(this.form).then((res) => { Member.register(this.form).then((res) => {
@ -378,7 +380,7 @@ export default {
}), }),
getCountry() { getCountry() {
serve.get("/getCountryList").then((res) => { serve.get("/getCountryList").then((res) => {
this.setCountryList(res.data); this.setCountryList(res.data.toReversed());
}); });
}, },
}, },

Loading…
Cancel
Save