task_before.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. <template>
  2. <view class="container">
  3. <view v-if="tranInfo != undefined" class="introduce-section">
  4. <view class="price-box">
  5. <view class="title">{{tranInfo.tranNo}}</view>
  6. <view class="title-tip">
  7. <text class="price-tip">¥</text>
  8. <text class="price">{{tranInfo.price}}</text>
  9. <text class="price-tip">元/吨</text>
  10. </view>
  11. </view>
  12. <view class="bot-row">
  13. <view class='cu-tag radius line-orange'>{{tranInfo.sender}}</view>
  14. <view class='cu-tag radius line-orange'>{{tranInfo.senderPhone}}</view>
  15. </view>
  16. <view v-if='tranInfo.total' class="bot-row">
  17. <view class='cu-tag radius line-orange'>剩余量: {{tranInfo.total - tranInfo.tranCount}}吨</view>
  18. <view class='cu-tag radius line-orange'>总量: {{tranInfo.total}}吨</view>
  19. </view>
  20. </view>
  21. <view v-if="tranInfo != undefined" class="detail-desc">
  22. <view class="d-header">
  23. <text>货源信息</text>
  24. </view>
  25. <view class="c-list">
  26. <view class="c-row b-b">
  27. <text class="tit">收货人</text>
  28. <view class="con-list">
  29. <text>{{tranInfo.receiver}}</text>
  30. </view>
  31. </view>
  32. <view class="c-row b-b">
  33. <text class="tit">收货人电话</text>
  34. <view class="con-list">
  35. <text>{{tranInfo.receiverPhone}}</text>
  36. </view>
  37. </view>
  38. <view v-if="tranInfo.goodsName!='外采'" class="c-row b-b">
  39. <text class="tit">货名</text>
  40. <view class="con-list">
  41. <text>{{tranInfo.goodsName}}</text>
  42. </view>
  43. </view>
  44. <view class="c-row b-b">
  45. <text class="tit">起始地</text>
  46. <view class="con-list">
  47. <text>{{tranInfo.startPlace}}</text>
  48. </view>
  49. </view>
  50. <view class="c-row b-b">
  51. <text class="tit">目的地</text>
  52. <view class="con-list">
  53. <text>{{tranInfo.endPlace}}</text>
  54. </view>
  55. </view>
  56. <view v-if='tranInfo.total' class="c-row b-b">
  57. <text class="tit">剩余量</text>
  58. <view class="con-list">
  59. <text>{{tranInfo.total-tranInfo.tranCount}}</text>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="d-header">
  64. <text>承运人:{{car.driver}}</text>
  65. </view>
  66. <view class="c-list">
  67. <view class="c-row b-b">
  68. <text class="tit">车牌号</text>
  69. <view class="con-list">{{car.carNo}}</view>
  70. </view>
  71. <view class="c-row b-b">
  72. <text class="tit">承运人电话</text>
  73. <view class="con-list">{{car.driverPhone}}</view>
  74. </view>
  75. <view class="c-row b-b">
  76. <text class="tit">价格</text>
  77. <view class="con-list">{{car.price}}</view>
  78. </view>
  79. <view class="cu-bar bg-white">
  80. <view class="action">
  81. 司机身份证(正、反面)
  82. </view>
  83. </view>
  84. <view class="cu-form-group">
  85. <view class="grid col-2 grid-square flex-sub">
  86. <view class="bg-img" v-if="personNoImg != ''" @tap="ViewImage" :data-url="personNoImg">
  87. <image :src="personNoImg" mode="aspectFit"></image>
  88. </view>
  89. <view class="bg-img" v-if="personNoImg1 != ''" @tap="ViewImage" :data-url="personNoImg1">
  90. <image :src="personNoImg1" mode="aspectFit"></image>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="cu-bar bg-white ">
  95. <view class="action">
  96. 司机驾驶证(主页、副页)
  97. </view>
  98. </view>
  99. <view class="cu-form-group">
  100. <view class="grid col-2 grid-square flex-sub">
  101. <view class="bg-img" v-if="driverNoImg != ''" @tap="ViewImage" :data-url="driverNoImg">
  102. <image :src="driverNoImg" mode="aspectFit"></image>
  103. </view>
  104. <view class="bg-img" v-if="driverNoImg1 != ''" @tap="ViewImage" :data-url="driverNoImg1">
  105. <image :src="driverNoImg1" mode="aspectFit"></image>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="cu-bar bg-white ">
  110. <view class="action">
  111. 行车证(主页、副页)
  112. </view>
  113. </view>
  114. <view class="cu-form-group">
  115. <view class="grid col-2 grid-square flex-sub">
  116. <view class="bg-img" v-if="carNoImg != ''" @tap="ViewImage" :data-url="carNoImg">
  117. <image :src="carNoImg" mode="aspectFit"></image>
  118. </view>
  119. <view class="bg-img" v-if="carNoImg1 != ''" @tap="ViewImage" :data-url="carNoImg1">
  120. <image :src="carNoImg1" mode="aspectFit"></image>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="c-list">
  127. <view class="c-row b-b">
  128. <text class="tit">拒接原因</text>
  129. <view class="con-list">
  130. <input placeholder="请填写拒接原因" name="input" v-model="reason" @input="reasonInput"></input>
  131. </view>
  132. </view>
  133. </view>
  134. <view v-if="car.status == 13" class="page-bottom">
  135. <view class="action-btn-group">
  136. <button type="primary" class=" action-btn no-border buy-now-btn" @click="jiedan">接单</button>
  137. <button type="primary" class=" action-btn no-border add-cart-btn" @click="jujie">拒接</button>
  138. <!-- <button type="primary" class=" action-btn no-border add-cart-btn" @click="tuihui">退回司机</button> -->
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import uploadImage from '@/components/ossutil/uploadFile.js';
  145. import uniNumberBox from '@/components/uni-number-box.vue';
  146. import {
  147. mapState
  148. } from 'vuex';
  149. export default {
  150. components: {
  151. uniNumberBox
  152. },
  153. data() {
  154. return {
  155. car: {
  156. id:'',
  157. tranNo:'',
  158. tranCount: 0,
  159. price:0,
  160. driverPhone:'',
  161. },
  162. tranInfo:undefined,
  163. driver:'',
  164. driverPhone:'',
  165. price:0,
  166. carNo:'',
  167. tranCount: 0,
  168. sendText:'获取验证码',
  169. sendDisabled: false,
  170. verifyCode:'',
  171. modalName: null,
  172. tranNo: '请选择货源单号',
  173. exsitCount:0,
  174. personNoImg:'',
  175. personNoImg1:'',
  176. driverNoImg:'',
  177. driverNoImg1:'',
  178. carNoImg:'',
  179. carNoImg1:'',
  180. taskId:'',
  181. reason:'',
  182. sendCarNo:'',
  183. taskStatus:''
  184. };
  185. },
  186. onShow() {
  187. },
  188. onLoad(options) {
  189. const that = this
  190. that.taskId = options.taskId
  191. that.sendCarNo = options.sendCarNo
  192. that.taskStatus = options.taskStatus
  193. uni.showLoading({
  194. title: '正在加载',
  195. mask:true
  196. })
  197. that.$api.request('tran', 'getCarDetailInfoBySendCarNo', {
  198. sendCarNo: options.sendCarNo
  199. }, failres => {
  200. that.$api.msg(failres.errmsg)
  201. uni.hideLoading()
  202. }).then(res => {
  203. that.car = res.data
  204. that.personNoImg = that.car.personNoImg
  205. that.personNoImg1 = that.car.personNoImg1
  206. that.driverNoImg = that.car.driverNoImg
  207. that.driverNoImg1 = that.car.driverNoImg1
  208. that.carNoImg = that.car.carNoImg
  209. that.carNoImg1 = that.car.carNoImg1
  210. that.tranInfo = res.data.tranInfo
  211. uni.hideLoading()
  212. })
  213. },
  214. computed: {
  215. ...mapState(['hasLogin','userInfo'])
  216. },
  217. methods: {
  218. reasonInput(e) {
  219. this.reason = e.detail.value
  220. },
  221. jiedan(){
  222. const that = this
  223. uni.showLoading({
  224. title: '正在加载',
  225. mask:true
  226. })
  227. that.$api.request('tran', 'jiedan', {
  228. id: that.car.id,
  229. taskId:that.taskId
  230. }, failres => {
  231. that.$api.msg(failres.errmsg)
  232. uni.hideLoading()
  233. })
  234. .then(res => {
  235. uni.hideLoading()
  236. if(that.car.memo == "外采(不含运费)"){
  237. var sendCarNo = that.sendCarNo
  238. var taskStatus = that.taskStatus
  239. var taskId = that.taskId
  240. var taskType = "外采任务"
  241. uni.navigateTo({
  242. url: `/pages/user/task_detail_buy?sendCarNo=${sendCarNo}&taskStatus=${taskStatus}&taskId=${taskId}&taskType=${taskType}`
  243. })
  244. }
  245. else{
  246. var sendCarNo = that.sendCarNo
  247. var taskStatus = that.taskStatus
  248. var taskId = that.taskId
  249. var taskType = "发运任务"
  250. uni.navigateTo({
  251. url: `/pageA/pages/task_detail?sendCarNo=${sendCarNo}&taskStatus=${taskStatus}&taskId=${taskId}&taskType=${taskType}`
  252. })
  253. }
  254. })
  255. },
  256. jujie(){
  257. const that = this
  258. if(!that.reason){
  259. this.$api.msg('请填写拒接原因');
  260. return;
  261. }
  262. uni.showLoading({
  263. title: '正在加载',
  264. mask:true
  265. })
  266. that.$api.request('tran', 'jujie', {
  267. id: that.car.id,
  268. taskId:that.taskId,
  269. reason:that.reason
  270. }, failres => {
  271. that.$api.msg(failres.errmsg)
  272. uni.hideLoading()
  273. }).then(res => {
  274. that.$api.msg('拒接成功')
  275. uni.hideLoading()
  276. setTimeout(()=>{uni.navigateBack()},1000);
  277. })
  278. },
  279. tuihui(){
  280. const that = this
  281. uni.showLoading({
  282. title: '正在加载',
  283. mask:true
  284. })
  285. that.$api.request('tran', 'tuihui', {
  286. id: that.car.id,
  287. taskId:that.taskId
  288. }, failres => {
  289. that.$api.msg(failres.errmsg)
  290. uni.hideLoading()
  291. }).then(res => {
  292. that.$api.msg('退回成功')
  293. uni.hideLoading()
  294. setTimeout(()=>{uni.navigateBack()},1000);
  295. })
  296. },
  297. ChooseImagePerson() {
  298. uni.chooseImage({
  299. count: 1, //默认9
  300. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  301. sourceType: ['album','camera'], //从相册选择
  302. success: (res) => {
  303. //上传图片
  304. //图片路径可自行修改
  305. uploadImage(res.tempFilePaths[0], 'personNoImg/',
  306. result => {
  307. if (this.personNoImg.length != 0) {
  308. this.personNoImg1 = result
  309. } else {
  310. this.personNoImg = result
  311. }
  312. uni.hideLoading();
  313. }
  314. )
  315. }
  316. });
  317. },
  318. ChooseImageDriver() {
  319. uni.chooseImage({
  320. count: 1, //默认9
  321. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  322. sourceType: ['album','camera'], //从相册选择
  323. success: (res) => {
  324. //上传图片
  325. //图片路径可自行修改
  326. uploadImage(res.tempFilePaths[0], 'driverNoImg/',
  327. result => {
  328. if (this.driverNoImg.length != 0) {
  329. this.driverNoImg1 = result
  330. } else {
  331. this.driverNoImg = result
  332. }
  333. uni.hideLoading();
  334. }
  335. )
  336. }
  337. });
  338. },
  339. ChooseImageCar() {
  340. uni.chooseImage({
  341. count: 1, //默认9
  342. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  343. sourceType: ['album','camera'], //从相册选择
  344. success: (res) => {
  345. //上传图片
  346. //图片路径可自行修改
  347. uploadImage(res.tempFilePaths[0], 'carNoImg/',
  348. result => {
  349. if (this.carNoImg.length != 0) {
  350. this.carNoImg1 = result
  351. } else {
  352. this.carNoImg = result
  353. }
  354. uni.hideLoading();
  355. }
  356. )
  357. }
  358. });
  359. },
  360. ViewImage(e) {
  361. var img = [];
  362. img = e.currentTarget.dataset.url.split(' ')
  363. uni.previewImage({
  364. current:0,
  365. urls: img
  366. });
  367. },
  368. DelImg(e) {
  369. uni.showModal({
  370. title: '提示',
  371. content: '确定要删除该照片吗?',
  372. cancelText: '取消',
  373. confirmText: '确定',
  374. success: res => {
  375. if (res.confirm) {
  376. if(e.currentTarget.dataset.index == 0){
  377. this.personNoImg = "";
  378. }
  379. else if(e.currentTarget.dataset.index == 1){
  380. this.personNoImg1 = "";
  381. }
  382. else if(e.currentTarget.dataset.index == 2){
  383. this.driverNoImg = "";
  384. }
  385. else if(e.currentTarget.dataset.index == 3){
  386. this.driverNoImg1 = "";
  387. }
  388. else if(e.currentTarget.dataset.index == 4){
  389. this.carNoImg = "";
  390. }
  391. else if(e.currentTarget.dataset.index == 5){
  392. this.carNoImg1 = "";
  393. }
  394. }
  395. }
  396. })
  397. },
  398. },
  399. }
  400. </script>
  401. <style lang='scss' scoped>
  402. .container {
  403. background: $page-color-base;
  404. padding-bottom: 160upx;
  405. }
  406. .icon-you {
  407. font-size: $font-base + 2upx;
  408. color: #888;
  409. }
  410. .carousel {
  411. height: 722upx;
  412. position: relative;
  413. swiper {
  414. height: 100%;
  415. }
  416. .image-wrapper {
  417. width: 100%;
  418. height: 100%;
  419. }
  420. .swiper-item {
  421. display: flex;
  422. justify-content: center;
  423. align-content: center;
  424. height: 750upx;
  425. overflow: hidden;
  426. image {
  427. width: 100%;
  428. height: 100%;
  429. }
  430. }
  431. }
  432. .c-list {
  433. font-size: $font-sm + 2upx;
  434. color: $font-color-base;
  435. background: #fff;
  436. .c-row {
  437. display: flex;
  438. align-items: center;
  439. padding: 20upx 30upx;
  440. position: relative;
  441. }
  442. .tit {
  443. width: 220upx;
  444. }
  445. .con {
  446. flex: 1;
  447. color: $font-color-dark;
  448. .selected-text {
  449. margin-right: 10upx;
  450. }
  451. }
  452. .bz-list {
  453. height: 40upx;
  454. font-size: $font-sm+2upx;
  455. color: $font-color-dark;
  456. text {
  457. display: inline-block;
  458. margin-right: 30upx;
  459. }
  460. }
  461. .con-list {
  462. flex: 1;
  463. display: flex;
  464. flex-direction: column;
  465. color: $font-color-dark;
  466. line-height: 40upx;
  467. text-align: right;
  468. padding-right: 20upx;
  469. }
  470. .red {
  471. color: $uni-color-primary;
  472. }
  473. }
  474. /* 评价 */
  475. .eva-section {
  476. display: flex;
  477. flex-direction: column;
  478. padding: 20upx 30upx;
  479. background: #fff;
  480. margin-top: 16upx;
  481. .e-header {
  482. display: flex;
  483. align-items: center;
  484. height: 70upx;
  485. font-size: $font-sm + 2upx;
  486. color: $font-color-light;
  487. .tit {
  488. font-size: $font-base + 2upx;
  489. color: $font-color-dark;
  490. margin-right: 4upx;
  491. }
  492. .tip {
  493. flex: 1;
  494. text-align: right;
  495. }
  496. .icon-you {
  497. margin-left: 10upx;
  498. }
  499. }
  500. }
  501. .eva-box {
  502. display: flex;
  503. padding: 20upx 0;
  504. .portrait {
  505. flex-shrink: 0;
  506. width: 80upx;
  507. height: 80upx;
  508. border-radius: 100px;
  509. }
  510. .right {
  511. flex: 1;
  512. display: flex;
  513. flex-direction: column;
  514. font-size: $font-base;
  515. color: $font-color-base;
  516. padding-left: 26upx;
  517. .con {
  518. font-size: $font-base;
  519. color: $font-color-dark;
  520. padding: 20upx 0;
  521. }
  522. .bot {
  523. display: flex;
  524. justify-content: space-between;
  525. font-size: $font-sm;
  526. color: $font-color-light;
  527. }
  528. }
  529. }
  530. /* 详情 */
  531. .detail-desc {
  532. background: #fff;
  533. margin-top: 16upx;
  534. width: 750upx;
  535. .d-header {
  536. display: flex;
  537. justify-content: center;
  538. align-items: center;
  539. height: 80upx;
  540. font-size: $font-base + 2upx;
  541. color: $font-color-dark;
  542. position: relative;
  543. text {
  544. padding: 0 20upx;
  545. background: #fff;
  546. position: relative;
  547. z-index: 1;
  548. }
  549. &:after {
  550. position: absolute;
  551. left: 50%;
  552. top: 50%;
  553. transform: translateX(-50%);
  554. width: 300upx;
  555. height: 0;
  556. content: '';
  557. border-bottom: 1px solid #ccc;
  558. }
  559. }
  560. }
  561. /* 规格选择弹窗 */
  562. .attr-content {
  563. padding: 10upx 30upx;
  564. .a-t {
  565. display: flex;
  566. image {
  567. width: 170upx;
  568. height: 170upx;
  569. flex-shrink: 0;
  570. margin-top: -40upx;
  571. border-radius: 8upx;
  572. ;
  573. }
  574. .right {
  575. display: flex;
  576. flex-direction: column;
  577. padding-left: 24upx;
  578. font-size: $font-sm + 2upx;
  579. color: $font-color-base;
  580. line-height: 42upx;
  581. .price {
  582. font-size: $font-lg;
  583. color: $uni-color-primary;
  584. margin-bottom: 10upx;
  585. }
  586. .selected-text {
  587. margin-right: 10upx;
  588. }
  589. }
  590. }
  591. .attr-list {
  592. display: flex;
  593. flex-direction: column;
  594. font-size: $font-base + 2upx;
  595. color: $font-color-base;
  596. padding-top: 30upx;
  597. padding-left: 10upx;
  598. }
  599. .item-list {
  600. padding: 30upx 0 0;
  601. display: flex;
  602. flex-wrap: wrap;
  603. text {
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. background: #eee;
  608. margin-right: 20upx;
  609. margin-bottom: 20upx;
  610. border-radius: 100upx;
  611. min-width: 60upx;
  612. height: 60upx;
  613. padding: 0 20upx;
  614. font-size: $font-base;
  615. color: $font-color-dark;
  616. }
  617. .selected {
  618. background: #fbebee;
  619. color: $uni-color-primary;
  620. }
  621. }
  622. }
  623. /* 弹出层 */
  624. .popup {
  625. position: fixed;
  626. left: 0;
  627. top: 0;
  628. right: 0;
  629. bottom: 0;
  630. z-index: 99;
  631. &.show {
  632. display: block;
  633. .mask {
  634. animation: showPopup 0.2s linear both;
  635. }
  636. .layer {
  637. animation: showLayer 0.2s linear both;
  638. }
  639. }
  640. &.hide {
  641. .mask {
  642. animation: hidePopup 0.2s linear both;
  643. }
  644. .layer {
  645. animation: hideLayer 0.2s linear both;
  646. }
  647. }
  648. &.none {
  649. display: none;
  650. }
  651. .mask {
  652. position: fixed;
  653. top: 0;
  654. width: 100%;
  655. height: 100%;
  656. z-index: 1;
  657. background-color: rgba(0, 0, 0, 0.4);
  658. }
  659. .layer {
  660. position: fixed;
  661. z-index: 99;
  662. bottom: 0;
  663. width: 100%;
  664. min-height: 40vh;
  665. border-radius: 10upx 10upx 0 0;
  666. background-color: #fff;
  667. .btn {
  668. height: 66upx;
  669. line-height: 66upx;
  670. border-radius: 100upx;
  671. background: $uni-color-primary;
  672. font-size: $font-base + 2upx;
  673. color: #fff;
  674. margin: 30upx auto 20upx;
  675. }
  676. }
  677. @keyframes showPopup {
  678. 0% {
  679. opacity: 0;
  680. }
  681. 100% {
  682. opacity: 1;
  683. }
  684. }
  685. @keyframes hidePopup {
  686. 0% {
  687. opacity: 1;
  688. }
  689. 100% {
  690. opacity: 0;
  691. }
  692. }
  693. @keyframes showLayer {
  694. 0% {
  695. transform: translateY(120%);
  696. }
  697. 100% {
  698. transform: translateY(0%);
  699. }
  700. }
  701. @keyframes hideLayer {
  702. 0% {
  703. transform: translateY(0);
  704. }
  705. 100% {
  706. transform: translateY(120%);
  707. }
  708. }
  709. }
  710. /* 底部操作菜单 */
  711. .page-bottom {
  712. .action-btn-group {
  713. .action-btn {
  714. width: 33.3333%;
  715. }
  716. }
  717. }
  718. .rich-img {
  719. width: 100%;
  720. height: auto;
  721. margin: 0;
  722. padding: 0;
  723. line-height: 0px;
  724. }
  725. button::after {
  726. border: none;
  727. }
  728. /* 销售信息 */
  729. .introduce-section {
  730. background: #fff;
  731. padding: 20upx 30upx;
  732. padding-bottom: 100upx;
  733. .guess-item {
  734. padding-bottom: 20upx;
  735. border-bottom: 1px solid #ccc;
  736. }
  737. .title {
  738. font-size: 28upx;
  739. color: $font-color-dark;
  740. font-weight:bold;
  741. height: 50upx;
  742. line-height: 50upx;
  743. flex:2.5;
  744. }
  745. .title-tip {
  746. flex:1;
  747. }
  748. .price-box {
  749. display: flex;
  750. align-items: baseline;
  751. height: 70upx;
  752. padding: 10upx 0;
  753. font-size: 26upx;
  754. color: $uni-color-primary;
  755. }
  756. .price {
  757. font-size: $font-lg + 2upx;
  758. }
  759. .m-price {
  760. margin: 0 12upx;
  761. color: $font-color-light;
  762. text-decoration: line-through;
  763. }
  764. .coupon-tip {
  765. align-items: center;
  766. padding: 4upx 10upx;
  767. background: $uni-color-primary;
  768. font-size: $font-sm;
  769. color: #fff;
  770. border-radius: 6upx;
  771. line-height: 1;
  772. transform: translateY(-4upx);
  773. }
  774. .bot-row {
  775. display: flex;
  776. align-items: center;
  777. height: 50upx;
  778. font-size: $font-sm;
  779. color: $font-color-light;
  780. view {
  781. flex: 1;
  782. }
  783. }
  784. }
  785. </style>