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.

389 lines
8.9 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <view class="main">
  3. <!-- 顶部状态栏占位 -->
  4. <view class="top" :style="{height:iSMT+'px'}"></view>
  5. <!-- 标题图标部分 -->
  6. <deepExploration_header></deepExploration_header>
  7. <!-- 四大功能模块 -->
  8. <view class="select">
  9. <view class="selectItem" @click="toMain('主力追踪')">
  10. <image class="img" src="/static/deepExploration-images/icon3.png" mode="aspectFill"></image>
  11. <view class="txt">主力追踪</view>
  12. </view>
  13. <view class="selectItem" @click="toMain('主力雷达')">
  14. <image class="img" src="/static/deepExploration-images/icon2.png" mode="aspectFill"></image>
  15. <view class="txt">主力雷达</view>
  16. </view>
  17. <view class="selectItem" @click="toMain('主力解码')">
  18. <image class="img" src="/static/deepExploration-images/icon1.png" mode="aspectFill"></image>
  19. <view class="txt">主力解码</view>
  20. </view>
  21. <view class="selectItem" @click="toMain('主力资金流')">
  22. <image class="img" src="/static/deepExploration-images/icon4.png" mode="aspectFill"></image>
  23. <view class="txt">主力资金流</view>
  24. </view>
  25. </view>
  26. <!-- 灰色间隔 -->
  27. <view class="gap"></view>
  28. <!-- 选股策略 -->
  29. <view class="stockSelection">
  30. <view class="stockSelection_top">
  31. <view class="txt">
  32. <text>选股策略</text>
  33. </view>
  34. <view class="viewAll" @click='viewAll'>
  35. <text>查看全部</text>
  36. </view>
  37. </view>
  38. <view class="stockSelection_content">
  39. <view class="selectionItem">
  40. <view class="header">
  41. <view class="left">
  42. <image src="/static/deepExploration-images/plus.png" mode="aspectFill"></image>
  43. <text>抄底卖顶</text>
  44. </view>
  45. <view class="right">
  46. <image src="/static/deepExploration-images/Americle.png" mode="aspectFill"></image>
  47. <text>美股</text>
  48. </view>
  49. </view>
  50. <view class="content">
  51. <view class="contentTitle">
  52. <view class="contentTitle_name">股票名称</view>
  53. <view class="contentTitle_close">最新收盘价</view>
  54. <view class="contentTitle_price">选股价格</view>
  55. </view>
  56. <view class="contentItem">
  57. <view class="row" v-for="(item,index) in stockData" :key="index">
  58. <view class="nameItem">{{item.name}}</view>
  59. <view class="closeItem">{{item.close}}</view>
  60. <view class="priceItem">{{item.select}}</view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="stockSelection_content">
  67. <view class="selectionItem">
  68. <view class="header">
  69. <view class="left">
  70. <image src="/static/deepExploration-images/plus.png" mode="aspectFill"></image>
  71. <text>抄底卖顶</text>
  72. </view>
  73. <view class="right">
  74. <image src="/static/deepExploration-images/Americle.png" mode="aspectFill"></image>
  75. <text>美股</text>
  76. </view>
  77. </view>
  78. <view class="content">
  79. <view class="contentTitle">
  80. <view class="contentTitle_name">股票名称</view>
  81. <view class="contentTitle_close">最新收盘价</view>
  82. <view class="contentTitle_price">选股价格</view>
  83. </view>
  84. <view class="contentItem">
  85. <view class="row" v-for="(item,index) in stockData" :key="index">
  86. <view class="nameItem">{{item.name}}</view>
  87. <view class="closeItem">{{item.close}}</view>
  88. <view class="priceItem">{{item.select}}</view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <footerBar class="static-footer" :type="type"></footerBar>
  96. </view>
  97. </template>
  98. <script setup>
  99. import {
  100. ref,
  101. onMounted
  102. } from 'vue'
  103. import footerBar from '@/components/footerBar.vue'
  104. import deepExploration_header from '@/components/deepExploration_header.vue'
  105. const type = ref('deepExploration')
  106. const iSMT = ref(0)
  107. //查看全部选股策略
  108. const toMain = (val) => {
  109. if (val == '主力追踪') {
  110. uni.navigateTo({
  111. url: '/pages/deepExploration/MainForceActions?index=1'
  112. })
  113. } else if (val == '主力雷达') {
  114. uni.navigateTo({
  115. url: '/pages/deepExploration/MainForceActions?index=2'
  116. })
  117. } else if (val == '主力解码') {
  118. uni.navigateTo({
  119. url: '/pages/deepExploration/MainForceActions?index=3'
  120. })
  121. } else if (val == '主力资金流') {
  122. uni.navigateTo({
  123. url: '/pages/deepExploration/MainForceActions?index=4'
  124. })
  125. }
  126. }
  127. //查看全部选股策略
  128. const viewAll = ()=>{
  129. uni.navigateTo({
  130. url: '/pages/deepExploration/stockSelectDetail'
  131. })
  132. }
  133. //选股策略数据
  134. const stockData = [{
  135. name: "(MKTW)MarketWise Inc",
  136. close: "$14.190",
  137. select: "$13.180"
  138. },
  139. {
  140. name: "(MTCH)Match Group Inc",
  141. close: "$32.120",
  142. select: "$28.120"
  143. },
  144. {
  145. name: "(MKTW)MarketWise Inc",
  146. close: "$14.190",
  147. select: "$13.180"
  148. }
  149. ];
  150. onMounted(() => {
  151. // 状态栏高度
  152. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  153. })
  154. </script>
  155. <style scoped lang="scss">
  156. .main {
  157. width: 100%;
  158. height: 100vh;
  159. background-color: #fff;
  160. .select {
  161. display: flex;
  162. padding: 60rpx 10rpx 30rpx 30rpx;
  163. gap: 70rpx;
  164. align-items: center;
  165. justify-content: center;
  166. .selectItem {
  167. .img {
  168. width: 80rpx;
  169. height: 80rpx;
  170. display: block;
  171. margin: 0 auto;
  172. }
  173. .txt {
  174. color: #6a6a6a;
  175. font-family: "PingFang SC";
  176. font-size: 11px;
  177. font-style: normal;
  178. font-weight: 400;
  179. line-height: 14.5px;
  180. margin-top: 13rpx;
  181. white-space: nowrap;
  182. }
  183. }
  184. }
  185. .gap {
  186. width: 100%;
  187. height: 15rpx;
  188. background-color: #F3F3F3;
  189. }
  190. .stockSelection {
  191. width: 100%;
  192. padding: 32rpx 15rpx;
  193. .stockSelection_top {
  194. display: flex;
  195. justify-content: space-between;
  196. .txt {
  197. color: #000000;
  198. font-family: "PingFang SC";
  199. font-size: 38rpx;
  200. font-style: normal;
  201. font-weight: 400;
  202. line-height: 50rpx;
  203. }
  204. .viewAll {
  205. background-color: #000000;
  206. border-radius: 10rpx;
  207. padding: 6rpx 20rpx;
  208. color: #ffffff;
  209. font-family: "PingFang SC";
  210. font-size: 10rpx;
  211. font-style: normal;
  212. font-weight: 100;
  213. line-height: 29rpx;
  214. height: 40rpx;
  215. }
  216. }
  217. .stockSelection_content {
  218. .selectionItem {
  219. background-color: #F3F3F3;
  220. padding: 30rpx 15rpx 17rpx 30rpx;
  221. border-radius: 30rpx;
  222. margin-top: 30rpx;
  223. .header {
  224. display: flex;
  225. justify-content: space-between;
  226. align-items: center;
  227. .left {
  228. display: flex;
  229. justify-content: space-between;
  230. align-items: center;
  231. image {
  232. display: flex;
  233. justify-content: center;
  234. align-items: center;
  235. width: 15rpx;
  236. height: 15rpx;
  237. }
  238. text {
  239. margin-left: 15rpx;
  240. color: #000000;
  241. font-family: "PingFang SC";
  242. font-size: 28rpx;
  243. font-style: normal;
  244. font-weight: 400;
  245. line-height: 18.5px;
  246. }
  247. }
  248. .right {
  249. display: flex;
  250. justify-content: space-between;
  251. align-items: center;
  252. border-radius: 15rpx;
  253. background-color: #FFFFFF;
  254. padding: 6rpx 20rpx;
  255. image {
  256. display: flex;
  257. justify-content: center;
  258. align-items: center;
  259. width: 40rpx;
  260. height: 26.5rpx;
  261. }
  262. text {
  263. margin-left: 10rpx;
  264. color: #6a6a6a;
  265. font-family: "PingFang SC";
  266. font-size: 18rpx;
  267. font-style: normal;
  268. font-weight: 400;
  269. line-height: 24rpx;
  270. }
  271. }
  272. }
  273. .content {
  274. .contentTitle {
  275. display: flex;
  276. color: #6a6a6a;
  277. font-family: "PingFang SC";
  278. font-size: 11px;
  279. font-style: normal;
  280. font-weight: 400;
  281. line-height: 14.5px;
  282. margin-top: 24rpx;
  283. margin-bottom: 20rpx;
  284. .contentTitle_name {
  285. width: 100rpx;
  286. }
  287. .contentTitle_close{
  288. width: 130rpx;
  289. margin-left: 260rpx;
  290. }
  291. .contentTitle_price {
  292. width: 120rpx;
  293. margin-left: 60rpx;
  294. }
  295. }
  296. .contentItem {
  297. .row {
  298. display: flex;
  299. box-shadow: 0 -2rpx 5rpx rgba(0, 0, 0, 0.05);
  300. padding: 10rpx 0;
  301. margin-bottom: 10rpx;
  302. .nameItem {
  303. width: 260rpx;
  304. white-space: nowrap;
  305. overflow: hidden;
  306. text-overflow: ellipsis;
  307. color: #000000;
  308. font-family: "PingFang SC";
  309. font-size: 13px;
  310. font-style: normal;
  311. font-weight: 400;
  312. line-height: 17.5px;
  313. }
  314. .closeItem {
  315. width: 120rpx;
  316. margin-left: 100rpx;
  317. color: #25ba5d;
  318. font-family: "PingFang SC";
  319. font-size: 13px;
  320. font-style: normal;
  321. font-weight: 400;
  322. line-height: 17.5px;
  323. }
  324. .priceItem {
  325. width: 120rpx;
  326. margin-left: 73rpx;
  327. color: #25ba5d;
  328. font-family: "PingFang SC";
  329. font-size: 13px;
  330. font-style: normal;
  331. font-weight: 400;
  332. line-height: 17.5px;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. .static-footer {
  341. position: fixed;
  342. bottom: 0;
  343. }
  344. }
  345. * {
  346. box-sizing: border-box;
  347. }
  348. </style>