index.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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(7)">
  72. <view class="item-left align-items-center">
  73. <image class="item-img" src="@/static/img/my/lxkf.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(8)">
  83. <view class="item-left align-items-center">
  84. <image class="item-img" src="@/static/img/my/swhz.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(9)">
  94. <view class="item-left align-items-center">
  95. <image class="item-img" src="@/static/img/my/qszp.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(10)">
  105. <view class="item-left align-items-center">
  106. <image class="item-img" src="@/static/img/my/wtfk.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" @click="goToUrl(11)">
  116. <view class="item-left align-items-center">
  117. <image class="item-img" src="@/static/img/my/gywm.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>
  127. </view>
  128. </scroll-view>
  129. <view class="p-b-20 b-rad-20"></view>
  130. </view>
  131. </template>
  132. <script>
  133. export default {
  134. components: {},
  135. data() {
  136. return {
  137. name: '仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...',
  138. newsNum: 24
  139. };
  140. },
  141. onLoad(data) {},
  142. mounted() {},
  143. methods: {
  144. scrolltolower() {
  145. console.log('触底');
  146. },
  147. goToUrl(type) {
  148. if (type == 0) {
  149. // 修改个人信息
  150. uni.navigateTo({
  151. url: '/pages-my/user-info'
  152. })
  153. } else if (type == 1) {
  154. // 我的卡券
  155. uni.navigateTo({
  156. url: '/pages-my/my-ticket'
  157. })
  158. } else if (type == 2) {
  159. // 我的发布
  160. } else if (type == 3) {
  161. // 我的评价
  162. uni.navigateTo({
  163. url:'/pages-my/my-appraise'
  164. })
  165. } else if (type == 4) {
  166. // 地址管理
  167. } else if (type == 5) {
  168. // 领券中心
  169. uni.navigateTo({
  170. url:'/pages-my/ticket-centre'
  171. })
  172. } else if (type == 6) {
  173. // 消息中心
  174. } else if (type == 7) {
  175. // 联系客服
  176. } else if (type == 8) {
  177. // 商务合作
  178. } else if (type == 9) {
  179. // 骑手招聘
  180. } else if (type == 10) {
  181. // 问题反馈
  182. } else if (type == 11) {
  183. // 关于我们
  184. }
  185. }
  186. },
  187. }
  188. </script>
  189. <style lang="scss" scoped>
  190. .my-box {}
  191. .bg-box {
  192. width: 100%;
  193. height: 476rpx;
  194. position: fixed;
  195. top: 0;
  196. z-index: -1;
  197. }
  198. .user-img-box {
  199. width: 112rpx;
  200. height: 112rpx;
  201. position: relative;
  202. }
  203. .user-box {
  204. padding: 54rpx 32rpx;
  205. }
  206. .user-img {
  207. width: 100%;
  208. height: 100%;
  209. }
  210. .set-iimg {
  211. position: absolute;
  212. right: 4rpx;
  213. bottom: 0;
  214. width: 33rpx;
  215. height: 33rpx;
  216. }
  217. .user-name {
  218. max-width: 388rpx;
  219. }
  220. .function-one-box {
  221. padding: 0 24rpx;
  222. }
  223. .function-one {
  224. padding: 24rpx 34rpx;
  225. }
  226. .function-two {
  227. padding: 22rpx 40rpx 22rpx 32rpx;
  228. background: linear-gradient(90deg, #FFFFFF 47%, #FFF7E5 100%);
  229. }
  230. .my-img {
  231. width: 80rpx;
  232. height: 80rpx;
  233. margin: 0 0 8rpx 0;
  234. }
  235. .function-two-right {
  236. width: 96rpx;
  237. height: 96rpx;
  238. }
  239. .lqzx-img {
  240. width: 137rpx;
  241. height: 30rpx;
  242. margin: 0 8rpx 0 0;
  243. }
  244. .to-right {
  245. width: 32rpx;
  246. height: 32rpx;
  247. }
  248. // .list-box{
  249. // padding: 0 24rpx 20rpx;
  250. // }
  251. .list {
  252. padding: 32rpx 28rpx 32rpx 32rpx;
  253. }
  254. .item-img {
  255. width: 48rpx;
  256. height: 48rpx;
  257. margin: 0 20rpx 0 0;
  258. }
  259. </style>