Handy_Cao 2 лет назад
Родитель
Сommit
44e178ee49

+ 4 - 1
GuangZuan/miniprogram/mHome/pages/goodsdetail/index.ts

@@ -1,5 +1,6 @@
 import { FunCode } from "../../../constants/enum/funcode"
 import { EOrderSrc } from "../../../constants/enum/index"
+import services from "../../../services/index"
 import { sendMsgToMQ } from "../../../services/api/common/index"
 import { getGoods, queryPermancePlanTmp } from "../../../services/api/orders/index"
 import { accountid, clientType, getErrorMsg, isEncrypted, loginid, marketid, protoHeader, timetample, userid } from "../../../services/utils"
@@ -50,7 +51,9 @@ Page({
         },
         success: (res) => {
           hideLoading( ()=> {
-            this.setData({ goods: res.data })
+            var obj = res.data
+            obj.imagepath = (services.config.openApiUrl+obj.imagepath).replace('./uploadFile', '/uploadFile')
+            this.setData({ goods: obj })
           })
         },
         fail: (emsg) => {

+ 8 - 8
GuangZuan/miniprogram/mHome/pages/goodsdetail/index.wxml

@@ -9,9 +9,9 @@
 
   <!-- banner轮播图 -->
   <swiper class="banner" wx:if="{{ banners.count != 0 }}" indicator-active-color="orange" indicator-dots autoplay interval="5000" circular>
-    <swiper-item class="banner_item" wx:for="4" wx:key="index" id="{{ item }}">
+    <swiper-item class="banner_item" wx:for="1" wx:key="index" id="{{ item }}">
       <view class="swiper-item">
-        <image src='https://img.yzcdn.cn/vant/cat.jpeg' mode="widthFix" />
+        <image src='{{ goods.imagepath }}' mode="widthFix" />
       </view>
     </swiper-item>
   </swiper>
@@ -19,19 +19,19 @@
   <!-- 价格信息 -->
   <view class="price-info">
     <view class="content__item">
-        <text class="content__item__price">¥{{ goods.price }}</text>
-        <text class="content__item__rate">汇率: 6.9762</text>
+        <text class="content__item__price" style="font-size: 18px; font-weight: bolder; color: #D91123;">¥{{ goods.price }}</text>
+        <text class="content__item__rate" wx:if="{{ goods.zscurrencytype === 2 }}">汇率: 6.9762</text>
       </view>
       <view class="content__item">
         <text class="content__item__name">【{{ goods.zscategorydisplay }}】商品编号:{{ goods.goodsno }}</text>
       </view>
       <view class="content__item">
-        <text class="content__item__weight">重量:{{ goods.weightavg }} 克拉</text>
-        <text class="content__item__gprice">克拉单价:{{ goods.zscurrencytypedisplayunit+goods.priceper }}</text>
+        <text class="content__item__weight">款式:{{ goods.zsstyletypedisplay }}</text>
+        <text class="content__item__ordertime">主石重量:{{ goods.weightavg }}克拉</text>
       </view>
       <view class="content__item">
+        <text class="content__item__gprice">克拉单价:{{ goods.zscurrencytypedisplayunit+goods.priceper }}</text>
         <text class="content__item__price">市场价:{{ goods.zscurrencytypedisplayunit+goods.marketprice }}</text>
-        <text class="content__item__ordertime">挂牌时间:{{ ordertime }}</text>
       </view>
   </view>
 
@@ -96,7 +96,7 @@
     </view>
     <view class="attribute-info__item">
       <text class="title">证书类型:</text>
-      <text class="value">{{ goods.zscategorydisplay }}</text>
+      <text class="value">{{ goods.zscerttypedisplay }}</text>
     </view>
     <view class="attribute-info__item">
       <text class="title">证书编号:</text>

+ 1 - 1
GuangZuan/miniprogram/mHome/pages/jewelry/list/index.wxml

@@ -19,7 +19,7 @@
       <text slot="error">加载失败</text>
       <van-loading slot="loading" type="spinner" size="20" vertical />
     </van-image>
-    <text class="goods-title">{{ itm.zsstyletypedisplay }}{{ itm.totalqty }}ct{{ itm.stonedesc }}</text>
+    <text class="goods-title">{{ itm.zsstyletypedisplay }} {{ itm.totalqty }}ct {{ itm.settingmaterial }}</text>
     <text class="goods-price">{{ itm.zscurrencytypedisplayunit }}{{ itm.price }}</text>
   </view>
 </view>