confirmOrder.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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. onUnload() {
  252. uni.$off('updateAddress')
  253. },
  254. methods: {
  255. handleAgreement() {
  256. this.isAgreement = !this.isAgreement;
  257. },
  258. getWeixinOrderTemps:function(){
  259. getWeixinOrderTemps().then(
  260. res => {
  261. if(res.code==200){
  262. this.temps=res.temp
  263. console.log(this.temps)
  264. }else{
  265. }
  266. },
  267. rej => {}
  268. );
  269. },
  270. couponSelect(item){
  271. this.couponText="-¥"+item.couponPrice.toFixed(2);
  272. this.couponUserId=item.id;
  273. this.couponVisible=false;
  274. this.computed();
  275. },
  276. openCoupon(){
  277. let that = this;
  278. var data={couponType:0,useMinPrice:this.price.payPrice};
  279. getMyEnableCouponList(data).then(res => {
  280. this.couponVisible=true;
  281. that.couponsList = res.data
  282. })
  283. },
  284. integralChange(e){
  285. console.log(e)
  286. this.form.useIntegral=e?1:0
  287. this.computed()
  288. },
  289. confirm(){
  290. if(this.confirmParam && this.confirmParam.length > 0) {
  291. confirm(this.confirmParam).then(
  292. res => {
  293. if(res.code==200){
  294. this.carts=res.carts.map(item=>({
  295. ...item,
  296. markinfo: ""
  297. }));
  298. this.form.orderKey=res.orderKeys;
  299. if(res.address!=null){
  300. this.form.addressId=res.address.id;
  301. this.address=res.address;
  302. }
  303. this.computed()
  304. }else{
  305. uni.showToast({
  306. icon:'none',
  307. title: res.msg,
  308. });
  309. }
  310. },
  311. rej => {}
  312. )
  313. }else {
  314. uni.showToast({
  315. icon: 'none',
  316. title:'订单参数不存在~',
  317. });
  318. }
  319. },
  320. computed(){
  321. let data = {
  322. companyId:this.form.companyId,
  323. couponUserId:this.couponUserId,
  324. orderKeys:this.form.orderKey,
  325. addressId:this.form.addressId,
  326. useIntegral:this.form.useIntegral,
  327. };
  328. computed(data).then(
  329. res => {
  330. if(res.code==200){
  331. this.price= res.data && res.data.length > 0 ? res.data : []
  332. this.priceAll = res.data && res.data.length > 0 ? res.data[res.data.length -1] : {
  333. payPrice:0,
  334. totalPostage:0,
  335. usedIntegral:0,
  336. totalPrice:0.00,
  337. }
  338. }else{
  339. if(res.code==501){
  340. uni.showToast({
  341. icon:'none',
  342. title: res.msg,
  343. });
  344. setTimeout(function(){
  345. uni.navigateBack({
  346. delta:1
  347. })
  348. },500);
  349. return;
  350. }
  351. else{
  352. uni.showToast({
  353. icon:'none',
  354. title: res.msg,
  355. });
  356. }
  357. }
  358. },
  359. rej => {}
  360. );
  361. },
  362. // 提交订单
  363. submitOrder() {
  364. var that=this;
  365. if(this.form.orderKey==null || this.form.orderKey.length == 0){
  366. uni.showToast({
  367. icon:'none',
  368. title: '订单KEY不存在',
  369. });
  370. return;
  371. }
  372. if(this.form.addressId==null){
  373. uni.showToast({
  374. icon:'none',
  375. title: '收货地址不能为空',
  376. });
  377. return;
  378. }
  379. if(!this.isAgreement) {
  380. uni.showToast({
  381. icon:'none',
  382. title: '购买前请同意相关须知',
  383. });
  384. return;
  385. }
  386. uni.requestSubscribeMessage({
  387. tmplIds: this.temps,
  388. success(res) {
  389. that.createOrder();
  390. },
  391. fail(res) {
  392. that.createOrder();
  393. }
  394. })
  395. },
  396. createOrder(){
  397. const mark = this.carts.map(item => item.markinfo)
  398. var that=this;
  399. var data=null;
  400. var tuiUserId=uni.getStorageSync('tuiUserId');
  401. uni.showLoading({
  402. title: '正在处理中...'
  403. });
  404. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  405. 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};
  406. }
  407. else{
  408. 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};
  409. }
  410. if(this.storeId!=null&& this.storeId>0){
  411. data.storeId=this.storeId;
  412. }
  413. create(data).then(
  414. res => {
  415. uni.hideLoading()
  416. if(res.code == 200){
  417. uni.hideLoading()
  418. if(res.data.some(item=> item.order.isPrescribe) == 1) {
  419. setTimeout(function(){
  420. let orderIds = res.data.filter(item=> item.order.isPrescribe == 1).map(it=>it.order.id)
  421. orderIds = orderIds.join(',')
  422. uni.redirectTo({
  423. url:"/pages_shopping/prescribe?orderId="+orderIds+"&combinationOrderId="+encodeURIComponent(res.data[0].order.combinationOrderId)
  424. })
  425. },200);
  426. } else {
  427. setTimeout(function(){
  428. uni.redirectTo({
  429. url: '/pages_shopping/paymentOrder?combinationOrderId='+encodeURIComponent(res.data[0].order.combinationOrderId)
  430. })
  431. },200);
  432. }
  433. // if(res.order.isPrescribe==1){
  434. // setTimeout(function(){
  435. // uni.redirectTo({
  436. // url:"/pages_shopping/prescribe?orderId="+res.order.id
  437. // })
  438. // },200);
  439. // }
  440. // else{
  441. // setTimeout(function(){
  442. // uni.redirectTo({
  443. // url: '/pages_shopping/paymentOrder?orderId='+res.order.id
  444. // })
  445. // },200);
  446. // }
  447. return;
  448. }
  449. else{
  450. if(res.code==501){
  451. uni.showToast({
  452. icon:'none',
  453. title: res.msg,
  454. });
  455. setTimeout(function(){
  456. uni.navigateBack({
  457. delta:1
  458. })
  459. },200);
  460. return;
  461. }
  462. else{
  463. uni.showToast({
  464. icon:'none',
  465. title: res.msg,
  466. });
  467. }
  468. }
  469. },
  470. rej => {}
  471. );
  472. },
  473. openAddress(){
  474. uni.navigateTo({
  475. url: '/pages_user/address'
  476. })
  477. }
  478. }
  479. }
  480. </script>
  481. <style lang="scss" scoped>
  482. .inner-box{
  483. padding: 20upx 20upx 140upx;
  484. .address-box{
  485. box-sizing: border-box;
  486. min-height: 171upx;
  487. background: #FFFFFF;
  488. border-radius: 16upx;
  489. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/address_bg.png);
  490. background-repeat: no-repeat;
  491. background-size: 100% 30upx;
  492. background-position: left bottom;
  493. padding: 38upx 30upx 36upx;
  494. display: flex;
  495. align-items: center;
  496. justify-content: space-between;
  497. .left{
  498. width: 92%;
  499. .name-box{
  500. display: flex;
  501. align-items: center;
  502. .text{
  503. font-size: 32upx;
  504. font-family: PingFang SC;
  505. font-weight: bold;
  506. color: #111111;
  507. line-height: 1;
  508. &.name{
  509. margin-right: 30upx;
  510. }
  511. }
  512. }
  513. .address{
  514. font-size: 28upx;
  515. font-family: PingFang SC;
  516. font-weight: 500;
  517. color: #666666;
  518. line-height: 42upx;
  519. text-align:left;
  520. margin-top: 23upx;
  521. }
  522. }
  523. .arrow-box{
  524. width: 12upx;
  525. height: 23upx;
  526. display: flex;
  527. align-items: cenetr;
  528. justify-content: cenetr;
  529. image{
  530. width: 100%;
  531. height: 100%;
  532. }
  533. }
  534. }
  535. .shopbox {
  536. background: #FFFFFF;
  537. border-radius: 16rpx;
  538. margin: 20rpx 0;
  539. .points {
  540. padding: 0 !important;
  541. }
  542. .remarks {
  543. padding: 0 !important;
  544. }
  545. }
  546. .shopbox-name {
  547. padding: 30rpx 30rpx 0 30rpx;
  548. font-family: PingFang SC, PingFang SC;
  549. font-weight: bold;
  550. font-size: 30rpx;
  551. color: #111;
  552. overflow: hidden;
  553. white-space: nowrap;
  554. text-overflow: ellipsis;
  555. }
  556. .goods-list{
  557. // margin-top: 20upx;
  558. padding: 0 30upx;
  559. background-color: #FFFFFF;
  560. border-radius: 16upx;
  561. .item{
  562. padding: 30upx 0;
  563. border-bottom: 1px solid #EDEEEF;
  564. display: flex;
  565. align-items: center;
  566. .img-box{
  567. width: 160upx;
  568. height: 160upx;
  569. margin-right: 30upx;
  570. image{
  571. width: 100%;
  572. height: 100%;
  573. }
  574. }
  575. .info-box{
  576. width: calc(100% - 190upx);
  577. height: 160upx;
  578. display: flex;
  579. flex-direction: column;
  580. justify-content: space-between;
  581. .name-box{
  582. font-size: 28upx;
  583. font-family: PingFang SC;
  584. font-weight: 500;
  585. color: #111111;
  586. line-height: 40upx;
  587. .tag{
  588. display: inline-block;
  589. padding: 0 6upx;
  590. height: 30upx;
  591. background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
  592. border-radius: 4upx;
  593. margin-right: 10upx;
  594. font-size: 22upx;
  595. font-family: PingFang SC;
  596. font-weight: bold;
  597. color: #FFFFFF;
  598. line-height: 30upx;
  599. float: left;
  600. margin-top: 7upx;
  601. }
  602. }
  603. .spec{
  604. margin-top: 10upx;
  605. font-size: 24upx;
  606. font-family: PingFang SC;
  607. font-weight: 500;
  608. color: #999999;
  609. line-height: 1;
  610. }
  611. .price-num{
  612. display: flex;
  613. align-items: center;
  614. justify-content: space-between;
  615. .price{
  616. display: flex;
  617. align-items: flex-end;
  618. .unit{
  619. font-size: 24upx;
  620. font-family: PingFang SC;
  621. font-weight: 500;
  622. color: #111111;
  623. line-height: 1.2;
  624. margin-right: 4upx;
  625. }
  626. .num{
  627. font-size: 32upx;
  628. font-family: PingFang SC;
  629. font-weight: 500;
  630. color: #111111;
  631. line-height: 1;
  632. }
  633. }
  634. .num{
  635. font-size: 24upx;
  636. font-family: PingFang SC;
  637. font-weight: 500;
  638. color: #999999;
  639. line-height: 1;
  640. }
  641. }
  642. }
  643. }
  644. .sub-total{
  645. height: 88upx;
  646. display: flex;
  647. align-items: center;
  648. justify-content: flex-end;
  649. .label{
  650. font-size: 24upx;
  651. font-family: PingFang SC;
  652. font-weight: 500;
  653. color: #999999;
  654. }
  655. .price{
  656. display: flex;
  657. align-items: flex-end;
  658. .unit{
  659. font-size: 24upx;
  660. font-family: PingFang SC;
  661. font-weight: 500;
  662. color: #FF6633;
  663. line-height: 1.2;
  664. margin-right: 4upx;
  665. }
  666. .num{
  667. font-size: 32upx;
  668. font-family: PingFang SC;
  669. font-weight: bold;
  670. color: #FF6633;
  671. line-height: 1;
  672. }
  673. }
  674. }
  675. }
  676. .price-info {
  677. background: #FFFFFF;
  678. border-radius: 16upx;
  679. &-title {
  680. padding: 30rpx 30rpx 20rpx 30rpx;
  681. font-family: PingFang SC, PingFang SC;
  682. font-weight: 500;
  683. font-size: 30rpx;
  684. color: #111;
  685. }
  686. &-unit {
  687. font-size: 24rpx;
  688. }
  689. &-num {
  690. font-size: 28rpx;
  691. }
  692. }
  693. .points{
  694. height: 88upx;
  695. width: 100%;
  696. padding: 0 30upx;
  697. box-sizing: border-box;
  698. background: #FFFFFF;
  699. border-radius: 16upx;
  700. display: flex;
  701. align-items: center;
  702. justify-content: space-between;
  703. .left{
  704. display: flex;
  705. align-items: center;
  706. image{
  707. width: 28upx;
  708. height: 28upx;
  709. margin-right: 20upx;
  710. }
  711. .text{
  712. font-size: 28upx;
  713. font-family: PingFang SC;
  714. font-weight: 500;
  715. color: #666666;
  716. }
  717. }
  718. .right{
  719. display: flex;
  720. align-items: center;
  721. .text{
  722. font-size: 28upx;
  723. font-family: PingFang SC;
  724. font-weight: 500;
  725. color: #111111;
  726. }
  727. image{
  728. margin-left: 15upx;
  729. width: 14upx;
  730. height: 24upx;
  731. }
  732. }
  733. }
  734. .remarks{
  735. height: 88upx;
  736. padding: 0 30upx;
  737. background: #FFFFFF;
  738. border-radius: 16upx;
  739. display: flex;
  740. align-items: center;
  741. input{
  742. width: 100%;
  743. font-size: 28upx;
  744. font-family: PingFang SC;
  745. font-weight: 500;
  746. color: #000000;
  747. }
  748. .input{
  749. font-size: 28upx;
  750. font-family: PingFang SC;
  751. font-weight: 500;
  752. color: #999999;
  753. }
  754. }
  755. }
  756. .agreement {
  757. font-size: 28rpx;
  758. font-family: PingFang SC;
  759. font-weight: 500;
  760. color: red;
  761. padding: 30rpx 0;
  762. }
  763. .btn-foot{
  764. box-sizing: border-box;
  765. width: 100%;
  766. height: 121upx;
  767. background: #FFFFFF;
  768. padding: 16upx;
  769. display: flex;
  770. align-items: center;
  771. justify-content: flex-end;
  772. position: fixed;
  773. left: 0;
  774. bottom: 0;
  775. z-index: 99;
  776. .right{
  777. display: flex;
  778. align-items: center;
  779. .total{
  780. display: flex;
  781. align-items: flex-end;
  782. margin-right: 36upx;
  783. .label{
  784. font-size: 26upx;
  785. font-family: PingFang SC;
  786. font-weight: 500;
  787. color: #999999;
  788. line-height: 1.5;
  789. }
  790. .price{
  791. display: flex;
  792. align-items: flex-end;
  793. .unit{
  794. font-size: 32upx;
  795. font-family: PingFang SC;
  796. font-weight: bold;
  797. color: #FF6633;
  798. line-height: 1.2;
  799. margin-right: 10upx;
  800. }
  801. .num{
  802. font-size: 50upx;
  803. font-family: PingFang SC;
  804. font-weight: bold;
  805. color: #FF6633;
  806. line-height: 1;
  807. }
  808. }
  809. }
  810. .btn{
  811. width: 200upx;
  812. height: 88upx;
  813. line-height: 88upx;
  814. text-align: center;
  815. font-size: 30upx;
  816. font-family: PingFang SC;
  817. font-weight: bold;
  818. color: #FFFFFF;
  819. background: #0bb3f2;
  820. border-radius: 44upx;
  821. }
  822. }
  823. }
  824. // </style>
  825. // <style lang="less" scoped>
  826. .coupon {
  827. height: 100%;
  828. }
  829. /*优惠券列表公共*/
  830. .coupon-list {
  831. }
  832. .coupon-list .item {
  833. display: flex;
  834. flex-direction: column;
  835. justify-content: center;
  836. align-items: center;
  837. width: 100%;
  838. height: 1.7 * 100rpx;
  839. margin-bottom: 0.16 * 100rpx;
  840. }
  841. .coupon-list .item .money {
  842. background-size: 100% 100%;
  843. width: 2.4 * 100rpx;
  844. height: 100%;
  845. color: #fff;
  846. font-size: 0.36 * 100rpx;
  847. font-weight: bold;
  848. text-align: center;
  849. display: flex;
  850. flex-direction: column;
  851. align-items: center;
  852. justify-content: center;
  853. position: relative;
  854. }
  855. .coupon-list .item .money .img{
  856. position: absolute;
  857. width: 2.4 * 100rpx;
  858. height: 100%;
  859. color: #fff;
  860. }
  861. .coupon-list .item .money .num {
  862. font-size: 0.6 * 100rpx;
  863. }
  864. .coupon-list .item .money .pic-num {
  865. font-size: 20rpx;
  866. z-index: 99;
  867. }
  868. .coupon-list .item .text {
  869. width: 4.5 * 100rpx;
  870. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  871. background-color: #fff;
  872. box-sizing: border-box;
  873. }
  874. .coupon-list .item .text .condition {
  875. font-size: 0.3 * 100rpx;
  876. color: #282828;
  877. height: 0.93 * 100rpx;
  878. line-height: 0.93 * 100rpx;
  879. border-bottom: 1px solid #f0f0f0;
  880. }
  881. .coupon-list .item .text .data {
  882. font-size: 0.2 * 100rpx;
  883. color: #999;
  884. height: 0.76 * 100rpx;
  885. }
  886. .coupon-list .item .text .data .bnt {
  887. width: 1.36 * 100rpx;
  888. height: 0.44 * 100rpx;
  889. border-radius: 0.22 * 100rpx;
  890. font-size: 0.22 * 100rpx;
  891. color: #fff;
  892. text-align: center;
  893. line-height: 0.44 * 100rpx;
  894. background-color: red;
  895. }
  896. .coupon-list .item .text .data .bnt.gray {
  897. background-color: #ccc;
  898. }
  899. </style>