mine.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="main">
  3. <view class="pr">
  4. <view class="header-content">
  5. <image src="http://file.supermm.me/miniProgram/images/personal/bg.png" style="width:100%;height:260rpx;"></image>
  6. </view>
  7. <view class="pr" style="z-index:2">
  8. <view class="plr15">
  9. <view class="bdr4 pb20">
  10. <view class="m-dpflex m-justify-start m-align-center" style="height: 165rpx;">
  11. <image binderror="_binderror" mode="scaleToFill" src="https://ossweb-img.qq.com/images/lol/web201310/skin/big84000.jpg"
  12. style="width: 120rpx;height: 120rpx;border-radius: 50%;"></image>
  13. <text class="line1 f20 fb plr15 text-white">落雨桐</text>
  14. <navigator hoverClass="none">
  15. <image class="header-img" src="http://file.supermm.me/miniProgram/images/personal/edit.png"></image>
  16. </navigator>
  17. <view class="pr tr m-flex">
  18. <view class="tip msg" v-if="true"></view>
  19. <navigator hoverClass="none">
  20. <image class="header-img" src="http://file.supermm.me/miniProgram/images/personal/info.png"></image>
  21. </navigator>
  22. </view>
  23. </view>
  24. <view class="pr m-xcenter plr20 header-box" style="padding: 40rpx 40rpx;background-color: #fff;border-radius: 16rpx;">
  25. <navigator class="m-flex tl f14 m-ycenter dpb" hoverClass="none">
  26. <view class="m-gray-big f20 fb pr10">0</view>
  27. <view class="m-gray-letter mt5 f12">代币(个)</view>
  28. </navigator>
  29. <view bindtap="" class="m-flex tl f14 m-ycenter">
  30. <view class="m-gray-big f20 fb">0</view>
  31. <view class="m-gray-letter mt5 f12">优惠券(张)</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="fb f18 plr20">我的订单</view>
  38. <view class="margin-lr-sm m-dpflex m-justify-start m-align-center overflow bg-white margin-top-sm" style="padding-top: 40rpx;padding-bottom: 40rpx;border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
  39. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  40. <image style="width: 76rpx;height: 76rpx;" src="http://file.supermm.me/miniProgram/images/personal/menu_1.png"
  41. mode=""></image>
  42. <view class="tip"></view>
  43. <view class="f14 m-gray-small mt10 line1">我的咨询</view>
  44. </navigator>
  45. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  46. <image style="width: 76rpx;height: 76rpx;" src="http://file.supermm.me/miniProgram/images/personal/menu_2.png"
  47. mode=""></image>
  48. <view class="tip"></view>
  49. <view class="f14 m-gray-small mt10 line1">我的预约</view>
  50. </navigator>
  51. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  52. <image style="width: 76rpx;height: 76rpx;" src="http://file.supermm.me/miniProgram/images/personal/menu_3.png"
  53. mode=""></image>
  54. <view class="tip"></view>
  55. <view class="f14 m-gray-small mt10 line1">我的意见单</view>
  56. </navigator>
  57. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  58. <image style="width: 76rpx;height: 76rpx;" src="http://file.supermm.me/miniProgram/images/personal/menu_4.png"
  59. mode=""></image>
  60. <view class="tip"></view>
  61. <view class="f14 m-gray-small mt10 line1">服务包订单</view>
  62. </navigator>
  63. </view>
  64. <navigator class="pr m-xcenter plr20 pt20" hoverClass="none">
  65. <view class="fb f18 pr m-flex tl">健康档案</view>
  66. <view class="pr m-gray-small">档案列表</view>
  67. <label class="m-gray-letter iconfont icon-arrow-right f18 dpb"></label>
  68. </navigator>
  69. <view class="mt20 pr pb40" style="margin-left: 20rpx;margin-right: 20rpx;">
  70. <swiper duration="500" @change="swiperChange" :current="itemcurrent" interval="5000" style="height:380rpx;" class="swiper-box">
  71. <swiper-item class="swiper-wrapper" style="" v-for="(item,index) in 4" :key="index">
  72. <view class="bg-white" style="border-radius: 16rpx;height: 100%;">
  73. <navigator class="m-ycenter pt40" hoverClass="none" url="" v-if="false">
  74. <view class="bdr30 m-theme br-theme tc plr20 pt8 pb8 f14 width40">新增健康档案</view>
  75. <view class="pt20 f12 m-gray-letter">点击添加新的健康档案</view>
  76. </navigator>
  77. <view @click="_goInfo" v-if="true" style="height: 100%;" v-else>
  78. <view class="fb f18 pt20 margin-left">落雨桐</view>
  79. <view class="f14 m-gray-letter pt10 margin-left">年龄:<text class="text-black">{{18}}岁</text></view>
  80. <view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30 pt30" style="margin-top:60rpx;border-top: 2rpx solid rgb(248,248,248);">
  81. <view class="width33 m-ycenter overflow pr">
  82. <view class="fb f18">{{1}}</view>
  83. <view class="f12 m-gray-small mt6 line1">病例信息</view>
  84. </view>
  85. <view class="width33 m-ycenter overflow pr">
  86. <view class="fb f18">{{3}}</view>
  87. <view class="f12 m-gray-small mt6 line1">就诊记录</view>
  88. </view>
  89. <view class="width33 m-ycenter overflow pr">
  90. <view class="fb f18">{{2}}</view>
  91. <view class="f12 m-gray-small mt6 line1">个人资料</view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </swiper-item>
  97. </swiper>
  98. <view class="dots">
  99. <view :class="index==itemcurrent?'dot active':'dot'" v-for="(item,index) in 4" :key="index"></view>
  100. </view>
  101. </view>
  102. <view class="fb f18 plr20 pt40">常用工具</view>
  103. <view class="bg-white margin-lr-sm margin-top-sm" style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
  104. <view class="plr10 m-dpflex m-justify-start m-align-center overflow pt30 pb30">
  105. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  106. <image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_1.png"></image>
  107. <view class="f14 m-gray-small mt10 line1">家庭医生</view>
  108. </navigator>
  109. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  110. <image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_2.png"></image>
  111. <view class="f14 m-gray-small mt10 line1">我的关注</view>
  112. </navigator>
  113. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  114. <image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
  115. <view class="f14 m-gray-small mt10 line1">收藏文章</view>
  116. </navigator>
  117. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  118. <image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
  119. <view class="tip"></view>
  120. <view class="f14 m-gray-small mt10 line1">我的保单</view>
  121. </navigator>
  122. </view>
  123. <view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30">
  124. <navigator class="width25 m-ycenter overflow pr" hoverClass="none">
  125. <image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_5.png"></image>
  126. <view class="f14 m-gray-small mt10 line1">帮助反馈</view>
  127. </navigator>
  128. <view bindtap="" class="width25 m-ycenter overflow pr">
  129. <image style="width: 42rpx;height: 42rpx;" src="https://file.supermm.me/h5/wechat-h5/personal/kf.png"></image>
  130. <view class="f14 m-gray-small mt10 line1">客服咨询</view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="cu-tabbar-height"></view>
  136. <view class="cu-tabbar-height"></view>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. onLoad(options) {
  142. },
  143. mounted() {
  144. this.getUserInfo()
  145. },
  146. data() {
  147. return {
  148. itemcurrent: 0
  149. }
  150. },
  151. methods: {
  152. swiperChange(e) {
  153. this.itemcurrent = e.detail.current
  154. },
  155. getUserInfo: async function() {
  156. let res = await this.$request.post('/api/v1/user/userInfo')
  157. console.log(res)
  158. }
  159. }
  160. };
  161. </script>
  162. <style scoped>
  163. @import url("./mine.css");
  164. .header-content {
  165. position: absolute;
  166. top: 0;
  167. right: 0;
  168. bottom: 0;
  169. left: 0;
  170. width: 100%;
  171. z-index: -1;
  172. overflow: hidden;
  173. box-sizing: border-box;
  174. }
  175. .header-box {
  176. box-shadow: 0px 8rpx 34rpx -6rpx rgba(248, 151, 164, 0.13);
  177. }
  178. .header-img {
  179. width: 36rpx;
  180. height: 36rpx;
  181. }
  182. .tip {
  183. position: absolute;
  184. top: 0;
  185. right: 20%;
  186. bottom: 0;
  187. background-color: red;
  188. width: 12rpx;
  189. height: 12rpx;
  190. border-radius: 50%;
  191. }
  192. .msg {
  193. top: -3rpx;
  194. right: -9rpx;
  195. }
  196. swiper {
  197. height: 320rpx;
  198. }
  199. .swiper-wrapper {
  200. padding: 0 10rpx;
  201. box-sizing: border-box;
  202. }
  203. .swiper-item {
  204. width: 100%;
  205. height: 300rpx;
  206. box-shadow: 0 26rpx 40rpx 0 rgba(255, 255, 255, 0.31);
  207. background: url("http://file.supermm.me/miniProgram/images/personal/bg_doc.png") no-repeat bottom center;
  208. }
  209. .dots {
  210. position: absolute;
  211. left: 0;
  212. right: 0;
  213. bottom: -40rpx;
  214. display: flex;
  215. justify-content: center;
  216. }
  217. .dots .dot {
  218. margin: 0 8rpx;
  219. width: 14rpx;
  220. height: 14rpx;
  221. background: #E4E4E4;
  222. border-radius: 8rpx;
  223. transition: all .6s;
  224. }
  225. .dots .dot.active {
  226. width: 24rpx;
  227. background: rgb(153, 153, 153);
  228. }
  229. .game-wrap {
  230. position: relative;
  231. width: 100%;
  232. height: 100%;
  233. overflow: hidden;
  234. box-sizing: border-box;
  235. }
  236. .game-item {
  237. height: 100%;
  238. background: url("https://file.supermm.me/h5/wechat-h5/integral/personeBg001.jpg") no-repeat;
  239. background-size: 100% 100%;
  240. background-position: center center;
  241. border-radius: 100rpx;
  242. }
  243. </style>