orderDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. <template>
  2. <view class="orderDetail-digitalShel flex flex_column">
  3. <view class="contHead" :style="{background:state!= 'error'&&state!= 'AUDIT_REJECT'&&state!='CANCEL'&&state!='WAIT_PAY' ? '#066cff':(state=='WAIT_PAY'?'#f45c03':'#e61100'),color:'#fff'}">
  4. <view class="statusH">
  5. <view class="flex flex_column align_center">
  6. <view class="status-row">
  7. <u-icon :name="statusIcon" size="42" color="#fff">
  8. </u-icon>
  9. <text>{{statusText}}</text>
  10. </view>
  11. <view v-if="info.billStatus=='WAIT_PAY'" class="messageText">
  12. 请尽快支付,
  13. <u-count-down separator="zh" :separator-size="24" bg-color="none" color="#ffff7f" separator-color="#ffff7f" :timestamp="info.timestamp" :show-days="false" :show-hours="false" @end="countDownEnd()"></u-count-down>
  14. 后订单将自动取消。
  15. </view>
  16. <view v-else class="messageText"><text>{{statusMessage}}</text></view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="order-body">
  21. <view class="info partList" v-if="partList.length" style="max-height: 50vh;overflow: auto;">
  22. <view class="infoList">
  23. <view class="title">
  24. 产品列表
  25. </view>
  26. <view v-if="info">
  27. 共<text class="cText">{{info.totalCategory}}</text>款
  28. </view>
  29. </view>
  30. <view v-for="(item,dix) in partList" :key="item.id" class="item-list-box">
  31. <view class="item-list flex">
  32. <view style="height: 160rpx;width: 160rpx;">
  33. <u-image :src="item.product.images ? item.product.images+'?x-oss-process=image/resize,p_50':'/static/def_imgs.png'" border-radius="16" width="160" height="160" bg-color="#EBEBEB" ></u-image>
  34. </view>
  35. <view>
  36. <view class="item-name">
  37. <text>{{item.product.productName}}</text>
  38. </view>
  39. <view class="item-nums" v-if="item.product&&item.product.code">
  40. <text>{{item.product.code}}</text>
  41. </view>
  42. <view class="item-nums" v-if="item.product&&item.product.origCode">
  43. <text style="color: #00aaff;">{{item.product.origCode}}</text>
  44. </view>
  45. <view class="item-head">
  46. <view class="flex align_center">
  47. <view class="price-txt">¥<text>{{item.priceStr[0]}}</text>.{{item.priceStr[1]}}</view>
  48. <view class="flex align_center rebate-tag" v-if="item.promoProductType=='TICKET_PRODUCT'">
  49. 返<text>{{item.resultValue}}</text>元
  50. </view>
  51. <view class="flex align_center rebate-tag" v-if="item.promoProductType=='REGULAR_PRODUCT'">
  52. 买{{item.conditionValue}}赠{{item.resultValue}}
  53. </view>
  54. <view class="flex align_center tejia-tag" v-if="item.promoProductType=='SPECIAL_PRODUCT'">
  55. 特价<text>¥{{item.priceOrig}}</text>
  56. </view>
  57. </view>
  58. <view>
  59. X <text class="cText">{{item.qty}}</text>{{item.product&&item.product.unit||''}}
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 赠品 -->
  65. <view class="item-list flex gift-box" v-if="item.giftObj">
  66. <view style="height: 120rpx;width: 120rpx;margin-left: 40rpx;">
  67. <u-image :src="item.giftObj.product.images ? item.giftObj.product.images+'?x-oss-process=image/resize,p_50':'/static/def_imgs.png'" border-radius="16" width="120" height="120" bg-color="#EBEBEB" ></u-image>
  68. </view>
  69. <view>
  70. <view class="item-name flex align_center">
  71. <view class="flex align_center rebate-tag">
  72. 赠品
  73. </view>
  74. <text class="ellipsis-one">{{item.giftObj.product.productName}}</text>
  75. </view>
  76. <view class="item-nums ellipsis-one" v-if="item.giftObj.product&&item.giftObj.product.code">
  77. <text>{{item.giftObj.product.code}}</text>
  78. </view>
  79. <view class="item-nums ellipsis-one" v-if="item.giftObj.product&&item.giftObj.product.origCode">
  80. <text style="color: #666;">{{item.giftObj.product.origCode}}</text>
  81. </view>
  82. <view class="item-head">
  83. <view class="flex align_center"></view>
  84. <view>
  85. X <text class="cText">{{item.giftObj.qty}}</text>{{item.giftObj.product&&item.giftObj.product.unit||''}}
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <!-- 分页 -->
  92. <view class="product-pages" v-if="totalPages>1">
  93. <uni-pages-nav :totalPages="totalPages" :showShadow="false" :currentPage="pageNo" @pagechanged="getRow"></uni-pages-nav>
  94. </view>
  95. </view>
  96. <view class="info" v-if="info">
  97. <view class="infoList" v-if="info.totalSubsidyAmount||info.totalSpecialGiveAmount||info.totalTicketGiveAmount">
  98. <text>总金额</text>
  99. <view class="cText">¥<text>{{Number(info.totalAmount).toFixed(2)}}</text></view>
  100. </view>
  101. <view class="infoList gray-text" v-if="info.totalSubsidyAmount">
  102. <text>总抵扣</text>
  103. <text class="cText">¥{{Number(info.totalSubsidyAmount).toFixed(2)}}</text>
  104. </view>
  105. <view class="infoList gray-text" v-if="info.totalSpecialGiveAmount">
  106. <text>总优惠</text>
  107. <text class="cText">¥{{Number(info.totalSpecialGiveAmount).toFixed(2)}}</text>
  108. </view>
  109. <view class="infoList gray-text" v-if="info.totalTicketGiveAmount">
  110. <text>代金券</text>
  111. <text class="cText">¥{{Number(info.totalTicketGiveAmount).toFixed(2)}}</text>
  112. </view>
  113. <view class="infoList">
  114. <text>合计</text>
  115. <view class="price-txt">¥<text>{{Number(info.totalDiscountedAmount).toFixed(2)}}</text></view>
  116. </view>
  117. </view>
  118. <view class="info" v-if="!hasPay && info">
  119. <view class="infoList">
  120. <view class="title">订单信息</view>
  121. <view class="statu"></view>
  122. </view>
  123. <view class="infoList dju">
  124. <text>订单编号</text>
  125. <text>{{info.purchaseNo||'--'}}</text>
  126. </view>
  127. <view class="infoList">
  128. <text>下单时间</text>
  129. <text>{{info.purchaseDate||'--'}}</text>
  130. </view>
  131. <view class="infoList">
  132. <text>下单人员</text>
  133. <text>{{info.purchaserName || '--'}}</text>
  134. </view>
  135. <view class="infoList" v-if="info.payOnlineType=='RECHARGE_BALANCE'">
  136. <text>支付方式</text>
  137. <text>{{info.payOnlineTypeDictValue}}</text>
  138. </view>
  139. <view class="infoList" v-if="info.payOnlineType=='RECHARGE_BALANCE'">
  140. <text>支付时间</text>
  141. <text>{{info.createDate||'--'}}</text>
  142. </view>
  143. </view>
  144. <!-- 线上支付 显示 -->
  145. <view class="info" v-if="hasPay && info">
  146. <u-read-more ref="uReadMore" :text-indent="0" toggle close-text="更多信息" :show-height="460">
  147. <view class="infoList">
  148. <view class="title">订单信息</view>
  149. <view class="statu"></view>
  150. </view>
  151. <view class="infoList dju">
  152. <text>订单编号</text>
  153. <text>{{info.purchaseNo||'--'}}</text>
  154. </view>
  155. <view class="infoList">
  156. <text>下单时间</text>
  157. <text>{{info.purchaseDate||'--'}}</text>
  158. </view>
  159. <view class="infoList">
  160. <text>下单人员</text>
  161. <text>{{info.purchaserName || '--'}}</text>
  162. </view>
  163. <view class="infoList" v-if="isPayOk">
  164. <text>支付方式</text>
  165. <text>{{info.payOnlineTypeDictValue}}</text>
  166. </view>
  167. <view class="infoList" v-if="isPayOk">
  168. <text>支付时间</text>
  169. <text>{{info.payInfo.payDate||'--'}}</text>
  170. </view>
  171. <view class="infoList" v-if="info&&info.billStatus != 'WAIT_AUDIT'&&info.billStatus != 'WAIT_PAY'&&info.billStatus != 'CANCEL'">
  172. <text>审核时间</text>
  173. <text>{{info.auditDate||'--'}}</text>
  174. </view>
  175. <view class="infoList" v-if="info&&info.billStatus == 'CANCEL'">
  176. <text>取消时间</text>
  177. <text>{{info.cancelDate ||'--'}}</text>
  178. </view>
  179. <view class="infoList" v-if="info&&(info.billStatus == 'CANCEL'||info.billStatus == 'AUDIT_REJECT')&&isPayOk">
  180. <text>退款方式</text>
  181. <text>原支付返回</text>
  182. </view>
  183. <view class="infoList" v-if="info&&(info.billStatus == 'CANCEL'||info.billStatus == 'AUDIT_REJECT')&&isPayOk">
  184. <text>退款时间</text>
  185. <text>{{info.payInfo.refundDate ||'--'}}</text>
  186. </view>
  187. <view class="infoList" v-if="info&&(info.billStatus == 'CANCEL'||info.billStatus == 'AUDIT_REJECT')&&isPayOk">
  188. <text>退款状态</text>
  189. <text>{{info.payInfo.refundState=='FINISH'?'已退款':(info.payInfo.refundState=='WAIT'?'退款中':'退款失败')}}</text>
  190. </view>
  191. <view class="infoList" v-if="shelfInfo">
  192. <text>配送汽配商</text>
  193. <text>{{shelfInfo.dealerName}}</text>
  194. </view>
  195. </u-read-more>
  196. </view>
  197. </view>
  198. <view v-if="info&&info.billStatus == 'WAIT_AUDIT'||info.billStatus == 'WAIT_PAY'||info.billStatus == 'WAIT_RECEIVE'" style="background-color: #fff;">
  199. <view class="footer flex align_center justify_center">
  200. <u-button style="margin-left: 10px;" v-if="info.billStatus == 'WAIT_AUDIT'||info.billStatus == 'WAIT_PAY'" size="medium" shape="round" type="default" plain @click="cancelOrder(info)">取消订单</u-button>
  201. <u-button style="margin-left: 10px;" v-if="info.billStatus == 'WAIT_PAY'&&info.payOnlineType=='PAY_WECHAT_ONLINE'" size="medium" shape="round" type="error" plain @click="payOrder(info)">立即支付</u-button>
  202. <!-- <u-button style="margin-left: 10px;" v-if="info.billStatus == 'FINISH'" size="medium" shape="round" type="error" plain @click="buyAgain(info)">再次购买</u-button> -->
  203. <u-button style="margin-left: 10px;" v-if="info.billStatus == 'WAIT_RECEIVE'" size="medium" shape="round" type="error" plain @click="receiveOrder(info)">确认收货</u-button>
  204. </view>
  205. <view :style="{height:safeAreaBottom+'px'}"></view>
  206. </view>
  207. <!-- 付款弹框 -->
  208. <payModal :showPopu="showPopu" :payInfo="info" :payData="payData" @close="showPopu=false" @payComplete="payComplete"></payModal>
  209. </view>
  210. </template>
  211. <script>
  212. import payModal from '../components/payModal.vue'
  213. import { purchaseQueryDetailPage,purchaseQueryPage,purchaseCancel,purchaseReceive,purchasePay } from '@/api/purchase.js'
  214. import moment from 'moment'
  215. export default {
  216. name: 'procureDetailOrder',
  217. components:{
  218. payModal
  219. },
  220. data() {
  221. return {
  222. loading: false,
  223. info: null,
  224. statusText: '',
  225. statusIcon: '', // 结算状态icon
  226. statusMessage: '请耐心等待汽配经销商进行配送',
  227. partList: [], // 配件列表
  228. state: 'success',
  229. pageNo:1,
  230. pageSize: 30,
  231. total: 0,
  232. purchaseSn: null,
  233. showPopu: false,
  234. safeAreaBottom: 0, // 底部安全区域高度
  235. payData: null
  236. }
  237. },
  238. onLoad(option) {
  239. this.safeAreaBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
  240. uni.setNavigationBarTitle({
  241. title: '采购订单详情'
  242. })
  243. // 查明细
  244. this.purchaseSn = option.purchaseSn
  245. this.getDetail()
  246. // 获取明细列表
  247. this.getDetailList()
  248. },
  249. onUnload() {
  250. this.$store.state.vuex_tempOrderData = null
  251. uni.$emit('refashPayBalance')
  252. },
  253. computed: {
  254. totalPages(){
  255. return Math.ceil(this.total / this.pageSize)
  256. },
  257. // 货架经销商信息
  258. shelfInfo(){
  259. return this.$store.state.vuex_storeShelf
  260. },
  261. //是否有支付信息
  262. hasPay(){
  263. return this.info&&this.info.payOnlineFlag==1&&this.info.payInfo
  264. },
  265. // 最小支付金额
  266. minPayAmount(){
  267. const shelfInfo = this.shelfInfo
  268. return shelfInfo&&shelfInfo.minAmount ? shelfInfo.minAmount : 0
  269. },
  270. //是否已付款
  271. isPayOk(){
  272. return this.hasPay && this.info.payInfo.payState=='FINISH'
  273. },
  274. },
  275. methods: {
  276. pageInit(data){
  277. // 计算待付款剩余倒计时
  278. if(data.billStatus== 'WAIT_PAY'){
  279. data.timestamp = (new Date(data.createDate.replace(/-/g,'/')).getTime() + 1800000 - new Date().getTime())/1000
  280. }
  281. data.payOk = data.payOnlineFlag==1&&data.payInfo&&data.payInfo.payState=='FINISH'
  282. this.info = data
  283. this.state = data.billStatus
  284. const stateText = {'WAIT_AUDIT':'待审核','WAIT_PAY':'待付款','AUDIT_REJECT':'审核不通过','WAIT_OUT_WAREHOUSE':'待收货','WAIT_RECEIVE':'待收货','FINISH':'已完结','CANCEL':'已取消'}
  285. this.statusText = stateText[this.state]
  286. this.statusIcon = this.state == 'FINISH' ? 'checkmark-circle' : ((this.state == 'AUDIT_REJECT'||this.state == 'CANCEL')?'close-circle':'hourglass')
  287. this.statusMessage = this.state == 'WAIT_OUT_WAREHOUSE'||this.state == 'WAIT_RECEIVE' ? '请耐心等待汽配经销商进行配送' : ''
  288. // 更改标题栏背景色
  289. uni.setNavigationBarColor({
  290. frontColor: '#ffffff',
  291. backgroundColor: this.state!= 'error'&&this.state!= 'AUDIT_REJECT'&&this.state!= 'CANCEL'&&this.state!= 'WAIT_PAY' ? '#066cff':(this.state=='WAIT_PAY'?'#f45c03':'#e61100'),
  292. })
  293. },
  294. // 实时查询详情
  295. getDetail(){
  296. purchaseQueryPage({pageNo:1,pageSize:1,purchaseSn: this.purchaseSn}).then(res => {
  297. const data = res.data ? res.data.list[0] : null
  298. if(data){
  299. data.billStatus = data.billStatus == 'WAIT_AUDIT'&&data.payOnlineFlag==1&&data.payInfo&&data.payInfo.payState=='WAIT'?'WAIT_PAY':data.billStatus
  300. this.pageInit(data)
  301. }
  302. })
  303. },
  304. // 下一页
  305. getRow(pageNo){
  306. this.pageNo = pageNo
  307. this.getDetailList()
  308. },
  309. getDetailList(){
  310. uni.showLoading({
  311. title: '加载中'
  312. })
  313. purchaseQueryDetailPage({purchaseSn: this.purchaseSn,pageNo:this.pageNo,pageSize:this.pageSize}).then(res => {
  314. uni.hideLoading()
  315. if(res.status == 200){
  316. this.partList = res.data ? res.data.list : []
  317. // 是否有赠品
  318. const giftList = this.partList.filter(item => item.promoProductType == 'GIFT_PRODUCT')
  319. // 正品
  320. this.partList = this.partList.filter(item => item.promoProductType !== 'GIFT_PRODUCT')
  321. this.partList.map(item=>{
  322. // 关联赠品
  323. item.giftObj = giftList.find(gift => gift.purchaseDetailParentSn == item.purchaseDetailSn)
  324. item.priceStr = Number(item.price).toFixed(2).toString().split('.')
  325. })
  326. this.total = res.data ? res.data.count : 0
  327. }
  328. })
  329. },
  330. message(title){
  331. uni.showToast({
  332. icon:'none',
  333. title: title,
  334. duration: 3000
  335. })
  336. },
  337. // 取消订单
  338. cancelOrder(item){
  339. let _this = this
  340. uni.showModal({
  341. title: '提示',
  342. content: !item.payOk ? '确定取消订单吗?':'取消后订单金额将于1-3个工作日到账(原路返回)?',
  343. success: function (res) {
  344. if (res.confirm) {
  345. purchaseCancel({purchaseSn:_this.purchaseSn}).then(res => {
  346. if (res.status == 200) {
  347. _this.message('取消成功')
  348. item.payInfo = null
  349. uni.$emit('refreshPurcaOrder',item,'CANCEL')
  350. uni.$emit('refashPayBalance')
  351. setTimeout(()=>{
  352. uni.navigateBack()
  353. },3000)
  354. } else {
  355. _this.message(res.message)
  356. }
  357. })
  358. }
  359. }
  360. });
  361. },
  362. // 倒计时结束,取消订单刷新页面
  363. countDownEnd(){
  364. this.showPopu = false
  365. const _this = this
  366. uni.showModal({
  367. title: '提示',
  368. content: '订单超过30分钟已自动取消',
  369. showCancel:false,
  370. confirmText:'知道了',
  371. success: function (res) {
  372. _this.state = 'CANCEL'
  373. _this.info.billStatus = 'CANCEL'
  374. _this.info.payInfo = null
  375. _this.statusText = '已取消'
  376. _this.statusIcon = 'close-circle'
  377. _this.statusMessage = '订单超过30分钟已自动取消'
  378. _this.info.cancelDate = moment().format('YYYY-MM-DD hh:mm:ss')
  379. uni.$emit('refreshPurcaOrder',_this.info,'CANCEL')
  380. uni.$emit('refashPayBalance')
  381. // 更改标题栏背景色
  382. uni.setNavigationBarColor({
  383. frontColor: '#ffffff',
  384. backgroundColor: '#e61100',
  385. })
  386. }
  387. });
  388. },
  389. // 立即支付
  390. payOrder(item){
  391. if(item.totalAmount<this.minPayAmount){
  392. uni.showModal({
  393. content: '支付金额不能小于'+this.minPayAmount+'元!',
  394. showCancel:false,
  395. confirmText:'知道了'
  396. })
  397. return
  398. }
  399. uni.showLoading({
  400. title: '加载中...'
  401. })
  402. purchasePay({
  403. bizSn:item.purchaseSn,
  404. bizNo:item.purchaseNo,
  405. bizType:'SETTLE_BILL',
  406. payUserOpenId: this.$store.state.vuex_openid || uni.getStorageSync('openid')
  407. }).then(res=>{
  408. this.showPopu = true
  409. this.payData = res.data?res.data.payRequestRest:null
  410. uni.hideLoading()
  411. })
  412. },
  413. // 付款成功,isOk: false 取消支付或支付失败,true 支付完成
  414. payComplete(item,isOk){
  415. this.showPopu = false
  416. if(isOk){
  417. this.message('支付成功')
  418. uni.$emit('refreshPurcaOrder',item,'WAIT_AUDIT')
  419. setTimeout(()=>{
  420. uni.navigateBack()
  421. },3000)
  422. }
  423. },
  424. // 再次购买
  425. buyAgain(item){
  426. },
  427. // 确认收货
  428. receiveOrder(item){
  429. let _this = this
  430. uni.showModal({
  431. title: '提示',
  432. content: '确定收货吗?',
  433. success: function (res) {
  434. if (res.confirm) {
  435. purchaseReceive({purchaseSn:_this.purchaseSn}).then(res => {
  436. if (res.status == 200) {
  437. _this.message('收货成功')
  438. uni.$emit('refreshPurcaOrder',item,'FINISH')
  439. setTimeout(()=>{
  440. uni.navigateBack()
  441. },3000)
  442. } else {
  443. _this.message(res.message)
  444. }
  445. })
  446. }
  447. }
  448. });
  449. },
  450. }
  451. }
  452. </script>
  453. <style lang="less">
  454. page{
  455. height: 100%;
  456. }
  457. .orderDetail-digitalShel{
  458. height: 100%;
  459. .redText{
  460. color: #FB1E1E;
  461. margin: 0 10rpx;
  462. }
  463. .cText{
  464. color: #666;
  465. margin: 0 6rpx;
  466. font-size: 14px;
  467. }
  468. .gray-text{
  469. text{
  470. font-size: 14px;
  471. color: #999;
  472. }
  473. }
  474. .order-body{
  475. flex-grow: 1;
  476. overflow: auto;
  477. .partList{
  478. margin-top: 20rpx;
  479. }
  480. }
  481. .contHead {
  482. .statusH{
  483. > view{
  484. padding: 10upx 12%;
  485. font-size: 34upx;
  486. }
  487. .status-row{
  488. font-size: 42upx;
  489. text{
  490. margin-left: 10rpx;
  491. }
  492. }
  493. .messageText{
  494. font-size: 28upx;
  495. text-align: center;
  496. text{
  497. color: #f3e781;
  498. }
  499. padding: 20rpx 0;
  500. }
  501. }
  502. }
  503. .price-txt{
  504. color: red;
  505. display: flex;
  506. align-items: baseline;
  507. font-size: 12px;
  508. text{
  509. font-size: 32rpx;
  510. }
  511. }
  512. .info{
  513. background-color: #FFFFFF;
  514. padding: 10rpx 30upx;
  515. font-size: 32rpx;
  516. margin-bottom: 20rpx;
  517. .infoList{
  518. display: flex;
  519. justify-content: space-between;
  520. align-items: center;
  521. padding: 20rpx 0;
  522. border-bottom: 2rpx solid #f2f2f2;
  523. &:last-child{
  524. border: none;
  525. }
  526. .title{
  527. font-weight: bold;
  528. > text{
  529. color: #ff9808;
  530. font-size: 24upx;
  531. }
  532. }
  533. > text{
  534. &:first-child{
  535. color: #666E75;
  536. }
  537. }
  538. }
  539. .item-list-box{
  540. border-bottom: 2rpx solid #f2f2f2;
  541. &:last-child{
  542. border: none;
  543. }
  544. }
  545. .item-list{
  546. padding: 20rpx 0;
  547. > view{
  548. &:first-child{
  549. margin-right: 20rpx;
  550. position: relative;
  551. overflow: hidden;
  552. width: 160rpx;
  553. height: 160rpx;
  554. border-radius: 6px;
  555. border: 1px solid #eee;
  556. }
  557. &:last-child{
  558. flex-grow: 1;
  559. width: 60%;
  560. }
  561. }
  562. .item-name{
  563. word-wrap: break-word;
  564. font-size: 28rpx;
  565. color: #333;
  566. font-weight: bold;
  567. }
  568. .item-nums{
  569. text{
  570. font-size: 28rpx;
  571. color: #666;
  572. }
  573. }
  574. .item-head{
  575. display: flex;
  576. align-items: center;
  577. justify-content: space-between;
  578. color: #666;
  579. margin-top: 5px;
  580. > view:last-child{
  581. font-size: 24rpx;
  582. text{
  583. margin: 0 10rpx;
  584. font-size: 28rpx;
  585. }
  586. }
  587. }
  588. .rebate-tag{
  589. background: #ffe7df;
  590. color: #E91E63;
  591. padding: 2px 5px;
  592. font-size: 10px;
  593. border-radius: 3px;
  594. margin-left: 6px;
  595. }
  596. .tejia-tag{
  597. color: #E91E63;
  598. margin-left: 6px;
  599. font-size: 12px;
  600. text{
  601. font-size: 12px;
  602. color: #999;
  603. margin-left: 5px;
  604. text-decoration: line-through;
  605. }
  606. }
  607. }
  608. }
  609. .gift-box.item-list{
  610. .item-name{
  611. color: #666;
  612. font-size: 12px;
  613. font-weight: normal;
  614. }
  615. .item-nums{
  616. text{
  617. color: #666;
  618. font-size: 12px;
  619. }
  620. }
  621. .rebate-tag{
  622. margin-left: 0;
  623. margin-right: 5px;
  624. }
  625. .ellipsis-one{
  626. flex-grow: 1;
  627. width:80%;
  628. }
  629. }
  630. .footer{
  631. padding: 20upx;
  632. background: #FFFFFF;
  633. }
  634. }
  635. </style>