Commit a90d8bde by 胡悦

修复bug

1 parent 74d46032
...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"]; ...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布 3预发布
4生产 4生产
*/ */
const index = 1; const index = 2;
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
...@@ -73,15 +73,9 @@ App({ ...@@ -73,15 +73,9 @@ App({
merchant: res.merchantId, merchant: res.merchantId,
cardId: res.cardId cardId: res.cardId
}) })
// const userInfo = wx.$storage.get('aicard_user_info') _this.getUserInfo(openId, returnResponse).then(result => {
// if (!userInfo) { resolve(result)
_this.getUserInfo(openId, returnResponse).then(result => { })
// wx.$Track.sendTrack(trackData.COMPANY, wechatInfo)
resolve(result)
})
// } else {
// resolve(userInfo)
// }
}) })
} else { } else {
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值 // 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
...@@ -210,6 +204,8 @@ App({ ...@@ -210,6 +204,8 @@ App({
globalData: {}, globalData: {},
onPageNotFound(res) { onPageNotFound(res) {
console.log(res, '不存在的页面') console.log(res, '不存在的页面')
wx.$router.go('/pages/tab/index/index') setTimeout(() => {
wx.$router.go('/pages/tab/index/index', res.query)
}, 1000)
}, },
}) })
...@@ -13,18 +13,16 @@ Page({ ...@@ -13,18 +13,16 @@ Page({
toActivity(){ toActivity(){
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => { // wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// console.log(businessParams, businessappId) // console.log(businessParams, businessappId)
wx.navigateToMiniProgram({ const { activityInfo } = this.data
appId: 'wxe10067a63c1856ac', wx.navigateToMiniProgram({
path: 'pages/crowdfunding/index/index', appId: 'wxe10067a63c1856ac',
extraData: { path: 'pages/crowdfunding/index/index?id=' + activityInfo.id + '&merchantId=' + activityInfo.merchantNo,
id: this.data.activityInfo.id envVersion: 'trial',
}, success(res) {
envVersion: 'trial', console.log(res, storeParams)
success(res) { // 打开成功
console.log(res, storeParams) }
// 打开成功 })
}
})
}, },
/** /**
......
...@@ -114,13 +114,20 @@ Page({ ...@@ -114,13 +114,20 @@ Page({
}, },
// 获取跳转门店助手、生意助手判断 // 获取跳转门店助手、生意助手判断
checkCooperate() { checkCooperate() {
const {phone} = wx.$storage.get('aicard_user_info') const userInfo = wx.$storage.get('aicard_user_info')
entmicroApi.checkCooperate({phone}).then(res => { if (userInfo) {
console.log(res) const {phone} = userInfo
entmicroApi.checkCooperate({phone}).then(res => {
console.log(res)
this.setData({
showCooperate: res
})
})
} else {
this.setData({ this.setData({
showCooperate: res showCooperate: false
}) })
}) }
}, },
// 合作申请 // 合作申请
toApplication() { toApplication() {
...@@ -228,7 +235,7 @@ Page({ ...@@ -228,7 +235,7 @@ Page({
menus: ['shareAppMessage'] menus: ['shareAppMessage']
}) })
this.setData({ this.setData({
productData: this.addAll(productData) productData: this.addAll(this.data.productData)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!