1
0

index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. <template>
  2. <app-layout :overflow="false">
  3. <view class="nav">
  4. <image load-lazy="true" class="nav-bg" src="../../../static/image/index_BG.png"></image>
  5. <view class="nav-title">我的积分</view>
  6. <view class="nav-num">{{userInfo ? userInfo.integral : 0}}</view>
  7. <view @click="toAbout" class="about">
  8. <image load-lazy="true" src="../../../static/image/about.png"></image>
  9. </view>
  10. <view @click="router('/plugins/integral_mall/exchange/exchange')" class="exchange">
  11. <image load-lazy="true" src="/static/image/icon/exchange.png"></image>
  12. <text>我的兑换</text>
  13. </view>
  14. <view @click="router('/pages/user-center/integral-detail/integral-detail')" class="log">
  15. <image load-lazy="true" src="../../../static/image/log.png"></image>
  16. <text>积分收支</text>
  17. </view>
  18. </view>
  19. <view class="banner" indicator-dots="true" autoplay="true">
  20. <swiper class="swiper" indicator-dots="true" autoplay="true">
  21. <swiper-item v-for="item in banners" :key="item">
  22. <app-jump-button :open_type="item.open_type" :url="item.page_url" :params="item.params">
  23. <image mode="aspectFill" :src="item.pic_url"></image>
  24. </app-jump-button>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. <view class="coupon" v-if="coupon.length > 0">
  29. <view class="coupon-title">兑换优惠券</view>
  30. <scroll-view scroll-x class="coupon-list">
  31. <view class="coupon-item" @click="router('/plugins/integral_mall/coupon/coupon?id=' + item.id)" v-for="item in coupon" :key="item.id">
  32. <image load-lazy="true" src="../../../static/image/coupon-bg.png"></image>
  33. <view class="coupon-name t-omit" v-if="item.coupon.type == 2">¥
  34. <text>{{item.coupon.sub_price}}</text>优惠券</view>
  35. <view class="coupon-name discount" v-else>
  36. <text>{{item.coupon.discount}}</text>优惠券</view>
  37. <view class="coupon-user t-omit">
  38. {{item.integral_num}}积分<span v-if="item.price > 0">+{{item.price}}元</span>兑换
  39. <!-- 满{{item.coupon.min_price}}元可用 -->
  40. </view>
  41. <view class="coupon-exchange">
  42. <view>立即兑换</view>
  43. </view>
  44. </view>
  45. </scroll-view>
  46. </view>
  47. <view class="goods">
  48. <view class="goods-title">
  49. <view class="coupon-title">优惠购专区</view>
  50. </view>
  51. <scroll-view scroll-x class="cat-list">
  52. <view @click="tab(0)" :class="[`cat-item`,`t-omit`,`${_num == 0 ? getTheme+'-m-back active ' + getTheme:''}`]">全部</view>
  53. <view @click="tab(item.id)" :class="[`cat-item`,`t-omit`,`${_num == item.id ?getTheme+'-m-back active ' + getTheme:''}`]" v-for="item in cats" :key="item.id">{{item.name}}
  54. </view>
  55. </scroll-view>
  56. <view class="goods-list dir-left-wrap">
  57. <view open-type="navigate" @click="toGoods(item)" class="goods-item" v-for="item in goods" :key="item.id">
  58. <image load-lazy="true" mode="aspectFill" class="goods-img" :src="item.cover_pic"></image>
  59. <view class="out-dialog" v-if="item.goods_stock == 0 && appSetting.is_show_stock == '1'">
  60. <image :src="appSetting.is_use_stock == '1' ? appImg.plugins_out : appSetting.sell_out_pic"></image>
  61. </view>
  62. <view class="goods-name t-omit">{{item.name}}</view>
  63. <view class="goods-price" :class="getTheme+'-m-text ' + getTheme">{{item.integralMallGoods.integral_num}}积分<text v-if="item.price > 0">+¥{{item.price}}</text></view>
  64. <view class="goods-old">¥{{item.original_price}}</view>
  65. <view class="goods-num">仅剩{{item.goods_stock}}件</view>
  66. <button v-if="item.goods_stock > 0" class="goods-exchange" :class="getTheme+'-m-back ' + getTheme">立即兑换</button>
  67. <button v-else class="goods-exchange" style="background: #CDCDCD;color: #fff;">已售罄</button>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="dialog-bg" v-if="lose || success">
  72. <view class="dialog">
  73. <view @click="close">
  74. <image load-lazy="true" class="close" src="/static/image/icon/icon-close.png"></image>
  75. </view>
  76. <view class="lose" v-if="lose">
  77. <image load-lazy="true" class="lose-img" src="../../../static/image/lose.png"></image>
  78. <view class="lose-title">兑换失败!</view>
  79. <view>当前积分不足</view>
  80. </view>
  81. <view class="success" v-if="success">
  82. <image load-lazy="true" class="success-head" :src="integralImg.app_image.success"></image>
  83. <view>恭喜您,兑换成功!</view>
  84. <view class="main-between success-btn">
  85. <view @click="toList">
  86. <button class="to-card">去卡券包</button>
  87. </view>
  88. <view @click="toList">
  89. <button class="to-use">立即使用</button>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- <view class="dialog-bg" v-if="choose.id > 0">
  96. <view class="dialog-tip">
  97. <view class="dialog-title">提示</view>
  98. <view class="dialog-msg">
  99. 确定使用
  100. <text v-if="choose.integral_num > 0"><text style="color: #ff4544">{{choose.integral_num}}</text>积分</text>
  101. <text v-if="choose.price > 0"><text v-if="choose.integral_num > 0">与</text>
  102. <text style="color: #ff4544">{{choose.price}}</text>元</text>
  103. 兑换此优惠券?
  104. </view>
  105. <view class="dialog-btn main-center">
  106. <view @click="chooseItem({})" class="dialog-close">取消</view>
  107. <view class="line"></view>
  108. <view class="dialog-submit" @click="submit">确认</view>
  109. </view>
  110. </view>
  111. </view> -->
  112. </app-layout>
  113. </template>
  114. <script>
  115. import { mapState, mapGetters } from "vuex";
  116. export default {
  117. data() {
  118. return {
  119. success: false,
  120. lose: false,
  121. _num: 0,
  122. more: false,
  123. setting: {},
  124. coupon: [],
  125. userInfo: {
  126. integral: 0
  127. },
  128. choose: {
  129. integral: 0
  130. },
  131. banners: [],
  132. cats: [],
  133. id: 0,
  134. exchangeCoupon: false,
  135. current: 'wechat',
  136. goods: [],
  137. args: false,
  138. page: 1,
  139. }
  140. },
  141. computed: {
  142. ...mapState({
  143. integralImg: state => state.mallConfig.plugin.integral_mall,
  144. appSetting: state => state.mallConfig.mall.setting,
  145. appImg: state => state.mallConfig.__wxapp_img.mall,
  146. }),
  147. ...mapGetters('mallConfig', {
  148. getVideo: 'getVideo',
  149. getTheme: 'getTheme'
  150. }),
  151. },
  152. methods: {
  153. close() {
  154. this.success = false;
  155. this.lose = false;
  156. },
  157. tab(id) {
  158. this._num = id;
  159. this.page = 1;
  160. this.goods = [];
  161. this.getGoods();
  162. },
  163. // submit() {
  164. // let that = this;
  165. // let id = that.choose.id;
  166. // that.choose = {};
  167. // if (that.userInfo != null && that.userInfo.integral < that.choose.integral_num) {
  168. // uni.showToast({
  169. // title: '积分不足',
  170. // icon: 'none',
  171. // duration: 1000
  172. // });
  173. // }else {
  174. // uni.showLoading({
  175. // title: '领取中...'
  176. // });
  177. // that.$request({
  178. // url: that.$api.integral_mall.coupon_submit,
  179. // data: {
  180. // id: id
  181. // },
  182. // method: 'post'
  183. // }).then(response=>{
  184. // if(response.code == 0) {
  185. // let queue_id = response.data.queue_id;
  186. // let token = response.data.token;
  187. // that.getPayOrderId(queue_id, token)
  188. // }else {
  189. // uni.showToast({
  190. // title: response.msg,
  191. // icon: 'none',
  192. // duration: 1000
  193. // });
  194. // }
  195. // }).catch(response => {
  196. // uni.hideLoading();
  197. // });
  198. // }
  199. // },
  200. // getPayOrderId(queue_id, token) {
  201. // this.$request({
  202. // url: this.$api.integral_mall.coupon_pay,
  203. // data: {
  204. // queue_id: queue_id,
  205. // token: token,
  206. // },
  207. // }).then(response => {
  208. // if (response.code === 0) {
  209. // if (response.data.retry && response.data.retry === 1) {
  210. // this.getPayDataTimer = setTimeout(() => {
  211. // this.getPayOrderId(queue_id, token);
  212. // }, 1000);
  213. // } else {
  214. // uni.hideLoading();
  215. // this.pay(response.data.id);
  216. // }
  217. // } else {
  218. // this.choose = {};
  219. // uni.hideLoading();
  220. // uni.showModal({
  221. // title: '提示',
  222. // content: response.msg,
  223. // showCancel: false,
  224. // });
  225. // }
  226. // }).catch(e => {
  227. // this.choose = {};
  228. // uni.hideLoading();
  229. // uni.showModal({
  230. // title: '提示',
  231. // content: e.errMsg,
  232. // showCancel: false,
  233. // });
  234. // });
  235. // },
  236. // pay(id) {
  237. // this.$payment.pay(id).then(res => {
  238. // this.success = true;
  239. // }).catch(e => {
  240. // uni.showToast({
  241. // title: '支付失败',
  242. // icon: 'none',
  243. // duration: 1000
  244. // });
  245. // });
  246. // },
  247. // chooseItem(res) {
  248. // this.choose = res;
  249. // },
  250. toList() {
  251. this.success = false;
  252. uni.navigateTo({
  253. url: '/pages/coupon/index/index'
  254. });
  255. },
  256. toGoods(data) {
  257. // #ifndef MP-BAIDU
  258. if (data.goodsWarehouse.video_url && this.getVideo == 1) {
  259. uni.navigateTo({
  260. url: `/pages/goods/video?goods_id=${data.id}&sign=${data.sign}`
  261. });
  262. } else {
  263. uni.navigateTo({
  264. url: '/plugins/integral_mall/goods/goods?goods_id=' + data.id
  265. });
  266. }
  267. // #endif
  268. // #ifdef MP-BAIDU
  269. uni.navigateTo({
  270. url: '/plugins/integral_mall/goods/goods?goods_id=' + data.id
  271. });
  272. // #endif
  273. },
  274. toAbout() {
  275. uni.navigateTo({
  276. url: `/pages/rules/index?url=${encodeURIComponent(this.$api.integral_mall.index)}&keys=${JSON.stringify(['setting', 'rule'])}`,
  277. });
  278. },
  279. router(url) {
  280. uni.navigateTo({
  281. url: url
  282. });
  283. },
  284. getList() {
  285. let that = this;
  286. that.$request({
  287. url: that.$api.integral_mall.index,
  288. }).then(response=>{
  289. that.$hideLoading();
  290. if(response.code === 0) {
  291. let { banners, setting, userInfo } = response.data;
  292. that.banners = banners;
  293. that.setting = setting;
  294. that.userInfo = userInfo;
  295. }else {
  296. uni.showToast({
  297. title: response.msg,
  298. icon: 'none',
  299. duration: 1000
  300. });
  301. }
  302. }).catch(() => {
  303. that.$hideLoading();
  304. });
  305. },
  306. getCoupon() {
  307. let that = this;
  308. that.$request({
  309. url: that.$api.integral_mall.coupon,
  310. }).then(response=>{
  311. that.$hideLoading();
  312. if(response.code === 0) {
  313. that.coupon = response.data.list;
  314. }else {
  315. uni.showToast({
  316. title: response.msg,
  317. icon: 'none',
  318. duration: 1000
  319. });
  320. }
  321. }).catch(() => {
  322. that.$hideLoading();
  323. });
  324. },
  325. getCat() {
  326. let that = this;
  327. that.$request({
  328. url: that.$api.integral_mall.cats,
  329. }).then(response=>{
  330. that.$hideLoading();
  331. if(response.code === 0) {
  332. that.cats = response.data.list;
  333. }else {
  334. uni.showToast({
  335. title: response.msg,
  336. icon: 'none',
  337. duration: 1000
  338. });
  339. }
  340. }).catch(() => {
  341. that.$hideLoading();
  342. });
  343. },
  344. getGoods() {
  345. let that = this;
  346. that.$request({
  347. url: that.$api.integral_mall.goods,
  348. data: {
  349. cat_id: that._num,
  350. page: that.page
  351. }
  352. }).then(response=>{
  353. that.$hideLoading();
  354. if(response.code === 0) {
  355. that.more = false;
  356. if(response.data.list.length == response.data.pagination.pageSize) {
  357. that.page++;
  358. that.more = true;
  359. }
  360. if(that.page > 1) {
  361. that.goods = that.goods.concat(response.data.list);
  362. }else {
  363. that.goods = response.data.list;
  364. }
  365. }else {
  366. uni.showToast({
  367. title: response.msg,
  368. icon: 'none',
  369. duration: 1000
  370. });
  371. }
  372. }).catch(() => {
  373. that.$hideLoading();
  374. });
  375. },
  376. },
  377. onReachBottom() {
  378. if(this.more) {
  379. this.getGoods();
  380. }
  381. },
  382. onShareAppMessage: function() {
  383. return this.$shareAppMessage({
  384. title: this.$children[0].navigationBarTitle,
  385. path: "/plugins/integral_mall/index/index",
  386. });
  387. },
  388. // #ifdef MP-WEIXIN
  389. onShareTimeline() {
  390. // 分享朋友圈beta
  391. return this.$shareTimeline({
  392. title: this.$children[0].navigationBarTitle,
  393. query: {} // 此处填写页面的参数
  394. });
  395. },
  396. // #endif
  397. onLoad() {
  398. let that = this;
  399. that._num = 0;
  400. // #ifdef MP-WEIXIN
  401. wx.showShareMenu({
  402. menus: ['shareAppMessage', 'shareTimeline']
  403. })
  404. // #endif
  405. that.$showLoading({
  406. type: 'global',
  407. text: '加载中...'
  408. });
  409. that.getList();
  410. that.getCoupon();
  411. that.getCat();
  412. that.getGoods();
  413. }
  414. }
  415. </script>
  416. <style scoped lang="scss">
  417. .nav {
  418. height: #{220rpx};
  419. width: 100%;
  420. position: relative;
  421. }
  422. .nav-bg {
  423. height: #{220rpx};
  424. width: 100%;
  425. }
  426. .nav-title {
  427. text-align: center;
  428. width: 100%;
  429. position: absolute;
  430. top: #{25rpx};
  431. color: #999;
  432. font-size: 12px;
  433. }
  434. .nav-num {
  435. text-align: center;
  436. width: 100%;
  437. position: absolute;
  438. top: #{60rpx};
  439. color: #ecb786;
  440. font-size: 24px;
  441. }
  442. .exchange, .log {
  443. position: absolute;
  444. bottom: #{40rpx};
  445. color: #fff;
  446. font-size: 15px;
  447. height: #{34rpx};
  448. line-height: #{34rpx};
  449. }
  450. .exchange image, .log image {
  451. height: #{34rpx};
  452. width: #{34rpx};
  453. margin-right: #{16rpx};
  454. display: block;
  455. float: left;
  456. }
  457. .exchange {
  458. left: #{120rpx};
  459. }
  460. .log {
  461. right: #{120rpx};
  462. }
  463. .about {
  464. height: #{30rpx};
  465. width: #{30rpx};
  466. position: absolute;
  467. top: #{25rpx};
  468. right: 38%;
  469. }
  470. .about image {
  471. height: #{30rpx};
  472. width: #{30rpx};
  473. display: block;
  474. }
  475. .banner {
  476. margin: #{20rpx} 0;
  477. height: #{190rpx};
  478. }
  479. .banner swiper {
  480. height: #{190rpx};
  481. }
  482. .banner image {
  483. height: #{190rpx};
  484. width: 100%;
  485. }
  486. .coupon {
  487. background-color: #fff;
  488. padding: #{30rpx} 0 #{40rpx} #{25rpx};
  489. }
  490. .coupon-title {
  491. font-size: 15px;
  492. color: #353535;
  493. border-left: #{4rpx} solid #ff6f28;
  494. padding-left: #{16rpx};
  495. height: #{35rpx};
  496. line-height: #{35rpx};
  497. margin-bottom: #{38rpx};
  498. }
  499. .coupon-list {
  500. height: #{220rpx};
  501. white-space: nowrap;
  502. overflow: hidden;
  503. width: auto;
  504. }
  505. .coupon-item {
  506. width: #{330rpx};
  507. height: #{220rpx};
  508. position: relative;
  509. display: inline-block;
  510. font-size: 13px;
  511. color: #353535;
  512. margin-right: #{20rpx};
  513. }
  514. .coupon-item image {
  515. width: #{330rpx};
  516. height: #{220rpx};
  517. }
  518. .coupon-name {
  519. position: absolute;
  520. left: #{24rpx};
  521. top: #{10rpx};
  522. width: #{300rpx};
  523. font-weight: bold;
  524. &.discount text:after {
  525. content: '折';
  526. font-size: 50%;
  527. }
  528. }
  529. .coupon-name text {
  530. font-size: 20px;
  531. margin-right: #{12rpx};
  532. }
  533. .coupon-user {
  534. position: absolute;
  535. width: #{280rpx};
  536. left: #{24rpx};
  537. top: #{70rpx};
  538. }
  539. .coupon-exchange {
  540. position: absolute;
  541. bottom: #{22rpx};
  542. left: 0;
  543. right: 0;
  544. text-align: center;
  545. }
  546. .coupon-exchange view {
  547. display: inline-block;
  548. padding: 0 #{28rpx};
  549. text-align: center;
  550. height: #{48rpx};
  551. line-height: #{48rpx};
  552. border-radius: #{24rpx};
  553. border: #{2rpx} solid #353535;
  554. margin: 0 auto;
  555. }
  556. .goods-title {
  557. padding-left: #{20rpx};
  558. height: #{96rpx};
  559. line-height: #{96rpx};
  560. padding-top: #{30.5rpx};
  561. background-color: #fff;
  562. margin-top: #{24rpx};
  563. border-bottom: #{1rpx} solid #e2e2e2;
  564. }
  565. .cat-list {
  566. height: #{100rpx};
  567. background-color: #fff;
  568. border-bottom: #{1rpx} solid #e2e2e2;
  569. white-space: nowrap;
  570. overflow: hidden;
  571. width: auto;
  572. position: sticky;
  573. top: 0;
  574. z-index: 10;
  575. }
  576. .cat-item {
  577. display: inline-block;
  578. margin: #{23rpx};
  579. text-align: center;
  580. width: auto;
  581. color: #353535;
  582. font-size: 12px;
  583. height: #{54rpx};
  584. line-height: #{54rpx};
  585. padding: 0 #{20rpx};
  586. }
  587. .cat-item.active {
  588. border-radius: #{27rpx};
  589. color: #fff;
  590. }
  591. .goods-list {
  592. padding-left: #{24rpx};
  593. }
  594. .goods-item {
  595. width: #{344rpx};
  596. background-color: #fff;
  597. font-size: 14px;
  598. color: #353535;
  599. margin: #{14rpx} #{14rpx} 0 0;
  600. position: relative;
  601. display: block;
  602. border-radius: #{16rpx};
  603. }
  604. .goods-name {
  605. margin-top: #{16rpx};
  606. padding-left: #{24rpx};
  607. }
  608. .goods-img {
  609. height: #{344rpx};
  610. width: #{344rpx};
  611. display: block;
  612. border-top-left-radius: #{16rpx};
  613. border-top-right-radius: #{16rpx};
  614. }
  615. .out-dialog {
  616. width: #{344rpx};
  617. height: #{344rpx};
  618. position: absolute;
  619. top: 0;
  620. left: 0;
  621. background-color: rgba(0,0,0,.5);
  622. image {
  623. width: #{344rpx};
  624. height: #{344rpx};
  625. }
  626. }
  627. .goods-price {
  628. margin-top: #{10rpx};
  629. margin-left: #{24rpx};
  630. padding-bottom: #{125rpx};
  631. }
  632. .goods-old {
  633. font-size: 13px;
  634. color: #999;
  635. text-decoration: line-through;
  636. position: absolute;
  637. left: #{24rpx};
  638. bottom: #{88rpx};
  639. }
  640. .goods-num {
  641. position: absolute;
  642. right: #{24rpx};
  643. bottom: #{88rpx};
  644. font-size: 13px;
  645. }
  646. .goods-exchange {
  647. height: #{48rpx};
  648. line-height: #{48rpx};
  649. border-radius: #{24rpx};
  650. position: absolute;
  651. bottom: #{24rpx};
  652. left: #{24rpx};
  653. right: #{24rpx};
  654. color: #fff;
  655. font-size: 13px;
  656. }
  657. .goods-exchange::after {
  658. border: 0;
  659. }
  660. .dialog-bg {
  661. position: fixed;
  662. left: 0;
  663. top: 0;
  664. height: 100%;
  665. width: 100%;
  666. background-color: rgba(0, 0, 0, 0.3);
  667. }
  668. .dialog {
  669. width: #{574rpx};
  670. margin: 0 auto;
  671. background-color: #fff;
  672. position: fixed;
  673. top: 25%;
  674. left: 0;
  675. right: 0;
  676. border-radius: #{16rpx};
  677. }
  678. .close {
  679. height: #{30rpx};
  680. width: #{30rpx};
  681. position: absolute;
  682. right: #{22rpx};
  683. top: #{22rpx};
  684. z-index: 10;
  685. }
  686. .lose {
  687. padding: #{88rpx} 0 #{88rpx} #{90rpx};
  688. height: #{310rpx};
  689. font-size: 15px;
  690. color: #353535;
  691. }
  692. .lose-img {
  693. height: #{134rpx};
  694. width: #{124rpx};
  695. margin-right: #{48rpx};
  696. display: block;
  697. float: left;
  698. }
  699. .lose-title {
  700. font-size: 23px;
  701. font-weight: 500;
  702. margin: #{15rpx} 0;
  703. }
  704. .success {
  705. height: #{350rpx};
  706. background-color: #fff;
  707. text-align: center;
  708. padding-top: #{150rpx};
  709. font-size: 18px;
  710. color: #353535;
  711. border-radius: #{16rpx};
  712. }
  713. .success-head {
  714. height: #{332rpx};
  715. width: #{574rpx};
  716. position: absolute;
  717. top: #{-215rpx};
  718. left: 0;
  719. }
  720. .to-card, .to-use {
  721. margin-top: #{44rpx};
  722. height: #{64rpx};
  723. border-radius: #{32rpx};
  724. line-height: #{64rpx};
  725. width: #{228rpx};
  726. font-size: 16px;
  727. }
  728. .to-card::after, .to-use::after {
  729. border: 0;
  730. }
  731. .to-card {
  732. background-color: #fff;
  733. color: #353535;
  734. border: #{1rpx} solid #999;
  735. }
  736. .to-use {
  737. background-color: #ff4544;
  738. color: #fff;
  739. }
  740. .dialog-tip {
  741. position: fixed;
  742. top: #{400rpx};
  743. left: 0;
  744. right: 0;
  745. padding-bottom: #{88rpx};
  746. width: #{640rpx};
  747. margin: 0 auto;
  748. z-index: 21;
  749. background-color: #fff;
  750. border-radius: 10px;
  751. text-align: center;
  752. font-size: #{30rpx};
  753. }
  754. .dialog-msg {
  755. margin: 0 #{50rpx} #{50rpx};
  756. }
  757. .dialog-title {
  758. margin: #{40rpx} auto #{35rpx};
  759. }
  760. .dialog-btn {
  761. height: #{88rpx};
  762. width: #{640rpx};
  763. border-top: #{1rpx} solid #e2e2e2;
  764. line-height: #{88rpx};
  765. position: absolute;
  766. bottom: 0;
  767. left: 0;
  768. }
  769. .dialog-close,.dialog-submit {
  770. width: 50%;
  771. }
  772. .line {
  773. height: #{44rpx};
  774. margin-top: #{22rpx};
  775. width: #{1rpx};
  776. background-color: #e2e2e2;
  777. }
  778. .dialog-submit {
  779. color: #ff4544;
  780. }
  781. .success-btn {
  782. padding:0 #{39rpx};
  783. }
  784. </style>