index.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px'}">
  3. <u-navbar bgColor="transparent">
  4. <view class="u-nav-slot" slot="left">
  5. <text>{{name}}</text>
  6. </view>
  7. </u-navbar>
  8. <view class="bg" :style="{'padding-top':(mt+10)+'px'}">
  9. <view class="dataBox">
  10. <view class="item">
  11. <view>成交金额</view>
  12. <view>¥<text>238</text></view>
  13. <view>昨日¥900.78</view>
  14. </view>
  15. <view class="item">
  16. <view>成交订单数</view>
  17. <view>¥<text>238</text></view>
  18. <view>昨日8</view>
  19. </view>
  20. <view class="item">
  21. <view>退款金额</view>
  22. <view>¥<text>238</text></view>
  23. <view>昨日¥900.78</view>
  24. </view>
  25. <view class="item">
  26. <view>退款订单数</view>
  27. <view>¥<text>238</text></view>
  28. <view>昨日8</view>
  29. </view>
  30. <view class="item">
  31. <view>已购商品数量</view>
  32. <view>¥<text>238</text></view>
  33. <view>昨日78</view>
  34. </view>
  35. </view>
  36. <view class="numberData">
  37. <view>
  38. <text>0</text>
  39. <text>待付款</text>
  40. </view>
  41. <view>
  42. <text>0</text>
  43. <text>待使用</text>
  44. </view>
  45. <view>
  46. <text>0</text>
  47. <text>已完成</text>
  48. </view>
  49. <view>
  50. <text>0</text>
  51. <text>已取消</text>
  52. </view>
  53. <view>
  54. <text>0</text>
  55. <text>退款售后</text>
  56. </view>
  57. </view>
  58. <view class="menus">
  59. <view @click="toHref('/pagesHouse/home/bill')">
  60. <image :src="icons[0]"></image>
  61. <text>交易账单</text>
  62. </view>
  63. <view>
  64. <image :src="icons[1]"></image>
  65. <text>资金账单</text>
  66. </view>
  67. <view>
  68. <image :src="icons[2]"></image>
  69. <text>数据统计</text>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="list">
  74. <view class="tit">
  75. <text>订单列表</text>
  76. <text>{{new Date().Format('yyyy-MM-dd')}}</text>
  77. <u-icon @click="more()" name="arrow-right" label="查看全部" labelPos="left" labelSize="13px" labelColor="#808080" color="#AAA"></u-icon>
  78. </view>
  79. <view class="li first">
  80. <text>订单信息</text>
  81. <text>销量</text>
  82. <text>成交金额</text>
  83. </view>
  84. <view class="li" v-for="(item,index) in data" :key="index">
  85. <view class="avatar">
  86. <image :src="emg"></image>
  87. <text>黄山村渔家乐12客位体验渔民出海</text>
  88. </view>
  89. <text>897</text>
  90. <text>¥765</text>
  91. </view>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. export default {
  97. data() {
  98. return {
  99. data: [1, 2, 3, 4, 5],
  100. name: '黄沙村渔家乐',
  101. emg: 'https://i.ringzle.com/file/20240224/91173dde1cb44b139129e12ad4971f1d.png',
  102. icons: ['https://i.ringzle.com/file/20240224/70ab9f9d1a144c95927dedc6e84bcce7.png',
  103. 'https://i.ringzle.com/file/20240224/3f990c250f444ac9a5d9f334f322c98e.png',
  104. 'https://i.ringzle.com/file/20240224/7ca1bfa6e348438e83edc5af0589f847.png'
  105. ]
  106. }
  107. },
  108. methods:{
  109. toHref(url){
  110. uni.redirectTo({
  111. url:url
  112. })
  113. },
  114. more(){
  115. uni.navigateTo({
  116. url:"/pagesHouse/home/orderList"
  117. })
  118. }
  119. }
  120. }
  121. </script>
  122. <style lang="less" scoped>
  123. .page {
  124. background: #F3F4F4;
  125. padding-bottom: 40rpx;
  126. box-sizing: border-box;
  127. .list {
  128. width: calc(100% - 36rpx);
  129. margin: 20rpx auto;
  130. padding: 0 20rpx 6rpx;
  131. background-color: #fff;
  132. border-radius: 24rpx;
  133. .tit {
  134. padding: 40rpx 0;
  135. display: flex;
  136. justify-content: space-between;
  137. align-items: center;
  138. text {
  139. &:first-child {
  140. font-size: 32rpx;
  141. color: #111;
  142. font-weight: bold;
  143. }
  144. &:nth-child(2) {
  145. margin-left: 17rpx;
  146. color: #666666;
  147. width: 100px;
  148. flex: 1;
  149. }
  150. }
  151. }
  152. .li {
  153. display: grid;
  154. grid-template-columns: 60% 20% 20%;
  155. align-items: center;
  156. margin-bottom: 24rpx;
  157. text {
  158. color: #333;
  159. font-size: 26rpx;
  160. }
  161. .avatar {
  162. display: flex;
  163. align-items: center;
  164. image {
  165. width: 90rpx;
  166. min-width: 90rpx;
  167. height: 90rpx;
  168. margin-right: 20rpx;
  169. }
  170. text {
  171. width: 100px;
  172. word-break: break-all;
  173. text-overflow: ellipsis;
  174. display: -webkit-box;
  175. -webkit-box-orient: vertical;
  176. -webkit-line-clamp: 2;
  177. font-size: 24rpx;
  178. line-height: 33rpx;
  179. /* 这里是超出几行省略 */
  180. overflow: hidden;
  181. }
  182. }
  183. &.first {
  184. margin-bottom: 30rpx;
  185. text {
  186. color: #666;
  187. }
  188. }
  189. }
  190. }
  191. .bg {
  192. width: 100%;
  193. height: auto;
  194. padding: 0 18rpx;
  195. background: url(https://i.ringzle.com/file/20240224/343febca7aa149c5aa0ee8c9365b2d3e.png) no-repeat;
  196. background-size: 100% 100%;
  197. box-sizing: border-box;
  198. .menus {
  199. display: flex;
  200. justify-content: space-around;
  201. height: 184rpx;
  202. border-radius: 24rpx;
  203. background-color: #fff;
  204. color: #333;
  205. align-items: center;
  206. &>view {
  207. image {
  208. width: 64rpx;
  209. height: 64rpx;
  210. display: block;
  211. margin: 0 auto 22rpx;
  212. }
  213. text {
  214. font-size: 26rpx;
  215. }
  216. }
  217. }
  218. .numberData {
  219. display: flex;
  220. justify-content: space-around;
  221. height: 150rpx;
  222. border-radius: 24rpx;
  223. background-color: #007A69;
  224. color: #fff;
  225. align-items: center;
  226. margin: 20rpx 0;
  227. &>view {
  228. text {
  229. display: block;
  230. text-align: center;
  231. font-size: 26rpx;
  232. color: #F0F8F6;
  233. &:first-child {
  234. font-size: 36rpx;
  235. color: #fff;
  236. margin-bottom: 20rpx;
  237. }
  238. }
  239. }
  240. }
  241. .dataBox {
  242. padding: ;
  243. display: grid;
  244. /* 宽度平均分成4份 */
  245. grid-template-columns: repeat(3, 1fr);
  246. /* 高度平均分成3份 */
  247. grid-template-rows: repeat(2, 1fr);
  248. gap: 12rpx;
  249. .item {
  250. width: 230rpx;
  251. height: 180rpx;
  252. padding: 24rpx 0 0 18rpx;
  253. border-radius: 16rpx;
  254. background-color: rgba(255, 255, 255, .48);
  255. color: #777;
  256. &>view:nth-child(2) {
  257. color: #111;
  258. text {
  259. font-size: 36rpx;
  260. display: inline-block;
  261. margin: 12rpx 0;
  262. font-weight: bold;
  263. margin-left: -4rpx;
  264. }
  265. }
  266. }
  267. }
  268. }
  269. }
  270. /deep/.u-nav-slot {
  271. &>text {
  272. font-size: 36rpx;
  273. font-family: PingFang SC, PingFang SC;
  274. font-weight: bold;
  275. color: #333;
  276. }
  277. }
  278. </style>