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

Loading…
Cancel
Save