Browse Source

邀请码

master
luyisha 3 years ago
parent
commit
aedfe0e277
  1. 15
      pages/reg/index.vue

15
pages/reg/index.vue

@ -113,10 +113,10 @@
<view class="label m-b-xs">{{$t('reg.c6')}}</view> <view class="label m-b-xs">{{$t('reg.c6')}}</view>
<v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input> <v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input>
</view> --> </view> -->
<view class="form-item border-b m-b-md p-b-xs"> <view class="form-item border-b m-b-md p-b-xs" v-if="showInvite">
<view class="label m-b-xs">{{$t('reg.c6')}}</view> <view class="label m-b-xs">{{$t('reg.c6')}}</view>
<!-- <v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}(${$t('reg.b4')})`"></v-input> --> <!-- <v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}(${$t('reg.b4')})`"></v-input> -->
<v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}`"></v-input> <v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}`"></v-input>
</view> </view>
<view class="tips d-flex m-b-md fn-sm"> <view class="tips d-flex m-b-md fn-sm">
<van-checkbox <van-checkbox
@ -162,7 +162,8 @@ export default {
}, },
check: false, check: false,
agreement: {}, agreement: {},
country_code:'' country_code:'',
showInvite: false
}; };
}, },
@ -258,8 +259,14 @@ export default {
}, },
onLoad(query){ onLoad(query){
this.query = query this.query = query;
console.log(this.query);
this.form.invite_code = this.query.invite_code||this.form.invite_code this.form.invite_code = this.query.invite_code||this.form.invite_code
if(this.query.invite_code){
this.showInvite = false;
}else{
this.showInvite = true;
}
}, },
created() { created() {
this.clause(); this.clause();

Loading…
Cancel
Save