mine.vue 10 KB

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