Commit b6bce86c by 张立顺

feat:首页列表颜色根据角色变化;工位设置权限修复

1 parent a58d5d2b
...@@ -10,7 +10,7 @@ const accountInfo = wx.getAccountInfoSync() ...@@ -10,7 +10,7 @@ const accountInfo = wx.getAccountInfoSync()
//手动控制体验版环境的请求 true就依据下面index false就默认为2 //手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false const manual = false
let index = 1 let index = 2
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<block wx:if="{{i.key == 'filmTimes'}}"> <block wx:if="{{i.key == 'filmTimes'}}">
<view <view
class="text-center" class="text-center"
style="width:100%;height: 100%;color:#3582EE;" style="width:100%;height: 100%;color:{{isYqdSuper?'#3582EE':'#333333'}}"
data-item="{{item}}" data-item="{{item}}"
bindtap="changeTableData"> bindtap="changeTableData">
{{item[i.key] || 0}} {{item[i.key] || 0}}
......
...@@ -70,7 +70,7 @@ Page({ ...@@ -70,7 +70,7 @@ Page({
touchEnd, touchEnd,
userInfo: { userType } userInfo: { userType }
} = this.data } = this.data
if (userType == 1) return if (userType == 2) return
let value = workItem[index].maxCount let value = workItem[index].maxCount
value += count value += count
if (value < 0) value = 0 if (value < 0) value = 0
...@@ -116,7 +116,7 @@ Page({ ...@@ -116,7 +116,7 @@ Page({
sundayFlag, sundayFlag,
userInfo: { userType } userInfo: { userType }
} = this.data } = this.data
if (userType == 1) { if (userType == 2) {
this.showWork() this.showWork()
return return
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!