index.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view>
  3. <view class="status_bar">
  4. <!-- 这里是状态栏 -->
  5. </view>
  6. <view class="u-page">
  7. <view class="head">
  8. <view class="u-flex u-row-between" style="padding: 50rpx 30rpx">
  9. <view class="u-flex">
  10. <view class="">
  11. <u-image width="130rpx" height="130rpx" :src="src" :lazy-load="true" shape="circle">
  12. <view slot="error" style="font-size: 24rpx;" :fade="true" duration="450">加载失败</u-icon>
  13. </view>
  14. </u-image>
  15. </view>
  16. <view class="u-margin-left-10">
  17. <view style="color: #fff;font-size: 42rpx;" class="u-margin-bottom-20">
  18. 青岛赛轮轮胎零售店
  19. </view>
  20. <view style="border: 1rpx solid #E3E3E3;border-radius: 30rpx;font-size:24rpx;color:#fff;padding: 2rpx 20rpx;">
  21. 山东省青岛市城阳区黑龙江北路188
  22. </view>
  23. </view>
  24. </view>
  25. <view class="">
  26. <u-icon name="qr" size="80rpx" custom-prefix="van-icon" color="#fff"></u-icon>
  27. </view>
  28. </view>
  29. <view class="u-flex u-row-around">
  30. <view class="u-text-center">
  31. <view style="font-size:36rpx; font-weight: 500;color: #FFFFFF;">
  32. 张三
  33. </view>
  34. <view style="color: #B3DAFF;opacity: 0.9;">
  35. 联系人
  36. </view>
  37. </view>
  38. <view class="u-text-center">
  39. <view style="font-size:36rpx;font-weight: 500;color: #FFFFFF;">
  40. 市北区
  41. </view>
  42. <view style="color: #B3DAFF;opacity: 0.9;">
  43. 区域
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view style="position: relative;top:-110rpx">
  49. <u-card padding="20" box-shadow="0px 1px 10px rgba(0,0,0,0.2)" border-radius="20" :show-foot="false" :border="false">
  50. <view slot="head" class="u-flex u-row-between u-col-bottom">
  51. <view style="font-weight: 500;font-size: 36rpx;">
  52. 结算中心
  53. </view>
  54. <view class="u-col-bottom" style="color: #4B4B4B;font-size: 20rpx;">
  55. 查看全部
  56. </view>
  57. </view>
  58. <view slot="body">
  59. <view class="u-flex u-row-around">
  60. <view class="u-text-center">
  61. <view style="color: #0095FF;font-size: 30rpx;">
  62. 800 <text style="font-size: 14rpx;">万</text>
  63. </view>
  64. <view style="color: #333333;">
  65. 我的奖励
  66. </view>
  67. </view>
  68. <view class="u-text-center">
  69. <view style="color: #0095FF;font-size: 30rpx;">
  70. 800 <text style="font-size: 14rpx;">万</text>
  71. </view>
  72. <view style="color: #333333;">
  73. 冻结奖励
  74. </view>
  75. </view>
  76. <view class="u-text-center">
  77. <view style="color: #0095FF;font-size: 30rpx;">
  78. 800 <text style="font-size: 14rpx;">万</text>
  79. </view>
  80. <view style="color: #333333;">
  81. 待核销
  82. </view>
  83. </view>
  84. <view class="u-text-center">
  85. <view style="color: #0095FF;font-size: 30rpx;">
  86. 800 <text style="font-size: 14rpx;">万个</text>
  87. </view>
  88. <view style="color: #333333;">
  89. 可用积分
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </u-card>
  95. <u-card padding="20" box-shadow="0px 1px 10px rgba(0,0,0,0.2)" border-radius="20" :show-foot="false" :border="false">
  96. <view slot="head" class="u-flex u-row-between u-col-bottom">
  97. <view style="font-weight: 500;font-size: 36rpx;">
  98. 结算中心
  99. </view>
  100. <view class="u-col-bottom" style="color: #4B4B4B;font-size: 20rpx;">
  101. 查看全部
  102. </view>
  103. </view>
  104. <view slot="body">
  105. <view class="u-flex u-row-around u-flex-wrap">
  106. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inInstore">
  107. <view>
  108. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  109. </u-image>
  110. </view>
  111. <view style="font-weight: 500;color: #000000;">
  112. 入库明细
  113. </view>
  114. </view>
  115. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inOutstore">
  116. <view>
  117. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  118. </u-image>
  119. </view>
  120. <view style="font-weight: 500;color: #000000;">
  121. 出库明细
  122. </view>
  123. </view>
  124. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inReward">
  125. <view>
  126. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  127. </u-image>
  128. </view>
  129. <view style="font-weight: 500;color: #000000;">
  130. 奖励明细
  131. </view>
  132. </view>
  133. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inStatistical">
  134. <view>
  135. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  136. </u-image>
  137. </view>
  138. <view style="font-weight: 500;color: #000000;">
  139. 任务统计
  140. </view>
  141. </view>
  142. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inresult">
  143. <view>
  144. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  145. </u-image>
  146. </view>
  147. <view style="font-weight: 500;color: #000000;">
  148. 胎号查询
  149. </view>
  150. </view>
  151. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;">
  152. <view>
  153. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  154. </u-image>
  155. </view>
  156. <view style="font-weight: 500;color: #000000;">
  157. 门店订单
  158. </view>
  159. </view>
  160. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inCoupon">
  161. <view>
  162. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  163. </u-image>
  164. </view>
  165. <view style="font-weight: 500;color: #000000;">
  166. 我的优惠券
  167. </view>
  168. </view>
  169. <view class="u-flex u-row-centter" style="flex-direction: column;width: 25%;" @click="inSuppliers">
  170. <view>
  171. <u-image width="80rpx" height="80rpx" :src="src" :lazy-load="true" shape="circle">
  172. </u-image>
  173. </view>
  174. <view style="font-weight: 500;color: #000000;">
  175. 我的供应商
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </u-card>
  181. <u-cell-group>
  182. <u-cell-item title="核销记录">
  183. <u-icon slot="icon" size="32" name="balance-o" custom-prefix="van-icon"></u-icon>
  184. </u-cell-item>
  185. <u-cell-item title="兑换记录">
  186. <u-icon slot="icon" size="32" name="balance-list-o" custom-prefix="van-icon"></u-icon>
  187. </u-cell-item>
  188. <u-cell-item icon="setting-fill" title="设置">
  189. <u-icon slot="icon" size="32" name="setting-o" custom-prefix="van-icon"></u-icon>
  190. </u-cell-item>
  191. </u-cell-group>
  192. </view>
  193. </view>
  194. <!-- 与包裹页面所有内容的元素u-page同级, -->
  195. <u-tabbar v-model="current" :list="list"></u-tabbar>
  196. </view>
  197. </template>
  198. <script>
  199. export default {
  200. data() {
  201. return {
  202. src: '../../static/sailun/fade.jpg',
  203. list: [{
  204. iconPath: "home",
  205. selectedIconPath: "home-fill",
  206. text: '首页',
  207. customIcon: false,
  208. pagePath: '/pages/home/index'
  209. },
  210. {
  211. iconPath: "chat",
  212. selectedIconPath: "chat-fill",
  213. text: '消息',
  214. count: 2,
  215. isDot: false,
  216. customIcon: false,
  217. pagePath: '/pages/msg/index'
  218. },
  219. {
  220. iconPath: "account",
  221. selectedIconPath: "account-fill",
  222. text: '我的',
  223. customIcon: false,
  224. pagePath: '/pages/me/index'
  225. },
  226. ],
  227. current: 2
  228. };
  229. },
  230. methods:{
  231. inInstore(){
  232. this.$u.route({
  233. url: 'pages/me/Warehousing-details/index',
  234. })
  235. },
  236. inOutstore(){
  237. this.$u.route({
  238. url: 'pages/me/Delivery-details/index',
  239. })
  240. },
  241. inReward(){
  242. this.$u.route({
  243. url: 'pages/me/Reward-details/index',
  244. })
  245. },
  246. inStatistical(){
  247. this.$u.route({
  248. url: 'pages/me/Statistical-task/index',
  249. })
  250. },
  251. inresult(){
  252. this.$u.route({
  253. url: 'pages/me/scancodequery/scan',
  254. })
  255. },
  256. inCoupon(){
  257. this.$u.route({
  258. url: 'pages/me/coupon',
  259. })
  260. },
  261. inSuppliers(){
  262. this.$u.route({
  263. url: 'pages/me/suppliers',
  264. })
  265. }
  266. }
  267. }
  268. </script>
  269. <style lang="scss" scoped>
  270. .status_bar {
  271. height: var(--status-bar-height);
  272. width: 100%;
  273. background-color: #0095FF;
  274. }
  275. .head {
  276. width: 750rpx;
  277. height: 429rpx;
  278. background: linear-gradient(50deg, #3F77F6 0%, #66CCFF 100%);
  279. }
  280. </style>