Browse Source

修改客服会请求两次

master
liaoxinyu 1 year ago
parent
commit
e112866bb3
  1. 6
      pages/oncs/onservice.vue

6
pages/oncs/onservice.vue

@ -2,7 +2,7 @@
<v-page> <v-page>
<v-header :title="$t('common.service')"></v-header> <v-header :title="$t('common.service')"></v-header>
<view class="onsczone"> <view class="onsczone">
<web-view :src="csurl" style="margin-top: 3rem;"></web-view> <web-view v-if="isLoad" :src="csurl" style="margin-top: 3rem;"></web-view>
</view> </view>
</v-page> </v-page>
@ -14,9 +14,10 @@
data() { data() {
return { return {
csurl:"https://cs.btcaholic.com/chat/?toid=", csurl:"https://cs.btcaholic.com/chat/?toid=",
isLoad:false
} }
}, },
mounted() { onLoad() {
this.mkcslinks() this.mkcslinks()
}, },
methods: { methods: {
@ -30,6 +31,7 @@
Member.getUnameByUid({user_id:ustr.referrer}).then(rfres=>{ Member.getUnameByUid({user_id:ustr.referrer}).then(rfres=>{
// query referr uname // query referr uname
this.csurl += rfres.username+"&room_id="+ustr.account+"&usid="+ustr.user_id; this.csurl += rfres.username+"&room_id="+ustr.account+"&usid="+ustr.user_id;
this.isLoad = true;
}) })
console.log("user",this.csurl) console.log("user",this.csurl)
} }

Loading…
Cancel
Save