Commit ee8ff457 by wangzhihui

修改跳转携带参数

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