Commit 406da64a by 杨北旺

Merge branch 'v1.0.0' of 192.168.3.233:saas/mini-program/hmd into v1.0.0

2 parents 46b669ce 3793cfbf
...@@ -81,7 +81,7 @@ Page({ ...@@ -81,7 +81,7 @@ Page({
encoding: 'base64', //编码格式 encoding: 'base64', //编码格式
success(_res) { success(_res) {
wx.p.wxApi.showLoading('上传中...') wx.p.wxApi.showLoading('上传中...')
wx.p.api.commonApi.uploadImg({ wx.p.api.common.uploadImg({
file: `${type}@${_res.data}` file: `${type}@${_res.data}`
}) })
.then(img => { .then(img => {
......
...@@ -174,9 +174,13 @@ Page({ ...@@ -174,9 +174,13 @@ Page({
if (tabIndex != options?.tabIndex) delete options.tabIndex if (tabIndex != options?.tabIndex) delete options.tabIndex
this.setData(options) this.setData(options)
this.clearData() this.clearData()
} else this.setData({ }
showLogin: true, },
}) onShow(){
if(this.refresh) this.clearData()
},
onHide(){
this.refresh = true
}, },
clearData() { clearData() {
this.setData({ this.setData({
...@@ -301,6 +305,10 @@ Page({ ...@@ -301,6 +305,10 @@ Page({
}) })
}, },
requestSubscribeMessage() { requestSubscribeMessage() {
wx.p.router.go('/packageMine/pages/order/complete/complete', {
success: true,
})
return
let systemInfo = wx.p.storage.get('system_info') let systemInfo = wx.p.storage.get('system_info')
if (systemInfo && systemInfo.environment != 'wxwork') { if (systemInfo && systemInfo.environment != 'wxwork') {
wx.p.router.go('/packageMine/pages/order/complete/complete', { wx.p.router.go('/packageMine/pages/order/complete/complete', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!