mine.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <template>
  2. <view class="page">
  3. <navbarLine :hasPlacer="false" bgColor="transparent"><view class="pageTitle">我的</view></navbarLine>
  4. <view class="p-header flex-col">
  5. <view class="flex-col section_1">
  6. <!-- -->
  7. <view class="flex-row group_2">
  8. <image src="/static/temp/avatar.png" class="image" />
  9. <view class="flex-col items-start group_3">
  10. <text class="nick clamp">向阳而生</text>
  11. <text class="mobile">159****9172</text>
  12. <view class="group_4">
  13. <text class="txt">累计减碳</text>
  14. <text class="txt active">1520</text>
  15. <text class="txt">克,已累计帮助捐赠</text>
  16. <text class="txt active">¥1.50</text>
  17. <text class="txt">来帮助食物浪费</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="flex-row equal-division">
  23. <view class="flex-col items-start equal-division-item">
  24. <text class="text_8">账户余额(元)</text>
  25. <text class="text_9 clamp">387.50</text>
  26. <view class="flex-col items-center text-wrapper"><text class="text_10">充值</text></view>
  27. </view>
  28. <view class="flex-col items-start equal-division-item_1">
  29. <text class="text_11">可用券</text>
  30. <text class="text_12 clamp">3</text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="p-content flex-col">
  35. <text class="title">会员服务</text>
  36. <view class="flex-row content-topwrap">
  37. <view class="flex-col items-center equal-division-item_2 group_5">
  38. <image src="/static/m-addr.png" class="image_1" />
  39. <text class="text_14">我的收藏</text>
  40. </view>
  41. <view class="flex-col items-center equal-division-item_2" @tap="navTo('/pages/address/address')">
  42. <image src="/static/m-addr.png" class="image_1" />
  43. <text class="text_14">收货地址</text>
  44. </view>
  45. <view class="flex-col items-center equal-division-item_2">
  46. <image src="/static/m-eva.png" class="image_1" />
  47. <text class="text_14">我的评价</text>
  48. </view>
  49. <view class="flex-col items-center equal-division-item_2">
  50. <image src="/static/m-shops.png" class="image_1" />
  51. <text class="text_14">商家入驻</text>
  52. </view>
  53. </view>
  54. <text class="text_19">其他服务</text>
  55. <view class="flex-row content-bomwrap">
  56. <view class="flex-col items-center equal-division-item_3" @tap="showShare">
  57. <image src="/static/m-wx.png" class="image_1" />
  58. <text class="text_20">关注公众号</text>
  59. </view>
  60. <view class="flex-col items-center equal-division-item_3">
  61. <image src="/static/m-kefu.png" class="image_1" />
  62. <text class="text_20">联系客服</text>
  63. </view>
  64. <view class="flex-col items-center equal-division-item_3">
  65. <image src="/static/m-feedback.png" class="image_1" />
  66. <text class="text_20">意见反馈</text>
  67. </view>
  68. </view>
  69. </view>
  70. <popup ref="shareRef">
  71. <view class="share-panel flex-col align-center">
  72. <image src="/static/temp/my-wx.png" mode="widthFix" class="img"></image>
  73. <text class="zicon zicon-quxiao1 ic" @tap="hideShare"></text>
  74. </view>
  75. </popup>
  76. <image src="/static/mine-bomimg.png" mode="aspectFill" class="bomimg"></image>
  77. </view>
  78. </template>
  79. <script>
  80. import navbarLine from '@/components/navbar-line.vue';
  81. export default {
  82. components: {
  83. navbarLine
  84. },
  85. data() {
  86. return {};
  87. },
  88. methods:{
  89. showShare(){
  90. this.$refs.shareRef.show();
  91. },
  92. hideShare(){
  93. this.$refs.shareRef.hide();
  94. }
  95. }
  96. };
  97. </script>
  98. <style lang="scss">
  99. page {
  100. background-color: #fff;
  101. }
  102. .pageTitle {
  103. position: absolute;
  104. left: 50%;
  105. top: 50%;
  106. transform: translate(-50%, -50%);
  107. color: #ffffff;
  108. font-size: 34rpx;
  109. font-family: PingFang;
  110. }
  111. .p-header {
  112. padding-bottom: 40rpx;
  113. height: 518rpx;
  114. .section_1 {
  115. padding: 76rpx 43rpx 151rpx;
  116. background-image: url('/static/mine-bg.png');
  117. background-size: 100% 100%;
  118. background-repeat: no-repeat;
  119. }
  120. .group_2 {
  121. margin-top: 48rpx;
  122. }
  123. .image {
  124. flex-shrink: 0;
  125. width: 96rpx;
  126. height: 96rpx;
  127. }
  128. .group_3 {
  129. margin-left: 18rpx;
  130. margin-right: 40rpx;
  131. flex: 1 1 auto;
  132. }
  133. .nick {
  134. color: #ffffff;
  135. font-size: 32rpx;
  136. font-family: PingFang;
  137. letter-spacing: 1.28rpx;
  138. max-width: 512rpx;
  139. }
  140. .mobile {
  141. margin-top: 15rpx;
  142. color: #ffffff;
  143. font-size: 24rpx;
  144. font-family: PingFang;
  145. }
  146. .group_4 {
  147. margin-top: 12rpx;
  148. .txt {
  149. color: #ffffff;
  150. font-size: 20rpx;
  151. font-family: PingFang;
  152. &.active {
  153. font-weight: 700;
  154. }
  155. }
  156. }
  157. .equal-division {
  158. margin: -76rpx 30rpx 0;
  159. position: relative;
  160. }
  161. .equal-division-item {
  162. padding: 24rpx 25rpx 36rpx;
  163. flex: 1 1 335rpx;
  164. background-color: #ffffff;
  165. box-shadow: 0px 4rpx 18.4rpx 1.6rpx #2a2a2a1a;
  166. border-radius: 16rpx;
  167. position: relative;
  168. }
  169. .text_8 {
  170. color: #333333;
  171. font-size: 28rpx;
  172. font-family: PingFang;
  173. letter-spacing: 1.12rpx;
  174. }
  175. .text_9 {
  176. margin-top: 33rpx;
  177. color: #333333;
  178. font-size: 40rpx;
  179. font-family: PingFang;
  180. letter-spacing: 1.6rpx;
  181. max-width: 196rpx;
  182. }
  183. .text-wrapper {
  184. padding: 11rpx 0 14rpx;
  185. border-radius: 25rpx;
  186. width: 88rpx;
  187. position: absolute;
  188. right: 24rpx;
  189. top: 76rpx;
  190. border: solid 1rpx #92b99c;
  191. }
  192. .text_10 {
  193. color: #92b99c;
  194. font-size: 24rpx;
  195. font-family: PingFang;
  196. }
  197. .equal-division-item_1 {
  198. margin-left: 20rpx;
  199. padding: 23rpx 25rpx 36rpx;
  200. flex: 1 1 335rpx;
  201. background-color: #ffffff;
  202. box-shadow: 0px 4rpx 18.4rpx 1.6rpx #2a2a2a1a;
  203. border-radius: 16rpx;
  204. // height: 150rpx;
  205. }
  206. .text_11 {
  207. color: #333333;
  208. font-size: 28rpx;
  209. font-family: PingFang;
  210. letter-spacing: 1.12rpx;
  211. }
  212. .text_12 {
  213. margin-left: 4rpx;
  214. margin-top: 34rpx;
  215. color: #333333;
  216. font-size: 40rpx;
  217. font-family: PingFang;
  218. letter-spacing: 1.6rpx;
  219. max-width: 196rpx;
  220. }
  221. }
  222. .p-content {
  223. margin: 30rpx 30rpx 0;
  224. padding: 40rpx 0 50rpx;
  225. background-color: #ffffff;
  226. box-shadow: 0px 4rpx 18.4rpx 1.6rpx #2a2a2a1a;
  227. border-radius: 16rpx;
  228. .title {
  229. margin-left: 24rpx;
  230. align-self: flex-start;
  231. color: #333333;
  232. font-size: 34rpx;
  233. font-family: PingFang;
  234. letter-spacing: 1.36rpx;
  235. }
  236. .content-topwrap {
  237. margin-top: 50rpx;
  238. padding: 0 20rpx;
  239. }
  240. .equal-division-item_2 {
  241. margin-left: 14rpx;
  242. flex: 1 1 162rpx;
  243. padding: 9.5rpx 0 10rpx;
  244. }
  245. .group_5 {
  246. margin-left: 0;
  247. }
  248. .image_1 {
  249. width: 48rpx;
  250. height: 48rpx;
  251. }
  252. .text_14 {
  253. margin-top: 22.5rpx;
  254. color: #999999;
  255. font-size: 24rpx;
  256. font-family: PingFang;
  257. line-height: 23rpx;
  258. }
  259. .text_19 {
  260. margin-left: 25rpx;
  261. margin-top: 70rpx;
  262. align-self: flex-start;
  263. color: #333333;
  264. font-size: 34rpx;
  265. font-family: PingFang;
  266. line-height: 32rpx;
  267. letter-spacing: 1.36rpx;
  268. }
  269. .content-bomwrap {
  270. margin-left: 14.5rpx;
  271. margin-top: 50rpx;
  272. align-self: flex-start;
  273. }
  274. .equal-division-item_3 {
  275. flex: 1 1 162rpx;
  276. padding: 9rpx 0 10rpx;
  277. width: 162rpx;
  278. }
  279. .text_20 {
  280. margin-top: 24rpx;
  281. color: #999999;
  282. font-size: 24rpx;
  283. font-family: PingFang;
  284. line-height: 23rpx;
  285. }
  286. }
  287. .share-panel{
  288. .img{
  289. width: 600rpx;
  290. height: 679rpx;
  291. border-radius: 20rpx;
  292. }
  293. .ic{
  294. margin: 30rpx auto 0;
  295. color:#000;
  296. font-size: 46rpx;
  297. }
  298. }
  299. .bomimg{
  300. width: 244rpx;
  301. height: 86rpx;
  302. margin: 100rpx auto 30rpx;
  303. }
  304. </style>