index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <mobile-frame :frameStyle="frameStyle" @toPath="toPath">
  3. <view class="main">
  4. <view class="one">
  5. <view class="one_1">
  6. <text class="iconfont icon-geren2" @click="toOrrder('logo')"></text>
  7. <view class="name">未登录</view>
  8. </view>
  9. <view class="one_2">
  10. <text @click="toOrrder('收藏的商品')">收藏的商品</text>
  11. <text class="link">|</text>
  12. <text @click="toOrrder('收藏的店铺')">收藏的店铺</text>
  13. </view>
  14. </view>
  15. <view class="two">
  16. <view class="two_1">
  17. <view class="title">我的订单</view>
  18. <view class="title">
  19. <text @click="toOrrder('我的订单')">全部订单</text>
  20. <text class="iconfont icon-dayufuhao"></text>
  21. </view>
  22. </view>
  23. <view class="two_2">
  24. <view class="orderList" v-for="(item, index) in orderList" :key="index"
  25. @click="toOrrder(item.type)">
  26. <view class="icon">
  27. <text class="iconfont" :class="[item.icon]"></text>
  28. </view>
  29. <text class="title">{{item.title}}</text>
  30. </view>
  31. </view>
  32. <view class="two_1" v-for="(item, index) in menuList" :key="index" @click="toOrrder(item.type)">
  33. <view class="title">{{item.title}}</view>
  34. <view class="title">
  35. <text class="iconfont icon-dayufuhao"></text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </mobile-frame>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. frameStyle: {
  47. useBar: true
  48. },
  49. form: {},
  50. // 图标菜单
  51. orderList: [{
  52. icon: 'icon-daifukuan',
  53. title: '待付款',
  54. type: 'a'
  55. },
  56. {
  57. icon: 'icon-daifahuo',
  58. title: '待发货',
  59. type: 'b'
  60. },
  61. {
  62. icon: 'icon-daishouhuo',
  63. title: '待收货/消费',
  64. type: 'c'
  65. },
  66. {
  67. icon: 'icon-daipinglun',
  68. title: '待评论',
  69. type: 'd'
  70. },
  71. {
  72. icon: 'icon-shouhoufuwuicon',
  73. title: '售后',
  74. type: 'e'
  75. },
  76. ],
  77. // 菜单
  78. menuList: [{
  79. title: '我的优惠劵',
  80. type: 'f'
  81. },
  82. {
  83. title: '我的积分',
  84. type: 'g'
  85. },
  86. {
  87. title: '我的资产',
  88. type: 'h'
  89. },
  90. {
  91. title: '我的拼团',
  92. type: 'i'
  93. },
  94. {
  95. title: '我的收货地址',
  96. type: 'j'
  97. },
  98. {
  99. title: '账号管理',
  100. type: 'k'
  101. },
  102. {
  103. title: '客服电话',
  104. type: 'l'
  105. },
  106. ],
  107. };
  108. },
  109. onShow: function() {},
  110. methods: {
  111. toPath(e) {
  112. if (e && e.route) uni.redirectTo({
  113. url: `/${e.route}`
  114. })
  115. },
  116. // 跳转页面
  117. toOrrder(e) {
  118. const that = this;
  119. console.log(e);
  120. },
  121. }
  122. }
  123. </script>
  124. <style lang="scss">
  125. .main {
  126. display: flex;
  127. flex-direction: column;
  128. width: 100vw;
  129. height: 100vh;
  130. .one {
  131. text-align: center;
  132. padding: 4vw 0;
  133. background-color: #FB1438;
  134. color: var(--mainColor);
  135. .one_1 {
  136. margin: 0 0 5vw 0;
  137. .iconfont {
  138. font-size: 80px;
  139. }
  140. .name {
  141. margin: 2vw 0;
  142. font-size: var(--font20Szie);
  143. }
  144. }
  145. .one_2 {
  146. display: flex;
  147. flex-direction: row;
  148. justify-content: space-around;
  149. font-size: var(--font18Szie);
  150. .link {
  151. font-weight: bold;
  152. }
  153. }
  154. }
  155. .two {
  156. background-color: var(--f1Color);
  157. .two_1 {
  158. display: flex;
  159. justify-content: space-between;
  160. padding: 4vw;
  161. background-color: var(--mainColor);
  162. margin: 0 0 0.1vw 0;
  163. .title {
  164. font-size: var(--font18Szie);
  165. }
  166. .title:last-child {
  167. color: var(--f85Color);
  168. font-size: var(--font16Szie);
  169. }
  170. }
  171. .two_2 {
  172. display: flex;
  173. justify-content: space-between;
  174. padding: 5vw;
  175. background-color: var(--mainColor);
  176. margin: 0 0 0.1vw 0;
  177. .orderList {
  178. text-align: center;
  179. .icon {
  180. .iconfont {
  181. font-size: 25px;
  182. }
  183. }
  184. .title {
  185. display: inline-block;
  186. margin: 2vw 0 0 0;
  187. font-size: var(--font16Szie);
  188. }
  189. }
  190. }
  191. }
  192. }
  193. </style>