order.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. <template>
  2. <view class="content">
  3. <view class="navbar">
  4. <view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
  5. </view>
  6. <swiper :current="tabCurrentIndex" class="swiper-box" duration="300" @change="changeTab">
  7. <swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
  8. <scroll-view class="list-scroll-content" scroll-y @scrolltolower="loadData">
  9. <!-- 空白页 -->
  10. <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
  11. <!-- 订单列表 -->
  12. <view @click="goToOrderDetail(item)" v-for="(item, index) in tabItem.orderList" :key="index" class="order-item">
  13. <view class="i-top b-b">
  14. <text class="time">{{ item._add_time }}</text>
  15. <text class="state" :style="{ color: item.stateTipColor }">{{ item._status._title == '待评价'? '已完成': item._status._title}}</text>
  16. <text v-if="item.status === 4" class="del-btn iconfont icondelete" @click="deleteOrder(index)"></text>
  17. </view>
  18. <scroll-view v-if="item.cartInfo.length > 1" class="goods-box" scroll-x>
  19. <view v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex" class="goods-item">
  20. <image class="goods-img" :src="goodsItem.productInfo.image" mode="aspectFill"></image>
  21. </view>
  22. </scroll-view>
  23. <!-- <view v-if="item.cartInfo.length === 1" class="goods-box-single" v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex">
  24. <image class="goods-img" :src="goodsItem.productInfo.image" mode="aspectFill"></image>
  25. <view class="right">
  26. <text class="title clamp">{{ goodsItem.productInfo.store_name }}</text>
  27. <text class="attr-box">{{ goodsItem.attrInfo ? goodsItem.attrInfo.suk : '' }} x {{ goodsItem.cart_num }}</text>
  28. <text class="price">{{ moneyNum(goodsItem.productInfo.price)}}</text>
  29. </view>
  30. </view> -->
  31. <view class="goods-box-single" v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex">
  32. <image class="goods-img" :src="goodsItem.productInfo.image" mode="scaleToFill"></image>
  33. <view class="right">
  34. <view class="flex-start">
  35. <text class="title clamp">{{ goodsItem.productInfo.store_name }}</text>
  36. <text class="price">{{ moneyNum(goodsItem.productInfo.price) }}</text>
  37. </view>
  38. <view class="row flex">
  39. <text class="row_title">{{ goodsItem.productInfo.attrInfo ? goodsItem.productInfo.attrInfo.suk : '' }}</text>
  40. <text class="attr-box"> x {{ goodsItem.cart_num }}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="price-box">
  45. <text class="num">{{ item.cartInfo.length }}</text>
  46. 件商品 邮费
  47. <text class="price">{{ moneyNum(item.pay_postage)}}</text>
  48. 实付款
  49. <text class="price">{{ moneyNum(item.pay_price)}}</text>
  50. </view>
  51. <view class="action-box b-t" v-if="item.status != 5">
  52. <button v-if="item._status._title == '未支付'" class="action-btn" @click.stop="cancelOrder(item)">取消订单</button>
  53. <button v-if="item._status._title == '未支付' && item.pay_type != 'paying'" @click.stop="orderPay(item)" class="action-btn recom">立即支付</button>
  54. <button v-if="item._status._title == '未支付' && item.pay_type == 'paying'" @click.stop="showDf(item)" class="action-btn recom">出示代付码</button>
  55. <!-- <button v-if="item._status._title == '待评价'" class="action-btn">评价</button> -->
  56. <button v-if="item._status._title == '待收货'" @click.stop="orderTake(item, index)" class="action-btn">确认收货</button>
  57. <!-- <button v-if="item._status._title == '未发货'" class="action-btn" @click.stop="orderRefund(item)">申请退款</button> -->
  58. </view>
  59. </view>
  60. <uni-load-more :status="tabItem.loadingType"></uni-load-more>
  61. </scroll-view>
  62. </swiper-item>
  63. </swiper>
  64. <uni-popup ref="popupdf" type="center" >
  65. <view class="df-wrap">
  66. <view class="ewm">
  67. <!-- <image :src="erweimasrc" mode=""></image> -->
  68. <tki-qrcode cid="tki-qrcode-canvass" ref="qrcodes" :val="val" :size="size" :unit="unit" :background="background"
  69. :foreground="foreground" :pdground="pdground" :icon="icon" :iconSize="iconSize" :lv="lv" :onval="onval"
  70. :showLoading="showLoading" :loadMake="loadMake" :usingComponents="usingComponents" @result="qrRs"/>
  71. </view>
  72. <view class="dftit" @click="comfirm(val)">
  73. 代付码:{{val}}
  74. </view>
  75. <view class="dftip">
  76. 扫一扫为他代付
  77. </view>
  78. <image src="../../static/user/close.png" mode="" class="close" @click="closePp('popupdf')"></image>
  79. <!-- <view class="btn" @click="closeDf">
  80. 代付完成,返回首页
  81. </view> -->
  82. </view>
  83. </uni-popup>
  84. <view class="qrimg">
  85. <tki-qrcode :cid="cid" ref="qrcode" :val="val" :size="size" :unit="unit" :background="background"
  86. :foreground="foreground" :pdground="pdground" :icon="icon" :iconSize="iconSize" :lv="lv" :onval="onval"
  87. :showLoading="showLoading" :loadMake="loadMake" :usingComponents="usingComponents" @result="qrR"/>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  93. import empty from '@/components/empty';
  94. import { orderList, orderCancel, orderDel, orderTake } from '@/api/order.js';
  95. export default {
  96. components: {
  97. uniLoadMore,
  98. empty
  99. },
  100. data() {
  101. return {
  102. cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
  103. size: 300, //生成的二维码大小
  104. unit: 'upx', //大小单位尺寸
  105. val: '', //要生成的内容
  106. background: '#ffffff', //二维码背景色
  107. foreground: '#333333', //二维码前景色
  108. pdground: '#333333', //二维码角标色
  109. icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
  110. iconSize: 40, //二维码图标大小
  111. lv: 3, //容错级别
  112. onval: true, //监听val值变化自动重新生成二维码
  113. loadMake: true, //组件初始化完成后自动生成二维码,val需要有值
  114. usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
  115. showLoading: false, //是否显示loading
  116. erweimasrc: '',
  117. tabCurrentIndex: 0,
  118. navList: [
  119. {
  120. state: 0,
  121. text: '待付款',
  122. loadingType: 'more',
  123. orderList: [],
  124. page: 1, //当前页数
  125. limit: 10 //每次信息条数
  126. },
  127. {
  128. state: 1,
  129. text: '待发货',
  130. loadingType: 'more',
  131. orderList: [],
  132. page: 1, //当前页数
  133. limit: 10 //每次信息条数
  134. },
  135. {
  136. state: 2,
  137. text: '待收货',
  138. loadingType: 'more',
  139. orderList: [],
  140. page: 1, //当前页数
  141. limit: 10 //每次信息条数
  142. },
  143. {
  144. state: 3,
  145. text: '已完成',
  146. loadingType: 'more',
  147. orderList: [],
  148. page: 1, //当前页数
  149. limit: 10 //每次信息条数
  150. },
  151. // {
  152. // state: 4,
  153. // text: '已完成',
  154. // loadingType: 'more',
  155. // orderList: [],
  156. // page: 1, //当前页数
  157. // limit: 10 //每次信息条数
  158. // }
  159. ]
  160. };
  161. },
  162. onLoad(options) {
  163. /**
  164. * 修复app端点击除全部订单外的按钮进入时不加载数据的问题
  165. * 替换onLoad下代码即可
  166. */
  167. this.tabCurrentIndex = +options.state;
  168. // #ifndef MP
  169. this.loadData();
  170. // #endif
  171. // #ifdef MP
  172. if (options.state == 0) {
  173. this.loadData();
  174. }
  175. // #endif
  176. },
  177. // #ifdef APP-PLUS || H5
  178. onBackPress(e){
  179. uni.switchTab({
  180. url: '/pages/user/user',
  181. });
  182. return true;
  183. },
  184. // #endif
  185. methods: {
  186. comfirm(text) {
  187. console.log(text);
  188. const result = this.uniCopy(text);
  189. if (result === false) {
  190. uni.showToast({
  191. title: '不支持'
  192. });
  193. } else {
  194. uni.showToast({
  195. title: '复制成功',
  196. icon: 'none'
  197. });
  198. }
  199. // this.$refs.popupkf.close();
  200. },
  201. uniCopy(content) {
  202. /**
  203. * 小程序端 和 app端的复制逻辑
  204. */
  205. //#ifndef H5
  206. uni.setClipboardData({
  207. data: content,
  208. success: function() {
  209. console.log('success');
  210. return true;
  211. }
  212. });
  213. //#endif
  214. /**
  215. * H5端的复制逻辑
  216. */
  217. // #ifdef H5
  218. if (!document.queryCommandSupported('copy')) {
  219. //为了兼容有些浏览器 queryCommandSupported 的判断
  220. // 不支持
  221. return false;
  222. }
  223. let textarea = document.createElement('textarea');
  224. textarea.value = content;
  225. textarea.readOnly = 'readOnly';
  226. document.body.appendChild(textarea);
  227. textarea.select(); // 选择对象
  228. textarea.setSelectionRange(0, content.length); //核心
  229. let result = document.execCommand('copy'); // 执行浏览器复制命令
  230. textarea.remove();
  231. return result;
  232. // #endif
  233. },
  234. closePp(name) {
  235. this.$refs[name].close()
  236. },
  237. qrRs() {
  238. },
  239. qrR(res) {
  240. console.log(res);
  241. uni.hideLoading()
  242. this.erweimasrc = res
  243. uni.hideLoading()
  244. this.$refs.popupdf.open()
  245. },
  246. showDf(item) {
  247. if(item.order_id == this.val) {
  248. this.$refs.popupdf.open()
  249. }else {
  250. this.val = item.order_id
  251. uni.showLoading({
  252. title:'代付码生成中...'
  253. })
  254. }
  255. },
  256. // 转换金额为数字
  257. moneyNum(value){
  258. return +value;
  259. },
  260. // 确认收货
  261. orderTake(item, index) {
  262. let obj = this;
  263. uni.showModal({
  264. title: '是否确认收货?',
  265. success: () => {
  266. orderTake({
  267. uni: item.order_id
  268. })
  269. .then(e => {
  270. obj.navList[obj.tabCurrentIndex].orderList.splice(index, 1);
  271. uni.showToast({
  272. title: '收货成功'
  273. });
  274. })
  275. .catch(e => {
  276. console.log(e);
  277. });
  278. }
  279. });
  280. },
  281. //跳转到订单详情
  282. goToOrderDetail(e) {
  283. uni.navigateTo({
  284. url: '/pages/order/orderDetail?id=' + e.order_id
  285. });
  286. },
  287. // 申请退款
  288. orderRefund(e) {
  289. uni.navigateTo({
  290. url: '/pages/order/orderRefund?id=' + e.order_id
  291. });
  292. },
  293. // 订单支付
  294. orderPay(e) {
  295. uni.navigateTo({
  296. url: '/pages/money/pay?type=1&ordid=' + e.order_id + '&money=' + e.pay_price + '&is_zero=' + e.is_zero
  297. });
  298. },
  299. //获取订单列表
  300. loadData(source) {
  301. //这里是将订单挂载到tab列表下
  302. let index = this.tabCurrentIndex;
  303. let navItem = this.navList[index];
  304. let state = navItem.state;
  305. if (source === 'tabChange' && navItem.loaded === true) {
  306. //tab切换只有第一次需要加载数据
  307. return;
  308. }
  309. if (navItem.loadingType === 'loading') {
  310. //防止重复加载
  311. return;
  312. }
  313. if (navItem.loadingType === 'noMore') {
  314. //防止重复加载
  315. return;
  316. }
  317. // 修改当前对象状态为加载中
  318. navItem.loadingType = 'loading';
  319. orderList({
  320. type: state,
  321. page: navItem.page,
  322. limit: navItem.limit
  323. })
  324. .then(({ data }) => {
  325. let arr = data.map(e => {
  326. let b = this.orderStateExp(e.status);
  327. e.stateTip = b.stateTip;
  328. e.stateTipColor = b.stateTipColor;
  329. return e;
  330. });
  331. navItem.orderList = navItem.orderList.concat(arr);
  332. // console.log(navItem.orderList);
  333. navItem.page++;
  334. if (navItem.limit == data.length) {
  335. //判断是否还有数据, 有改为 more, 没有改为noMore
  336. navItem.loadingType = 'more';
  337. return;
  338. } else {
  339. //判断是否还有数据, 有改为 more, 没有改为noMore
  340. navItem.loadingType = 'noMore';
  341. }
  342. uni.hideLoading();
  343. this.$set(navItem, 'loaded', true);
  344. })
  345. .catch(e => {
  346. console.log(e);
  347. });
  348. },
  349. //swiper 切换
  350. changeTab(e) {
  351. this.tabCurrentIndex = e.target.current;
  352. this.loadData('tabChange');
  353. },
  354. //顶部tab点击
  355. tabClick(index) {
  356. this.tabCurrentIndex = index;
  357. },
  358. //删除订单
  359. deleteOrder(index) {
  360. uni.showLoading({
  361. title: '请稍后'
  362. });
  363. setTimeout(() => {
  364. this.navList[this.tabCurrentIndex].orderList.splice(index, 1);
  365. uni.hideLoading();
  366. }, 600);
  367. },
  368. //取消订单
  369. cancelOrder(item) {
  370. uni.showModal({
  371. title: '订单取消',
  372. content: '是否取消订单?',
  373. success: e => {
  374. if (e.confirm) {
  375. uni.showLoading({
  376. title: '请稍后'
  377. });
  378. orderCancel({ id: item.order_id })
  379. .then(e => {
  380. uni.showToast({
  381. title: '取消成功',
  382. duration: 2000,
  383. position: 'top'
  384. });
  385. })
  386. .catch(e => {
  387. console.log(e);
  388. });
  389. //取消订单后删除待付款中该项
  390. let list = this.navList[this.tabCurrentIndex].orderList;
  391. let index = list.findIndex(val => val.id === item.id);
  392. index !== -1 && list.splice(index, 1);
  393. uni.hideLoading();
  394. }
  395. }
  396. });
  397. },
  398. //订单状态文字和颜色
  399. orderStateExp(state) {
  400. let stateTip = '',
  401. stateTipColor = '#fa436a';
  402. switch (+state) {
  403. case 0:
  404. stateTip = '待付款';
  405. break;
  406. case 1:
  407. stateTip = '待发货';
  408. break;
  409. case 2:
  410. stateTip = '待收货';
  411. break;
  412. case 3:
  413. stateTip = '已完成';
  414. stateTipColor = '#5dbc7c';
  415. break;
  416. case 4:
  417. stateTip = '已完成';
  418. stateTipColor = '#5dbc7c';
  419. break;
  420. case 9:
  421. stateTip = '订单已关闭';
  422. stateTipColor = '#909399';
  423. break;
  424. //更多自定义
  425. }
  426. return { stateTip, stateTipColor };
  427. }
  428. }
  429. };
  430. </script>
  431. <style lang="scss">
  432. .qrimg {
  433. position: absolute;
  434. left: -9999rpx;
  435. top: -9999rpx;
  436. }
  437. page,
  438. .content {
  439. background: $page-color-base;
  440. height: 100%;
  441. }
  442. .swiper-box {
  443. height: calc(100% - 40px);
  444. }
  445. .list-scroll-content {
  446. height: 100%;
  447. }
  448. .navbar {
  449. display: flex;
  450. height: 40px;
  451. padding: 0 5px;
  452. background: #fff;
  453. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  454. position: relative;
  455. z-index: 10;
  456. .nav-item {
  457. flex: 1;
  458. display: flex;
  459. justify-content: center;
  460. align-items: center;
  461. height: 100%;
  462. font-size: 15px;
  463. color: $font-color-dark;
  464. position: relative;
  465. &.current {
  466. color: $base-color;
  467. &:after {
  468. content: '';
  469. position: absolute;
  470. left: 50%;
  471. bottom: 0;
  472. transform: translateX(-50%);
  473. width: 44px;
  474. height: 0;
  475. border-bottom: 2px solid $base-color;
  476. }
  477. }
  478. }
  479. }
  480. .uni-swiper-item {
  481. height: auto;
  482. }
  483. .order-item {
  484. display: flex;
  485. flex-direction: column;
  486. padding-left: 30rpx;
  487. background: #fff;
  488. margin-top: 16rpx;
  489. .i-top {
  490. display: flex;
  491. align-items: center;
  492. height: 80rpx;
  493. padding-right: 30rpx;
  494. font-size: $font-base;
  495. color: $font-color-dark;
  496. position: relative;
  497. .time {
  498. flex: 1;
  499. }
  500. .state {
  501. color: $base-color;
  502. }
  503. .del-btn {
  504. padding: 10rpx 0 10rpx 36rpx;
  505. font-size: $font-lg;
  506. color: $font-color-light;
  507. position: relative;
  508. &:after {
  509. content: '';
  510. width: 0;
  511. height: 30rpx;
  512. border-left: 1px solid $border-color-dark;
  513. position: absolute;
  514. left: 20rpx;
  515. top: 50%;
  516. transform: translateY(-50%);
  517. }
  518. }
  519. }
  520. /* 多条商品 */
  521. .goods-box {
  522. height: 160rpx;
  523. padding: 20rpx 0;
  524. white-space: nowrap;
  525. .goods-item {
  526. width: 120rpx;
  527. height: 120rpx;
  528. display: inline-block;
  529. margin-right: 24rpx;
  530. }
  531. .goods-img {
  532. display: block;
  533. width: 100%;
  534. height: 100%;
  535. }
  536. }
  537. /* 单条商品 */
  538. .goods-box-single {
  539. display: flex;
  540. padding: 20rpx 0;
  541. .goods-img {
  542. display: block;
  543. width: 120rpx;
  544. height: 120rpx;
  545. }
  546. .right {
  547. flex: 1;
  548. display: flex;
  549. flex-direction: column;
  550. padding: 0 30rpx 0 24rpx;
  551. overflow: hidden;
  552. .row{
  553. margin-top: 10rpx;
  554. }
  555. .row_title{
  556. padding:5rpx 10rpx;
  557. background-color: #dddddd;
  558. border-radius: 10rpx;
  559. font-size: 22rpx;
  560. color: #ffffff;
  561. }
  562. .title {
  563. font-size: $font-base + 2rpx;
  564. color: $font-color-dark;
  565. line-height: 1;
  566. width: 80%;
  567. }
  568. .attr-box {
  569. display: flex;
  570. justify-content: flex-end;
  571. font-size: $font-sm + 2rpx;
  572. color: $font-color-light;
  573. }
  574. .price {
  575. display: inline;
  576. font-size: $font-base + 2rpx;
  577. color: $font-color-dark;
  578. &:before {
  579. content: '¥';
  580. font-size: $font-sm;
  581. }
  582. }
  583. }
  584. }
  585. .price-box {
  586. display: flex;
  587. justify-content: flex-end;
  588. align-items: baseline;
  589. padding: 20rpx 30rpx;
  590. font-size: $font-sm + 2rpx;
  591. color: $font-color-light;
  592. .num {
  593. margin: 0 8rpx;
  594. color: $font-color-dark;
  595. }
  596. .price {
  597. font-size: $font-lg;
  598. color: $font-color-dark;
  599. &:before {
  600. content: '¥';
  601. font-size: $font-sm;
  602. margin: 0 2rpx 0 8rpx;
  603. }
  604. }
  605. }
  606. .action-box {
  607. display: flex;
  608. justify-content: flex-end;
  609. align-items: center;
  610. height: 100rpx;
  611. position: relative;
  612. padding-right: 30rpx;
  613. }
  614. .action-btn {
  615. width: 160rpx;
  616. height: 60rpx;
  617. margin: 0;
  618. margin-left: 24rpx;
  619. padding: 0;
  620. text-align: center;
  621. line-height: 60rpx;
  622. font-size: $font-sm + 2rpx;
  623. color: $font-color-dark;
  624. background: #fff;
  625. border-radius: 100px;
  626. &:after {
  627. border-radius: 100px;
  628. }
  629. &.recom {
  630. color: $base-color;
  631. &:after {
  632. border-color: $base-color;
  633. }
  634. }
  635. &.evaluate {
  636. color: $color-yellow;
  637. &:after {
  638. border-color: $color-yellow;
  639. }
  640. }
  641. }
  642. }
  643. /* load-more */
  644. .uni-load-more {
  645. display: flex;
  646. flex-direction: row;
  647. height: 80rpx;
  648. align-items: center;
  649. justify-content: center;
  650. }
  651. .uni-load-more__text {
  652. font-size: 28rpx;
  653. color: #999;
  654. }
  655. .uni-load-more__img {
  656. height: 24px;
  657. width: 24px;
  658. margin-right: 10px;
  659. }
  660. .uni-load-more__img > view {
  661. position: absolute;
  662. }
  663. .uni-load-more__img > view view {
  664. width: 6px;
  665. height: 2px;
  666. border-top-left-radius: 1px;
  667. border-bottom-left-radius: 1px;
  668. background: #999;
  669. position: absolute;
  670. opacity: 0.2;
  671. transform-origin: 50%;
  672. animation: load 1.56s ease infinite;
  673. }
  674. .uni-load-more__img > view view:nth-child(1) {
  675. transform: rotate(90deg);
  676. top: 2px;
  677. left: 9px;
  678. }
  679. .uni-load-more__img > view view:nth-child(2) {
  680. transform: rotate(180deg);
  681. top: 11px;
  682. right: 0;
  683. }
  684. .uni-load-more__img > view view:nth-child(3) {
  685. transform: rotate(270deg);
  686. bottom: 2px;
  687. left: 9px;
  688. }
  689. .uni-load-more__img > view view:nth-child(4) {
  690. top: 11px;
  691. left: 0;
  692. }
  693. .load1,
  694. .load2,
  695. .load3 {
  696. height: 24px;
  697. width: 24px;
  698. }
  699. .load2 {
  700. transform: rotate(30deg);
  701. }
  702. .load3 {
  703. transform: rotate(60deg);
  704. }
  705. .load1 view:nth-child(1) {
  706. animation-delay: 0s;
  707. }
  708. .load2 view:nth-child(1) {
  709. animation-delay: 0.13s;
  710. }
  711. .load3 view:nth-child(1) {
  712. animation-delay: 0.26s;
  713. }
  714. .load1 view:nth-child(2) {
  715. animation-delay: 0.39s;
  716. }
  717. .load2 view:nth-child(2) {
  718. animation-delay: 0.52s;
  719. }
  720. .load3 view:nth-child(2) {
  721. animation-delay: 0.65s;
  722. }
  723. .load1 view:nth-child(3) {
  724. animation-delay: 0.78s;
  725. }
  726. .load2 view:nth-child(3) {
  727. animation-delay: 0.91s;
  728. }
  729. .load3 view:nth-child(3) {
  730. animation-delay: 1.04s;
  731. }
  732. .load1 view:nth-child(4) {
  733. animation-delay: 1.17s;
  734. }
  735. .load2 view:nth-child(4) {
  736. animation-delay: 1.3s;
  737. }
  738. .load3 view:nth-child(4) {
  739. animation-delay: 1.43s;
  740. }
  741. @-webkit-keyframes load {
  742. 0% {
  743. opacity: 1;
  744. }
  745. 100% {
  746. opacity: 0.2;
  747. }
  748. }
  749. .df-wrap {
  750. text-align: center;
  751. padding:60rpx 40rpx;
  752. background-color: #fff;
  753. border-radius: 20rpx;
  754. position: relative;
  755. .ewm {
  756. // width: 377rpx;
  757. // height: 377rpx;
  758. // border: 6rpx solid #FF6F0F;
  759. margin: auto;
  760. padding: 23rpx;
  761. border-radius: 15rpx;
  762. image {
  763. width: 100%;
  764. height: 100%;
  765. margin: auto;
  766. }
  767. }
  768. .dftit {
  769. padding: 30rpx 0 15rpx;
  770. font-size: 36rpx;
  771. color: #333333;
  772. }
  773. .dftip {
  774. font-size: 30rpx;
  775. color: #333333;
  776. }
  777. .btn {
  778. width: 600rpx;
  779. line-height: 87rpx;
  780. background: $base-color;
  781. color: #fff;
  782. border-radius: 20rpx;
  783. font-weight: 500;
  784. font-size: 35rpx;
  785. position: absolute;
  786. bottom: -120rpx;
  787. left: 0;
  788. right: 0;
  789. margin: auto;
  790. }
  791. .close {
  792. position: absolute;
  793. right: 30rpx;
  794. top: 30rpx;
  795. width: 28rpx;
  796. height: 28rpx;
  797. }
  798. }
  799. </style>