Commit 69968a0c by 李伟康

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents 8f04b84a 914b5c5a
......@@ -125,10 +125,15 @@ Component({
isEdit: true
}
],
listObj
listObj,
isSuper: false
},
attached() {
// this.initTime()
let { userInfo } = wx.$storage.get()
this.setData({
isSuper: userInfo.isSuper
})
this.getMerchantCustomInfoList()
},
/**
......@@ -191,7 +196,7 @@ Component({
},
changeStatus(e) {
console.log(e)
let { customerList } = this.data
let { customerList, isSuper } = this.data
let { index, item } = e.currentTarget.dataset
// let
let status = customerList[index].isEdit
......@@ -200,7 +205,7 @@ Component({
// 提交客户信息更新
// this.checkout(customerList[index])
// console.log('customerList[index]', customerList[index])
this.submit(customerList[index])
!isSuper && this.submit(customerList[index])
} else {
customerList[index]['isEdit'] = true
this.setData({
......
......@@ -65,7 +65,8 @@
wx:if="{{isShare && actNum != 2 && index == 4}}"
class="more-btn"
data-index="{{index}}"
bindtap="getMoreFn"
bindgetphonenumber="getMoreFn"
open-type="getPhoneNumber"
>
点击查看更多详情
</button>
......
......@@ -57,17 +57,20 @@ Component({
// showNothingSceneCon: false
},
attached() {
let { userInfo } = wx.$storage.get()
this.setData({
userInfo: userInfo.subLoginUser
})
this.initTime()
this.getTotalMerchantCount()
this.init()
},
/**
* 组件的方法列表
*/
methods: {
init() {
let { userInfo } = wx.$storage.get()
this.setData({
userInfo: userInfo.subLoginUser
})
this.getTotalMerchantCount()
},
pickSheet(e) {
let that = this
let { index } = e.currentTarget.dataset
......
......@@ -7,7 +7,7 @@
align-items: center;
padding-top: 88rpx;
background-color: #fff;
height: 100vh;
height: 100%;
.img {
width: 512rpx;
......
......@@ -52,7 +52,7 @@ Page({
console.log(userInfo)
this.setData({
userInfo,
isSuper: userInfo.subLoginUser.isSuper
isSuper: userInfo.isSuper
})
this.getMerchantRange()
},
......
......@@ -19,6 +19,7 @@
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
&::after {
content: '';
......@@ -38,7 +39,9 @@
}
.comCom {
flex: 1;
// flex: 1;
height: calc(100% - 100rpx);
overflow: scroll;
// background-color: #fff;
}
......
......@@ -14,7 +14,7 @@
<image src="{{IMG_URL}}/output/arrow.png" />
</view>
</view>
<!-- </picker> -->
<!-- </picker> height:calc(100vh - {{tabBarStyle}}px) -->
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;">
<tab
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!