confirmOrder.vue 23 KB

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