index.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <!-- 我的订单 -->
  2. <template>
  3. <view class="order">
  4. <view class="tabs">
  5. <u-tabs :list="tabLists" lineWidth="40" lineHeight="8" :lineColor="`url(${lineBg}) 100% 100%`" :activeStyle="{
  6. color: '#0D121A',
  7. fontSize: '32rpx',
  8. fontWeight: 'bold',
  9. transform: 'scale(1.05)'
  10. }" :inactiveStyle="{
  11. color: '#9EA3B1',
  12. fontSize: '28rpx',
  13. transform: 'scale(1)'
  14. }" itemStyle="padding-left: 18px; padding-right: 18px; height: 56px;" @click="tabsChange">
  15. </u-tabs>
  16. </view>
  17. <view class="content">
  18. <mescroll-body height="100%" class="custom-height" ref="mescrollRef" @init="mescrollInit" @down="downCallback"
  19. :up="upOption" @up="upCallback">
  20. <view class="order-list" v-if="arrList && arrList.length">
  21. <view class="tab-content" v-for="(item, index) in arrList" :key="index">
  22. <view class="order-top flex jcsb aic">
  23. <text class="name">{{ item.name }}</text>
  24. <text class="status">{{ item.statusName }}</text>
  25. </view>
  26. <view class="order-middle flex jcsb aifs">
  27. <view class="order-middle-left">
  28. <view>拍摄场景:6个</view>
  29. <view>交付周期:20天</view>
  30. </view>
  31. <view class="order-middle-right flex aic">
  32. <text class="right-label fs24">应付款</text>
  33. <text class="right-money fs28"><text class="fs24">¥</text>2500</text>
  34. </view>
  35. </view>
  36. <view class="order-bottom flex jcsb aic">
  37. <view class="order-bottom-left flex aic">
  38. <image :src="timeImg" class="time-img"></image>
  39. <text class="time fw400"><text class="fw500">{{ item.time }}</text>后自动取消</text>
  40. </view>
  41. <view class="order-bottom-right flex aic">
  42. <view class="btn btn1 p2">取消</view>
  43. <view class="btn btn2 p1">支付</view>
  44. <!-- <view class="btn3">寄样</view> -->
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <no-data :statusType="2" tipsText="暂无记录" v-if="!isInit && !arrList.length"></no-data>
  50. </mescroll-body>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import MescrollMixin from "@/plugins/mescroll/components/mescroll-uni/mescroll-mixins.js";
  56. import MescrollBody from '@/plugins/mescroll/components/mescroll-uni/mescroll-uni.vue';
  57. import { orderApi } from '@/apis/order.js';
  58. export default {
  59. mixins: [MescrollMixin],
  60. components: {
  61. MescrollBody
  62. },
  63. data() {
  64. return {
  65. page: 1,
  66. limit: 10,
  67. lineBg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_line.png',
  68. timeImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_time.png',
  69. arrList: [
  70. {
  71. status: 1,
  72. name: 'A类套餐(50条视频)',
  73. orderNo: '20200709123456789',
  74. time: '34:56',
  75. price: '100.00',
  76. status: 1,
  77. statusName: '待付款',
  78. statusColor: '#FF5E00',
  79. statusIcon: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_daifukuan%403x.png'
  80. }
  81. ],
  82. isInit: false,
  83. paymentStatus: 1,
  84. tabLists: [
  85. {
  86. name: '全部',
  87. value: 0
  88. },{
  89. name: '待付款',
  90. value: 1
  91. },{
  92. name: '拍摄中',
  93. value: 2
  94. }, {
  95. name: '已完成',
  96. value: 3
  97. }
  98. ]
  99. };
  100. },
  101. computed: {},
  102. watch: {},
  103. methods: {
  104. tabsChange(item){
  105. console.log(item,'item');
  106. },
  107. getList() {
  108. let params = {
  109. paymentStatus:this.paymentStatus,
  110. page: 1,
  111. limit: 10,
  112. }
  113. orderApi(params).then(res => {
  114. console.log(res);
  115. })
  116. }
  117. },
  118. created() {
  119. },
  120. mounted() {
  121. },
  122. }
  123. </script>
  124. <style lang='scss' scoped>
  125. .order {
  126. height: 100vh;
  127. background-color: #EDEFF5;
  128. display: flex;
  129. flex-direction: column;
  130. .tabs {
  131. background-color: #FFF;
  132. padding: 0 28rpx 12rpx;
  133. }
  134. .content{
  135. flex: 1;
  136. overflow: hidden;
  137. }
  138. .order-list {
  139. padding: 24rpx;
  140. .tab-content {
  141. padding: 40rpx 36rpx;
  142. width: 100%;
  143. // height: 296rpx;
  144. background: #FFFFFF;
  145. border-radius: 24rpx;
  146. .order-top {
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. .name {
  151. font-weight: bold;
  152. font-size: 32rpx;
  153. color: #0D121A;
  154. }
  155. .status {
  156. font-size: 28rpx;
  157. color: #FF7441;
  158. }
  159. .status2 {
  160. font-size: 28rpx;
  161. color: #0D121A;
  162. }
  163. .status3 {
  164. font-size: 28rpx;
  165. color: #9EA3B1;
  166. }
  167. }
  168. .order-middle {
  169. margin-top: 32rpx;
  170. color: #0D121A;
  171. .order-middle-left {
  172. font-weight: 400;
  173. font-size: 28rpx;
  174. color: #9EA3B1;
  175. }
  176. .order-middle-right {
  177. .right-label {
  178. font-weight: 400;
  179. margin-right: 8rpx;
  180. }
  181. .right-money {
  182. font-weight: 500;
  183. }
  184. }
  185. }
  186. .order-bottom {
  187. margin-top: 16rpx;
  188. .order-bottom-left {
  189. .time-img {
  190. margin-right: 8rpx;
  191. width: 48rpx;
  192. height: 48rpx;
  193. }
  194. .time {
  195. color: #FF7441;
  196. font-size: 24rpx;
  197. }
  198. }
  199. .order-bottom-right {
  200. .p1 {
  201. padding: 18rpx 44rpx;
  202. }
  203. .p2 {
  204. padding: 16rpx 42rpx;
  205. }
  206. .btn {
  207. font-weight: 500;
  208. font-size: 28rpx;
  209. display: flex;
  210. justify-content: center;
  211. align-items: center;
  212. border-radius: 36rpx;
  213. }
  214. .btn1 {
  215. color: #0D121A;
  216. border: 3rpx solid #E2E4EB;
  217. }
  218. .btn2 {
  219. margin-left: 16rpx;
  220. background: #FF7441;
  221. color: #FFF;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }
  228. </style>