index.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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"
  78. labelColor="#808080" color="#AAA"></u-icon>
  79. </view>
  80. <view class="li first">
  81. <text>订单信息</text>
  82. <text>销量</text>
  83. <text>成交金额</text>
  84. </view>
  85. <view class="li" v-for="(item,index) in data" :key="index">
  86. <view class="avatar">
  87. <image :src="emg"></image>
  88. <text>黄山村渔家乐12客位体验渔民出海</text>
  89. </view>
  90. <text>897</text>
  91. <text>¥765</text>
  92. </view>
  93. </view>
  94. <Tabbares :tabbarid="0"></Tabbares>
  95. </view>
  96. </template>
  97. <script>
  98. export default {
  99. data() {
  100. return {
  101. data: [1, 2, 3, 4, 5],
  102. name: '黄沙村渔家乐',
  103. emg: 'https://i.ringzle.com/file/20240224/91173dde1cb44b139129e12ad4971f1d.png',
  104. icons: ['https://i.ringzle.com/file/20240224/70ab9f9d1a144c95927dedc6e84bcce7.png',
  105. 'https://i.ringzle.com/file/20240224/3f990c250f444ac9a5d9f334f322c98e.png',
  106. 'https://i.ringzle.com/file/20240224/7ca1bfa6e348438e83edc5af0589f847.png'
  107. ]
  108. }
  109. },
  110. methods: {
  111. toHref(url) {
  112. uni.redirectTo({
  113. url: url
  114. })
  115. },
  116. more() {
  117. uni.navigateTo({
  118. url: "/pagesHouse/home/orderList"
  119. })
  120. }
  121. }
  122. }
  123. </script>
  124. <style lang="less" scoped>
  125. .page {
  126. background: #F3F4F4;
  127. padding-bottom: 40rpx;
  128. box-sizing: border-box;
  129. .list {
  130. width: calc(100% - 36rpx);
  131. margin: 20rpx auto;
  132. padding: 0 20rpx 6rpx;
  133. background-color: #fff;
  134. border-radius: 24rpx;
  135. .tit {
  136. padding: 40rpx 0;
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. text {
  141. &:first-child {
  142. font-size: 32rpx;
  143. color: #111;
  144. font-weight: bold;
  145. }
  146. &:nth-child(2) {
  147. margin-left: 17rpx;
  148. color: #666666;
  149. width: 100px;
  150. flex: 1;
  151. }
  152. }
  153. }
  154. .li {
  155. display: grid;
  156. grid-template-columns: 60% 20% 20%;
  157. align-items: center;
  158. margin-bottom: 24rpx;
  159. text {
  160. color: #333;
  161. font-size: 26rpx;
  162. }
  163. .avatar {
  164. display: flex;
  165. align-items: center;
  166. image {
  167. width: 90rpx;
  168. min-width: 90rpx;
  169. height: 90rpx;
  170. margin-right: 20rpx;
  171. }
  172. text {
  173. width: 100px;
  174. word-break: break-all;
  175. text-overflow: ellipsis;
  176. display: -webkit-box;
  177. -webkit-box-orient: vertical;
  178. -webkit-line-clamp: 2;
  179. font-size: 24rpx;
  180. line-height: 33rpx;
  181. /* 这里是超出几行省略 */
  182. overflow: hidden;
  183. }
  184. }
  185. &.first {
  186. margin-bottom: 30rpx;
  187. text {
  188. color: #666;
  189. }
  190. }
  191. }
  192. }
  193. .bg {
  194. width: 100%;
  195. height: auto;
  196. padding: 0 18rpx;
  197. background: url(https://i.ringzle.com/file/20240224/343febca7aa149c5aa0ee8c9365b2d3e.png) no-repeat;
  198. background-size: 100% 100%;
  199. box-sizing: border-box;
  200. .menus {
  201. display: flex;
  202. justify-content: space-around;
  203. height: 184rpx;
  204. border-radius: 24rpx;
  205. background-color: #fff;
  206. color: #333;
  207. align-items: center;
  208. &>view {
  209. image {
  210. width: 64rpx;
  211. height: 64rpx;
  212. display: block;
  213. margin: 0 auto 22rpx;
  214. }
  215. text {
  216. font-size: 26rpx;
  217. }
  218. }
  219. }
  220. .numberData {
  221. display: flex;
  222. justify-content: space-around;
  223. height: 150rpx;
  224. border-radius: 24rpx;
  225. background-color: #007A69;
  226. color: #fff;
  227. align-items: center;
  228. margin: 20rpx 0;
  229. &>view {
  230. text {
  231. display: block;
  232. text-align: center;
  233. font-size: 26rpx;
  234. color: #F0F8F6;
  235. &:first-child {
  236. font-size: 36rpx;
  237. color: #fff;
  238. margin-bottom: 20rpx;
  239. }
  240. }
  241. }
  242. }
  243. .dataBox {
  244. padding: ;
  245. display: grid;
  246. /* 宽度平均分成4份 */
  247. grid-template-columns: repeat(3, 1fr);
  248. /* 高度平均分成3份 */
  249. grid-template-rows: repeat(2, 1fr);
  250. gap: 12rpx;
  251. .item {
  252. width: 230rpx;
  253. height: 180rpx;
  254. padding: 24rpx 0 0 18rpx;
  255. border-radius: 16rpx;
  256. background-color: rgba(255, 255, 255, .48);
  257. color: #777;
  258. &>view:nth-child(2) {
  259. color: #111;
  260. text {
  261. font-size: 36rpx;
  262. display: inline-block;
  263. margin: 12rpx 0;
  264. font-weight: bold;
  265. margin-left: -4rpx;
  266. }
  267. }
  268. }
  269. }
  270. }
  271. }
  272. /deep/.u-nav-slot {
  273. &>text {
  274. font-size: 36rpx;
  275. font-family: PingFang SC, PingFang SC;
  276. font-weight: bold;
  277. color: #333;
  278. }
  279. }
  280. </style>