my.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!-- 个人中心 -->
  2. <template>
  3. <view class="wrap">
  4. <view class="head">
  5. <image :src="isLogin ? '../../static/img-4.png' : '../../static/avatar.png'" class="avatar"
  6. mode="aspectFill"></image>
  7. <view class="head-sidebar">
  8. <view class="head-sidebar-top">
  9. <view class="my-name" v-if="isLogin">真的灰常郝</view>
  10. <view class="my-name" v-if="!isLogin"><text @tap="login">登录</text>/<text @tap="register">注册</text></view>
  11. <view class="head-btn-box">
  12. <button type="default" @tap="message">
  13. <image src="../../static/my-head1.png" mode=""></image>
  14. </button>
  15. <button type="default" @tap="setUp">
  16. <image src="../../static/my-head2.png" mode=""></image>
  17. </button>
  18. </view>
  19. </view>
  20. <view class="my-tag" @tap="hah">
  21. <image src="../../static/grade.png" mode=""></image>
  22. 大众会员
  23. </view>
  24. </view>
  25. </view>
  26. <view class="content-box">
  27. <view class="card">
  28. <view class="card-top">
  29. <view class="card-top-item" @tap="myFans">
  30. 我的粉丝<text>28</text>
  31. </view>
  32. <view class="card-top-item" @tap="myCommission">
  33. 我的佣金<text>5600</text>
  34. </view>
  35. </view>
  36. <view class="card-bottom">
  37. <view class="card-bottom-item" @tap="myCollection">
  38. <text>15</text>
  39. <text>收藏</text>
  40. </view>
  41. <view class="card-bottom-item" @tap="browseHistory">
  42. <text>15</text>
  43. <text>浏览记录</text>
  44. </view>
  45. <view class="card-bottom-item" @tap="integral">
  46. <text>15</text>
  47. <text>积分</text>
  48. </view>
  49. <view class="card-bottom-item" @tap="coupon">
  50. <text>15</text>
  51. <text>卡券</text>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="my-module">
  56. <view class="my-top">
  57. <text class="my-top-name">我的订单</text>
  58. <view class="all-btn" @tap="myOrder">
  59. 查看全部订单
  60. <image src="../../static/back-icon2.png" mode="widthFix"></image>
  61. </view>
  62. </view>
  63. <view class="my-order-list">
  64. <view class="my-order-item">
  65. <image src="../../static/my-menu1.png" class="my-order-item-img" mode=""></image>
  66. 待付款
  67. <view class="num">6</view>
  68. </view>
  69. <view class="my-order-item">
  70. <image src="../../static/my-menu2.png" class="my-order-item-img" mode=""></image>
  71. 待发货
  72. <view class="num">6</view>
  73. </view>
  74. <view class="my-order-item">
  75. <image src="../../static/my-menu3.png" class="my-order-item-img" mode=""></image>
  76. 待收货
  77. </view>
  78. <view class="my-order-item">
  79. <image src="../../static/my-menu4.png" class="my-order-item-img" mode=""></image>
  80. 待评价
  81. <view class="num">6</view>
  82. </view>
  83. <view class="my-order-item">
  84. <image src="../../static/my-menu5.png" class="my-order-item-img" mode=""></image>
  85. 售后
  86. </view>
  87. </view>
  88. </view>
  89. <view class="my-module">
  90. <view class="my-top">
  91. <text class="my-top-name">常用功能</text>
  92. </view>
  93. <view class="my-nav-list">
  94. <view class="my-nav-item">
  95. <image src="../../static/my-nav1.png" class="my-nav-item-img" mode=""></image>
  96. 携手合伙人
  97. </view>
  98. <view class="my-nav-item" @tap="signInAward">
  99. <image src="../../static/my-nav2.png" class="my-nav-item-img" mode=""></image>
  100. 签到奖励
  101. </view>
  102. <view class="my-nav-item" @tap="myCommission">
  103. <image src="../../static/my-nav3.png" class="my-nav-item-img" mode=""></image>
  104. 我的分销
  105. </view>
  106. <view class="my-nav-item">
  107. <image src="../../static/my-nav4.png" class="my-nav-item-img" mode=""></image>
  108. 产品溯源
  109. </view>
  110. <view class="my-nav-item" @tap="myAppointment">
  111. <image src="../../static/my-nav5.png" class="my-nav-item-img" mode=""></image>
  112. 我的预约
  113. </view>
  114. <view class="my-nav-item" @tap="feedback">
  115. <image src="../../static/my-nav6.png" class="my-nav-item-img" mode=""></image>
  116. 意见反馈
  117. </view>
  118. <view class="my-nav-item" @tap="onlineService">
  119. <image src="../../static/my-nav7.png" class="my-nav-item-img" mode=""></image>
  120. 在线客服
  121. </view>
  122. <view class="my-nav-item" @tap="informationMaterial">
  123. <image src="../../static/my-nav8.png" class="my-nav-item-img" mode=""></image>
  124. 资讯素材
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <!-- 底部tabbar组件 -->
  130. <tab-bar :current="4"></tab-bar>
  131. </view>
  132. </template>
  133. <script>
  134. export default {
  135. data() {
  136. return {
  137. //是否登录
  138. isLogin: false
  139. }
  140. },
  141. methods: {
  142. //跳转消息
  143. message() {
  144. uni.navigateTo({
  145. url: 'message/message'
  146. })
  147. },
  148. //跳转设置
  149. setUp() {
  150. uni.navigateTo({
  151. url: 'set-up/set-up'
  152. })
  153. },
  154. //跳转我的粉丝
  155. myFans() {
  156. uni.navigateTo({
  157. url: 'my-fans/my-fans'
  158. })
  159. },
  160. //跳转我的佣金
  161. myCommission() {
  162. uni.navigateTo({
  163. url: 'my-commission/my-commission'
  164. })
  165. },
  166. //跳转收藏
  167. myCollection() {
  168. uni.navigateTo({
  169. url: 'my-collection/my-collection'
  170. })
  171. },
  172. //跳转浏览记录
  173. browseHistory() {
  174. uni.navigateTo({
  175. url: 'browse-history/browse-history'
  176. })
  177. },
  178. //跳转积分
  179. integral() {
  180. uni.navigateTo({
  181. url: 'integral/integral'
  182. })
  183. },
  184. //跳转卡券
  185. coupon() {
  186. uni.navigateTo({
  187. url: 'coupon/coupon'
  188. })
  189. },
  190. //跳转我的分销
  191. myCommission() {
  192. uni.navigateTo({
  193. url: 'my-commission/my-commission'
  194. })
  195. },
  196. //跳转我的预约
  197. myAppointment() {
  198. uni.navigateTo({
  199. url: 'my-appointment/my-appointment'
  200. })
  201. },
  202. //跳转意见反馈
  203. feedback() {
  204. uni.navigateTo({
  205. url: 'feedback/feedback'
  206. })
  207. },
  208. //跳转咨询素材
  209. informationMaterial() {
  210. uni.navigateTo({
  211. url: 'information-material/information-material'
  212. })
  213. },
  214. //跳转签到奖励
  215. signInAward() {
  216. uni.navigateTo({
  217. url: 'sign-in-award/sign-in-award'
  218. })
  219. },
  220. //跳转在线客服
  221. onlineService() {
  222. uni.navigateTo({
  223. url: 'online-service/online-service'
  224. })
  225. },
  226. //跳转我的订单
  227. myOrder() {
  228. uni.navigateTo({
  229. url: '../my-order/my-order'
  230. })
  231. },
  232. //跳转登录
  233. login() {
  234. uni.navigateTo({
  235. url: '../login/login'
  236. })
  237. },
  238. //跳转注册
  239. register() {
  240. uni.navigateTo({
  241. url: '../login/register/register'
  242. })
  243. },
  244. }
  245. }
  246. </script>
  247. <style scoped lang="scss">
  248. @import "./my.css";
  249. </style>