fix: 🐛 修改发现的代码bug
parent
68ba97e590
commit
7dfdb4f685
|
@ -106,7 +106,7 @@ export default {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 99;
|
z-index: 9999;
|
||||||
box-shadow:0 0 10px 2px rgb(90 90 90 / 60%);
|
box-shadow:0 0 10px 2px rgb(90 90 90 / 60%);
|
||||||
transition: 0.35s;
|
transition: 0.35s;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="hover-pointer" @click="collect"><Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#fff'" />{{storeCollected?'已收藏店铺':'收藏店铺'}}</span>
|
<span class="hover-pointer" @click="collect"><Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#fff'" />{{storeCollected?'已收藏店铺':'收藏店铺'}}</span>
|
||||||
<span style="width:80px" class="hover-pointer ml_10" @click="connectCs(storeMsg.yzfSign)"><Icon custom="icomoon icon-customer-service" />联系客服</span>
|
<span style="width:80px" class="hover-pointer ml_10" @click="IMService()"><Icon custom="icomoon icon-customer-service" />联系客服</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,6 +78,8 @@
|
||||||
import {getDetailById, getCateById} from '@/api/shopentry'
|
import {getDetailById, getCateById} from '@/api/shopentry'
|
||||||
import { cancelCollect, collectGoods, isCollection } from '@/api/member';
|
import { cancelCollect, collectGoods, isCollection } from '@/api/member';
|
||||||
import {goodsList} from '@/api/goods';
|
import {goodsList} from '@/api/goods';
|
||||||
|
import { getIMDetail } from "@/api/common";
|
||||||
|
import Storage from "../plugins/storage";
|
||||||
export default {
|
export default {
|
||||||
name: 'Merchant',
|
name: 'Merchant',
|
||||||
data () {
|
data () {
|
||||||
|
@ -86,6 +88,7 @@ export default {
|
||||||
cateList: [], // 店铺分裂
|
cateList: [], // 店铺分裂
|
||||||
goodsList: [], // 商品列表
|
goodsList: [], // 商品列表
|
||||||
total: 0, // 商品数量
|
total: 0, // 商品数量
|
||||||
|
IMLink:"",
|
||||||
params: { // 请求参数
|
params: { // 请求参数
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
|
@ -103,6 +106,30 @@ export default {
|
||||||
this.getGoodsList()
|
this.getGoodsList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 跳转im客服
|
||||||
|
async IMService() {
|
||||||
|
// 获取访问Token
|
||||||
|
let accessToken = Storage.getItem("accessToken");
|
||||||
|
await this.getIMDetailMethods();
|
||||||
|
if (!accessToken) {
|
||||||
|
this.$Message.error("请登录后再联系客服");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.open(
|
||||||
|
this.IMLink +
|
||||||
|
"?token=" +
|
||||||
|
accessToken +
|
||||||
|
"&id=" +
|
||||||
|
this.storeMsg.storeId
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// 获取im信息
|
||||||
|
async getIMDetailMethods() {
|
||||||
|
let res = await getIMDetail();
|
||||||
|
if (res.success) {
|
||||||
|
this.IMLink = res.result;
|
||||||
|
}
|
||||||
|
},
|
||||||
getStoreMsg () { // 店铺信息
|
getStoreMsg () { // 店铺信息
|
||||||
getDetailById(this.$route.query.id).then(res => {
|
getDetailById(this.$route.query.id).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|
|
@ -244,7 +244,6 @@
|
||||||
<Modal v-model="qrcodeShow" title="分销商品" width="800">
|
<Modal v-model="qrcodeShow" title="分销商品" width="800">
|
||||||
<Alert type="warning"> 下载二维码或者复制链接分享商品 </Alert>
|
<Alert type="warning"> 下载二维码或者复制链接分享商品 </Alert>
|
||||||
<div style="width: 200px; height: 200px; border: 1px solid #eee">
|
<div style="width: 200px; height: 200px; border: 1px solid #eee">
|
||||||
{{qrcode}}{{qrcodeData}}
|
|
||||||
<vue-qr
|
<vue-qr
|
||||||
:text="qrcode"
|
:text="qrcode"
|
||||||
:callback="qrcodeData"
|
:callback="qrcodeData"
|
||||||
|
|
Loading…
Reference in New Issue