订单相关修改提测
This commit is contained in:
@@ -61,35 +61,19 @@ const store = new Vuex.Store({
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
loginEvent: () => {
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: (data) => {
|
||||
uni.getUserInfo({
|
||||
provider: 'weixin',
|
||||
success: async (infoRes) => {
|
||||
uni.cache.set('weixincode', data.code);
|
||||
let res = await Api.userwxlogin({
|
||||
code: uni.cache.get('weixincode'), //临时登录凭证
|
||||
rawData: infoRes.rawData,
|
||||
})
|
||||
if (res.code == 0) {
|
||||
uni.cache.set('token', res.data.token);
|
||||
uni.cache.set('miniAppOpenId', res.data.userInfo
|
||||
.miniAppOpenId)
|
||||
uni.cache.set('userInfo', res.data.userInfo);
|
||||
let pages = getCurrentPages()
|
||||
let curPage = pages[pages.length -1 ]
|
||||
curPage.onLoad(curPage.options)
|
||||
curPage.onShow()
|
||||
// curPage.mounted()
|
||||
curPage.onReady()
|
||||
}
|
||||
},
|
||||
fail: (err) => {}
|
||||
});
|
||||
}
|
||||
});
|
||||
loginEvent: async () => {
|
||||
let res = await uni.utils.getUserInfo();
|
||||
uni.cache.set('token', res.data.token);
|
||||
uni.cache.set('miniAppOpenId', res.data.userInfo
|
||||
.miniAppOpenId)
|
||||
uni.cache.set('userInfo', res.data.userInfo);
|
||||
let pages = getCurrentPages()
|
||||
let curPage = pages[pages.length -1 ]
|
||||
curPage.onLoad(curPage.options)
|
||||
curPage.onShow()
|
||||
// curPage.mounted()
|
||||
curPage.onReady()
|
||||
|
||||
|
||||
},
|
||||
set_shopid: async ({
|
||||
@@ -134,12 +118,15 @@ const store = new Vuex.Store({
|
||||
bottomPadding = (e.screenHeight - e.safeArea.bottom)
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
|
||||
statusBar = e.statusBarHeight
|
||||
customBar = e.statusBarHeight + e.titleBarHeight
|
||||
customBar = e.titleBarHeight
|
||||
custwidth = menuButtonInfo.width + 50,
|
||||
bottomPadding = (e.screenHeight - e.safeArea.bottom)
|
||||
// #endif
|
||||
// #ifdef APP-PLUS
|
||||
console.log('app-plus', e)
|
||||
|
||||
statusBar = e.statusBarHeight
|
||||
heightBar = e.statusBarHeight
|
||||
customBar = e.statusBarHeight
|
||||
|
||||
Reference in New Issue
Block a user