Browse Source

添加站点判断

xiaohaizhao 2 weeks ago
parent
commit
b01a4625ae
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pages/tabbar/mine/index.js

+ 4 - 3
pages/tabbar/mine/index.js

@@ -80,9 +80,6 @@ Page({
 			let list = [{
 				key: "新建",
 				icon: "icon-xinjian"
-			}, {
-				key: "预提交",
-				icon: "icon-yutijiao"
 			}, {
 				key: "提交",
 				icon: "icon-tijiao1"
@@ -96,6 +93,10 @@ Page({
 				key: "审核",
 				icon: "icon-shenhe1"
 			}]
+			if (wx.getStorageSync('userMsg').siteid == 'HY') list.splice(1, 0, {
+				key: "预提交",
+				icon: "icon-yutijiao"
+			})
 			this.setData({
 				orders: list.map(v => {
 					v.badge = res.data[v.key]