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.

426 lines
9.9 KiB

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