Commit 99be398a authored by 石盼盼's avatar 石盼盼

Merge branch 'shipanpan' into 'master'

Shipanpan

See merge request !34
parents c8f4cf62 76ab5ff1
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
position: absolute; position: absolute;
top: 46rpx; top: 46rpx;
left: 344rpx; left: 344rpx;
opacity: 0.3;
} }
.question_icon { .question_icon {
......
...@@ -47,7 +47,7 @@ Page({ ...@@ -47,7 +47,7 @@ Page({
}, },
callback:(data)=>{ callback:(data)=>{
this.setData({ this.setData({
userInfo: data.wx_user, userInfo: data,
userTel: data.wx_user.tel.substr(0, 3) + '****' + data.wx_user.tel.substring(7, 11) userTel: data.wx_user.tel.substr(0, 3) + '****' + data.wx_user.tel.substring(7, 11)
}) })
} }
...@@ -77,6 +77,9 @@ Page({ ...@@ -77,6 +77,9 @@ Page({
getSubjectlist: function () { getSubjectlist: function () {
let params = { let params = {
url: 'coach/course', url: 'coach/course',
data:{
coach_id: app.globalData.coach_id,
},
callback: (data) => { callback: (data) => {
this.setData({ this.setData({
subjectList: data subjectList: data
...@@ -118,7 +121,7 @@ Page({ ...@@ -118,7 +121,7 @@ Page({
let params = { let params = {
url: 'coach/save_course', url: 'coach/save_course',
data: { data: {
coach_id: 4, coach_id: app.globalData.coach_id,
course_ids: JSON.stringify(newArr) course_ids: JSON.stringify(newArr)
}, },
type: 'POST', type: 'POST',
...@@ -127,6 +130,7 @@ Page({ ...@@ -127,6 +130,7 @@ Page({
this.setData({ this.setData({
subjectShow: false subjectShow: false
}) })
this.getInfo()
} }
} }
base.newRequest(params) base.newRequest(params)
......
<view class="personInf"> <view class="personInf">
<view class="head flex-h flex-vc flex-hb" wx:if='{{showUserInfo}}' catchtap="goUserInfo"> <view class="head flex-h flex-vc flex-hb" wx:if='{{showUserInfo}}' catchtap="goUserInfo">
<view class="headLeft flex-h flex-vc"> <view class="headLeft flex-h flex-vc">
<image src="{{userInfo.avatarurl}}"></image> <image src="{{userInfo.wx_user.avatarurl}}"></image>
<view> <view>
<view class="name">{{userInfo.nickname}}</view> <view class="name">{{userInfo.wx_user.nickname}}</view>
<view class="tel">{{userTel}}</view> <view class="tel">{{userTel}}</view>
</view> </view>
</view> </view>
......
This diff is collapsed.
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