Commit cb89bfbc4e58b2bdb368d166a1e1c7615c583a58

Authored by wangfan
1 parent d507f2ec

manager-invitation

@@ -21,13 +21,6 @@ Page({ @@ -21,13 +21,6 @@ Page({
21 */ 21 */
22 enter_params: {}, 22 enter_params: {},
23 onLoad: function (options) { 23 onLoad: function (options) {
24 - this.enter_params = util.cache('enter_params');  
25 - App.Reserve.SellerInfo(this.enter_params).then(res=>{  
26 - this.setData({  
27 - hasSalesman:res.data.hasSalesman==1  
28 - })  
29 - })  
30 - this.seller_id=options.seller_id||this.enter_params.seller_id;  
31 this.getMembers(); 24 this.getMembers();
32 }, 25 },
33 26
@@ -60,10 +53,8 @@ Page({ @@ -60,10 +53,8 @@ Page({
60 } 53 }
61 }, 54 },
62 getMembers(hasReachBottom=false){ 55 getMembers(hasReachBottom=false){
63 - App.Reserve.Members({  
64 - sid: this.seller_id,  
65 - //manager_id:this.enter_params.manager_id,  
66 - manager_openid:this.enter_params.seller_openid, 56 + App.Invitation.Members({
  57 + openid:getApp().openid,
67 offset: this.offset, 58 offset: this.offset,
68 limit: this.limit, 59 limit: this.limit,
69 }).then(res => { 60 }).then(res => {
@@ -86,15 +77,4 @@ Page({ @@ -86,15 +77,4 @@ Page({
86 this.setData(obj) 77 this.setData(obj)
87 }) 78 })
88 }, 79 },
89 - sendSalesmanMsg(e){  
90 - let openid=util.attr(e,'openid')  
91 - App.Reserve.OperationalMessagePush({  
92 - openid:openid  
93 - }).then(res=>{  
94 - if(res.ret!=200){  
95 - return util.toast(res.msg,'none')  
96 - }  
97 - util.toast('已发送')  
98 - })  
99 - },  
100 }) 80 })
1 <!--pages/book/setting/index.wxml--> 1 <!--pages/book/setting/index.wxml-->
2 -<nav id="nav" backgroundColor="#199095" color="#fefefe">订座</nav> 2 +<nav id="nav" backgroundColor="#199095" color="#fefefe">我的</nav>
3 <view class="header"> 3 <view class="header">
4 - <view class="info">  
5 - <view class="nick">{{user.nick_name || user.nickname}}</view>  
6 - <view class="seller Medium">{{seller.sellername}} | {{user.role_name||''}}</view> 4 + <view class="info flex-ll">
  5 + <view class="avatar">
  6 + <open-data type="userAvatarUrl"></open-data>
  7 + </view>
  8 + <view class="nick"><open-data type="userNickName"></open-data></view>
7 </view> 9 </view>
8 </view> 10 </view>
9 <view class="page"> 11 <view class="page">
@@ -4,23 +4,27 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png @@ -4,23 +4,27 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png
4 http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png 4 http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
5 */ 5 */
6 .header{ 6 .header{
7 - height: 302rpx;  
8 background-color: #199095; 7 background-color: #199095;
9 margin-top: -2rpx; 8 margin-top: -2rpx;
10 } 9 }
11 .header .info{ 10 .header .info{
12 color:#FEFEFE; 11 color:#FEFEFE;
13 width: 90%; 12 width: 90%;
14 - padding-top: 86rpx; 13 + padding-top: 60rpx;
15 margin: 0 auto; 14 margin: 0 auto;
  15 + padding-bottom: 60rpx;
16 } 16 }
17 .header .info .nick{ 17 .header .info .nick{
18 - font-size: 44rpx;  
19 - font-weight: bold;  
20 - margin-bottom: 28rpx; 18 + font-size: 40rpx;
  19 + height: 80rpx;
  20 + line-height: 80rpx;
21 } 21 }
22 -.header .info .seller{  
23 - font-size: 34rpx; 22 +.avatar{
  23 + width: 80rpx;
  24 + height: 80rpx;
  25 + border-radius: 50%;
  26 + overflow: hidden;
  27 + margin-right: 20rpx;
24 } 28 }
25 .page{ 29 .page{
26 width: 90%; 30 width: 90%;
@@ -22,13 +22,6 @@ @@ -22,13 +22,6 @@
22 <switch checked="{{form.is_default==1}}" bindchange="input" data-key="is_default" /> 22 <switch checked="{{form.is_default==1}}" bindchange="input" data-key="is_default" />
23 </view> 23 </view>
24 </view> 24 </view>
25 - <view class="upload block flex-vc">  
26 - <view class="item Medium">店铺图片</view>  
27 - <view class="image" bindtap="chooseImage">  
28 - <image src="{{form.image||defImage}}" mode="aspectFill"></image>  
29 - </view>  
30 - <view class="text">(此处照片为邀请函展示照片)</view>  
31 - </view>  
32 <formids bindclick="submit" style="width: 100%;"> 25 <formids bindclick="submit" style="width: 100%;">
33 <view class="submit {{hasSubmit?'submit-active':''}}">确定</view> 26 <view class="submit {{hasSubmit?'submit-active':''}}">确定</view>
34 </formids> 27 </formids>
@@ -212,6 +212,9 @@ export default { @@ -212,6 +212,9 @@ export default {
212 //受邀人同意参加,修改关系状态 212 //受邀人同意参加,修改关系状态
213 'App.Invitation.SetInvitationConfirm':null, 213 'App.Invitation.SetInvitationConfirm':null,
214 214
  215 + //根据客户经理openid 获取当前用户所负责的顾客
  216 + 'App.Invitation.Members':null,
  217 +
215 //上传图片,只能上传单个图片文件 218 //上传图片,只能上传单个图片文件
216 'App.Examples_Upload.UploadQn':null, 219 'App.Examples_Upload.UploadQn':null,
217 } 220 }