Commit a8434c92 by 程南

客服配置

parent 414ce063
......@@ -147,6 +147,10 @@
"contactPlugin": {
"version": "1.3.0",
"provider": "wx104a1a20c3f81ec2"
},
"live-player-plugin": {
"version": "1.0.9",
"provider": "wx2b03c6e691cd7370"
}
},
"permission": {
......
......@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应
const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4 有直播
//2006 泰华 , wx40fec8944623c8b3 有直播 //门户 wx833d5ece112fc3fd
......@@ -26,7 +26,7 @@ const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门
//2002 巴黎贝甜 wx21968cb3a486d4ab
//2014 包小姐与鞋先生 wxa00302e2f53dd9c5
const BRANCH_ID = 1002
const BRANCH_ID = 3001
const isMall = true
// const needMock = '' //
......
......@@ -171,7 +171,37 @@ wxService.page({
this.getProInfo()
this.getOpenStatus()
this.data.currentShareContent = null
this.data.currentShareContent = null;
this.setUDeskInfo();
},
//设置uDeskinfo
setUDeskInfo() {
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
if (baseUserInfo) {
let cellphones = [];
this.data.udesk.nick_name = baseUserInfo.member.name;
this.data.udesk.avatar = app.globalData.userInfo.avatarUrl;
let customer_info = {
cellphones: [],
};
customer_info.cellphones = [["", baseUserInfo.member.mobile]];
this.data.udesk.customer_info = JSON.stringify(customer_info);
this.setData({
udesk: this.data.udesk
});
}
else {
this.setData({
udesk: {
nick_name: app.globalData.userInfo ? app.globalData.userInfo.memberId : '游客',
avatar: app.globalData.userInfo ? app.globalData.userInfo.avatarUrl : '',
cellphones: [],
}
})
}
},
//获取商品详情
......
......@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.8.2",
"appid": "wxac09792264c49b5c",
"appid": "wx313ec36b710125d4",
"projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E",
"debugOptions": {
"hidedInDevtools": []
......
......@@ -618,6 +618,8 @@ class WXService extends Http {
//默认
config.data.loading = true;
config.data.udesk = {};
const CONFIG_PAPGE = {
onLoad: function (...args) {
const page = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment