Commit 826554785ee977436e2283b5b116447cd929e350

Authored by wangfan
1 parent 01b76797

运营发送消息

... ... @@ -13,6 +13,7 @@ Page({
data: {
list:[],
hasMore:true,
hasSalesman:false,
},
/**
... ... @@ -21,6 +22,11 @@ Page({
enter_params: {},
onLoad: function (options) {
this.enter_params = util.cache('enter_params');
App.Reserve.SellerInfo(this.enter_params).then(res=>{
this.setData({
hasSalesman:res.data.hasSalesman==1
})
})
this.seller_id=options.seller_id||this.enter_params.seller_id;
this.getMembers();
},
... ... @@ -80,4 +86,15 @@ Page({
this.setData(obj)
})
},
sendSalesmanMsg(e){
let openid=util.attr(e,'openid')
App.Reserve.SendSalesmanMsg({
openid:openid
}).then(res=>{
if(res.ret!=200){
return util.toast(res.msg,'none')
}
util.toast('已发送')
})
},
})
\ No newline at end of file
... ...
... ... @@ -9,8 +9,9 @@
</view>
<view class="nickname">{{item.nickname||''}}</view>
</view>
<view class="flex-rr">
<!--view class="more"></view-->
<view class="flex-rr optmsg" wx:if="{{hasSalesman}}" bindtap="sendSalesmanMsg">
<view>发送消息</view>
<view class="more"></view>
</view>
</view>
</block>
... ...
... ... @@ -48,4 +48,8 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
.nickname{
margin-left: 40rpx;
font-size: 34rpx;
}
.optmsg{
font-size: 30rpx;
color:#199095;
}
\ No newline at end of file
... ...
... ... @@ -155,5 +155,11 @@ export default {
'App.User.GetCustomRemark':null,
//添加备注
'App.User.AddCustomRemark':null
'App.User.AddCustomRemark':null,
//运营发送消息demo
'App.Reserve.SendSalesmanMsg':{
silence: false,
alias:'App.Reserve.SendSalesmanMsg',
},
}
\ No newline at end of file
... ...