my.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <view>
  3. <view class="top-back">
  4. <view @click="$util.navigateTo('/pages/my/user_info/user_info')" class="flex justify-between">
  5. <text v-if="name" class="head-text">您好:{{name}}</text>
  6. <text v-else class="head-text">登陆/注册</text>
  7. <text class="cuIcon-right"></text>
  8. </view>
  9. </view>
  10. <view class="content margin-top">
  11. <uv-gap height="10" ></uv-gap>
  12. <view class="button-group">
  13. <button @click="$util.navigateTo('/pages/my/user_info/user_info')" class="button-item flex justify-between">
  14. <view class="align-center flex justify-between">
  15. <image style="background-color: #fff;" class="icon" src="@/static/img/user.png"></image>
  16. <text>个人资料</text>
  17. </view>
  18. <text class="cuIcon-right"></text>
  19. </button>
  20. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  21. <button @click="$util.navigateTo('/pages/my/family/family')" class="button-item flex justify-between">
  22. <view class="align-center flex justify-between">
  23. <image style="background-color: #fff;" src="@/static/img/family.png"></image>
  24. <text>家庭成员</text>
  25. </view>
  26. <text class="cuIcon-right"></text>
  27. </button>
  28. </view>
  29. <view class="button-group">
  30. <button @click="to_ai()" class="button-item flex justify-between">
  31. <view class="align-center flex justify-between">
  32. <image style="background-color: #fff;" src="@/static/img/ai.png"></image>
  33. <text>AI 问诊记录</text>
  34. </view>
  35. <text class="cuIcon-right"></text>
  36. </button>
  37. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  38. <button @click="$util.navigateTo('/pages/img_process/img_process_history/img_process_history')" class="button-item flex justify-between">
  39. <view class="align-center flex justify-between">
  40. <image style="background-color: #fff;" src="@/static/img/识别.png"></image>
  41. <text>病例识别记录</text>
  42. </view>
  43. <text class="cuIcon-right"></text>
  44. </button>
  45. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  46. <button @click="$util.navigateTo('/pages/health_tip/health_tip_collect/health_tip_collect')" class="button-item flex justify-between">
  47. <view class="align-center flex justify-between">
  48. <image style="background-color: #fff;" src="@/static/img/health-tip.png"></image>
  49. <text>健康知识收藏夹</text>
  50. </view>
  51. <text class="cuIcon-right"></text>
  52. </button>
  53. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  54. <button @click="$util.navigateTo('/pages/BMI/BMI_history/BMI_history')" class="button-item flex justify-between">
  55. <view class="align-center flex justify-between">
  56. <image style="background-color: #fff;" src="@/static/img/bmi.png"></image>
  57. <text>BMI 记录</text>
  58. </view>
  59. <text class="cuIcon-right"></text>
  60. </button>
  61. </view>
  62. <view class="button-group">
  63. <button open-type="share" class="button-item flex justify-between">
  64. <view class="align-center flex justify-between">
  65. <text style="margin:0 12px 0 3px;font-size: 25px;" class="cuIcon-share"></text>
  66. <text>分享小程序</text>
  67. </view>
  68. <text class="cuIcon-right"></text>
  69. </button>
  70. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  71. <button open-type="feedback" class="button-item flex justify-between">
  72. <view class="align-center flex justify-between">
  73. <image style="background-color: #ffffff;" src="@/static/img/feedback.png"></image>
  74. <text>问题反馈</text>
  75. </view>
  76. <text class="cuIcon-right"></text>
  77. </button>
  78. <uv-divider customStyle="margin:0px;width:92%;margin:0 auto;"></uv-divider>
  79. <button @click="$util.navigateTo('/pages/my/setting/setting')" class="button-item flex justify-between">
  80. <view class="align-center flex justify-between">
  81. <text style="margin:0 12px 0 3px;font-size: 25px;" class="cuIcon-settings"></text>
  82. <text>设置</text>
  83. </view>
  84. <text class="cuIcon-right"></text>
  85. </button>
  86. </view>
  87. <uv-gap height="30"></uv-gap>
  88. <uv-divider text="我是有底线的"></uv-divider>
  89. </view>
  90. </view>
  91. </template>
  92. <script>
  93. export default {
  94. onShow() {
  95. this.name = uni.getStorageSync("name");
  96. },
  97. onPullDownRefresh(){
  98. this.name = uni.getStorageSync("name");
  99. setTimeout(() => {uni.stopPullDownRefresh();}, 1000);
  100. },
  101. data() {
  102. return {
  103. name: null,
  104. request: 1,
  105. }
  106. },
  107. methods: {
  108. to_ai(){
  109. uni.setStorageSync('ai_history', true);
  110. uni.switchTab({
  111. url: '/pages/ai/ai'
  112. })
  113. },
  114. }
  115. }
  116. </script>
  117. <style lang="less">
  118. page{
  119. background-color: #f5f5f5;
  120. }
  121. text{
  122. font-size: 18px;
  123. display: flex;
  124. justify-content: center; /* 水平居中 */
  125. align-items: center; /* 垂直居中 */
  126. }
  127. image{
  128. margin-right: 10px;
  129. width: 30px;
  130. height: 30px;
  131. background-color: #ffffff;
  132. }
  133. .content {
  134. padding: 0 10px;
  135. border-radius: 25px;
  136. border: none;
  137. background-color: #f5f5f5;
  138. }
  139. .button-group{
  140. border: none;
  141. border-radius: 15px;
  142. width: 100%;
  143. background-color: #ffffff;
  144. margin-bottom: 15px;
  145. :first-child{
  146. border-radius: 15px 15px 0% 0%;
  147. }
  148. :last-child{
  149. border-radius:0% 0% 15px 15px;
  150. }
  151. :only-child {
  152. border-radius: 15px;
  153. }
  154. }
  155. .button-item{
  156. border: 0px;
  157. height: 12vw;
  158. padding: 0 10px;
  159. background-color: #ffffff;
  160. }
  161. .button-item::after {
  162. display: none;
  163. }
  164. .button-item:active {
  165. filter: brightness(80%);
  166. opacity: 0.5;
  167. }
  168. .header{
  169. width: 10vw;
  170. height: 10vw;
  171. }
  172. .top-back{
  173. padding: 5px 20px;
  174. height: 20vw;
  175. background-color: #1678ff;
  176. color: #fff;
  177. margin-bottom: -5vh;
  178. .head-text{
  179. letter-spacing: 2px;
  180. font-size: 20px;
  181. font-weight: 500;
  182. }
  183. }
  184. </style>