소스 검색

静态页面

xcx 4 년 전
부모
커밋
843625a8aa
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    2
      src/pages/FuLi/ShangPinXiangQing/index.jsx

+ 4
- 2
src/pages/FuLi/ShangPinXiangQing/index.jsx 파일 보기

@@ -1,6 +1,7 @@
1 1
 import React, { useState, useEffect } from 'react'
2 2
 import Taro, { useRouter } from '@tarojs/taro'
3 3
 import request, { apis } from '@/utils/request'
4
+import { RichText } from '@tarojs/components'
4 5
 import { useModel } from '@/store'
5 6
 import Page from '@/layouts'
6 7
 import { getShareObject } from '@/utils/share.js'
@@ -37,7 +38,7 @@ export default function ShangPinXiangQing () {
37 38
       <view className='ShangPinXiangQing'>
38 39
         <view className='Info'>
39 40
           <view className='Img'>
40
-            <image mode='aspectFit' src={GoodsDetail === null ? null : GoodsDetail.imgUrl}></image>
41
+            <image mode='aspectFit' src={GoodsDetail === null ? null : GoodsDetail.detailImgUrl}></image>
41 42
           </view>
42 43
           <view className='Title'>
43 44
             <text>{GoodsDetail === null ? '' : GoodsDetail.goodsName}</text>
@@ -54,7 +55,8 @@ export default function ShangPinXiangQing () {
54 55
             <view className='Line'></view>
55 56
             <text>产品详情</text>
56 57
           </view>
57
-          <image mode='aspectFit' src={GoodsDetail === null ? null : GoodsDetail.detailImgUrl} style={{ width: `100%` }}></image>
58
+          <RichText nodes={GoodsDetail !== null ? GoodsDetail.goodsDescription : null}></RichText>
59
+          {/* <image mode='aspectFit' src={GoodsDetail === null ? null : GoodsDetail.detailImgUrl} style={{ width: `100%` }}></image> */}
58 60
           <text className='Tips'>免责申明:本站商品信息均来自于合作方,其真实性、准确性和合法性由信息拥有者(合作方)负责。本站不提供任何保证,并不承担任何法律责任</text>
59 61
           <view className='BottomBtn'>
60 62
             <text className='active' onClick={() => { Taro.navigateTo({ url: `/pages/FuLi/ShangPinDuiHuan/index?id=${CurrnetId}` }) }}>立即兑换</text>