my.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 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 class="button-item flex justify-between">
  39. <view class="align-center flex justify-between">
  40. <image style="background-color: #fff;" src="@/static/img/medical_box.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/BMI/BMI_history/BMI_history')" class="button-item flex justify-between">
  47. <view class="align-center flex justify-between">
  48. <image style="background-color: #fff;" src="@/static/img/bmi.png"></image>
  49. <text>BMI 记录</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 class="button-item flex justify-between">
  55. <view class="align-center flex justify-between">
  56. <image style="background-color: #fff;" src="@/static/img/health-tip.png"></image>
  57. <text>健康知识收藏夹</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 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. onLoad() {
  95. this.name = uni.getStorageSync("name");
  96. },
  97. onPullDownRefresh(){
  98. },
  99. data() {
  100. return {
  101. name: null,
  102. request: 1,
  103. }
  104. },
  105. methods: {
  106. to_ai(){
  107. uni.setStorageSync('ai_history', true);
  108. uni.switchTab({
  109. url: '/pages/ai/ai'
  110. })
  111. },
  112. }
  113. }
  114. </script>
  115. <style lang="less">
  116. page{
  117. background-color: #f5f5f5;
  118. }
  119. text{
  120. font-size: 18px;
  121. display: flex;
  122. justify-content: center; /* 水平居中 */
  123. align-items: center; /* 垂直居中 */
  124. }
  125. image{
  126. margin-right: 10px;
  127. width: 30px;
  128. height: 30px;
  129. background-color: #ffffff;
  130. }
  131. .content {
  132. padding: 0 10px;
  133. border-radius: 25px;
  134. border: none;
  135. background-color: #f5f5f5;
  136. }
  137. .button-group{
  138. border: none;
  139. border-radius: 15px;
  140. width: 100%;
  141. background-color: #ffffff;
  142. margin-bottom: 15px;
  143. :first-child{
  144. border-radius: 15px 15px 0% 0%;
  145. }
  146. :last-child{
  147. border-radius:0% 0% 15px 15px;
  148. }
  149. :only-child {
  150. border-radius: 15px;
  151. }
  152. }
  153. .button-item{
  154. border: 0px;
  155. height: 12vw;
  156. padding: 0 10px;
  157. background-color: #ffffff;
  158. }
  159. .button-item::after {
  160. display: none;
  161. }
  162. .button-item:active {
  163. filter: brightness(80%);
  164. opacity: 0.5;
  165. }
  166. .header{
  167. width: 10vw;
  168. height: 10vw;
  169. }
  170. .top-back{
  171. padding: 5px 20px;
  172. height: 20vw;
  173. background-color: #1678ff;
  174. color: #fff;
  175. margin-bottom: -5vh;
  176. .head-text{
  177. letter-spacing: 2px;
  178. font-size: 20px;
  179. font-weight: 500;
  180. }
  181. }
  182. </style>