Handy_Cao 2 سال پیش
والد
کامیت
44754d8474

+ 23 - 10
GuangZuan/miniprogram/mMine/pages/myinventorys/list/index.ts

@@ -17,7 +17,7 @@ Page({
     tabs: [{id: 2, name: '单颗裸钻'},  {id: 5, name: '单颗彩钻'}, {id: 4, name: '钻石首饰'}],
     /// 列头
     titles: [['重量', '形状', '尺寸', '编号'], 
-             ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+             ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     /// 查询数据
     datas: <GuangZuan.MyWRPosition[]>[],
     /// 显示的值
@@ -62,24 +62,23 @@ Page({
     this.setData({ active: e.detail.index })
     /// 类型
     const zscategory = this.data.tabs[this.data.active].id
-    
     switch (zscategory) {
       case 2:  /// 单颗裸钻
         this.setData({
           /// 列头  
-          titles: [['重量', '形状', '尺寸', '编号'], ['颜色', '净度', '切工', '对称', '抛光', '荧光', '证书', '价格']]
+          titles: [['重量', '形状', '尺寸', '编号'], ['颜色|净度|切工|抛光|对称|荧光|证书', '价格']]
         })
         break;
       case 5:  /// 单颗彩钻
         this.setData({
           /// 列头  
-          titles: [['重量', '形状', '尺寸', '编号'], ['颜色', '净度', '对称', '抛光', '荧光', '证书', '价格']]
+          titles: [['重量', '形状', '尺寸', '编号'], ['颜色|净度|抛光|对称|荧光|证书', '价格']]
         })
         break;
       default: /// 钻石首饰
         this.setData({
           /// 列头  
-          titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色', '净度', '切工', '对称', '抛光', '荧光', '证书', '价格']]
+          titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色|净度|切工|抛光|对称|荧光|证书', '价格']]
         })
     }
     /// 查询我的库存
@@ -110,16 +109,30 @@ Page({
               datas: res.data,
               isEmpty: res.data.length === 0,
               /// 显示的值
-              values: res.data.map(obj => {
-                return {up: [obj.weight+'ct', 
+              values: this.data.active != 2 ? res.data.map(obj => {
+                return {  up: [obj.weight+'ct', 
                             isnullstr(obj.zsshapetypedisplay), 
-                            isnullstr(obj.size1), 
+                            isnullstr(obj.sizedisplay), 
                             isnullstr(obj.goodsno)], 
-                        dwn: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
+                          dwn: [isnullstr(obj.zscolortype1display)+' | '+
                               isnullstr(obj.zsclaritytype1display)+' | '+
                               isnullstr(obj.zscuttype1display)+' | '+
+                              isnullstr(obj.zspolishtype1display)+' | '+
                               isnullstr(obj.zssymmetrytype1display)+' | '+
+                              isnullstr(obj.zsfluorescencetype1display)+
+                              (this.data.active === 0 ? ' | '+isnullstr(obj.zscerttypedisplay) : ''),
+                            obj.zscurrencytypedisplayunit+obj.price.toFixed(2)]}
+              }) : res.data.map(obj => {
+                return {  up: [obj.weight+'ct', 
+                            isnullstr(obj.zsshapetypedisplay), 
+                            isnullstr(obj.zsstyletypedisplay), 
+                            isnullstr(obj.sizedisplay), 
+                            isnullstr(obj.goodsno)], 
+                          dwn: [isnullstr(obj.zscolortype1display)+' | '+
+                              isnullstr(obj.zsclaritytype1display)+' | '+
+                              isnullstr(obj.zscuttype1display)+' | '+
                               isnullstr(obj.zspolishtype1display)+' | '+
+                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zsfluorescencetype1display)+' | '+
                               isnullstr(obj.zscerttypedisplay),
                             obj.zscurrencytypedisplayunit+obj.price.toFixed(2)]}
@@ -180,7 +193,7 @@ Page({
    */
   onPullDownRefresh() {
     /// 查询我的库存
-    this.queryMyWRPosition(this.data.active+1)
+    this.queryMyWRPosition(this.data.tabs[this.data.active].id)
   },
 
   /**

+ 2 - 2
GuangZuan/miniprogram/mMine/pages/myorders/his/index.ts

@@ -9,7 +9,7 @@ Page({
    * 页面的初始数据
    */
   data: {
-    titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+    titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     /// 是否空数据
     isEmpty: false,
     /// 我的摘牌
@@ -116,7 +116,7 @@ Page({
                         '--', 
                         isnullstr(obj.sizedisplay), 
                         isnullstr(obj.goodsno)], 
-                    dwn: [isnullstr(obj.zsczcolor1typedisplay)+' | '+isnullstr(obj.zsclaritytype1display)+' | '+isnullstr(obj.zscuttype1display)+' | '+isnullstr(obj.zssymmetrytype1display)+' | '+isnullstr(obj.zspolishtype1display)+' | '+isnullstr(obj.zsfluorescencetype1display)+' | '+isnullstr(obj.zscerttypedisplay),
+                    dwn: [isnullstr(obj.zsczcolor1typedisplay)+' | '+isnullstr(obj.zsclaritytype1display)+' | '+isnullstr(obj.zscuttype1display)+' | '+isnullstr(obj.zspolishtype1display)+' | '+isnullstr(obj.zssymmetrytype1display)+' | '+isnullstr(obj.zsfluorescencetype1display)+' | '+isnullstr(obj.zscerttypedisplay),
                         obj.zscurrencytypedisplayunit+obj.price]}
           })
         })

+ 11 - 11
GuangZuan/miniprogram/mMine/pages/myorders/list/index.ts

@@ -28,7 +28,7 @@ Page({
             {id: 1, name: '我的出售'}],
 
     /// 列头
-    titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+    titles: [['重量', '形状', '款式', '尺寸', '编号'], ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     /// 是否空数据
     isEmpty: false,
     /// 我的摘牌
@@ -69,7 +69,7 @@ Page({
         this.setData({
           /// 列头  
           titles: [['重量', '形状', '款式', '尺寸', '编号'], 
-                   ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+                   ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
           width: 100
         })
         break;
@@ -77,7 +77,7 @@ Page({
         this.setData({
           /// 列头  
           titles: [['形状', '尺寸', '分类'], 
-                   ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光', '']],
+                   ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光', '']],
           width: 100
         })
         break;
@@ -85,7 +85,7 @@ Page({
         this.setData({
           /// 列头  
           titles: [['重量', '形状', '款式', '尺寸', '编号'], 
-                   ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+                   ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
           width: 50
         })
         break;
@@ -93,7 +93,7 @@ Page({
         this.setData({
           /// 列头  
           titles: [['形状', '尺寸', '分类'], 
-                   ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光', ''], 
+                   ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光', ''], 
                    ['买方', '我的钻石']],
           width: 100
         })
@@ -102,7 +102,7 @@ Page({
         this.setData({
           /// 列头  
           titles: [['重量', '形状', '尺寸', '分类'], 
-                   ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光', '价格'], ['', '卖方 | 联系电话']],
+                   ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光', '价格'], ['', '卖方 | 联系电话']],
           width: 50
         })
         break;
@@ -247,8 +247,8 @@ Page({
                         mid: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytype1display)+' | '+
                               isnullstr(obj.zscuttype1display)+' | '+
-                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zspolishtype1display)+' | '+
+                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zsfluorescencetype1display)+' | '+
                               isnullstr(obj.zscerttypedisplay),
                             obj.zscurrencytypedisplayunit+obj.price.toFixed(2)], 
@@ -300,8 +300,8 @@ Page({
                         mid: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytypedisplay)+' | '+
                               isnullstr(obj.zscuttypedisplay)+' | '+
-                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zspolishtypedisplay)+' | '+
+                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zsfluorescencetypedisplay),
                             ''], 
                         dwn: []}
@@ -355,8 +355,8 @@ Page({
                       mid: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                             isnullstr(obj.zsclaritytype1display)+' | '+
                             isnullstr(obj.zscuttype1display)+' | '+
-                            isnullstr(obj.zssymmetrytype1display)+' | '+
                             isnullstr(obj.zspolishtype1display)+' | '+
+                            isnullstr(obj.zssymmetrytype1display)+' | '+
                             isnullstr(obj.zsfluorescencetype1display)+' | '+
                             isnullstr(obj.zscerttypedisplay),
                           obj.zscurrencytypedisplayunit+obj.price.toFixed(2)], 
@@ -410,8 +410,8 @@ Page({
                         mid: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytypedisplay)+' | '+
                               isnullstr(obj.zscuttypedisplay)+' | '+
-                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zspolishtypedisplay)+' | '+
+                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zsfluorescencetypedisplay),
                           ''], 
                         dwn: [obj.buyusername, obj.goodsno]}
@@ -423,8 +423,8 @@ Page({
                         mid: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytypedisplay)+' | '+
                               isnullstr(obj.zscuttypedisplay)+' | '+
-                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zspolishtypedisplay)+' | '+
+                              isnullstr(obj.zssymmetrytypedisplay)+' | '+
                               isnullstr(obj.zsfluorescencetypedisplay),
                             obj.zscurrencytypedisplayunit+obj.applyprice.toFixed(2)], 
                         dwn: ['', obj.sellusername+' | --']}

+ 6 - 6
GuangZuan/miniprogram/mTrade/pages/delistingsell/index.less

@@ -70,8 +70,8 @@
         justify-content: start;
         align-items: center;
         align-content: center;
-        margin-left: 5px;
         width: 100%;
+        margin: 5px 0px;
   
         &__item {
           display: flex;
@@ -79,11 +79,11 @@
           align-items: center;
           align-content: center;
           padding-top: 10px;
+          margin-bottom: 5px;
   
           text {
-            font-size: 13px;
-            padding: 2.5px;
-            width: 100px;
+            font-size: 12px;
+            padding: 2.5px 5px;
             text-align: center;
           }
         }
@@ -143,14 +143,14 @@
   .button-view {
     display: flex;
     justify-content: space-between;
-    margin: 10px;
+    margin-top: 30px;
     justify-content: center;
     justify-items: center;
     width: 100%;
 
     van-button {
       height: 40px;
-      width: 80%;
+      width: 90%;
     }
   }
 }

+ 3 - 4
GuangZuan/miniprogram/mTrade/pages/delistingsell/index.ts

@@ -28,7 +28,7 @@ Page({
     rate: loginQuery().exchangeRateConfigs[0].exchangerate,
     /// 列头
     titles: [['重量', '形状', '尺寸', '编号'], 
-             ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+             ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     // 显示的值
     values: [{ up: [''], dwn: [''], isChecked: false }],
     /// 选中履约模板
@@ -183,8 +183,8 @@ Page({
                         dwn: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytype1display)+' | '+
                               isnullstr(obj.zscuttype1display)+' | '+
-                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zspolishtype1display)+' | '+
+                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zsfluorescencetype1display)+' | '+
                               isnullstr(obj.zscerttypedisplay),
                             obj.zscurrencytypedisplayunit+obj.price.toFixed(2)], 
@@ -219,8 +219,7 @@ Page({
                   isnullstr(item.zscuttypedisplay)+' | '+
                   isnullstr(item.zssymmetrytypedisplay)+' | '+
                   isnullstr(item.zspolishtypedisplay)+' | '+
-                  isnullstr(item.zsfluorescencetypedisplay)+' | '+
-                  isnullstr(item.zscerttypedisplay)]
+                  isnullstr(item.zsfluorescencetypedisplay)]
           }
         })
       }

+ 1 - 1
GuangZuan/miniprogram/mTrade/pages/delistingsell/index.wxml

@@ -63,6 +63,6 @@
 
   <!-- 提交按钮视图 -->
   <view class="button-view" style="padding-bottom: {{ safeBottom}}px;">
-    <van-button id="close" block round color="#7232dd" bind:click="doDelistingBuy">确认摘牌</van-button>
+    <van-button id="close" block round color="#407DB8" bind:click="doDelistingBuy">确认摘牌</van-button>
   </view>
 </view>

+ 2 - 2
GuangZuan/miniprogram/mTrade/pages/listingsell/index.ts

@@ -25,7 +25,7 @@ Page({
     sellorder: <GuangZuan.MySellOrder>({}),
     /// 列头
     titles: [['重量', '形状', '尺寸', '编号'], 
-             ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+             ['颜色 | 净度 | 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     /// 显示的值
     values: [{ up: [''], dwn: [''], isChecked: false }],
     /// 是否空数据
@@ -152,8 +152,8 @@ Page({
                           dwn: [isnullstr(obj.zsczcolor1typedisplay)+' | '+
                               isnullstr(obj.zsclaritytype1display)+' | '+
                               isnullstr(obj.zscuttype1display)+' | '+
-                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zspolishtype1display)+' | '+
+                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zsfluorescencetype1display)+' | '+
                               isnullstr(obj.zscerttypedisplay),
                             obj.zscurrencytypedisplayunit+obj.price.toFixed(2)], 

+ 1 - 1
GuangZuan/miniprogram/mTrade/pages/orderdetail/index.less

@@ -104,7 +104,7 @@
 
     van-button {
       height: 40px;
-      width: 80%;
+      width: 90%;
     }
   }
 }

+ 2 - 2
GuangZuan/miniprogram/pages/circle/index.ts

@@ -27,7 +27,7 @@ Page({
     active: 0,
     /// 列头
     titles: [['重量', '形状', '尺寸', '编号'],
-             ['颜色 | 净度 | 切工 | 对称 | 抛光 | 荧光 | 证书', '价格']],
+             ['颜色 | 净度| 切工 | 抛光 | 对称 | 荧光 | 证书', '价格']],
     /// 我的收藏
     favorites: <GuangZuan.MyFavorite[]>[],
     /// 是否空数据
@@ -162,8 +162,8 @@ Page({
                         dwn: [isnullstr(obj.zscolortype1display)+' | '+
                               isnullstr(obj.zsclaritytype1display)+' | '+
                               isnullstr(obj.zscuttype1display)+' | '+
-                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zspolishtype1display)+' | '+
+                              isnullstr(obj.zssymmetrytype1display)+' | '+
                               isnullstr(obj.zsfluorescencetype1display),
                             obj.zscurrencytypedisplayunit+obj.price.toFixed(2)]}
               })

+ 3 - 2
GuangZuan/miniprogram/pages/home/index.ts

@@ -175,8 +175,6 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad() {
-    /// 获取新闻首页数据
-    this.homeData()
     /// 查询新闻资讯
     this.queryNotice(1)
     /// 查询轮播图数据
@@ -196,6 +194,9 @@ Page({
    * 生命周期函数--监听页面显示
    */
   onShow() {
+    /// 获取新闻首页数据
+    this.homeData()
+    /// 初始化tab
     this.getTabBar().init()
   },
 

+ 1 - 1
GuangZuan/miniprogram/pages/mine/index.wxml

@@ -58,7 +58,7 @@
   </van-cell-group>
 
   <!-- 登出按钮  -->
-  <view class="loginOut-view">
+  <view class="loginOut-view" style="padding-bottom: 60px;">
     <van-button custom-class="loginOut" size="large" round bindtap="onLoginOut">退出登录</van-button>
   </view>
 </view>

+ 1 - 1
GuangZuan/miniprogram/pages/trade/index.wxml

@@ -47,7 +47,7 @@
         <view class="vanSwipeCell-item__mid__left">
           <text>切工:{{ active === 0 ? itm.zscuttype1display : itm.zscuttypedisplay }}</text>
           <text>抛光:{{ active === 0 ? itm.zspolishtype1display : itm.zspolishtypedisplay }}</text>
-          <text>尺寸:--</text>
+          <text>尺寸:{{ itm.zssize }}</text>
         </view>
         <view class="vanSwipeCell-item__mid__mid">
           <text>对称:{{ active === 0 ? itm.zssymmetrytype1display : itm.zssymmetrytypedisplay }}</text>

+ 2 - 0
GuangZuan/typings/types/model/order.d.ts

@@ -1325,6 +1325,8 @@ declare namespace GuangZuan {
     size2: string
     /// 尺寸3 - 类型:2,4,5
     size3: string
+    /// 尺寸描述
+    sizedisplay: string
     /// 配石描述 - 类型:4
     stonedesc: string
     /// 提单子单号