Commit 0be7a79e by 前端

1111

1 parent 823d50e0
...@@ -3,6 +3,7 @@ import api from '../../api.js' ...@@ -3,6 +3,7 @@ import api from '../../api.js'
import { import {
ImgUrl ImgUrl
} from '~/config'; } from '~/config';
const app = getApp()
Page({ Page({
/** /**
...@@ -24,6 +25,9 @@ Page({ ...@@ -24,6 +25,9 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
this.getReservationConfig() this.getReservationConfig()
this.setData({
isYqdSuper: app.globalData.isYqdSuper,
})
}, },
/** /**
...@@ -225,8 +229,10 @@ Page({ ...@@ -225,8 +229,10 @@ Page({
submit() { submit() {
let { let {
info info,
userInfo
} = this.data } = this.data
if (userInfo.userType == 2) return
let params = {} let params = {}
let config = wx.$util.deepClone(info) let config = wx.$util.deepClone(info)
if (config.isEdit) { if (config.isEdit) {
......
...@@ -174,6 +174,10 @@ page { ...@@ -174,6 +174,10 @@ page {
pointer-events: none; pointer-events: none;
} }
.disabled {
opacity: .5;
}
.btns { .btns {
position: fixed; position: fixed;
/* position: absolute; */ /* position: absolute; */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="main {{isFullSucreen?'isFullSucreen':''}}"> <view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="switch-v"> <view class="switch-v">
<view class="label">设置园区店集中接待电话</view> <view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" /> <switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view> </view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}"> <view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view> <view class="item-label">{{info.yqMerchantName}}</view>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</view> </view>
<view class="switch-v"> <view class="switch-v">
<view class="label">设置单店驻店接待电话</view> <view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" /> <switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view> </view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index"> <block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}"> <view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
...@@ -48,6 +48,6 @@ ...@@ -48,6 +48,6 @@
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}"> <view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con"> <view class="btns-con">
<view class="confirm text-center" bindtap="submit">批量提交</view> <view class="confirm text-center {{userInfo.userType == 2 ?'disabled':''}}" bindtap="submit">批量提交</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -3,6 +3,7 @@ import api from '../../api.js' ...@@ -3,6 +3,7 @@ import api from '../../api.js'
import { import {
ImgUrl ImgUrl
} from '~/config'; } from '~/config';
const app = getApp()
Page({ Page({
/** /**
...@@ -23,6 +24,9 @@ Page({ ...@@ -23,6 +24,9 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
this.getMerchantConfiguration() this.getMerchantConfiguration()
this.setData({
isYqdSuper: app.globalData.isYqdSuper,
})
}, },
/** /**
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);"> <view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="createData"> <view class="createData">
<view class="label">是否开启客户电子签名及评分选项</view> <view class="label">是否开启客户电子签名及评分选项</view>
<switch class=" {{userInfo.userType == 2 ?'disabled':''}}" color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" /> <switch class=" {{userInfo.userType == 2 ?'disabled':''}}" color="#347BFF" disabled="{{!isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
</view> </view>
<view class="box"> <view class="box">
<view class="box-label">客户电子签名及施工页面:</view> <view class="box-label">客户电子签名及施工页面:</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!