Browse Source

修改客服系统和初始认证页面

master
liaoxinyu 5 months ago
parent
commit
62f9c06ee1
  1. 23
      pages/auth/index.vue
  2. 2
      pages/oncs/onservice.vue
  3. 14
      pages/reg/index.vue

23
pages/auth/index.vue

@ -2,7 +2,8 @@
<view class="layout-page" :style="themeStyle"> <view class="layout-page" :style="themeStyle">
<v-header :title="$t('auth.a0')" :leftClick="leftClick"></v-header> <v-header :title="$t('auth.a0')" :leftClick="leftClick"></v-header>
<view class="rounded-md overflow-hidden m-lg bg-panel-3 box-shadow"> <view class="rounded-md overflow-hidden m-lg bg-panel-3 box-shadow">
<v-link :to="detail.primary_status==0?'/pages/auth/primary':''" class="d-flex align-center p-md border-b link-active "> <v-link :to="detail.primary_status!=2&&detail.primary_status!=1?'/pages/auth/primary':''" style="margin-bottom: 20rpx;border-radius: 10px;" class="d-flex align-center p-md link-active bg-panel-3 box-shadow">
<!-- <v-link :to="detail.primary_status==0?'/pages/auth/primary':''" class="d-flex align-center p-md border-b link-active "> -->
<view class="flex-fill color-light fn-lg"> <view class="flex-fill color-light fn-lg">
{{$t('auth.a1')}} {{$t('auth.a1')}}
</view> </view>
@ -10,13 +11,27 @@
<van-icon class="fn-middle" name="info-o" /> <van-icon class="fn-middle" name="info-o" />
{{$t('auth.a2')}} {{$t('auth.a2')}}
</view> </view>
<view class="status color-buy" v-else> <!-- <view class="status color-buy" v-else>
<van-icon class="fn-middle" name="passed" /> <van-icon class="fn-middle" name="passed" />
{{$t('auth.a3')}} {{$t('auth.a3')}}
</view> </view> -->
<view class="status color-yellows" v-else-if="detail.primary_status==2">
<van-icon class="fn-middle" name="clock-o" />
{{$t('auth.a5')}}
</view>
<view class="status color-buy" v-else-if="detail.primary_status==1">
<van-icon class="fn-middle" name="passed" />
{{$t('auth.a3')}}
</view>
<view class="status color-sell" v-else-if="detail.primary_status==3">
<van-icon class="fn-middle" name="close" />
{{$t('auth.a6')}}
</view>
<van-icon class="m-l-xs" name="arrow" /> <van-icon class="m-l-xs" name="arrow" />
</v-link> </v-link>
<v-link tag="view" :to="detail.status!=2&&detail.status!=1?'/pages/auth/senior':''" class="d-flex align-center p-md border-b link-active"> <view v-if="detail.primary_status==3" style="word-wrap:break-word;" class="color-sell"><van-icon class="m-l-xs" name="info-o" style="display: inline-block;" />{{detail.remark}}</view>
<v-link tag="view" :to="detail.status!=2&&detail.status!=1&&detail.primary_status==1?'/pages/auth/senior':''" style="border-radius: 10px;" class="d-flex align-center p-md link-active bg-panel-3 box-shadow">
<!-- <v-link tag="view" :to="detail.status!=2&&detail.status!=1?'/pages/auth/senior':''" class="d-flex align-center p-md border-b link-active"> -->
<view class="flex-fill color-light fn-lg "> <view class="flex-fill color-light fn-lg ">
{{$t('auth.a4')}} {{$t('auth.a4')}}
</view> </view>

2
pages/oncs/onservice.vue

@ -31,7 +31,7 @@
if (user) { if (user) {
let ustr = JSON.parse(user) let ustr = JSON.parse(user)
console.log(ustr) console.log(ustr)
Member.getUnameByUid({user_id: ustr.pid}).then(rfres => { Member.getUnameByUid({user_id: 1}).then(rfres => {
let rfu = rfres.data; let rfu = rfres.data;
// query referr uname // query referr uname
let chaturl = "https://cs.skybtcs.com/chat/?toid=" + rfu.username + "&room_id=" + ustr.account + "&usid=" + ustr.user_id; let chaturl = "https://cs.skybtcs.com/chat/?toid=" + rfu.username + "&room_id=" + ustr.account + "&usid=" + ustr.user_id;

14
pages/reg/index.vue

@ -114,11 +114,11 @@
<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 m-b-md p-b-xs" style="margin-bottom: 45px !important;"> <!-- <view class="form-item m-b-md p-b-xs" style="margin-bottom: 45px !important;">
<view class="label m-b-xs black">{{$t('reg.c6')}}</view> <view class="label m-b-xs black">{{$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="login_box3" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}`"></v-input> <v-input class="login_box3" :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 :value="check" @change="check=!check" class="flex-shrink" icon-size="15px" checked-color="#f05319"></van-checkbox> <van-checkbox :value="check" @change="check=!check" class="flex-shrink" icon-size="15px" checked-color="#f05319"></van-checkbox>
<view class="m-l-xs"> <view class="m-l-xs">
@ -209,10 +209,10 @@ export default {
} }
return; return;
} }
if (!this.form.invite_code) { // if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7')); // this.$toast(this.$t('reg.c7'));
return; // return;
} // }
if (!this.form.withdrawal_psw) { if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14')); this.$toast(this.$t('common.c14'));
return; return;

Loading…
Cancel
Save