Commit 69685f24fa9d72f06c6f3850be09acdc488f8567

Authored by liuxuqinfhp1220
2 parents ffa9f27d 82655478

Merge branch 'master' of http://123.56.79.57/xt/xcx-book

@@ -13,6 +13,7 @@ Page({ @@ -13,6 +13,7 @@ Page({
13 data: { 13 data: {
14 list:[], 14 list:[],
15 hasMore:true, 15 hasMore:true,
  16 + hasSalesman:false,
16 }, 17 },
17 18
18 /** 19 /**
@@ -21,6 +22,11 @@ Page({ @@ -21,6 +22,11 @@ Page({
21 enter_params: {}, 22 enter_params: {},
22 onLoad: function (options) { 23 onLoad: function (options) {
23 this.enter_params = util.cache('enter_params'); 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 + })
24 this.seller_id=options.seller_id||this.enter_params.seller_id; 30 this.seller_id=options.seller_id||this.enter_params.seller_id;
25 this.getMembers(); 31 this.getMembers();
26 }, 32 },
@@ -80,4 +86,15 @@ Page({ @@ -80,4 +86,15 @@ Page({
80 this.setData(obj) 86 this.setData(obj)
81 }) 87 })
82 }, 88 },
  89 + sendSalesmanMsg(e){
  90 + let openid=util.attr(e,'openid')
  91 + App.Reserve.SendSalesmanMsg({
  92 + openid:openid
  93 + }).then(res=>{
  94 + if(res.ret!=200){
  95 + return util.toast(res.msg,'none')
  96 + }
  97 + util.toast('已发送')
  98 + })
  99 + },
83 }) 100 })
@@ -9,8 +9,9 @@ @@ -9,8 +9,9 @@
9 </view> 9 </view>
10 <view class="nickname">{{item.nickname||''}}</view> 10 <view class="nickname">{{item.nickname||''}}</view>
11 </view> 11 </view>
12 - <view class="flex-rr">  
13 - <!--view class="more"></view--> 12 + <view class="flex-rr optmsg" wx:if="{{hasSalesman}}" bindtap="sendSalesmanMsg">
  13 + <view>发送消息</view>
  14 + <view class="more"></view>
14 </view> 15 </view>
15 </view> 16 </view>
16 </block> 17 </block>
@@ -48,4 +48,8 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png @@ -48,4 +48,8 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
48 .nickname{ 48 .nickname{
49 margin-left: 40rpx; 49 margin-left: 40rpx;
50 font-size: 34rpx; 50 font-size: 34rpx;
  51 +}
  52 +.optmsg{
  53 + font-size: 30rpx;
  54 + color:#199095;
51 } 55 }
@@ -155,5 +155,11 @@ export default { @@ -155,5 +155,11 @@ export default {
155 'App.User.GetCustomRemark':null, 155 'App.User.GetCustomRemark':null,
156 156
157 //添加备注 157 //添加备注
158 - 'App.User.AddCustomRemark':null 158 + 'App.User.AddCustomRemark':null,
  159 +
  160 + //运营发送消息demo
  161 + 'App.Reserve.SendSalesmanMsg':{
  162 + silence: false,
  163 + alias:'App.Reserve.SendSalesmanMsg',
  164 + },
159 } 165 }