Browse Source

新增客服页面

master
liaoxinyu 1 year ago
parent
commit
0fb40d97a4
  1. 1
      assets/img/home/cs_w.svg
  2. 3
      pages.json
  3. 4
      pages/base/home.vue
  4. 42
      pages/oncs/onservice.vue

1
assets/img/home/cs_w.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1723032135095" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1584" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M414.866 996.381c19.911 8.693 44.744 18.287 68.461 22.893l36.794 4.502c4.54 0.232 20.314 0.275 23.646 0.145 0 0 18.786-0.086 36.721-4.111 17.935-4.027 47.19-12.381 69.423-23.109 0 0 37.7-21.762 79.459-53.764 41.759-32.004 102.539-119.213 133.36-194.886 43.178-9.57 82.752-45.509 89.268-124.671 6.169-74.586-16.623-107.818-47.205-122.297-0.324-8.876-0.752-17.593-1.281-26.078 39.336-217.806-116.266-293.913-128.436-297.604-20.272-30.801-157.642-218.141-406.87-66.06-36.49 22.256-94.402 66.087-125.323 110.25-37.185 46.697-64.212 114.261-75.281 211.927-7.667 0.825-15.335 2.027-22.893 3.736-2.013-47.928 0.622-189.179 90.137-289.598 66.21-74.252 166.7-111.915 298.611-111.915 132.158 0 234.697 37.952 304.874 112.784 115.23 122.92 104.833 306.365 104.719 308.189-0.639 9.832 6.805 18.347 16.651 18.983 0.405 0.029 0.81 0.058 1.187 0.058 9.34 0 17.202-7.254 17.812-16.681 0.55-8.124 11.756-200.315-114.073-334.746C787.427 41.838 676.011 0.006 533.457 0.006c-142.691 0-252.203 41.76-325.486 124.121-107.157 120.4-101.395 287.049-98.398 325.84-41.701 22.285-71.854 70.821-63.291 174.7 11.288 136.893 90.76 184.604 165.933 184.604 14.604 0 27.52-3.156 38.887-8.949 43.032 27.859 112.096 51.982 222.742 56.501 10.854 16.319 33.601 27.556 59.947 27.556 36.801 0 66.665-21.98 66.665-49.059 0-27.077-29.864-49.043-66.665-49.043-30.009 0-55.385 14.566-63.748 34.621-72.588-3.461-124.585-15.798-161.726-31.334-50.687-68.156-74.803-183.895-74.803-250.01 0-24.456 0.767-47.204 2.215-68.388 234.438 7.862 373.763-86.923 449.977-169.255 98.058 97.753 132.976 230.012 144.575 293.231-22.705 173.455-146.385 357.523-296.49 357.523-64.572 0-124.267-34.057-173.122-86.678-49.897-10.453-91.491-26.758-124.52-48.854 26.97 48.233 65.487 98.022 99.122 125.628s59.684 44.927 79.595 53.62z" fill="#ffffff" p-id="1585"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

3
pages.json

@ -173,6 +173,9 @@
{ {
"path": "pages/service/service" "path": "pages/service/service"
}, },
{
"path" : "pages/oncs/onservice"
},
{ {
"path": "pages/service/index", "path": "pages/service/index",
"style": { "style": {

4
pages/base/home.vue

@ -713,6 +713,10 @@
<img src="@/static/img/pages6.png"> <img src="@/static/img/pages6.png">
<view class="color-light">{{ $t("base.c6") }}</view> <view class="color-light">{{ $t("base.c6") }}</view>
</v-link> </v-link>
<v-link :to="isLogin?'/pages/oncs/onservice':'/pages/login/index'" tag="div" class="manage_text">
<img src="@/assets/img/home/cs_w.svg">
<view class="color-light">{{$t('common.service')}}</view>
</v-link>
</view> </view>
<view class="h-100"></view> <view class="h-100"></view>
<view v-if="isLogin" class="Logout_color logout w-max fn-center color-light rounded-xs" @click="loginOut"> <view v-if="isLogin" class="Logout_color logout w-max fn-center color-light rounded-xs" @click="loginOut">

42
pages/oncs/onservice.vue

@ -0,0 +1,42 @@
<template>
<v-page>
<v-header :title="$t('common.service')"></v-header>
<view class="onsczone">
<web-view :src="csurl" style="margin-top: 3rem;"></web-view>
</view>
</v-page>
</template>
<script>
export default {
data() {
return {
csurl:"https://sc.moabcoin.com/chat/?toid=",
}
},
mounted() {
this.mkcslinks()
},
methods: {
// build
mkcslinks(){
let user = uni.getStorageSync('user')
if(user){
console.log(user)
let ustr = JSON.parse(user)
console.log(ustr)
this.csurl += ustr.referrer+"&room_id="+ustr.account;
console.log("user",this.csurl)
}
}
}
}
</script>
<style lang="less" scoped>
.onsczone{
margin-top: 12rem;
}
</style>
Loading…
Cancel
Save