You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

293 lines
5.5 KiB

  1. <template>
  2. <view class="main">
  3. <view class="top">
  4. <view class="bell">
  5. <image class="image-bell" src="/static/my/铃铛2.png"></image>
  6. </view>
  7. <view class="msg">
  8. <view class="msg-left">
  9. <view class="avatar"></view>
  10. </view>
  11. <view class="msg-center">
  12. <view style="display: flex;">
  13. <view class="userInfo">{{ username }}</view>
  14. <image class="image-editName" src="/static/my/editName.png"></image>
  15. </view>
  16. <view class="userId">ID:{{ dccode }}</view>
  17. </view>
  18. <view class="msg-right">
  19. <image class="image-attendance" src="/static/my/签到.png" />
  20. <span style="font-size:10px;">签到</span>
  21. </view>
  22. </view>
  23. <view class="settings-buttons">
  24. <view class="setting-btn" @click="goToMarket">
  25. <image src="/static/my/行情设置.png" class="setting-icon" />
  26. <text>行情设置</text>
  27. </view>
  28. <view class="setting-btn" @click="goToGeneral">
  29. <image src="/static/my/设置.png" class="setting-icon" />
  30. <text>通用设置</text>
  31. </view>
  32. </view>
  33. <view class="share" @click="goToShare">
  34. <image class="img-share" src="/static/my/share.png" mode="widthFix" />
  35. </view>
  36. </view>
  37. <view class="bottom">
  38. <view class="list-item" @click="goToAccount">
  39. <image src="/static/my/security.png" class="list-icon" />
  40. <text>账号与安全</text>
  41. <uni-icons type="arrowright" size="16" class="arrow" />
  42. </view>
  43. <view class="list-item">
  44. <image src="/static/my/connection.png" class="list-icon" />
  45. <text>联系我们</text>
  46. <uni-icons type="arrowright" size="16" class="arrow" />
  47. </view>
  48. <view class="list-item" @click="goToNewVersion">
  49. <image src="/static/my/update.png" class="list-icon" />
  50. <text>新版本更新</text>
  51. <view class="update-tip">有新版本可更新
  52. <view class="circle"></view>
  53. </view>
  54. <uni-icons type="arrowright" size="16" class="arrow" />
  55. </view>
  56. <view class="list-item">
  57. <image src="/static/my/opinion.png" class="list-icon" />
  58. <text>意见反馈</text>
  59. <uni-icons type="arrowright" size="16" class="arrow" />
  60. </view>
  61. <view class="list-item" @click="goToAbout">
  62. <image src="/static/my/about.png" class="list-icon" />
  63. <text>关于DeepChart</text>
  64. <uni-icons type="arrowright" size="16" class="arrow" />
  65. </view>
  66. </view>
  67. <footerBar class="static-footer" :type="type"></footerBar>
  68. </view>
  69. </template>
  70. <script setup>
  71. import {
  72. ref,
  73. onMounted
  74. } from 'vue'
  75. import {
  76. ArrowRight
  77. } from '@element-plus/icons-vue'
  78. import footerBar from '../../components/footerBar.vue'
  79. const type = ref('member')
  80. const iSMT = ref(0)
  81. const username = ref('演示机EVA')
  82. const dccode = ref('90047681')
  83. const goToGeneral = () => {
  84. uni.navigateTo({
  85. url: '/pages/setting/general'
  86. })
  87. }
  88. const goToMarket = () => {
  89. uni.navigateTo({
  90. url: '../setting/market'
  91. })
  92. }
  93. const goToAccount = () => {
  94. uni.navigateTo({
  95. url:'../setting/account'
  96. })
  97. }
  98. const goToNewVersion = () =>{
  99. uni.navigateTo({
  100. url:'../setting/newVersion'
  101. })
  102. }
  103. const goToAbout = () =>{
  104. uni.navigateTo({
  105. url:'../setting/about'
  106. })
  107. }
  108. const goToShare = () =>{
  109. uni.navigateTo({
  110. url:'../setting/share'
  111. })
  112. }
  113. onMounted(() => {
  114. // 状态栏高度
  115. iSMT.value = uni.getSystemInfoSync().statusBarHeight
  116. console.log('??????????????', iSMT.value)
  117. })
  118. </script>
  119. <style scoped>
  120. .static-footer {
  121. position: fixed;
  122. bottom: 0;
  123. }
  124. .top {
  125. height: 47vh;
  126. background-color: white;
  127. }
  128. .bell {
  129. height: 9.6vh;
  130. display: flex;
  131. align-items: flex-end;
  132. justify-content: flex-end;
  133. padding-right: 50rpx;
  134. }
  135. .image-bell {
  136. width: 13px;
  137. height: 16px;
  138. }
  139. .msg {
  140. height: 10.7vh;
  141. display: flex;
  142. margin-top: 3vh;
  143. margin-bottom: 3vh;
  144. }
  145. .msg-left {
  146. width: 33.6vw;
  147. display: flex;
  148. justify-content: center;
  149. align-items: center;
  150. }
  151. .avatar {
  152. width: 175rpx;
  153. height: 175rpx;
  154. border-radius: 50%;
  155. background-color: black;
  156. }
  157. .msg-center {
  158. width: 51.7vw;
  159. padding-left: 2.5vh;
  160. display: flex;
  161. flex-direction: column;
  162. justify-content: center;
  163. }
  164. .userInfo {
  165. font-size: 20px;
  166. }
  167. .userId {
  168. font-size: 14px;
  169. margin-top: 1vh;
  170. }
  171. .image-editName {
  172. width: 40rpx;
  173. height: 40rpx;
  174. margin-left: 2vw;
  175. }
  176. .msg-right {
  177. width: 14.7vw;
  178. display: flex;
  179. flex-direction: column;
  180. justify-content: center;
  181. }
  182. .image-attendance {
  183. width: 43rpx;
  184. height: 43rpx;
  185. }
  186. .settings-buttons {
  187. display: flex;
  188. justify-content: space-around;
  189. }
  190. .setting-btn {
  191. width: 349rpx;
  192. height: 135rpx;
  193. display: flex;
  194. align-items: center;
  195. justify-content: center;
  196. background-color: rgb(243, 243, 243);
  197. border-radius: 8%;
  198. }
  199. .setting-icon {
  200. width: 64.7rpx;
  201. height: 64.7rpx;
  202. margin-right: 25rpx;
  203. }
  204. .setting-btn text {
  205. font-size: 28rpx;
  206. font-weight: bold;
  207. color: #333;
  208. }
  209. .share {
  210. height: 12.6vh;
  211. display: flex;
  212. justify-content: center;
  213. align-items: center;
  214. }
  215. .img-share {
  216. width: 720rpx;
  217. height: 160rpx;
  218. }
  219. .bottom {
  220. height: 44.5vh;
  221. margin-top: 1vh;
  222. background-color: rgb(255, 255, 255);
  223. }
  224. .list-item {
  225. width: 670rpx;
  226. height: 7vh;
  227. display: flex;
  228. align-items: center;
  229. margin: 0rpx 40rpx;
  230. border-bottom: 1rpx solid #eee;
  231. }
  232. .list-item:last-child{
  233. border-bottom: none;
  234. }
  235. .list-icon {
  236. width: 42rpx;
  237. height: 42rpx;
  238. margin-right: 18rpx;
  239. }
  240. .arrow {
  241. margin-left: auto;
  242. }
  243. .update-tip {
  244. display: flex;
  245. color: #999;
  246. font-size: 24rpx;
  247. align-items: center;
  248. margin-left: 200rpx;
  249. justify-content: center;
  250. }
  251. .circle {
  252. width: 10rpx;
  253. height: 10rpx;
  254. border-radius: 50%;
  255. background-color: red;
  256. margin-left: 10rpx;
  257. }
  258. </style>