index.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <template>
  2. <view class="my-box flex-common-css">
  3. <Nav title="我的" :leftShow='false' titleColor="#333" bgckgroundBox='transparent'></Nav>
  4. <image class="bg-box" src="@/static/img/my/bg.png" mode=""></image>
  5. <view class="user-box align-items-center">
  6. <view class="user-img-box mr-24">
  7. <image class="user-img" src="@/static/img/my/user-img.png" mode=""></image>
  8. <image @click="goToUrl(0)" class="set-iimg" src="@/static/img/my/pen.png" mode=""></image>
  9. </view>
  10. <view class="user-name text-overflow-ellipsis-one fs-34">
  11. {{ name }}
  12. </view>
  13. </view>
  14. <view class="function-one-box box-border-box">
  15. <view class="function-one b-rad-20 bgc-f box-border-box mb-24 align-items-center flex-justify-space">
  16. <view class="my-function-box flex-direction align-items-center" @click="goToUrl(1)">
  17. <image class="my-img" src="@/static/img/my/wdkq.png" mode=""></image>
  18. <view class="fs-26">
  19. 我的卡券
  20. </view>
  21. </view>
  22. <view class="my-function-box flex-direction align-items-center" @click="goToUrl(2)">
  23. <image class="my-img" src="@/static/img/my/wdfb.png" mode=""></image>
  24. <view class="fs-26">
  25. 我的发布
  26. </view>
  27. </view>
  28. <view class="my-function-box flex-direction align-items-center" @click="goToUrl(3)">
  29. <image class="my-img" src="@/static/img/my/wdpj.png" mode=""></image>
  30. <view class="fs-26">
  31. 我的评价
  32. </view>
  33. </view>
  34. <view class="my-function-box flex-direction align-items-center" @click="goToUrl(4)">
  35. <image class="my-img" src="@/static/img/my/dzgl.png" mode=""></image>
  36. <view class="fs-26">
  37. 地址管理
  38. </view>
  39. </view>
  40. </view>
  41. <view class="function-two b-rad-20 box-border-box flex-justify-space mb-22" @click="goToUrl(5)">
  42. <view class="function-two-left">
  43. <view class="align-items-center mb-12 p-t-10">
  44. <image class="lqzx-img" src="@/static/img/my/lqzx.png" mode=""></image>
  45. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  46. </view>
  47. <view class="fs-26 fc-9">
  48. 领券下单更优惠
  49. </view>
  50. </view>
  51. <image class="function-two-right" src="@/static/img/my/q.png" mode=""></image>
  52. </view>
  53. </view>
  54. <scroll-view class="" :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  55. <view class="list-box function-one-box box-border-box">
  56. <view class="list bgc-f b-rad-20">
  57. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(6)">
  58. <view class="item-left align-items-center">
  59. <image class="item-img" src="@/static/img/my/xxzx.png" mode=""></image>
  60. <view class="fs-32 fc-3">
  61. 消息中心
  62. </view>
  63. </view>
  64. <view class="item-right align-items-center">
  65. <view class="fs-24 fc-9">
  66. {{newsNum}}条未读消息
  67. </view>
  68. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  69. </view>
  70. </view>
  71. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(12)">
  72. <view class="item-left align-items-center">
  73. <image class="item-img" src="@/static/img/my/gong-gao-icon.png" mode=""></image>
  74. <view class="fs-32 fc-3">
  75. 通知公告
  76. </view>
  77. </view>
  78. <view class="item-right align-items-center">
  79. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  80. </view>
  81. </view>
  82. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(7)">
  83. <view class="item-left align-items-center">
  84. <image class="item-img" src="@/static/img/my/lxkf.png" mode=""></image>
  85. <view class="fs-32 fc-3">
  86. 联系客服
  87. </view>
  88. </view>
  89. <view class="item-right align-items-center">
  90. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  91. </view>
  92. </view>
  93. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(8)">
  94. <view class="item-left align-items-center">
  95. <image class="item-img" src="@/static/img/my/swhz.png" mode=""></image>
  96. <view class="fs-32 fc-3">
  97. 商务合作
  98. </view>
  99. </view>
  100. <view class="item-right align-items-center">
  101. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  102. </view>
  103. </view>
  104. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(9)">
  105. <view class="item-left align-items-center">
  106. <image class="item-img" src="@/static/img/my/qszp.png" mode=""></image>
  107. <view class="fs-32 fc-3">
  108. 骑手招聘
  109. </view>
  110. </view>
  111. <view class="item-right align-items-center">
  112. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  113. </view>
  114. </view>
  115. <view class="item-box align-items-center flex-justify-space mb-64" @click="goToUrl(10)">
  116. <view class="item-left align-items-center">
  117. <image class="item-img" src="@/static/img/my/wtfk.png" mode=""></image>
  118. <view class="fs-32 fc-3">
  119. 问题反馈
  120. </view>
  121. </view>
  122. <view class="item-right align-items-center">
  123. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  124. </view>
  125. </view>
  126. <view class="item-box align-items-center flex-justify-space" @click="goToUrl(11)">
  127. <view class="item-left align-items-center">
  128. <image class="item-img" src="@/static/img/my/gywm.png" mode=""></image>
  129. <view class="fs-32 fc-3">
  130. 关于我们
  131. </view>
  132. </view>
  133. <view class="item-right align-items-center">
  134. <image class="to-right" src="@/static/img/toRight.png" mode=""></image>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </scroll-view>
  140. <view class="p-b-20 b-rad-20"></view>
  141. </view>
  142. </template>
  143. <script>
  144. export default {
  145. components: {},
  146. data() {
  147. return {
  148. name: '仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...',
  149. newsNum: 24
  150. };
  151. },
  152. onLoad(data) {},
  153. mounted() {},
  154. methods: {
  155. scrolltolower() {
  156. console.log('触底');
  157. },
  158. goToUrl(type) {
  159. if (type == 0) {
  160. // 修改个人信息
  161. uni.navigateTo({
  162. url: '/pages-my/user-info'
  163. })
  164. } else if (type == 1) {
  165. // 我的卡券
  166. uni.navigateTo({
  167. url: '/pages-my/my-ticket'
  168. })
  169. } else if (type == 2) {
  170. // 我的发布
  171. uni.navigateTo({
  172. url: '/pages-my/my-publish'
  173. })
  174. } else if (type == 3) {
  175. // 我的评价
  176. uni.navigateTo({
  177. url: '/pages-my/my-appraise'
  178. })
  179. } else if (type == 4) {
  180. // 地址管理
  181. uni.navigateTo({
  182. url: '/pages-address/address'
  183. })
  184. } else if (type == 5) {
  185. // 领券中心
  186. uni.navigateTo({
  187. url: '/pages-my/ticket-centre'
  188. })
  189. } else if (type == 6) {
  190. // 消息中心
  191. uni.navigateTo({
  192. url: '/pages-my/info-centre'
  193. })
  194. } else if (type == 7) {
  195. // 联系客服
  196. } else if (type == 8) {
  197. // 商务合作
  198. uni.navigateTo({
  199. url: '/pages-my/cooperate'
  200. })
  201. } else if (type == 9) {
  202. // 骑手招聘
  203. uni.navigateTo({
  204. url: '/pages-my/rider-recruit'
  205. })
  206. } else if (type == 10) {
  207. // 问题反馈
  208. uni.navigateTo({
  209. url: '/pages-my/feedback'
  210. })
  211. } else if (type == 11) {
  212. // 关于我们
  213. uni.navigateTo({
  214. url: '/pages-my/about-us'
  215. })
  216. } else if (type == 12) {
  217. // 系统通知
  218. uni.navigateTo({
  219. url: '/pages-my/notice/list'
  220. })
  221. }
  222. }
  223. },
  224. }
  225. </script>
  226. <style lang="scss" scoped>
  227. .my-box {}
  228. .bg-box {
  229. width: 100%;
  230. height: 476rpx;
  231. position: fixed;
  232. top: 0;
  233. z-index: -1;
  234. }
  235. .user-img-box {
  236. width: 112rpx;
  237. height: 112rpx;
  238. position: relative;
  239. }
  240. .user-box {
  241. padding: 54rpx 32rpx;
  242. }
  243. .user-img {
  244. width: 100%;
  245. height: 100%;
  246. }
  247. .set-iimg {
  248. position: absolute;
  249. right: 4rpx;
  250. bottom: 0;
  251. width: 33rpx;
  252. height: 33rpx;
  253. }
  254. .user-name {
  255. max-width: 388rpx;
  256. }
  257. .function-one-box {
  258. padding: 0 24rpx;
  259. }
  260. .function-one {
  261. padding: 24rpx 34rpx;
  262. }
  263. .function-two {
  264. padding: 22rpx 40rpx 22rpx 32rpx;
  265. background: linear-gradient(90deg, #FFFFFF 47%, #FFF7E5 100%);
  266. }
  267. .my-img {
  268. width: 80rpx;
  269. height: 80rpx;
  270. margin: 0 0 8rpx 0;
  271. }
  272. .function-two-right {
  273. width: 96rpx;
  274. height: 96rpx;
  275. }
  276. .lqzx-img {
  277. width: 137rpx;
  278. height: 30rpx;
  279. margin: 0 8rpx 0 0;
  280. }
  281. .to-right {
  282. width: 32rpx;
  283. height: 32rpx;
  284. }
  285. // .list-box{
  286. // padding: 0 24rpx 20rpx;
  287. // }
  288. .list {
  289. padding: 32rpx 28rpx 32rpx 32rpx;
  290. }
  291. .item-img {
  292. width: 48rpx;
  293. height: 48rpx;
  294. margin: 0 20rpx 0 0;
  295. }
  296. </style>