储备udesk方案,暂时注释

master
lemon橪 2021-12-20 17:34:27 +08:00
parent 85d0671443
commit dfd3885486
1 changed files with 61 additions and 34 deletions

View File

@ -362,6 +362,7 @@ import { getGoods, getGoodsList, getMpScene, getGoodsDistribution } from "@/api/
import * as API_trade from "@/api/trade.js";
import * as API_Members from "@/api/members.js";
import * as API_store from "@/api/store.js";
import { getIMDetail } from '@/api/common'
import { modelNavigateTo } from "@/pages/tabbar/home/template/tpl.js";
/************请求存储***************/
import storage from "@/utils/storage.js";
@ -522,9 +523,17 @@ export default {
startTimer: false, // false
routerVal: "",
IMLink:"", // IM
};
},
computed:{
IM() {
return this.IMLink + this.storeDetail.merchantEuid;
},
},
watch: {
isGroup(val) {
if (val) {
@ -679,7 +688,7 @@ export default {
this.cartCount();
//
this.getstoreRecommend();
this.getStoreRecommend();
//
this.getOtherLikeGoods();
@ -688,11 +697,28 @@ export default {
if (this.$options.filters.isLogin("auth")) {
this.getGoodsCollectionFun(this.goodsDetail.id);
}
// IM 使
// this.getIMDetailMethods();
},
async getIMDetailMethods(){
let res = await getIMDetail()
if(res.data.success){
this.IMLink = res.data.result
}
},
linkMsgDetail() {
if(this.storeDetail.merchantEuid){
uni.navigateTo({
url:`/pages/tabbar/home/web-view?src=${this.IM}`
});
}
else{
//
// #ifdef MP-WEIXIN
const params = {
storeName: this.storeDetail.storeName,
goodsName: this.goodsDetail.goodsName,
@ -719,6 +745,7 @@ export default {
sign,
});
// #endif
}
},
// 1999 --> [1999,00]
formatPrice(val) {
@ -834,7 +861,7 @@ export default {
/**
* 获取店铺推荐商品列表
*/
getstoreRecommend() {
getStoreRecommend() {
getGoodsList({
pageNumber: 1,
pageSize: 6,