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