Commit cc8089a88464c95bccffad7574a90756110ff9b7

Authored by wangfan
1 parent 82655478

运营发送消息

@@ -88,7 +88,7 @@ Page({ @@ -88,7 +88,7 @@ Page({
88 }, 88 },
89 sendSalesmanMsg(e){ 89 sendSalesmanMsg(e){
90 let openid=util.attr(e,'openid') 90 let openid=util.attr(e,'openid')
91 - App.Reserve.SendSalesmanMsg({ 91 + App.Reserve.OperationalMessagePush({
92 openid:openid 92 openid:openid
93 }).then(res=>{ 93 }).then(res=>{
94 if(res.ret!=200){ 94 if(res.ret!=200){
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="page"> 3 +<view class="pages">
4 <block wx:if="{{list.length>0}}"> 4 <block wx:if="{{list.length>0}}">
5 <view class="row flex-lr" wx:for="{{list}}" wx:key="list.key" > 5 <view class="row flex-lr" wx:for="{{list}}" wx:key="list.key" >
6 <view class="flex-ll"> 6 <view class="flex-ll">
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
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 optmsg" wx:if="{{hasSalesman}}" bindtap="sendSalesmanMsg"> 12 + <view class="flex-rr optmsg" wx:if="{{hasSalesman}}" bindtap="sendSalesmanMsg" data-openid="{{item.openid}}">
13 <view>发送消息</view> 13 <view>发送消息</view>
14 <view class="more"></view> 14 <view class="more"></view>
15 </view> 15 </view>
@@ -3,10 +3,11 @@ @@ -3,10 +3,11 @@
3 http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png 3 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 -.page{ 6 +.pages{
7 width: 90%; 7 width: 90%;
8 - margin: 0 auto; 8 + margin: 0 auto 50rpx;
9 color: #353535; 9 color: #353535;
  10 + overflow-y: auto;
10 } 11 }
11 .row{ 12 .row{
12 font-size: 34rpx; 13 font-size: 34rpx;
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 "list": [] 31 "list": []
32 }, 32 },
33 "miniprogram": { 33 "miniprogram": {
34 - "current": 17, 34 + "current": 21,
35 "list": [ 35 "list": [
36 { 36 {
37 "id": 0, 37 "id": 0,
@@ -201,8 +201,8 @@ @@ -201,8 +201,8 @@
201 "id": 21, 201 "id": 21,
202 "name": "预定本-80商家", 202 "name": "预定本-80商家",
203 "pathName": "pages/book/b_index", 203 "pathName": "pages/book/b_index",
204 - "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=762",  
205 - "scene": "1001" 204 + "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=763",
  205 + "scene": 1001
206 }, 206 },
207 { 207 {
208 "id": -1, 208 "id": -1,
@@ -158,8 +158,7 @@ export default { @@ -158,8 +158,7 @@ export default {
158 'App.User.AddCustomRemark':null, 158 'App.User.AddCustomRemark':null,
159 159
160 //运营发送消息demo 160 //运营发送消息demo
161 - 'App.Reserve.SendSalesmanMsg':{ 161 + 'App.Reserve.OperationalMessagePush':{
162 silence: false, 162 silence: false,
163 - alias:'App.Reserve.SendSalesmanMsg',  
164 }, 163 },
165 } 164 }