You need to sign in or sign up before continuing.
Commit ee8ff457 by wangzhihui

修改跳转携带参数

1 parent 192a15f4
......@@ -64,7 +64,7 @@ Page({
const {
item
} = options
this.options=options
this.options = options
this.setData({
formData: {
bankUserName: item.bankUserName,
......@@ -86,9 +86,9 @@ Page({
//获取员工积分详情
getWithdrawalData() {
MineApi.getScoreDetailApi().then(res => {
if(res.code ==0){
if (res.code == 0) {
this.setData({
score:res.data
score: res.data
})
}
})
......@@ -155,12 +155,21 @@ Page({
success,
score
} = this.data;
// 跳转到新的积分兑换页面
if (success) wx.$router.redirectTo('integration.toCash', {
score
})
else this.setData({
if (success) {
// wx.$router.redirectTo('integration.toCash', {
// score
// })
wx.navigateToMiniProgram({
appId: 'wx7ce755e425603084',
path: 'packageIndex/pages/integral/index/index',
envVersion: 'trial',
extraData:{
external:true
}
})
} else this.setData({
showModal: false
})
},
......@@ -189,7 +198,7 @@ Page({
this.setData({
showModal: true,
success: true,
dialogText: item&&item.id?'您的银行账户修改成功!':'您的银行账户添加成功'
dialogText: item && item.id ? '您的银行账户修改成功!' : '您的银行账户添加成功'
})
} else {
// this.setData({
......
......@@ -32,6 +32,9 @@ Page({
appId: 'wx7ce755e425603084',
path: 'packageIndex/pages/integral/index/index',
envVersion: 'trial',
extraData:{
external:true
}
})
},
toWatchNote() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!