Commit f9388c9c by 张立顺

Merge branch 'dev_2.10.1' of 192.168.3.233:glsx/scrm-wx-merchant-activity into dev_2.10.1

2 parents 4bbc77be 078f8574
...@@ -51,7 +51,10 @@ const WxConfig = { ...@@ -51,7 +51,10 @@ const WxConfig = {
}) })
} else { } else {
if (wwRequestCount < 3) this.getWWConfig(jsApiList) if (wwRequestCount < 3) this.getWWConfig(jsApiList)
else Notify(message) else {
Notify('获取jsconfig失败')
throw new Error('获取jsconfig失败')
}
// util.refreshPage('获取WWCONFIG失败').then(() => { // util.refreshPage('获取WWCONFIG失败').then(() => {
// window.location.reload() // window.location.reload()
// }) // })
...@@ -97,7 +100,10 @@ const WxConfig = { ...@@ -97,7 +100,10 @@ const WxConfig = {
resolve() resolve()
} else { } else {
if (requestCount < 3) this.getWxConfig(jsApiList) if (requestCount < 3) this.getWxConfig(jsApiList)
else Notify(message) else {
Notify('获取jsconfig失败')
throw new Error('获取jsconfig失败')
}
// util.refreshPage('获取WXCONFIG失败').then(() => { // util.refreshPage('获取WXCONFIG失败').then(() => {
// window.location.reload() // window.location.reload()
// }) // })
...@@ -240,11 +246,11 @@ const WxConfig = { ...@@ -240,11 +246,11 @@ const WxConfig = {
onMenuShareAppMessage(params) { onMenuShareAppMessage(params) {
return new Promise(resolve => { return new Promise(resolve => {
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
...params,
success: function () { success: function () {
resolve() resolve()
// 用户点击了分享后执行的回调函数 // 用户点击了分享后执行的回调函数
} },
...params
}) })
}) })
}, },
...@@ -253,11 +259,11 @@ const WxConfig = { ...@@ -253,11 +259,11 @@ const WxConfig = {
delete params.desc delete params.desc
return new Promise(resolve => { return new Promise(resolve => {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
...params,
success: function () { success: function () {
resolve() resolve()
// 用户点击了分享后执行的回调函数 // 用户点击了分享后执行的回调函数
} },
...params
}) })
}) })
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
title: '加载中...', title: '加载中...',
request: { request: {
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!