Handy_Cao hace 2 años
padre
commit
da39f552d4

+ 8 - 8
GuangZuan/miniprogram/mHome/pages/purchase/list/index.ts

@@ -1,5 +1,5 @@
 import { queryGZMyTradingPreSell, queryGZPreSell } from "../../../../services/api/orders/index"
-import { marketid, userid } from "../../../../services/utils"
+import { getEnumdicValue, marketid, userid } from "../../../../services/utils"
 import { hideLoading, showLoading } from "../../../../utils/message/index"
 import { isnullstr } from "../../../../utils/util"
 
@@ -20,13 +20,13 @@ Page({
       /// tabs
       tabs: [{id: 1, name: '集采大厅'}, {id: 2, name: '我的集采'}, {id: 3, name: '我参与的集采'}],
       /// 是否空数据
-    isEmpty: false,
-    /// 预售大厅/我的预售/集采大厅/我的集采 列表查询
-    perSells: <GuangZuan.GZPreSell[]>[{}],
-    /// 我参与的预售(预售中\执行中)\我参与的集采(集采中\执行中) 列表查询
-    myTradingPreSells: <GuangZuan.GZMyTradingPreSell[]>[{}],
-    /// 显示数据信息
-    values: [{}]
+      isEmpty: false,
+      /// 预售大厅/我的预售/集采大厅/我的集采 列表查询
+      perSells: <GuangZuan.GZPreSell[]>[{}],
+      /// 我参与的预售(预售中\执行中)\我参与的集采(集采中\执行中) 列表查询
+      myTradingPreSells: <GuangZuan.GZMyTradingPreSell[]>[{}],
+      /// 显示数据信息
+      values: [{}]
   },
 
   /**

+ 5 - 3
GuangZuan/miniprogram/mTrade/pages/listingbuy/index.ts

@@ -108,9 +108,11 @@ Page({
       case 'shape':   /// 形状
         this.setData({ shapes: this.data.shapes.map(item => {
           if (item.id == index) {
-            item.isCheck = true
-          } else {
-            item.isCheck = false
+            if (item.isCheck) {
+              item.isCheck = false
+            } else {
+              item.isCheck = true
+            }
           }
           return item
         }) })