index.vue 8.9 KB

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