|
|
@@ -67,41 +67,42 @@ Page({
|
|
|
onShow() {
|
|
|
this.getTabBar().init();
|
|
|
if (this.data.isWorderform) _Http.basic({
|
|
|
- "id": 2025030613432602,
|
|
|
- "content": {},
|
|
|
- "languagecode": "ZH",
|
|
|
- }).then(res => {
|
|
|
- console.log("获取订单数量", res)
|
|
|
- if (res.code != '1') return wx.showToast({
|
|
|
- title: res.msg,
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- let list = [{
|
|
|
- key: "新建",
|
|
|
- icon: "icon-xinjian"
|
|
|
- }, {
|
|
|
- key: "预提交",
|
|
|
- icon: "icon-yutijiao"
|
|
|
- }, {
|
|
|
- key: "提交",
|
|
|
- icon: "icon-tijiao1"
|
|
|
- }, {
|
|
|
- key: "交期待确认",
|
|
|
- icon: "icon-jiaoqidaiqueren"
|
|
|
- }, {
|
|
|
- key: "交期确认",
|
|
|
- icon: "icon-jiaoqiqueren"
|
|
|
- }, {
|
|
|
- key: "审核",
|
|
|
- icon: "icon-shenhe1"
|
|
|
- }]
|
|
|
- this.setData({
|
|
|
- orders: list.map(v => {
|
|
|
- v.badge = res.data[v.key]
|
|
|
- return v
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
+ "id": 2025030613432602,
|
|
|
+ "content": {},
|
|
|
+ "languagecode": "ZH",
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取订单数量", res)
|
|
|
+ if (res.code != '1') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ let list = [{
|
|
|
+ key: "新建",
|
|
|
+ icon: "icon-xinjian"
|
|
|
+ }, {
|
|
|
+ key: "提交",
|
|
|
+ icon: "icon-tijiao1"
|
|
|
+ }, {
|
|
|
+ key: "交期待确认",
|
|
|
+ icon: "icon-jiaoqidaiqueren"
|
|
|
+ }, {
|
|
|
+ key: "交期确认",
|
|
|
+ icon: "icon-jiaoqiqueren"
|
|
|
+ }, {
|
|
|
+ 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]
|
|
|
+ return v
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
/* 退出登录 */
|
|
|
outLogin() {
|