Commit eafb4db3 by 杨北旺

修复套餐问题

1 parent 12f7cb9a
...@@ -48,8 +48,8 @@ Page({ ...@@ -48,8 +48,8 @@ Page({
showAuthBtn: res.data.phone ? false : true showAuthBtn: res.data.phone ? false : true
}) })
if (res.data.isLogin) { if (res.data.isLogin) {
wx.p.util.setUserInfo(res.data) wx.p.cache.userInfo.setUserInfo(res.data)
wx.p.util.setSessionId(res.data.sessionId) wx.p.cache.storageApi.setSessionId(res.data.sessionId)
this.handlerCustomerId() this.handlerCustomerId()
} }
} }
...@@ -68,8 +68,8 @@ Page({ ...@@ -68,8 +68,8 @@ Page({
wx.hideLoading() wx.hideLoading()
if (code == '0') { if (code == '0') {
wx.p.authStatus = false wx.p.authStatus = false
wx.p.util.setUserInfo(data) wx.p.cache.userInfo.setUserInfo(data)
wx.p.util.setSessionId(data.sessionId) wx.p.cache.storageApi.setSessionId(data.sessionId)
this.toCreatePackageNum() this.toCreatePackageNum()
this.handlerCustomerId() this.handlerCustomerId()
} else wx.p.wxApi.showToast(message) } else wx.p.wxApi.showToast(message)
...@@ -152,8 +152,8 @@ Page({ ...@@ -152,8 +152,8 @@ Page({
}, },
// 客户id // 客户id
handlerCustomerId() { handlerCustomerId() {
let customerId = wx.p.storage.get('srcm_shopmall_customer_id') // let customerId = wx.p.storage.get('srcm_shopmall_customer_id')
if (customerId) USERAPI.updataCustomerPhone() // if (customerId) USERAPI.updataCustomerPhone()
}, },
// 价格格式化 // 价格格式化
// priceFormat(num, point = 2) { // priceFormat(num, point = 2) {
......
...@@ -115,13 +115,14 @@ ...@@ -115,13 +115,14 @@
.button-item { .button-item {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: #fc5b32; background: #3772EC;
border-radius: 8rpx; border-radius: 8rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 32rpx; font-size: 32rpx;
color: #ffffff; color: #ffffff;
border-radius:48rpx;
} }
.dis{ .dis{
background: #CCCCCC; background: #CCCCCC;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!