confirmOrder.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  1. <template>
  2. <view>
  3. <view class="inner-box">
  4. <!-- 收货人 -->
  5. <view class="address-box" v-if="address==null" @click="openAddress()">
  6. <view class="left">
  7. <view class="name-box">
  8. <text class="text name">添加收货地址</text>
  9. </view>
  10. </vie>
  11. </view>
  12. <view class="arrow-box">
  13. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow_gray.png" mode=""></image>
  14. </view>
  15. </view>
  16. <view class="address-box" v-if="address!=null" @click="openAddress()">
  17. <view class="left">
  18. <view class="name-box">
  19. <text class="text name">{{address.realName}}</text>
  20. <text class="text" v-if="address.phone!=null">{{address.phone}}</text>
  21. </view>
  22. <view class="address">
  23. {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
  24. </view>
  25. </view>
  26. <view class="arrow-box">
  27. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow_gray.png" mode=""></image>
  28. </view>
  29. </view>
  30. <!-- 药品列表 -->
  31. <view class="shopbox" v-for="(shop,idx) in carts" :key="idx">
  32. <view class="shopbox-name" v-if="shop.storeName && shop.storeName != 'null'">
  33. <text>{{shop.storeName}}</text>
  34. </view>
  35. <view class="goods-list">
  36. <view v-for="(item,index) in shop.list" :key="index" class="item">
  37. <view class="img-box">
  38. <image :src="item.productAttrImage || item.productImage" mode="aspectFill"></image>
  39. </view>
  40. <view class="info-box">
  41. <view>
  42. <view class="name-box ellipsis2">
  43. <view class="tag" :style="{background:_background(item.productType)}">{{$getDictLabelName("storeProductType",item.productType)}}</view>{{item.productName}}
  44. </view>
  45. <view class="spec ellipsis2">{{item.productAttrName}}</view>
  46. </view>
  47. <view class="price-num">
  48. <view class="price">
  49. <text class="unit">¥</text>
  50. <text class="num">{{item.price? item.price.toFixed(2): '0.00'}}</text>
  51. </view>
  52. <view class="num">x{{item.cartNum}}</view>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 运费 -->
  57. <view class="points">
  58. <view class="left">
  59. <text class="text">运费</text>
  60. </view>
  61. <view class="right" v-if="price&&price.length > 0">
  62. <text class="text">{{price[idx].payPostage==null||price[idx].payPostage==0?'免运费':price[idx].payPostage.toFixed(2)}}</text>
  63. </view>
  64. </view>
  65. <!-- 备注 -->
  66. <view class="points">
  67. <view class="left">
  68. <text class="text">备注</text>
  69. </view>
  70. <view class="remarks">
  71. <input type="text" v-model="shop.markinfo" placeholder="备注留言(选填)" placeholder-class="input" />
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 积分 -->
  77. <view class="price-info">
  78. <view class="price-info-title">价格明细</view>
  79. <view class="points">
  80. <view class="left">
  81. <text class="text">商品总价</text>
  82. </view>
  83. <view class="right" style="align-items: baseline;">
  84. <text class="price-info-unit">¥</text>
  85. <text class="price-info-num">{{priceAll.totalPrice.toFixed(2)}}</text>
  86. </view>
  87. </view>
  88. <view class="points">
  89. <view class="left">
  90. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/points.png" mode=""></image>
  91. <text class="text">可用积分</text>
  92. </view>
  93. <view class="right">
  94. <text class="text">{{priceAll.usedIntegral}}积分</text>
  95. <evan-switch @change="integralChange" v-model="checked" activeColor="#0bb3f2" inactiveColor="rgba(0, 0, 0, 0.1)"></evan-switch>
  96. </view>
  97. </view>
  98. <view class="points" @click="openCoupon()">
  99. <view class="left">
  100. <text class="text">优惠券</text>
  101. </view>
  102. <view class="right">
  103. <text class="text">{{couponText}}</text>
  104. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  105. </view>
  106. </view>
  107. <view class="points">
  108. <view class="left">
  109. <text class="text">合计</text>
  110. </view>
  111. <view class="right" style="align-items: baseline;">
  112. <text class="price-info-unit">¥</text>
  113. <text class="price-info-num">{{priceAll.payPrice.toFixed(2)}}</text>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- <view class="points">
  118. <view class="left">
  119. <text class="text">服务费</text>
  120. </view>
  121. <view class="right">
  122. <text class="text">{{price.serviceFee? price.serviceFee.toFixed(2):'0.00'}}</text>
  123. </view>
  124. </view> -->
  125. <!-- 备注 -->
  126. <!-- <view class="remarks">
  127. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  128. </view> -->
  129. <view class="agreement">
  130. <label>
  131. <checkbox :checked="isAgreement" color="#2583EB" style="transform:scale(0.7)" @click="handleAgreement()" />药品属于特殊特殊商品除药品质量问题外,一经售出,不得退换
  132. </label>
  133. </view>
  134. </view>
  135. <!-- 底部按钮 -->
  136. <view class="btn-foot">
  137. <view class="right">
  138. <view class="total">
  139. <text class="label">合计:</text>
  140. <view class="price">
  141. <text class="unit">¥</text>
  142. <text class="num">{{priceAll.payPrice.toFixed(2)}}</text>
  143. </view>
  144. </view>
  145. <view class="btn" @click="submitOrder">提交订单</view>
  146. </view>
  147. </view>
  148. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  149. <view class="coupon" style="height:650rpx;">
  150. <view class="coupon-list" v-if="couponsList.length > 0">
  151. <view class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  152. <view class="money" >
  153. <image v-if="item.status==0" class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon1.png" mode="widthFix"></image>
  154. <image v-if="item.status!=0" class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon2.png" mode="widthFix"></image>
  155. <view style="z-index: 999;">
  156. ¥<span class="num">{{ item.couponPrice }}</span>
  157. </view>
  158. <view class="pic-num" >满{{ item.useMinPrice }}元可用</view>
  159. </view>
  160. <view class="text">
  161. <view class="condition line1">
  162. {{ item.couponTitle }}
  163. </view>
  164. <view class="data acea-row row-between-wrapper">
  165. <view >{{ item.limitTime }}到期</view>
  166. <view class="bnt bg-color-red" @click="couponSelect(item)" >选择</view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <view v-if="couponsList.length == 0" class="no-data-box" >
  172. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/empty_icon.png" mode="aspectFit"></image>
  173. <view class="empty-title">暂无数据</view>
  174. </view>
  175. </view>
  176. </popupBottom>
  177. </view>
  178. </template>
  179. <script>
  180. import {getWeixinOrderTemps} from '@/api/common'
  181. import {confirm,computed,create} from '@/api/myStoreOrder.js'
  182. import { getMyEnableCouponList } from './api/coupon'
  183. import EvanSwitch from './components/evan-switch.vue'
  184. import popupBottom from './components/px-popup-bottom.vue'
  185. export default {
  186. components: {
  187. EvanSwitch,
  188. popupBottom
  189. },
  190. data() {
  191. return {
  192. isAgreement: true,
  193. temps:[],
  194. couponUserId:null,
  195. couponText:"请选择",
  196. couponsList:[],
  197. couponVisible:false,
  198. price:[],
  199. address:null,
  200. carts:[],
  201. checked: false,
  202. type:null,
  203. cartIds:null,
  204. form:{
  205. useIntegral:0,
  206. orderKey:null,
  207. addressId:null,
  208. mark:null,
  209. companyId:null,
  210. companyUserId:null
  211. },
  212. storeId: '',
  213. priceAll:{
  214. payPrice:0,
  215. totalPostage:0,
  216. usedIntegral:0,
  217. totalPrice:0.00,
  218. },
  219. confirmParam: []
  220. }
  221. },
  222. computed: {
  223. _background() {
  224. //productType: 1:OTC,2:Rx,3:非药品,4:器械
  225. return (productType)=> {
  226. switch (productType) {
  227. case 1: return '#37E2EA' // OTC
  228. case 2: return 'red' // Rx
  229. case 3: return '#2583EB' // 非药品
  230. case 4: return '#999' // 器械
  231. default: return '#ccc'
  232. }
  233. }
  234. }
  235. },
  236. onLoad(option) {
  237. this.form.companyId=option.companyId;
  238. this.form.companyUserId=option.companyUserId;
  239. // this.cartIds=option.cartIds;
  240. this.type=option.type;
  241. this.storeId=option.storeId;
  242. this.confirmParam = JSON.parse(decodeURIComponent(option.confirmParam))
  243. this.confirm();
  244. uni.$on('updateAddress', (e) => {
  245. this.address=e;
  246. this.form.addressId=e.addressId;
  247. this.computed()
  248. })
  249. this.getWeixinOrderTemps();
  250. },
  251. methods: {
  252. handleAgreement() {
  253. this.isAgreement = !this.isAgreement;
  254. },
  255. getWeixinOrderTemps:function(){
  256. getWeixinOrderTemps().then(
  257. res => {
  258. if(res.code==200){
  259. this.temps=res.temp
  260. console.log(this.temps)
  261. }else{
  262. }
  263. },
  264. rej => {}
  265. );
  266. },
  267. couponSelect(item){
  268. this.couponText="-¥"+item.couponPrice.toFixed(2);
  269. this.couponUserId=item.id;
  270. this.couponVisible=false;
  271. this.computed();
  272. },
  273. openCoupon(){
  274. let that = this;
  275. var data={couponType:0,useMinPrice:this.price.payPrice};
  276. getMyEnableCouponList(data).then(res => {
  277. this.couponVisible=true;
  278. that.couponsList = res.data
  279. })
  280. },
  281. integralChange(e){
  282. console.log(e)
  283. this.form.useIntegral=e?1:0
  284. this.computed()
  285. },
  286. confirm(){
  287. if(this.confirmParam && this.confirmParam.length > 0) {
  288. confirm(this.confirmParam).then(
  289. res => {
  290. if(res.code==200){
  291. this.carts=res.carts.map(item=>({
  292. ...item,
  293. markinfo: ""
  294. }));
  295. this.form.orderKey=res.orderKeys;
  296. if(res.address!=null){
  297. this.form.addressId=res.address.id;
  298. this.address=res.address;
  299. }
  300. this.computed()
  301. }else{
  302. uni.showToast({
  303. icon:'none',
  304. title: res.msg,
  305. });
  306. }
  307. },
  308. rej => {}
  309. )
  310. }else {
  311. uni.showToast({
  312. icon: 'none',
  313. title:'订单参数不存在~',
  314. });
  315. }
  316. },
  317. computed(){
  318. let data = {
  319. companyId:this.form.companyId,
  320. couponUserId:this.couponUserId,
  321. orderKeys:this.form.orderKey,
  322. addressId:this.form.addressId,
  323. useIntegral:this.form.useIntegral,
  324. };
  325. computed(data).then(
  326. res => {
  327. if(res.code==200){
  328. this.price= res.data && res.data.length > 0 ? res.data : []
  329. this.priceAll = res.data && res.data.length > 0 ? res.data[res.data.length -1] : {
  330. payPrice:0,
  331. totalPostage:0,
  332. usedIntegral:0,
  333. totalPrice:0.00,
  334. }
  335. }else{
  336. if(res.code==501){
  337. uni.showToast({
  338. icon:'none',
  339. title: res.msg,
  340. });
  341. setTimeout(function(){
  342. uni.navigateBack({
  343. delta:1
  344. })
  345. },500);
  346. return;
  347. }
  348. else{
  349. uni.showToast({
  350. icon:'none',
  351. title: res.msg,
  352. });
  353. }
  354. }
  355. },
  356. rej => {}
  357. );
  358. },
  359. // 提交订单
  360. submitOrder() {
  361. var that=this;
  362. if(this.form.orderKey==null || this.form.orderKey.length == 0){
  363. uni.showToast({
  364. icon:'none',
  365. title: '订单KEY不存在',
  366. });
  367. return;
  368. }
  369. if(this.form.addressId==null){
  370. uni.showToast({
  371. icon:'none',
  372. title: '收货地址不能为空',
  373. });
  374. return;
  375. }
  376. if(!this.isAgreement) {
  377. uni.showToast({
  378. icon:'none',
  379. title: '购买前请同意相关须知',
  380. });
  381. return;
  382. }
  383. uni.requestSubscribeMessage({
  384. tmplIds: this.temps,
  385. success(res) {
  386. that.createOrder();
  387. },
  388. fail(res) {
  389. that.createOrder();
  390. }
  391. })
  392. },
  393. createOrder(){
  394. const mark = this.carts.map(item => item.markinfo)
  395. var that=this;
  396. var data=null;
  397. var tuiUserId=uni.getStorageSync('tuiUserId');
  398. uni.showLoading({
  399. title: '正在处理中...'
  400. });
  401. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  402. data = {orderCreateType:1,tuiUserId:tuiUserId,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:mark,orderKeys:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1,appId: getApp().globalData.appId};
  403. }
  404. else{
  405. data = {orderCreateType:1,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:mark,orderKeys:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1,appId: getApp().globalData.appId};
  406. }
  407. if(this.storeId!=null&& this.storeId>0){
  408. data.storeId=this.storeId;
  409. }
  410. create(data).then(
  411. res => {
  412. uni.hideLoading()
  413. if(res.code == 200){
  414. uni.hideLoading()
  415. if(res.data.some(item=> item.order.isPrescribe) == 1) {
  416. setTimeout(function(){
  417. let orderIds = res.data.filter(item=> item.order.isPrescribe == 1).map(it=>it.order.id)
  418. orderIds = orderIds.join(',')
  419. uni.redirectTo({
  420. url:"/pages_shopping/prescribe?orderId="+orderIds+"&combinationOrderId="+encodeURIComponent(res.data[0].order.combinationOrderId)
  421. })
  422. },200);
  423. } else {
  424. setTimeout(function(){
  425. uni.redirectTo({
  426. url: '/pages_shopping/paymentOrder?combinationOrderId='+encodeURIComponent(res.data[0].order.combinationOrderId)
  427. })
  428. },200);
  429. }
  430. // if(res.order.isPrescribe==1){
  431. // setTimeout(function(){
  432. // uni.redirectTo({
  433. // url:"/pages_shopping/prescribe?orderId="+res.order.id
  434. // })
  435. // },200);
  436. // }
  437. // else{
  438. // setTimeout(function(){
  439. // uni.redirectTo({
  440. // url: '/pages_shopping/paymentOrder?orderId='+res.order.id
  441. // })
  442. // },200);
  443. // }
  444. return;
  445. }
  446. else{
  447. if(res.code==501){
  448. uni.showToast({
  449. icon:'none',
  450. title: res.msg,
  451. });
  452. setTimeout(function(){
  453. uni.navigateBack({
  454. delta:1
  455. })
  456. },200);
  457. return;
  458. }
  459. else{
  460. uni.showToast({
  461. icon:'none',
  462. title: res.msg,
  463. });
  464. }
  465. }
  466. },
  467. rej => {}
  468. );
  469. },
  470. openAddress(){
  471. uni.navigateTo({
  472. url: '/pages_user/address'
  473. })
  474. }
  475. }
  476. }
  477. </script>
  478. <style lang="scss" scoped>
  479. .inner-box{
  480. padding: 20upx 20upx 140upx;
  481. .address-box{
  482. box-sizing: border-box;
  483. min-height: 171upx;
  484. background: #FFFFFF;
  485. border-radius: 16upx;
  486. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/address_bg.png);
  487. background-repeat: no-repeat;
  488. background-size: 100% 30upx;
  489. background-position: left bottom;
  490. padding: 38upx 30upx 36upx;
  491. display: flex;
  492. align-items: center;
  493. justify-content: space-between;
  494. .left{
  495. width: 92%;
  496. .name-box{
  497. display: flex;
  498. align-items: center;
  499. .text{
  500. font-size: 32upx;
  501. font-family: PingFang SC;
  502. font-weight: bold;
  503. color: #111111;
  504. line-height: 1;
  505. &.name{
  506. margin-right: 30upx;
  507. }
  508. }
  509. }
  510. .address{
  511. font-size: 28upx;
  512. font-family: PingFang SC;
  513. font-weight: 500;
  514. color: #666666;
  515. line-height: 42upx;
  516. text-align:left;
  517. margin-top: 23upx;
  518. }
  519. }
  520. .arrow-box{
  521. width: 12upx;
  522. height: 23upx;
  523. display: flex;
  524. align-items: cenetr;
  525. justify-content: cenetr;
  526. image{
  527. width: 100%;
  528. height: 100%;
  529. }
  530. }
  531. }
  532. .shopbox {
  533. background: #FFFFFF;
  534. border-radius: 16rpx;
  535. margin: 20rpx 0;
  536. .points {
  537. padding: 0 !important;
  538. }
  539. .remarks {
  540. padding: 0 !important;
  541. }
  542. }
  543. .shopbox-name {
  544. padding: 30rpx 30rpx 0 30rpx;
  545. font-family: PingFang SC, PingFang SC;
  546. font-weight: bold;
  547. font-size: 30rpx;
  548. color: #111;
  549. overflow: hidden;
  550. white-space: nowrap;
  551. text-overflow: ellipsis;
  552. }
  553. .goods-list{
  554. // margin-top: 20upx;
  555. padding: 0 30upx;
  556. background-color: #FFFFFF;
  557. border-radius: 16upx;
  558. .item{
  559. padding: 30upx 0;
  560. border-bottom: 1px solid #EDEEEF;
  561. display: flex;
  562. align-items: center;
  563. .img-box{
  564. width: 160upx;
  565. height: 160upx;
  566. margin-right: 30upx;
  567. image{
  568. width: 100%;
  569. height: 100%;
  570. }
  571. }
  572. .info-box{
  573. width: calc(100% - 190upx);
  574. height: 160upx;
  575. display: flex;
  576. flex-direction: column;
  577. justify-content: space-between;
  578. .name-box{
  579. font-size: 28upx;
  580. font-family: PingFang SC;
  581. font-weight: 500;
  582. color: #111111;
  583. line-height: 40upx;
  584. .tag{
  585. display: inline-block;
  586. padding: 0 6upx;
  587. height: 30upx;
  588. background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
  589. border-radius: 4upx;
  590. margin-right: 10upx;
  591. font-size: 22upx;
  592. font-family: PingFang SC;
  593. font-weight: bold;
  594. color: #FFFFFF;
  595. line-height: 30upx;
  596. float: left;
  597. margin-top: 7upx;
  598. }
  599. }
  600. .spec{
  601. margin-top: 10upx;
  602. font-size: 24upx;
  603. font-family: PingFang SC;
  604. font-weight: 500;
  605. color: #999999;
  606. line-height: 1;
  607. }
  608. .price-num{
  609. display: flex;
  610. align-items: center;
  611. justify-content: space-between;
  612. .price{
  613. display: flex;
  614. align-items: flex-end;
  615. .unit{
  616. font-size: 24upx;
  617. font-family: PingFang SC;
  618. font-weight: 500;
  619. color: #111111;
  620. line-height: 1.2;
  621. margin-right: 4upx;
  622. }
  623. .num{
  624. font-size: 32upx;
  625. font-family: PingFang SC;
  626. font-weight: 500;
  627. color: #111111;
  628. line-height: 1;
  629. }
  630. }
  631. .num{
  632. font-size: 24upx;
  633. font-family: PingFang SC;
  634. font-weight: 500;
  635. color: #999999;
  636. line-height: 1;
  637. }
  638. }
  639. }
  640. }
  641. .sub-total{
  642. height: 88upx;
  643. display: flex;
  644. align-items: center;
  645. justify-content: flex-end;
  646. .label{
  647. font-size: 24upx;
  648. font-family: PingFang SC;
  649. font-weight: 500;
  650. color: #999999;
  651. }
  652. .price{
  653. display: flex;
  654. align-items: flex-end;
  655. .unit{
  656. font-size: 24upx;
  657. font-family: PingFang SC;
  658. font-weight: 500;
  659. color: #FF6633;
  660. line-height: 1.2;
  661. margin-right: 4upx;
  662. }
  663. .num{
  664. font-size: 32upx;
  665. font-family: PingFang SC;
  666. font-weight: bold;
  667. color: #FF6633;
  668. line-height: 1;
  669. }
  670. }
  671. }
  672. }
  673. .price-info {
  674. background: #FFFFFF;
  675. border-radius: 16upx;
  676. &-title {
  677. padding: 30rpx 30rpx 20rpx 30rpx;
  678. font-family: PingFang SC, PingFang SC;
  679. font-weight: 500;
  680. font-size: 30rpx;
  681. color: #111;
  682. }
  683. &-unit {
  684. font-size: 24rpx;
  685. }
  686. &-num {
  687. font-size: 28rpx;
  688. }
  689. }
  690. .points{
  691. height: 88upx;
  692. width: 100%;
  693. padding: 0 30upx;
  694. box-sizing: border-box;
  695. background: #FFFFFF;
  696. border-radius: 16upx;
  697. display: flex;
  698. align-items: center;
  699. justify-content: space-between;
  700. .left{
  701. display: flex;
  702. align-items: center;
  703. image{
  704. width: 28upx;
  705. height: 28upx;
  706. margin-right: 20upx;
  707. }
  708. .text{
  709. font-size: 28upx;
  710. font-family: PingFang SC;
  711. font-weight: 500;
  712. color: #666666;
  713. }
  714. }
  715. .right{
  716. display: flex;
  717. align-items: center;
  718. .text{
  719. font-size: 28upx;
  720. font-family: PingFang SC;
  721. font-weight: 500;
  722. color: #111111;
  723. }
  724. image{
  725. margin-left: 15upx;
  726. width: 14upx;
  727. height: 24upx;
  728. }
  729. }
  730. }
  731. .remarks{
  732. height: 88upx;
  733. padding: 0 30upx;
  734. background: #FFFFFF;
  735. border-radius: 16upx;
  736. display: flex;
  737. align-items: center;
  738. input{
  739. width: 100%;
  740. font-size: 28upx;
  741. font-family: PingFang SC;
  742. font-weight: 500;
  743. color: #000000;
  744. }
  745. .input{
  746. font-size: 28upx;
  747. font-family: PingFang SC;
  748. font-weight: 500;
  749. color: #999999;
  750. }
  751. }
  752. }
  753. .agreement {
  754. font-size: 28rpx;
  755. font-family: PingFang SC;
  756. font-weight: 500;
  757. color: red;
  758. padding: 30rpx 0;
  759. }
  760. .btn-foot{
  761. box-sizing: border-box;
  762. width: 100%;
  763. height: 121upx;
  764. background: #FFFFFF;
  765. padding: 16upx;
  766. display: flex;
  767. align-items: center;
  768. justify-content: flex-end;
  769. position: fixed;
  770. left: 0;
  771. bottom: 0;
  772. z-index: 99;
  773. .right{
  774. display: flex;
  775. align-items: center;
  776. .total{
  777. display: flex;
  778. align-items: flex-end;
  779. margin-right: 36upx;
  780. .label{
  781. font-size: 26upx;
  782. font-family: PingFang SC;
  783. font-weight: 500;
  784. color: #999999;
  785. line-height: 1.5;
  786. }
  787. .price{
  788. display: flex;
  789. align-items: flex-end;
  790. .unit{
  791. font-size: 32upx;
  792. font-family: PingFang SC;
  793. font-weight: bold;
  794. color: #FF6633;
  795. line-height: 1.2;
  796. margin-right: 10upx;
  797. }
  798. .num{
  799. font-size: 50upx;
  800. font-family: PingFang SC;
  801. font-weight: bold;
  802. color: #FF6633;
  803. line-height: 1;
  804. }
  805. }
  806. }
  807. .btn{
  808. width: 200upx;
  809. height: 88upx;
  810. line-height: 88upx;
  811. text-align: center;
  812. font-size: 30upx;
  813. font-family: PingFang SC;
  814. font-weight: bold;
  815. color: #FFFFFF;
  816. background: #0bb3f2;
  817. border-radius: 44upx;
  818. }
  819. }
  820. }
  821. // </style>
  822. // <style lang="less" scoped>
  823. .coupon {
  824. height: 100%;
  825. }
  826. /*优惠券列表公共*/
  827. .coupon-list {
  828. }
  829. .coupon-list .item {
  830. display: flex;
  831. flex-direction: column;
  832. justify-content: center;
  833. align-items: center;
  834. width: 100%;
  835. height: 1.7 * 100rpx;
  836. margin-bottom: 0.16 * 100rpx;
  837. }
  838. .coupon-list .item .money {
  839. background-size: 100% 100%;
  840. width: 2.4 * 100rpx;
  841. height: 100%;
  842. color: #fff;
  843. font-size: 0.36 * 100rpx;
  844. font-weight: bold;
  845. text-align: center;
  846. display: flex;
  847. flex-direction: column;
  848. align-items: center;
  849. justify-content: center;
  850. position: relative;
  851. }
  852. .coupon-list .item .money .img{
  853. position: absolute;
  854. width: 2.4 * 100rpx;
  855. height: 100%;
  856. color: #fff;
  857. }
  858. .coupon-list .item .money .num {
  859. font-size: 0.6 * 100rpx;
  860. }
  861. .coupon-list .item .money .pic-num {
  862. font-size: 20rpx;
  863. z-index: 99;
  864. }
  865. .coupon-list .item .text {
  866. width: 4.5 * 100rpx;
  867. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  868. background-color: #fff;
  869. box-sizing: border-box;
  870. }
  871. .coupon-list .item .text .condition {
  872. font-size: 0.3 * 100rpx;
  873. color: #282828;
  874. height: 0.93 * 100rpx;
  875. line-height: 0.93 * 100rpx;
  876. border-bottom: 1px solid #f0f0f0;
  877. }
  878. .coupon-list .item .text .data {
  879. font-size: 0.2 * 100rpx;
  880. color: #999;
  881. height: 0.76 * 100rpx;
  882. }
  883. .coupon-list .item .text .data .bnt {
  884. width: 1.36 * 100rpx;
  885. height: 0.44 * 100rpx;
  886. border-radius: 0.22 * 100rpx;
  887. font-size: 0.22 * 100rpx;
  888. color: #fff;
  889. text-align: center;
  890. line-height: 0.44 * 100rpx;
  891. background-color: red;
  892. }
  893. .coupon-list .item .text .data .bnt.gray {
  894. background-color: #ccc;
  895. }
  896. </style>