Commit 9c2b576c authored by 吴颖's avatar 吴颖

Merge branch 'wuying' into 'master'

Wuying

See merge request !51
parents d5b494dc 9c2a8b76
...@@ -9,6 +9,7 @@ Page({ ...@@ -9,6 +9,7 @@ Page({
data: { data: {
show : false, show : false,
activeIndex: 1, activeIndex: 1,
user_id: '',
coach_id: '', coach_id: '',
role_id: '2', role_id: '2',
detail: '', detail: '',
...@@ -26,10 +27,10 @@ Page({ ...@@ -26,10 +27,10 @@ Page({
withdrawLocked: false, withdrawLocked: false,
}, },
onLoad: function (options) { onLoad: function (options) {
this.setData({ this.setData({
coach_id: app.globalData.coach_id, coach_id: app.globalData.coach_id,
user_id: wx.getStorageSync('userInfo').id
}) })
this.getMoney() this.getMoney()
this.getList(1) this.getList(1)
...@@ -59,7 +60,7 @@ Page({ ...@@ -59,7 +60,7 @@ Page({
url: 'commission/list', url: 'commission/list',
data: { data: {
role_id: this.data.role_id, role_id: this.data.role_id,
wx_user_id: this.data.coach_id, wx_user_id: this.data.user_id,
type: type, type: type,
pageSize: '15', pageSize: '15',
page: this.data.profitPage page: this.data.profitPage
...@@ -90,7 +91,7 @@ Page({ ...@@ -90,7 +91,7 @@ Page({
let params = { let params = {
url: 'commission', url: 'commission',
data: { data: {
wx_user_id: this.data.coach_id wx_user_id: this.data.user_id,
}, },
callback: (data) => { callback: (data) => {
this.setData({ this.setData({
...@@ -188,11 +189,11 @@ Page({ ...@@ -188,11 +189,11 @@ Page({
url: 'take_money', url: 'take_money',
type: 'POST', type: 'POST',
data: { data: {
wx_user_id: this.data.coach_id, wx_user_id: this.data.user_id,
amount: this.data.detail.unrealized_revenue amount: this.data.detail.unrealized_revenue
}, },
callback:(data)=>{ callback:(data)=>{
base.toast('您的提现申请已提交') base.toast('提现成功')
} }
} }
base.newRequest(params) base.newRequest(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment