order.vue 19 KB

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