Commit cb89bfbc4e58b2bdb368d166a1e1c7615c583a58

Authored by wangfan
1 parent d507f2ec

manager-invitation

... ... @@ -21,13 +21,6 @@ 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();
},
... ... @@ -60,10 +53,8 @@ Page({
}
},
getMembers(hasReachBottom=false){
App.Reserve.Members({
sid: this.seller_id,
//manager_id:this.enter_params.manager_id,
manager_openid:this.enter_params.seller_openid,
App.Invitation.Members({
openid:getApp().openid,
offset: this.offset,
limit: this.limit,
}).then(res => {
... ... @@ -86,15 +77,4 @@ Page({
this.setData(obj)
})
},
sendSalesmanMsg(e){
let openid=util.attr(e,'openid')
App.Reserve.OperationalMessagePush({
openid:openid
}).then(res=>{
if(res.ret!=200){
return util.toast(res.msg,'none')
}
util.toast('已发送')
})
},
})
\ No newline at end of file
... ...
<!--pages/book/setting/index.wxml-->
<nav id="nav" backgroundColor="#199095" color="#fefefe">订座</nav>
<nav id="nav" backgroundColor="#199095" color="#fefefe">我的</nav>
<view class="header">
<view class="info">
<view class="nick">{{user.nick_name || user.nickname}}</view>
<view class="seller Medium">{{seller.sellername}} | {{user.role_name||''}}</view>
<view class="info flex-ll">
<view class="avatar">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class="nick"><open-data type="userNickName"></open-data></view>
</view>
</view>
<view class="page">
... ...
... ... @@ -4,23 +4,27 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png
http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
*/
.header{
height: 302rpx;
background-color: #199095;
margin-top: -2rpx;
}
.header .info{
color:#FEFEFE;
width: 90%;
padding-top: 86rpx;
padding-top: 60rpx;
margin: 0 auto;
padding-bottom: 60rpx;
}
.header .info .nick{
font-size: 44rpx;
font-weight: bold;
margin-bottom: 28rpx;
font-size: 40rpx;
height: 80rpx;
line-height: 80rpx;
}
.header .info .seller{
font-size: 34rpx;
.avatar{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
overflow: hidden;
margin-right: 20rpx;
}
.page{
width: 90%;
... ...
... ... @@ -22,13 +22,6 @@
<switch checked="{{form.is_default==1}}" bindchange="input" data-key="is_default" />
</view>
</view>
<view class="upload block flex-vc">
<view class="item Medium">店铺图片</view>
<view class="image" bindtap="chooseImage">
<image src="{{form.image||defImage}}" mode="aspectFill"></image>
</view>
<view class="text">(此处照片为邀请函展示照片)</view>
</view>
<formids bindclick="submit" style="width: 100%;">
<view class="submit {{hasSubmit?'submit-active':''}}">确定</view>
</formids>
... ...
... ... @@ -212,6 +212,9 @@ export default {
//受邀人同意参加,修改关系状态
'App.Invitation.SetInvitationConfirm':null,
//根据客户经理openid 获取当前用户所负责的顾客
'App.Invitation.Members':null,
//上传图片,只能上传单个图片文件
'App.Examples_Upload.UploadQn':null,
}
\ No newline at end of file
... ...