Handy_Cao před 3 roky
rodič
revize
9e4ed51154
100 změnil soubory, kde provedl 2243 přidání a 0 odebrání
  1. 0 0
      GuangZuan/.eslintrc.js
  2. 101 0
      GuangZuan/miniprogram/app.json
  3. 10 0
      GuangZuan/miniprogram/app.less
  4. 37 0
      GuangZuan/miniprogram/app.ts
  5. 0 0
      GuangZuan/miniprogram/common/common.wxss
  6. 4 0
      GuangZuan/miniprogram/components/num-range/num-range.json
  7. 31 0
      GuangZuan/miniprogram/components/num-range/num-range.less
  8. 26 0
      GuangZuan/miniprogram/components/num-range/num-range.ts
  9. 17 0
      GuangZuan/miniprogram/components/num-range/num-range.wxml
  10. 0 0
      GuangZuan/miniprogram/custom-tab-bar/index.json
  11. 0 0
      GuangZuan/miniprogram/custom-tab-bar/index.less
  12. 63 0
      GuangZuan/miniprogram/custom-tab-bar/index.ts
  13. 0 0
      GuangZuan/miniprogram/custom-tab-bar/index.wxml
  14. 4 0
      GuangZuan/miniprogram/mHome/pages/bond/bond.json
  15. 1 0
      GuangZuan/miniprogram/mHome/pages/bond/bond.less
  16. 66 0
      GuangZuan/miniprogram/mHome/pages/bond/bond.ts
  17. 1 0
      GuangZuan/miniprogram/mHome/pages/bond/bond.wxml
  18. 6 0
      GuangZuan/miniprogram/mHome/pages/calculator/calculator.json
  19. 79 0
      GuangZuan/miniprogram/mHome/pages/calculator/calculator.less
  20. 108 0
      GuangZuan/miniprogram/mHome/pages/calculator/calculator.ts
  21. 62 0
      GuangZuan/miniprogram/mHome/pages/calculator/calculator.wxml
  22. 5 0
      GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.json
  23. 102 0
      GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.less
  24. 67 0
      GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.ts
  25. 30 0
      GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.wxml
  26. 5 0
      GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.json
  27. 37 0
      GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.less
  28. 105 0
      GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.ts
  29. 20 0
      GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.wxml
  30. 4 0
      GuangZuan/miniprogram/mHome/pages/inspection/inspection.json
  31. 1 0
      GuangZuan/miniprogram/mHome/pages/inspection/inspection.less
  32. 66 0
      GuangZuan/miniprogram/mHome/pages/inspection/inspection.ts
  33. 1 0
      GuangZuan/miniprogram/mHome/pages/inspection/inspection.wxml
  34. 0 0
      GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.json
  35. 1 0
      GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.less
  36. 0 0
      GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.ts
  37. 0 0
      GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.wxml
  38. 0 0
      GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.json
  39. 18 0
      GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.less
  40. 75 0
      GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.ts
  41. 11 0
      GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.wxml
  42. 4 0
      GuangZuan/miniprogram/mHome/pages/news/news.json
  43. 1 0
      GuangZuan/miniprogram/mHome/pages/news/news.less
  44. 66 0
      GuangZuan/miniprogram/mHome/pages/news/news.ts
  45. 1 0
      GuangZuan/miniprogram/mHome/pages/news/news.wxml
  46. 13 0
      GuangZuan/miniprogram/mHome/pages/search/search.json
  47. 99 0
      GuangZuan/miniprogram/mHome/pages/search/search.less
  48. 180 0
      GuangZuan/miniprogram/mHome/pages/search/search.ts
  49. 156 0
      GuangZuan/miniprogram/mHome/pages/search/search.wxml
  50. 0 0
      GuangZuan/miniprogram/mMine/pages/assets/assets.json
  51. 1 0
      GuangZuan/miniprogram/mMine/pages/assets/assets.less
  52. 0 0
      GuangZuan/miniprogram/mMine/pages/assets/assets.ts
  53. 0 0
      GuangZuan/miniprogram/mMine/pages/assets/assets.wxml
  54. 0 0
      GuangZuan/miniprogram/mMine/pages/bank/bank.json
  55. 1 0
      GuangZuan/miniprogram/mMine/pages/bank/bank.less
  56. 0 0
      GuangZuan/miniprogram/mMine/pages/bank/bank.ts
  57. 0 0
      GuangZuan/miniprogram/mMine/pages/bank/bank.wxml
  58. 0 0
      GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.json
  59. 1 0
      GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.less
  60. 0 0
      GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.ts
  61. 0 0
      GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.wxml
  62. 0 0
      GuangZuan/miniprogram/mMine/pages/myorders/myorders.json
  63. 1 0
      GuangZuan/miniprogram/mMine/pages/myorders/myorders.less
  64. 0 0
      GuangZuan/miniprogram/mMine/pages/myorders/myorders.ts
  65. 0 0
      GuangZuan/miniprogram/mMine/pages/myorders/myorders.wxml
  66. 0 0
      GuangZuan/miniprogram/mMine/pages/myreports/myreports.json
  67. 1 0
      GuangZuan/miniprogram/mMine/pages/myreports/myreports.less
  68. 66 0
      GuangZuan/miniprogram/mMine/pages/myreports/myreports.ts
  69. 3 0
      GuangZuan/miniprogram/mMine/pages/myreports/myreports.wxml
  70. 6 0
      GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.json
  71. 1 0
      GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.less
  72. 0 0
      GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.ts
  73. 4 0
      GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.wxml
  74. 0 0
      GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.json
  75. 1 0
      GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.less
  76. 0 0
      GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.ts
  77. 0 0
      GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.wxml
  78. 8 0
      GuangZuan/miniprogram/mMine/pages/settings/settings.json
  79. 9 0
      GuangZuan/miniprogram/mMine/pages/settings/settings.less
  80. 86 0
      GuangZuan/miniprogram/mMine/pages/settings/settings.ts
  81. 7 0
      GuangZuan/miniprogram/mMine/pages/settings/settings.wxml
  82. 0 0
      GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.json
  83. 1 0
      GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.less
  84. 0 0
      GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.ts
  85. 0 0
      GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.wxml
  86. 0 0
      GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.json
  87. 1 0
      GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.less
  88. 0 0
      GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.ts
  89. 0 0
      GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.wxml
  90. 0 0
      GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.json
  91. 1 0
      GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.less
  92. 0 0
      GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.ts
  93. 0 0
      GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.wxml
  94. 0 0
      GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.json
  95. 31 0
      GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.less
  96. 67 0
      GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.ts
  97. 44 0
      GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.wxml
  98. 11 0
      GuangZuan/miniprogram/mTrade/pages/listing/listing.json
  99. 81 0
      GuangZuan/miniprogram/mTrade/pages/listing/listing.less
  100. 126 0
      GuangZuan/miniprogram/mTrade/pages/listing/listing.ts

+ 0 - 0
miniprogram/GuangZuan/.eslintrc.js → GuangZuan/.eslintrc.js


+ 101 - 0
GuangZuan/miniprogram/app.json

@@ -0,0 +1,101 @@
+{
+  "pages": [
+    "pages/login/login",
+    "pages/home/home",
+    "pages/register/register",
+    "pages/circle/circle",
+    "pages/trade/trade",
+    "pages/mine/mine"
+  ],
+  "preloadRule": {
+    "pages/mine/mine": {
+      "network": "all",
+      "packages": ["mMine"]
+    },
+    "pages/trade/trade": {
+      "network": "all",
+      "packages": ["mTrade"]
+    },
+    "pages/home/home": {
+      "network": "all",
+      "packages": ["mHome"]
+    }
+  },
+  "subPackages": [
+    {
+      "root": "mHome",
+      "name": "mHome",
+      "pages": [
+        "pages/bond/bond",
+        "pages/inspection/inspection",
+        "pages/goldPrice/goldPrice",
+        "pages/exchangeRate/exchangeRate",
+        "pages/calculator/calculator",
+        "pages/search/search",
+        "pages/msg/msglist/msglist",
+        "pages/msg/msgdetail/msgdetail",
+        "pages/news/news"
+      ]
+    },
+    {
+      "root": "mMine",
+      "name": "mMine",
+      "pages": [
+        "pages/settings/settings",
+        "pages/myinventorys/myinventorys",
+        "pages/realauthentication/realauthentication",
+        "pages/storageserver/storageserver",
+        "pages/tradeserver/tradeserver",
+        "pages/assets/assets",
+        "pages/myorders/myorders",
+        "pages/myreports/myreports",
+        "pages/ordersearch/ordersearch",
+        "pages/spotlisting/spotlisting",
+        "pages/bank/bank"
+      ]
+    }, 
+    {
+      "root": "mTrade",
+      "name": "mTrade",
+      "pages": [
+        "pages/listing/listing",
+        "pages/diadetail/diadetail"
+      ]
+    }
+  ],
+  "usingComponents": {
+    "van-button": "@vant/weapp/button/index",
+    "van-image": "@vant/weapp/image/index",
+    "van-toast": "@vant/weapp/toast/index",
+    "van-empty": "@vant/weapp/empty/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index",
+    "van-field": "@vant/weapp/field/index",
+    "van-config-provider": "@vant/weapp/config-provider/index",
+    "van-icon": "@vant/weapp/icon/index"
+  },
+  "window": {
+    "backgroundTextStyle": "dark",
+    "navigationBarBackgroundColor": "#f6f6f6",
+    "navigationBarTextStyle": "black",
+    "enablePullDownRefresh": true,
+    "backgroundColor": "#f6f6f6"
+  },
+  "tabBar": {
+    "custom": true,
+    "list": [
+      {
+        "pagePath": "pages/home/home"
+      },
+      {
+        "pagePath": "pages/circle/circle"
+      },
+      {
+        "pagePath": "pages/trade/trade"
+      },
+      {
+        "pagePath": "pages/mine/mine"
+      }
+    ]
+  },
+  "sitemapLocation": "sitemap.json"
+}

+ 10 - 0
GuangZuan/miniprogram/app.less

@@ -0,0 +1,10 @@
+/**app.wxss**/
+.container {
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: space-between;
+  padding: 200rpx 0;
+  box-sizing: border-box;
+} 

+ 37 - 0
GuangZuan/miniprogram/app.ts

@@ -0,0 +1,37 @@
+// app.ts
+
+App({
+  globalData: {
+    /// iPhone底部安全区域
+    safeBottom: 0,
+    /// 窗口高度
+    windowHeight: 0
+  },
+  onLaunch() {
+
+    /// 获取iPhone底部安全区域
+    wx.getSystemInfo({
+      success: res=> {
+        console.log(res)
+        this.globalData.safeBottom = res.screenHeight-res.safeArea.bottom
+        this.globalData.windowHeight = res.windowHeight
+      },
+      fail(err) {
+        console.log(err)
+      }
+    })
+
+    // 展示本地存储能力
+    const logs = wx.getStorageSync('logs') || []
+    logs.unshift(Date.now())
+    wx.setStorageSync('logs', logs)
+
+    // 登录
+    wx.login({
+      success: res => {
+        console.log(res.code)
+        // 发送 res.code 到后台换取 openId, sessionKey, unionId
+      },
+    })
+  },
+})

+ 0 - 0
miniprogram/GuangZuan/miniprogram/common/common.wxss → GuangZuan/miniprogram/common/common.wxss


+ 4 - 0
GuangZuan/miniprogram/components/num-range/num-range.json

@@ -0,0 +1,4 @@
+{
+  "component": true,
+  "usingComponents": {}
+}

+ 31 - 0
GuangZuan/miniprogram/components/num-range/num-range.less

@@ -0,0 +1,31 @@
+/* components/num-range/num-range.wxss */
+
+.content {
+  display: flex;
+  justify-content: space-between;
+  height: 60%;
+  align-items: center;
+  align-content: center;
+}
+
+.left, .right {
+  justify-content: space-between;
+  padding: 0px 0px;
+  border: 1px solid #ccc;
+  align-items: center;
+  align-content: center;
+  height: 100%;
+  border-radius: 10px;
+  padding: 0px 0px 0px 10px;
+}
+
+.left text, .right text {
+  text-align: right;
+  width: 40px;
+  height: 100%;
+  padding-right: 10px;
+  background-color: rosybrown;
+  border-top-right-radius: 10px;
+  border-bottom-right-radius: 10px;
+  color: white;
+}

+ 26 - 0
GuangZuan/miniprogram/components/num-range/num-range.ts

@@ -0,0 +1,26 @@
+// components/num-range/num-range.ts
+Component({
+  /**
+   * 组件的属性列表
+   */
+  properties: {
+
+  },
+
+  /**
+   * 组件的初始数据
+   */
+  data: {
+    /// 最小值
+    min: 0.0,
+    /// 最大值
+    max: 0.0
+  },
+
+  /**
+   * 组件的方法列表
+   */
+  methods: {
+
+  }
+})

+ 17 - 0
GuangZuan/miniprogram/components/num-range/num-range.wxml

@@ -0,0 +1,17 @@
+<!--components/num-range/num-range.wxml-->
+
+
+
+<view class="content">
+  <!-- 左边视图 -->
+  <view class="left">
+    <input value="0.00" placeholder="请输入数值"></input>
+    <text>CT</text>
+  </view>
+  <text style="text-align: center;">~</text>
+  <!-- 右边边视图 -->
+  <view class="right">
+    <input value="0.00" placeholder="请输入数值"></input>
+    <text>CT</text>
+  </view>
+</view>

+ 0 - 0
miniprogram/GuangZuan/miniprogram/custom-tab-bar/index.json → GuangZuan/miniprogram/custom-tab-bar/index.json


+ 0 - 0
miniprogram/GuangZuan/miniprogram/custom-tab-bar/index.wxss → GuangZuan/miniprogram/custom-tab-bar/index.less


+ 63 - 0
GuangZuan/miniprogram/custom-tab-bar/index.ts

@@ -0,0 +1,63 @@
+// custom-tab-bar/index.ts
+Component({
+  /**
+   * 组件的属性列表
+   */
+  properties: {
+
+  },
+
+  options: {
+    styleIsolation: 'shared'
+  },
+
+  /**
+   * 组件的初始数据
+   */
+  data: {
+    active: 0,
+    color: '#7d7e80',
+    activeColor: '#55A154',
+    list: [
+			{
+				icon: 'wap-home',
+				text: '首页',
+				url: '/pages/home/home'
+      },
+      {
+				icon: 'balance-list',
+				text: '钻石交易',
+				url: '/pages/trade/trade'
+			},
+      {
+				icon: 'gem',
+				text: '钻石圈',
+				url: '/pages/circle/circle'
+      },
+			{
+				icon: 'manager',
+				text: '我的',
+				url: '/pages/mine/mine'
+			}
+		]
+  },
+
+  /**
+   * 组件的方法列表
+   */
+  methods: {
+    onChange(e) {
+			wx.switchTab({
+				url: this.data.list[e.detail].url
+      });
+      this.setData({ active: e.detail });
+		},
+
+		init() {
+			const page = getCurrentPages().pop();
+			this.setData({
+				active: this.data.list.findIndex(item => item.url === `/${page.route}`)
+			});
+		}
+  }
+})

+ 0 - 0
miniprogram/GuangZuan/miniprogram/custom-tab-bar/index.wxml → GuangZuan/miniprogram/custom-tab-bar/index.wxml


+ 4 - 0
GuangZuan/miniprogram/mHome/pages/bond/bond.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "保税服务"
+}

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/bond/bond.less

@@ -0,0 +1 @@
+/* mHome/pages/bond/bond.wxss */

+ 66 - 0
GuangZuan/miniprogram/mHome/pages/bond/bond.ts

@@ -0,0 +1,66 @@
+// mHome/pages/bond/bond.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/bond/bond.wxml

@@ -0,0 +1 @@
+<!--mHome/pages/bond/bond.wxml-->

+ 6 - 0
GuangZuan/miniprogram/mHome/pages/calculator/calculator.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {
+    
+  },
+  "navigationBarTitleText": "计算器"
+}

+ 79 - 0
GuangZuan/miniprogram/mHome/pages/calculator/calculator.less

@@ -0,0 +1,79 @@
+/* mHome/pages/calculator/calculator.wxss */
+
+.container {
+  display: flex;
+  flex-direction: row;
+  width: 100%;
+}
+
+.shape {
+  width: 16%;
+}
+
+.shape-item, .color-item, .neatness-item {
+  display: grid;
+  align-items: center;
+  align-content: center;
+  justify-content: center;
+  text-align: center;
+  border-bottom: 1px solid #ccc;
+  border-right: 1px solid #ccc;
+  height: 100px;
+}
+
+.shape-item text {
+  margin-top: 5px;
+  font-size: 28rpx;
+  color: #333;
+}
+
+.color, .neatness {
+  width: 13%;
+  font-size: 14px;
+}
+
+.calculator {
+  display: flex;
+  flex-wrap: wrap;
+  flex-direction: row;
+  width: 58%;
+  height: 370px;
+}
+
+.calculator view {
+  width: 50%;
+  height: 100px;
+  display: grid;
+  align-content: center;
+  border-bottom: 1px solid #ddd;
+  justify-content: start;
+}
+
+.calculator view text {
+  margin: 10px;
+  color: #333;
+}
+
+input {
+  margin: 0px 0px 0px 10px;
+  background-color: white;
+  height: 40px;
+  font-size: 14px;
+}
+
+.calculator view text:nth-child(1) {
+  font-size: 13px;
+  height: 15px;
+}
+
+.calculator view text:nth-child(2) {
+  font-size: 16px;
+  color: #333;
+  height: 10px;
+}
+
+.calculator view text:nth-child(3) {
+  font-size: 12px;
+  color: #999;
+  height: 15px;
+}

+ 108 - 0
GuangZuan/miniprogram/mHome/pages/calculator/calculator.ts

@@ -0,0 +1,108 @@
+// mHome/pages/calculator/calculator.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    /// 底部安全区域
+    safeBottom: getApp().globalData.safeBottom,
+    /// 窗口高度
+    windowHeight: getApp().globalData.windowHeight,
+    /// 形状
+    shapes: [{id: 1, name: '圆形'}, 
+             {id: 2, name: '公主方'}, 
+             {id: 3, name: '祖母绿'}, 
+             {id: 4, name: '垫形'}, 
+             {id: 5, name: '阿斯切'}, 
+             {id: 6, name: '心形'}, 
+             {id: 7, name: '梨形'}, 
+             {id: 8, name: '雷迪恩'}, 
+             {id: 9, name: '椭圆'}, 
+             {id: 10, name: '马眼'}],
+    /// 选中形状         
+    shape: '圆形',
+    /// 颜色
+    colors: [{id: 1, name: 'D'}, 
+             {id: 2, name: 'E'}, 
+             {id: 3, name: 'F'}, 
+             {id: 4, name: 'G'}, 
+             {id: 5, name: 'H'}, 
+             {id: 6, name: 'I'}, 
+             {id: 7, name: 'J'}, 
+             {id: 8, name: 'K'}, 
+             {id: 9, name: 'L'}, 
+             {id: 10, name: 'M-N'}],
+    /// 选中形状
+    color: '',
+    /// 净度
+    neatness: [{id: 1, name: 'FL/IF'}, 
+              {id: 2, name: 'VVS1'}, 
+              {id: 3, name: 'VVS2'}, 
+              {id: 4, name: 'VS1'}, 
+              {id: 5, name: 'VS2'}, 
+              {id: 6, name: 'Sl1'}, 
+              {id: 7, name: 'Sl2'},  
+              {id: 8, name: 'Sl3'},
+              {id: 9, name: 'l1'},
+              {id: 10, name: 'l2'}],
+    /// 选中净度
+    neatnes: '',
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 62 - 0
GuangZuan/miniprogram/mHome/pages/calculator/calculator.wxml

@@ -0,0 +1,62 @@
+<!--mHome/pages/calculator/calculator.wxml-->
+
+<view class="container" style="position: relative; height: {{windowHeight-safeBottom}}px;">
+  <!--  形状  -->
+  <scroll-view scroll-y class="shape">
+    <view class="shape-item" wx:for="{{shapes}}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
+      <image src="https://img.yzcdn.cn/vant/cat.jpeg" style="width: 50px; height: 50px;"></image>
+      <text>{{itm.name}}</text>
+    </view>
+  </scroll-view>
+
+  <!--  颜色  -->
+  <scroll-view scroll-y class="color">
+   <view class="color-item" wx:for="{{colors}}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
+     <text>{{itm.name}}</text>
+    </view>
+  </scroll-view>
+
+  <!--  净度  -->
+  <scroll-view scroll-y class="neatness">
+    <view class="neatness-item" wx:for="{{neatness}}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
+      <text>{{itm.name}}</text>
+    </view>
+  </scroll-view>
+
+  <view class="calculator">
+    <view class="weight"> 
+      <text>重量(ct)</text>
+      <input placeholder="请输入重量"></input>
+    </view>
+    <view class="price"> 
+      <text>国际报价</text>
+      <input placeholder="请输入价格"></input>
+    </view>
+    <view class="exchangerate"> 
+      <text>汇率</text>
+      <input placeholder="请输入汇率"></input>
+    </view>
+    <view class="discount"> 
+      <text>折扣(%)</text>
+      <input placeholder="请输入折扣"></input>
+    </view>
+    <view class="doller"> 
+      <text>美元</text>
+      <input placeholder="请输入美元"></input>
+    </view>
+    <view class="rmb"> 
+      <text>人民币</text>
+      <input placeholder="请输入人民币"></input>
+    </view>
+    <view class="dollerrate"> 
+      <text>美元</text>
+      <text>0.00</text>
+      <text>0.00/ct</text>
+    </view>
+    <view class="rmbrate"> 
+      <text>人民币</text>
+      <text>0.00</text>
+      <text>0.00/ct</text>
+    </view>  
+  </view>
+</view>

+ 5 - 0
GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.json

@@ -0,0 +1,5 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "汇率查询",
+  "enablePullDownRefresh": false
+}

+ 102 - 0
GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.less

@@ -0,0 +1,102 @@
+/* mHome/pages/exchangeRate/exchangeRate.wxss */
+
+.base-currency {
+  display: grid;
+  width: 100%;
+}
+
+.base-currency .title {
+  display: flex;
+  justify-content: space-between;
+  background-color: #f0f0f0;
+}
+
+.base-currency .title text {
+  font-size: 10px;
+  color: #666;
+  padding: 10px 10px;
+}
+
+.base-rate {
+  display: flex;
+  justify-content: space-between;
+  align-content: center;
+  align-items: center;
+  width: 95%;
+  padding-left: 10px;
+  margin-top: 5px;
+}
+
+.base-rate text {
+  width: 80px;
+  font-size: 16px;
+  color: #333;
+  text-align: left;
+  padding-left: 10px;
+  margin-bottom: 10px;
+}
+
+.input-rate {
+  display: grid;
+  width: 100%;
+}
+
+.input-rate text {
+  font-size: 10px;
+  color: #666;
+  text-align: right;
+  width: 95%;
+  margin-top: 10px;
+}
+
+.ex-currency .title {
+  display: flex;
+  justify-content: space-between;
+  background-color: #f0f0f0;
+}
+
+.ex-currency .title text {
+  font-size: 10px;
+  color: #666;
+  padding: 10px 10px;
+}
+
+.ex-rate {
+  display: flex;
+  justify-content: space-between;
+  align-content: center;
+  align-items: center;
+  width: 95%;
+  padding-left: 10px;
+  margin-top: 5px;
+}
+
+.ex-rate text {
+  width: 60px;
+  font-size: 16px;
+  color: #333;
+  text-align: left;
+  padding-left: 10px;
+  margin-bottom: 10px;
+}
+
+.ex-result-rate {
+  display: grid;
+  width: 100%;
+}
+
+.ex-result-rate text:nth-child(1) {
+  font-size: 16px;
+  color: #333;
+  text-align: right;
+  width: 95%;
+  margin-top: 10px;
+}
+
+.ex-result-rate text:nth-child(2) {
+  font-size: 10px;
+  color: #666;
+  text-align: right;
+  width: 95%;
+  margin-top: 10px;
+}

+ 67 - 0
GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.ts

@@ -0,0 +1,67 @@
+// mHome/pages/exchangeRate/exchangeRate.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+     /// 汇率数据 
+     rates: ['', '', '', '', '', '', '']
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 30 - 0
GuangZuan/miniprogram/mHome/pages/exchangeRate/exchangeRate.wxml

@@ -0,0 +1,30 @@
+<!--mHome/pages/exchangeRate/exchangeRate.wxml-->
+<view class="base-currency">
+  <view class="title">
+   <text>基准货币</text>
+   <text>更换</text>
+  </view>
+  <view class="base-rate">
+    <image src="https://img.yzcdn.cn/vant/cat.jpeg" style="width: 50px; height: 40px;" mode="heightFix"></image>
+    <text>CNY</text>
+    <view class="input-rate">
+      <van-field placeholder="0" input-align="right"></van-field>
+      <text>人民币¥</text>
+    </view>
+  </view>
+</view>
+
+<view class="ex-currency">
+  <view class="title">
+   <text>货币换算</text>
+  </view>
+  <view class="ex-rate" wx:for="{{rates}}" wx:for-item="itm" wx:for-index="idx">
+    <image src="https://img.yzcdn.cn/vant/cat.jpeg" style="width: 50px; height: 40px;" mode="heightFix"></image>
+    <text>USD</text>
+    <van-icon name="play"></van-icon>
+    <view class="ex-result-rate">
+      <text>0.00</text>
+      <text>美元$</text>
+    </view>
+  </view>
+</view>

+ 5 - 0
GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.json

@@ -0,0 +1,5 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "黄金铂金价格查询",
+  "enablePullDownRefresh": true
+}

+ 37 - 0
GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.less

@@ -0,0 +1,37 @@
+/* mHome/pages/goldPrice/goldPrice.wxss */
+
+.container {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+}
+
+.title {
+  font-size: 20px;
+  color: #333;
+  margin: 20px;
+}
+
+.table_header {
+  border-bottom: 1px solid #f0f0f0;
+}
+
+.scroll-view {
+  width: 90%;
+  border-radius: 20px;
+  height: 700px;
+}
+
+.table_header, .table_content {
+  height: 44px;
+  display: flex;
+  border-bottom: 1px solid #f0f0f0;  
+  align-items: center;
+}
+
+.scroll-view text {
+  font-size: 26rpx;
+  color: #333;
+  width: 25%;
+  text-align: center;
+}

+ 105 - 0
GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.ts

@@ -0,0 +1,105 @@
+// mHome/pages/goldPrice/goldPrice.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    /// 底部安全区域
+    safeBottom: getApp().globalData.safeBottom,
+    /// 列头
+    headers: ['产品', '最新价', '涨跌价', '更新时间'],
+    /// 列表内容
+    values: [['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20'], 
+             ['白金100g', '373.15', '0.19', '2022-07-20'],
+             ['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20'], 
+             ['白金100g', '373.15', '0.19', '2022-07-20'],
+             ['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20'], 
+             ['白金100g', '373.15', '0.19', '2022-07-20'],
+             ['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20'], 
+             ['白金100g', '373.15', '0.19', '2022-07-20'],
+             ['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20'], 
+             ['白金100g', '373.15', '0.19', '2022-07-20'],
+             ['黄金999', '373.15', '0.19', '2022-07-20'], 
+             ['黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['m黄金T+D', '373.15', '0.19', '2022-07-20'], 
+             ['白银T+D', '373.15', '0.19', '2022-07-20'], 
+             ['黄金9995', '373.15', '0.19', '2022-07-20']]
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 20 - 0
GuangZuan/miniprogram/mHome/pages/goldPrice/goldPrice.wxml

@@ -0,0 +1,20 @@
+<!--mHome/pages/goldPrice/goldPrice.wxml-->
+
+<!-- container -->
+<view class="container">
+  <!-- title -->
+  <view class="title"><text>最新黄金铂金价格查询</text></view>
+  <!-- 滚动视图 -->
+  <scroll-view class="scroll-view" style="margin-bottom: {{safeBottom}}px;" scroll-y scroll-with-animation>
+    <!-- 列头 -->
+    <view class="table_header"><text wx:for="{{headers}}" wx:key="index">{{item}}</text></view>
+
+    <!-- 内容 -->
+    <view class="table_content" wx:for="{{values}}" wx:for-item="row" wx:key="index">
+      <text wx:for="{{row}}" wx:for-item="value" wx:key="index">{{value}}</text>
+    </view>
+  </scroll-view>
+</view>
+
+
+

+ 4 - 0
GuangZuan/miniprogram/mHome/pages/inspection/inspection.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "出境检测"
+}

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/inspection/inspection.less

@@ -0,0 +1 @@
+/* mHome/pages/inspection/inspection.wxss */

+ 66 - 0
GuangZuan/miniprogram/mHome/pages/inspection/inspection.ts

@@ -0,0 +1,66 @@
+// mHome/pages/inspection/inspection.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/inspection/inspection.wxml

@@ -0,0 +1 @@
+<!--mHome/pages/inspection/inspection.wxml-->

+ 0 - 0
miniprogram/GuangZuan/miniprogram/pages/msg/msgdetail/msgdetail.json → GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.json


+ 1 - 0
GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.less

@@ -0,0 +1 @@
+/* mHome/pages/msg/msgdetail/msgdetail.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/pages/msg/msgdetail/msgdetail.ts → GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/pages/msg/msgdetail/msgdetail.wxml → GuangZuan/miniprogram/mHome/pages/msg/msgdetail/msgdetail.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/pages/msg/msglist/msglist.json → GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.json


+ 18 - 0
GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.less

@@ -0,0 +1,18 @@
+/* pages/msg/msglist/msglist.wxss */
+
+.view_top_content {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+}
+
+.msg_title {
+  font-size: 28rpx;
+  color: #333333;
+}
+
+.msg_date {
+  font-size: 22rpx;
+  color: #999999;
+}
+

+ 75 - 0
GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.ts

@@ -0,0 +1,75 @@
+// pages/msg/msglist/msglist.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    msgs: [{id: '0', title: '手续费调整通知', content: '待付款发货的福克斯的,额雾非雾好疯狂潍坊, 威锋网客服问客服, 呃呃我热我热我热我认为热我认为惹我', date: '2021/12/12'}, 
+           {id: '1', title: '调整通知', content: '待付款发货的福克eff阮菲菲问问二分厂递四方速递斯的,额雾非雾好疯狂潍坊, 威锋网客服问客服, 呃呃我热我热我热我认为热我认为惹我', date: '2021/12/12'}, 
+           {id: '2', title: '手续通知', content: '待付款发货的冯瑞文凤王府福克斯的,额雾非雾好疯狂潍坊, 威锋网客服问客服, 呃呃我热我热我热我认为热我认为惹我', date: '2021/12/12'}]
+  },
+
+  /// 进入公告消息详情页
+  goToMsgDetail() {
+    wx.navigateTo({
+      url: '/mHome/pages/msg/msgdetail/msgdetail'
+    })
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 11 - 0
GuangZuan/miniprogram/mHome/pages/msg/msglist/msglist.wxml

@@ -0,0 +1,11 @@
+<!--pages/msg/msglist/msglist.wxml-->
+
+<van-cell-group>
+  <van-cell wx:for="{{msgs}}" wx:key="id" wx:for-index="idx" wx:for-item="itm" bind:click="goToMsgDetail">
+    <view solt="title" class="view_top_content">
+      <text class="msg_title">{{itm.title}}</text>
+      <text class="msg_date">{{itm.date}}</text>
+    </view>
+    <text class="content" solt="label" class="van-multi-ellipsis--l2">{{itm.content}}</text>
+  </van-cell>
+</van-cell-group>

+ 4 - 0
GuangZuan/miniprogram/mHome/pages/news/news.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "新闻详情"
+}

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/news/news.less

@@ -0,0 +1 @@
+/* mHome/pages/news/news.wxss */

+ 66 - 0
GuangZuan/miniprogram/mHome/pages/news/news.ts

@@ -0,0 +1,66 @@
+// mHome/pages/news/news.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 1 - 0
GuangZuan/miniprogram/mHome/pages/news/news.wxml

@@ -0,0 +1 @@
+<!--mHome/pages/news/news.wxml-->

+ 13 - 0
GuangZuan/miniprogram/mHome/pages/search/search.json

@@ -0,0 +1,13 @@
+{
+  "usingComponents": {
+    "van-tab": "@vant/weapp/tab/index",
+    "van-tabs": "@vant/weapp/tabs/index",
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-radio": "@vant/weapp/radio/index",
+    "van-radio-group": "@vant/weapp/radio-group/index",
+    "num-range": "/components/num-range/num-range"
+  },
+  "navigationBarTitleText": "钻石搜索",
+  "enablePullDownRefresh": false
+}

+ 99 - 0
GuangZuan/miniprogram/mHome/pages/search/search.less

@@ -0,0 +1,99 @@
+/* pages/search/search.wxss */
+
+.container {
+  display: flex;
+  flex-direction: column;
+  width: 100%;
+}
+
+.tab-view {
+  position: sticky;
+  top: 0;
+  z-index: 999;
+}
+
+.cell-view {
+  display: flex;
+  border-bottom: 1px solid #f0f0f0;
+  align-items: center;
+  margin: 0px 10px;
+}
+
+.cell-view text {
+  width: 90px;
+  text-align: left;
+  color: #333;
+  font-size: 26rpx;
+}
+
+.cell-view view {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: wrap;
+  width: 100%;
+}
+
+.cell-view view button {
+  margin: 5px;
+  height: 36px;
+  color: #333;
+  width: 21.3%;
+}
+
+.cell-view button {
+  color: #000;
+  font-size: 24rpx;
+}
+
+.totalweight view, .weight view, .ctweight view {
+  flex-wrap: nowrap;
+  text-align: center;
+}
+
+.shape, .color {
+  height: 150px;
+}
+
+.neatness, .certificate {
+  height: 100px;
+}
+
+.qiegong, .duicheng, .polishing, .yingguang, .warehouse, .currency, .weight, .totalweight, .ctweight, .product {
+  height: 60px;
+}
+
+.totalweight-range {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: nowrap;
+  height: 100%;
+}
+
+.buttom_view {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  margin-top: 20px;
+}
+
+.buttom_view button {
+  width: 45%;
+  color: white;
+}
+
+.buttom_view button:nth-child(1) {
+  background-color: red;
+}
+
+.buttom_view button:nth-child(2) {
+  background-color: purple;
+}
+
+num-range {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  align-content: center;
+}

+ 180 - 0
GuangZuan/miniprogram/mHome/pages/search/search.ts

@@ -0,0 +1,180 @@
+// pages/search/search.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    /// 底部安全区域
+    safeBottom: getApp().globalData.safeBottom,
+    /// tabs
+    tabs: [{id: 1, name: '成批裸钻'}, 
+           {id: 2, name: '单颗裸钻'}, 
+           {id: 3, name: '成批毛坯'}, 
+           {id: 4, name: '首饰'}, 
+           {id: 5, name: '彩钻'}],
+    /// tab索引
+    active: 0,
+
+    /// 形状
+    shapes: [{id: 1, name: '圆形'}, 
+             {id: 2, name: '公主方'}, 
+             {id: 3, name: '祖母绿'}, 
+             {id: 4, name: '垫形'}, 
+             {id: 5, name: '阿斯切'}, 
+             {id: 6, name: '心形'}, 
+             {id: 7, name: '梨形'}, 
+             {id: 8, name: '雷迪恩'}, 
+             {id: 9, name: '椭圆'}, 
+             {id: 10, name: '马眼'}],
+    /// 选中形状         
+    shape: '圆形',
+    /// 颜色
+    colors: [{id: 1, name: 'D'}, 
+             {id: 2, name: 'E'}, 
+             {id: 3, name: 'F'}, 
+             {id: 4, name: 'G'}, 
+             {id: 5, name: 'H'}, 
+             {id: 6, name: 'I'}, 
+             {id: 7, name: 'J'}, 
+             {id: 8, name: 'K'}, 
+             {id: 9, name: 'L'}],
+    /// 选中形状
+    color: '',
+    /// 净度
+    neatness: [{id: 1, name: 'FL/IF'}, 
+              {id: 2, name: 'VVS1'}, 
+              {id: 3, name: 'VVS2'}, 
+              {id: 4, name: 'VS1'}, 
+              {id: 5, name: 'VS2'}, 
+              {id: 6, name: 'Sl1'}, 
+              {id: 7, name: 'Sl2'}, 
+              {id: 8, name: 'l1'}],
+    /// 选中净度
+    neatnes: '',
+    /// 切工 对称 抛光
+    qiegongs: [{id: 1, name: 'EX'}, 
+              {id: 2, name: 'VG'}, 
+              {id: 3, name: 'G'}],
+    /// 选中切工 对称 抛光
+    qiegong: '',
+    duicheng: '',
+    paoguang: '',
+    /// 莹光
+    yingguangs: [{id: 1, name: 'N'}, 
+                 {id: 2, name: 'VSL/F'}, 
+                 {id: 3, name: 'M'}, 
+                 {id: 4, name: 'S'}],
+    /// 选中莹光
+    yingguang: '',
+    /// 晶型
+    jingxings: [{id: 1, name: '成形石'}, 
+                 {id: 2, name: '可锯石'}, 
+                 {id: 3, name: '小钻'}, 
+                 {id: 4, name: '混合型'}, 
+                 {id: 5, name: '其他'}],
+    /// 选中晶型
+    jingxing: '',
+    /// 款式
+    styles: [{id: 1, name: '戒指'}, 
+              {id: 2, name: '吊坠'}, 
+              {id: 3, name: '耳环'}, 
+              {id: 4, name: '手镯'}, 
+              {id: 5, name: '其他'}],
+    /// 选中款式
+    style: '',
+    /// 证书
+    certificates: [{id: 1, name: 'GIA'}, 
+                   {id: 2, name: 'NGTC'}, 
+                   {id: 3, name: 'HRD'}, 
+                   {id: 4, name: 'IGI'}, 
+                   {id: 5, name: 'EGL'},
+                   {id: 6, name: 'AGS'}, 
+                   {id: 7, name: 'NGIC'}, 
+                   {id: 8, name: 'Others'}],
+    /// 选中证书
+    certificate: '',
+    /// 币种
+    currency: "RMB"
+  },
+
+  /**
+   * tab触发事件
+   */
+  onTabChange(e: any) {
+    this.setData({
+      active: e.detail.index
+    })
+  },
+
+  /// 单选框
+  onChange(e) {
+    console.log(e)
+    switch (e.target.id) {
+      case 'shape':   /// 形状
+        this.setData({
+          shape: e.detail
+        })
+        break;
+      default:
+        break;
+    }
+    
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+    
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+    
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 156 - 0
GuangZuan/miniprogram/mHome/pages/search/search.wxml

@@ -0,0 +1,156 @@
+<!--pages/search/search.wxml-->
+
+<!-- tabs -->
+<view class="tab-view">
+  <van-tabs swipeable bind:change="onTabChange">
+    <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" title="{{itm.name}}"/>
+  </van-tabs>  
+</view>
+
+<view class="container"> 
+  <!-- 形状 -->
+  <view class="cell-view shape" wx:if="{{active !== 2}}"> 
+    <text>形状</text>
+    <view class="shape-content">
+      <button wx:for="{{shapes}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 晶型 -->
+  <view class="cell-view jingxing" wx:if="{{active === 2}}"> 
+    <text>晶型</text>
+    <view class="jingxing-content">
+      <button wx:for="{{jingxings}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 款式 -->
+  <view class="cell-view style" wx:if="{{active === 3}}"> 
+    <text>款式</text>
+    <view class="style-content">
+      <button wx:for="{{styles}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 颜色 -->
+  <view class="cell-view color"> 
+    <text>颜色</text>
+    <view class="color-content">
+      <button wx:for="{{colors}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 净度 -->
+  <view class="cell-view neatness"> 
+    <text>净度</text>
+    <view class="neatness-content">
+      <button wx:for="{{neatness}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 切工 -->
+  <view class="cell-view qiegong" wx:if="{{(active === 0 || active === 1 || active === 3)}}"> 
+    <text>切工</text>
+    <view class="qiegong-content">
+      <button wx:for="{{qiegongs}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 对称 -->
+  <view class="cell-view duicheng" wx:if="{{active !== 2}}"> 
+    <text>对称</text>
+    <view class="duicheng-content">
+      <button wx:for="{{qiegongs}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 抛光 -->
+  <view class="cell-view polishing" wx:if="{{active !== 2}}"> 
+    <text>抛光</text>
+    <view class="polishing-content">
+      <button wx:for="{{qiegongs}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 荧光 -->
+  <view class="cell-view yingguang"> 
+    <text>荧光</text>
+    <view class="yingguang-content">
+      <button wx:for="{{yingguangs}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+    
+  <!-- 仓库 -->
+  <view class="cell-view warehouse"> 
+    <text>仓库</text>
+    <view class="warehouse-content">
+      <button style="width: 200px;">---全部---</button>
+    </view>
+  </view>
+
+   <!-- 货币 -->
+   <view class="cell-view currency"> 
+    <text>货币</text>
+    <view class="currency-radio">
+      <van-radio-group value="{{ currency }}" bind:change="onChange">
+        <van-radio name="RMB">人民币</van-radio>
+        <van-radio name="DOLLAR">美元</van-radio>
+      </van-radio-group>
+    </view>
+  </view>
+
+  <!-- 证书 -->
+  <view class="cell-view certificate" wx:if="{{(active === 1 || active === 3 || active === 4)}}"> 
+    <text>证书</text>
+    <view class="certificate-content">
+      <button wx:for="{{certificates}}" wx:for-item="itm" wx:for-index="idx" wx:key="id">{{itm.name}}</button>
+    </view>
+  </view>
+
+  <!-- 总重量 -->
+  <view class="cell-view totalweight" wx:if="{{(active === 0) || (active === 2)}}"> 
+    <text>总重量</text>
+    <view class="totalweight-range">
+      <num-range></num-range>
+    </view>
+  </view>
+
+  <!-- 单颗重量 -->
+  <view class="cell-view weight" wx:if="{{(active === 0) || (active === 2)}}"> 
+    <text>单颗重量</text>
+    <num-range></num-range>
+  </view>
+
+  <!-- 克拉重量 -->
+  <view class="cell-view ctweight" wx:if="{{(active === 1) || (active === 4)}}"> 
+    <text>克拉重量</text>
+    <num-range></num-range>
+  </view>
+
+  <!-- 原产地 -->
+  <view class="cell-view product" wx:if="{{active === 2}}"> 
+    <text>原产地</text>
+    <van-field placeholder="请输入原产地"></van-field>
+  </view>
+
+  <!-- 重量 -->
+  <view class="cell-view weight" wx:if="{{active === 3}}"> 
+    <text>重量</text>
+    <num-range></num-range>
+  </view>
+</view>
+
+<!--  底部视图  -->
+<view class="buttom_view" style="position: relative; padding-bottom: {{safeBottom}}px;">
+  <button>清空</button>
+  <button>搜索</button>
+</view>
+
+
+
+
+
+
+
+
+

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/assets/assets.json → GuangZuan/miniprogram/mMine/pages/assets/assets.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/assets/assets.less

@@ -0,0 +1 @@
+/* mMine/pages/assets/assets.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/assets/assets.ts → GuangZuan/miniprogram/mMine/pages/assets/assets.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/assets/assets.wxml → GuangZuan/miniprogram/mMine/pages/assets/assets.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/bank/bank.json → GuangZuan/miniprogram/mMine/pages/bank/bank.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/bank/bank.less

@@ -0,0 +1 @@
+/* mMine/pages/bank/bank.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/bank/bank.ts → GuangZuan/miniprogram/mMine/pages/bank/bank.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/bank/bank.wxml → GuangZuan/miniprogram/mMine/pages/bank/bank.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myinventorys/myinventorys.json → GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.less

@@ -0,0 +1 @@
+/* mMine/pages/myinventorys/myinventorys.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myinventorys/myinventorys.ts → GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myinventorys/myinventorys.wxml → GuangZuan/miniprogram/mMine/pages/myinventorys/myinventorys.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myorders/myorders.json → GuangZuan/miniprogram/mMine/pages/myorders/myorders.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/myorders/myorders.less

@@ -0,0 +1 @@
+/* mMine/pages/myorders/myorders.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myorders/myorders.ts → GuangZuan/miniprogram/mMine/pages/myorders/myorders.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myorders/myorders.wxml → GuangZuan/miniprogram/mMine/pages/myorders/myorders.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/myreports/myreports.json → GuangZuan/miniprogram/mMine/pages/myreports/myreports.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/myreports/myreports.less

@@ -0,0 +1 @@
+/* mMine/pages/myreports/myreports.wxss */

+ 66 - 0
GuangZuan/miniprogram/mMine/pages/myreports/myreports.ts

@@ -0,0 +1,66 @@
+// pages/mine/myreports/myreports.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+  
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 3 - 0
GuangZuan/miniprogram/mMine/pages/myreports/myreports.wxml

@@ -0,0 +1,3 @@
+<!--pages/mine/myreports/myreports.wxml-->
+
+<van-empty class="custom-image" description="无数据"/>

+ 6 - 0
GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
+  },
+  "navigationBarTitleText": "单据查询"
+}

+ 1 - 0
GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.less

@@ -0,0 +1 @@
+/* mMine/pages/ordersearch/ordersearch.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/ordersearch/ordersearch.ts → GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.ts


+ 4 - 0
GuangZuan/miniprogram/mMine/pages/ordersearch/ordersearch.wxml

@@ -0,0 +1,4 @@
+<!--pages/mine/ordersearch/ordersearch.wxml-->
+
+<van-empty class="custom-image" description="无数据"/>
+

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/realauthentication/realauthentication.json → GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.less

@@ -0,0 +1 @@
+/* mMine/pages/realauthentication/realauthentication.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/realauthentication/realauthentication.ts → GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/realauthentication/realauthentication.wxml → GuangZuan/miniprogram/mMine/pages/realauthentication/realauthentication.wxml


+ 8 - 0
GuangZuan/miniprogram/mMine/pages/settings/settings.json

@@ -0,0 +1,8 @@
+{
+  "usingComponents": {
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-dialog": "@vant/weapp/dialog/index"
+  },
+  "navigationBarTitleText": "系统设置"
+}

+ 9 - 0
GuangZuan/miniprogram/mMine/pages/settings/settings.less

@@ -0,0 +1,9 @@
+/* moduleMine/pages/settings/settings.wxss */
+
+.loginOut {
+  width: 95%;
+  font-size: 28rpx;
+  background-color: red;
+  color: white;
+  margin-top: 20px;
+}

+ 86 - 0
GuangZuan/miniprogram/mMine/pages/settings/settings.ts

@@ -0,0 +1,86 @@
+// moduleMine/pages/settings/settings.ts
+
+import Dialog from '@vant/weapp/dialog/dialog';
+
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    
+  },
+
+  /**
+   * 系统登出响应
+   */
+  onLoginOut() {
+    Dialog.confirm({
+      title: '提示',
+      message: '确定要退出系统吗?',
+    }).then(() => {
+        // on confirm
+        wx.reLaunch({
+          url: '/pages/login/login'
+        })
+      }).catch(() => {
+        // on cancel
+      });
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 7 - 0
GuangZuan/miniprogram/mMine/pages/settings/settings.wxml

@@ -0,0 +1,7 @@
+<!--moduleMine/pages/settings/settings.wxml-->
+
+<!-- 登出按钮  -->
+<button class="loginOut" bindtap="onLoginOut">系统登出</button>
+
+<!-- 对话弹框  -->
+<van-dialog id="van-dialog" />

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/spotlisting/spotlisting.json → GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.less

@@ -0,0 +1 @@
+/* mMine/pages/spotlisting/spotlisting.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/spotlisting/spotlisting.ts → GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/spotlisting/spotlisting.wxml → GuangZuan/miniprogram/mMine/pages/spotlisting/spotlisting.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/storageserver/storageserver.json → GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.less

@@ -0,0 +1 @@
+/* mMine/pages/storageserver/storageserver.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/storageserver/storageserver.ts → GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/storageserver/storageserver.wxml → GuangZuan/miniprogram/mMine/pages/storageserver/storageserver.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/tradeserver/tradeserver.json → GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.json


+ 1 - 0
GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.less

@@ -0,0 +1 @@
+/* mMine/pages/tradeserver/tradeserver.wxss */

+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/tradeserver/tradeserver.ts → GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.ts


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleMine/pages/tradeserver/tradeserver.wxml → GuangZuan/miniprogram/mMine/pages/tradeserver/tradeserver.wxml


+ 0 - 0
miniprogram/GuangZuan/miniprogram/moduleTrade/pages/diadetail/diadetail.json → GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.json


+ 31 - 0
GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.less

@@ -0,0 +1,31 @@
+/* pages/trade/diadetail/diadetail.wxss */
+
+.button_view {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  align-items: center;
+}
+
+.button_view {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-around;
+  align-items: center;
+  margin-top: 20px;
+}
+
+.button_view button {
+  width: 45%;
+  font-size: 28rpx;
+  color: #fff;
+  padding: 10rpx;
+}
+
+.button_view button:nth-child(1) {
+  background-color: red;
+}
+
+.button_view button:nth-child(2) {
+  background-color: green;
+}

+ 67 - 0
GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.ts

@@ -0,0 +1,67 @@
+// pages/trade/diadetail/diadetail.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    /// 底部安全区域
+    safeBottom: getApp().globalData.safeBottom,
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 44 - 0
GuangZuan/miniprogram/mTrade/pages/diadetail/diadetail.wxml

@@ -0,0 +1,44 @@
+<!--pages/trade/diadetail/diadetail.wxml-->
+
+<!-- 钻石详情页 -->
+
+<van-cell-group>
+  <van-cell title="货期:"></van-cell>
+  <van-cell title="供应商:"></van-cell>
+  <van-cell title="地点:"></van-cell>
+  <van-cell title="形状:"></van-cell>
+  <van-cell title="克拉:"></van-cell>
+  <van-cell title="颜色:"></van-cell>
+</van-cell-group>
+
+<van-cell-group>
+  <van-cell title="净度:"></van-cell>
+  <van-cell title="切工:"></van-cell>
+  <van-cell title="抛光:"></van-cell>
+  <van-cell title="对称:"></van-cell>
+  <van-cell title="荧光:"></van-cell>
+  <van-cell title="全深比:"></van-cell>
+</van-cell-group>
+
+<van-cell-group>
+  <van-cell title="台宽比:"></van-cell>
+  <van-cell title="尺寸:"></van-cell>
+  <van-cell title="奶咖绿:"></van-cell>
+  <van-cell title="证书:"></van-cell>
+  <van-cell title="证书号:"></van-cell>
+  <van-cell title="图片:"></van-cell>
+</van-cell-group>
+
+<van-cell-group>
+  <van-cell title="视频:"></van-cell>
+  <van-cell title="报告:"></van-cell>
+  <van-cell title="国际报价:"></van-cell>
+  <van-cell title="折扣:"></van-cell>
+  <van-cell title="美金价:"></van-cell>
+  <van-cell title="人民币:"></van-cell>
+</van-cell-group>
+
+<view class="button_view" style="position: relative; padding-bottom: {{safeBottom}}px;">
+  <button type="primary">收藏</button>
+  <button type="warn">购买</button>
+</view>

+ 11 - 0
GuangZuan/miniprogram/mTrade/pages/listing/listing.json

@@ -0,0 +1,11 @@
+{
+  "usingComponents": {
+    "van-tab": "@vant/weapp/tab/index",
+    "van-tabs": "@vant/weapp/tabs/index",
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "num-range": "/components/num-range/num-range"
+  },
+  "navigationBarTitleText": "挂牌",
+  "enablePullDownRefresh": false
+}

+ 81 - 0
GuangZuan/miniprogram/mTrade/pages/listing/listing.less

@@ -0,0 +1,81 @@
+/* pages/trade/listing/listing.wxss */
+
+.cell-view {
+  display: flex;
+  border-bottom: 1px solid #f0f0f0;
+  align-items: center;
+  margin: 0px 10px 0px 15px;
+}
+
+.cell-view text {
+  width: 90px;
+  text-align: left;
+  color: #333;
+  font-size: 26rpx;
+}
+
+.cell-view view {
+  display: flex;
+  flex-wrap: wrap;
+  width: 100%;
+}
+
+.cell-view view button {
+  margin: 5px;
+  height: 36px;
+  color: #333;
+  width: 21.3%;
+}
+
+.cell-view button {
+  color: #000;
+  font-size: 24rpx;
+  border-radius: 5px;
+}
+
+.shape, .color {
+  height: 150px;
+}
+
+.neatness, .certificate {
+  height: 100px;
+}
+
+.qiegong, .duicheng, .polishing, .yingguang, .tradeaccount, .weight, .price {
+  height: 60px;
+}
+
+.weight view, .price view {
+  flex-wrap: nowrap;
+  text-align: center;
+}
+
+.submit-view {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-around;
+  align-items: center;
+  margin-top: 20px;
+}
+
+.submit-view button {
+  width: 45%;
+  font-size: 28rpx;
+  color: #fff;
+  padding: 10rpx;
+}
+
+.submit-view button:nth-child(1) {
+  background-color: red;
+}
+
+.submit-view button:nth-child(2) {
+  background-color: green;
+}
+
+num-range {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  align-items: center;
+}

+ 126 - 0
GuangZuan/miniprogram/mTrade/pages/listing/listing.ts

@@ -0,0 +1,126 @@
+// pages/trade/listing/listing.ts
+
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    /// 底部安全区域
+    safeBottom: getApp().globalData.safeBottom,
+    /// 形状
+    shapes: [{id: 1, name: '圆形'}, 
+             {id: 2, name: '公主方'}, 
+             {id: 3, name: '祖母绿'}, 
+             {id: 4, name: '垫形'}, 
+             {id: 5, name: '阿斯切'}, 
+             {id: 6, name: '心形'}, 
+             {id: 7, name: '梨形'}, 
+             {id: 8, name: '雷迪恩'}, 
+             {id: 9, name: '椭圆'}, 
+             {id: 10, name: '马眼'}],
+    /// 选中形状         
+    shape: '圆形',
+    /// 颜色
+    colors: [{id: 1, name: 'D'}, 
+             {id: 2, name: 'E'}, 
+             {id: 3, name: 'F'}, 
+             {id: 4, name: 'G'}, 
+             {id: 5, name: 'H'}, 
+             {id: 6, name: 'I'}, 
+             {id: 7, name: 'J'}, 
+             {id: 8, name: 'K'}, 
+             {id: 9, name: 'L'}],
+    /// 选中形状
+    color: '',
+    /// 切工 对称 抛光
+    qiegongs: [{id: 1, name: 'EX'}, 
+              {id: 2, name: 'VG'}, 
+              {id: 3, name: 'G'}],
+    /// 选中切工 对称 抛光
+    qiegong: '',
+    duicheng: '',
+    paoguang: '',
+    /// 莹光
+    yingguangs: [{id: 1, name: 'N'}, 
+                 {id: 2, name: 'VSL/F'}, 
+                 {id: 3, name: 'M'}, 
+                 {id: 4, name: 'S'}],
+    /// 选中莹光
+    yingguang: '',
+    /// 净度
+    neatness: [{id: 1, name: 'FL/IF'}, 
+              {id: 2, name: 'VVS1'}, 
+              {id: 3, name: 'VVS2'}, 
+              {id: 4, name: 'VS1'}, 
+              {id: 5, name: 'VS2'}, 
+              {id: 6, name: 'Sl1'}, 
+              {id: 7, name: 'Sl2'}, 
+              {id: 8, name: 'l1'}],
+    /// 选中净度
+    neatnes: '',
+  },
+
+  /**
+   * 按钮点击响应事件
+   */
+  toSubmit() {
+    
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů