download.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <view class="container">
  4. <view
  5. class="app-page-head card-header d-flex gap-3 flex-wrap align-items-center justify-content-between border-0">
  6. <view class="app-page-head mb-0">
  7. <h1 class="app-page-title" v-t="'Downloadpage.item1'"></h1>
  8. </view>
  9. </view>
  10. <view class="col-lg-12">
  11. <view class="clearfix">
  12. <view class="card">
  13. <view class="card-header">
  14. <view class="nav nav-pills nav-fill card-header-pills">
  15. <view class="nav-item">
  16. <view class="nav-link cursor-pointer" :class="{ 'active': activeName == 'MT4' }"
  17. @click="activeName = 'MT4'">MetaTrader 4</view>
  18. </view>
  19. <view class="nav-item">
  20. <view class="nav-link cursor-pointer" :class="{ 'active': activeName == 'MT5' }"
  21. @click="activeName = 'MT5'">MetaTrader 5</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="card-body">
  26. <view class="tab-content">
  27. <view v-if="activeName == 'MT4'">
  28. <view class="row">
  29. <view class="col-12">
  30. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item2'" />
  31. <p class="mb-5 lh-sm" v-t="'Downloadpage.item3'" />
  32. </view>
  33. <view class="col-lg-4 mb-5">
  34. <cwg-link type="download"
  35. :url="config.Host80 + '/mt/cwgmarketssvgltd4setup.exe'"
  36. downloadName="cwgmarketssvgltd4setup.exe"
  37. title="Downloadpage.item4">
  38. <view class="card card-action action-elevate action-border-primary">
  39. <view class="row g-0">
  40. <view class="col-md-4">
  41. <view
  42. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  43. <image src="/static/images/vu/windows.png" alt=""
  44. mode="widthFix" class="img-fluid rounded" />
  45. </view>
  46. </view>
  47. <view class="col-md-8 py-3 d-flex flex-column">
  48. <view class="card-body px-3 py-2">
  49. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  50. <h4>
  51. <view class="text-dark" v-t="'Downloadpage.item4'" />
  52. </h4>
  53. <p v-t="'Downloadpage.item5'" />
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  59. <!-- class="fi fi-rr-download"></i> {{-->
  60. <!-- t('Downloadpage.item6-1') }}</view>-->
  61. </cwg-link>
  62. </view>
  63. <view class="col-lg-4 mb-5">
  64. <cwg-link type="download" class="download-card"
  65. :url="config.Host80 + '/mt/mt4.zip'"
  66. downloadName="mt4.zip"
  67. title="Downloadpage.item4-1">
  68. <!-- <view class="btn btn-danger waves-effect waves-light">-->
  69. <!-- <i class="fi fi-rr-download"></i> {{-->
  70. <!-- t('Downloadpage.item6-1') }}-->
  71. <!-- </view>-->
  72. <view class="card card-action action-elevate action-border-primary">
  73. <view class="row g-0">
  74. <view class="col-md-4">
  75. <view
  76. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  77. <image src="/static/images/vu/windows.png" alt=""
  78. mode="widthFix" class="img-fluid rounded" />
  79. </view>
  80. </view>
  81. <view class="col-md-8 py-3 d-flex flex-column">
  82. <view class="card-body px-3 py-2">
  83. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  84. <h4>
  85. <view class="text-dark" v-t="'Downloadpage.item4-1'" />
  86. </h4>
  87. <p v-t="'Downloadpage.item5'" />
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </cwg-link>
  93. </view>
  94. <view class="col-lg-4 mb-5">
  95. <cwg-link type="download" class="download-card"
  96. :url="config.Host80 + '/mt/MetaTrader4.pkg'"
  97. downloadName="MetaTrader4.pkg"
  98. title="Downloadpage.item6">
  99. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  100. <!-- class="fi fi-rr-download"></i> {{-->
  101. <!-- t('Downloadpage.item6-1') }}</view>-->
  102. <view class="card card-action action-elevate action-border-primary">
  103. <view class="row g-0">
  104. <view class="col-md-4">
  105. <view
  106. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  107. <image src="/static/images/vu/ios.png" alt=""
  108. mode="widthFix" class="img-fluid rounded" />
  109. </view>
  110. </view>
  111. <view class="col-md-8 py-3 d-flex flex-column">
  112. <view class="card-body px-3 py-2">
  113. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  114. <h4>
  115. <view class="text-dark" v-t="'Downloadpage.item6'" />
  116. </h4>
  117. <p v-t="'Downloadpage.item5'" />
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </cwg-link>
  123. </view>
  124. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item38'" />
  125. <view class="col-lg-4 mb-5">
  126. <cwg-link type="html" target="_blank"
  127. :url="'https://www.' + config.host + '.com/' + locale + '/vu-mt4-web-trading/web'"
  128. title="Downloadpage.item38">
  129. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  130. <!-- class="fi fi-rr-download"></i> 开始交易</view>-->
  131. <view class="card card-action action-elevate action-border-primary">
  132. <view class="row g-0">
  133. <view class="col-md-4">
  134. <view
  135. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  136. <image src="/static/images/vu/icon-windows-ios.png" alt=""
  137. mode="widthFix" class="img-fluid rounded" />
  138. </view>
  139. </view>
  140. <view class="col-md-8 py-3 d-flex flex-column">
  141. <view class="card-body px-3 py-2">
  142. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  143. <h4>
  144. <view class="text-dark" v-t="'Downloadpage.item40'" />
  145. </h4>
  146. <p>PC and macOS</p>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </cwg-link>
  152. </view>
  153. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item7'" />
  154. <view class="col-lg-6 mb-5">
  155. <cwg-link type="download" class="download-card" :url="mt41"
  156. downloadName="MetaTrader4.abb"
  157. title="Downloadpage.item9">
  158. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  159. <!-- class="fi fi-rr-download"></i> {{-->
  160. <!-- t('Downloadpage.item6-1') }}</view>-->
  161. <view class="card card-action action-elevate action-border-primary">
  162. <view class="row g-0">
  163. <view class="col-md-6">
  164. <view class="card-header border-0 download-qr-header position-relative">
  165. <QrCode :text="mt42" :width="qrSize" :height="qrSize" />
  166. <!-- <image src="/static/images/vu/android.png" alt=""
  167. mode="widthFix" class="img-fluid" /> -->
  168. </view>
  169. </view>
  170. <view class="col-md-6 py-3 d-flex flex-column">
  171. <view class="card-body px-3 py-2">
  172. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  173. <h4>
  174. <view class="text-dark">Google Play (Android)</view>
  175. </h4>
  176. <p>CWG MT4</p>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. </cwg-link>
  182. </view>
  183. <view class="col-lg-6 mb-5">
  184. <cwg-link type="download" class="download-card" :url="mt42"
  185. downloadName="MetaTrader4.apk"
  186. title="Downloadpage.item9">
  187. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  188. <!-- class="fi fi-rr-download"></i> {{-->
  189. <!-- t('Downloadpage.item6-1') }}</view>-->
  190. <view class="card card-action action-elevate action-border-primary">
  191. <view class="row g-0">
  192. <view class="col-md-6">
  193. <view class="card-header border-0 download-qr-header position-relative overflow-hidden">
  194. <QrCode :text="mt42" :width="qrSize" :height="qrSize" />
  195. <!-- <image src="/static/images/vu/metatrade.png" alt=""
  196. mode="widthFix" class="img-fluid" /> -->
  197. </view>
  198. </view>
  199. <view class="col-md-6 py-3 d-flex flex-column">
  200. <view class="card-body px-3 py-2">
  201. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  202. <h4>
  203. <view class="text-dark">MetaTrader .Apk</view>
  204. </h4>
  205. <p>CWG MT4</p>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. </cwg-link>
  211. </view>
  212. <view class="col-lg-6 mb-5">
  213. <cwg-link type="download" class="download-card" :url="mt43"
  214. downloadName="MetaTrader4.app"
  215. title="Downloadpage.item10">
  216. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  217. <!-- class="fi fi-rr-download"></i> {{-->
  218. <!-- t('Downloadpage.item6-1') }}</view>-->
  219. <view class="card card-action action-elevate action-border-primary">
  220. <view class="row g-0">
  221. <view class="col-md-6">
  222. <view class="card-header border-0 download-qr-header position-relative overflow-hidden">
  223. <QrCode :text="mt43" :width="qrSize" :height="qrSize" />
  224. <!-- <image src="/static/images/vu/ios-1.png" alt=""
  225. mode="widthFix" class="img-fluid" /> -->
  226. </view>
  227. </view>
  228. <view class="col-md-6 py-3 d-flex flex-column">
  229. <view class="card-body px-3 py-2">
  230. <view class="badge badge-sm bg-danger mb-1">MT-4</view>
  231. <h4>
  232. <view class="text-dark">App Store (IOS)</view>
  233. </h4>
  234. <p>CWG MT4</p>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </cwg-link>
  240. </view>
  241. </view>
  242. </view>
  243. <view v-if="activeName == 'MT5'">
  244. <view class="row">
  245. <view class="col-12">
  246. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item11'" />
  247. <p class="mb-5 lh-sm" v-t="'Downloadpage.item3'" />
  248. </view>
  249. <view class="col-lg-4 mb-5">
  250. <cwg-link type="download" class="download-card"
  251. :url="config.Host80 + '/mt/cwgmarketssvg5setup.exe'"
  252. downloadName="cwgmarketssvg5setup.exe"
  253. title="Downloadpage.item4">
  254. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  255. <!-- class="fi fi-rr-download"></i> {{-->
  256. <!-- t('Downloadpage.item6-1') }}</view>-->
  257. <view class="card card-action action-elevate action-border-primary">
  258. <view class="row g-0">
  259. <view class="col-md-4">
  260. <view
  261. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  262. <image src="/static/images/vu/windows.png" alt=""
  263. mode="widthFix" class="img-fluid rounded" />
  264. </view>
  265. </view>
  266. <view class="col-md-8 py-3 d-flex flex-column">
  267. <view class="card-body px-3 py-2">
  268. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  269. <h4>
  270. <view class="text-dark" v-t="'Downloadpage.item4'" />
  271. </h4>
  272. <p v-t="'Downloadpage.item5'" />
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. </cwg-link>
  278. </view>
  279. <view class="col-lg-4 mb-5">
  280. <cwg-link type="download" class="download-card"
  281. :url="config.Host80 + '/mt/mt5.zip'"
  282. downloadName="mt5.zip"
  283. title="Downloadpage.item4-1">
  284. <!-- <view class="btn btn-danger waves-effect waves-light">-->
  285. <!-- <i class="fi fi-rr-download"></i> {{-->
  286. <!-- t('Downloadpage.item6-1') }}-->
  287. <!-- </view>-->
  288. <view class="card card-action action-elevate action-border-primary">
  289. <view class="row g-0">
  290. <view class="col-md-4">
  291. <view
  292. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  293. <image src="/static/images/vu/windows.png" alt=""
  294. mode="widthFix" class="img-fluid rounded" />
  295. </view>
  296. </view>
  297. <view class="col-md-8 py-3 d-flex flex-column">
  298. <view class="card-body px-3 py-2">
  299. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  300. <h4>
  301. <view class="text-dark" v-t="'Downloadpage.item4-1'" />
  302. </h4>
  303. <p v-t="'Downloadpage.item5'" />
  304. </view>
  305. </view>
  306. </view>
  307. </view>
  308. </cwg-link>
  309. </view>
  310. <view class="col-lg-4 mb-5">
  311. <cwg-link type="download" class="download-card"
  312. :url="config.Host80 + '/mt/MetaTrader5.pkg'"
  313. downloadName="MetaTrader5.pkg"
  314. title="Downloadpage.item6">
  315. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  316. <!-- class="fi fi-rr-download"></i> {{-->
  317. <!-- t('Downloadpage.item6-1') }}</view>-->
  318. <view class="card card-action action-elevate action-border-primary">
  319. <view class="row g-0">
  320. <view class="col-md-4">
  321. <view
  322. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  323. <image src="/static/images/vu/ios.png" alt=""
  324. mode="widthFix" class="img-fluid rounded" />
  325. </view>
  326. </view>
  327. <view class="col-md-8 py-3 d-flex flex-column">
  328. <view class="card-body px-3 py-2">
  329. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  330. <h4>
  331. <view class="text-dark" v-t="'Downloadpage.item6'" />
  332. </h4>
  333. <p v-t="'Downloadpage.item5'" />
  334. </view>
  335. </view>
  336. </view>
  337. </view>
  338. </cwg-link>
  339. </view>
  340. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item39'" />
  341. <view class="col-lg-4 mb-5">
  342. <cwg-link type="html"
  343. class="download-card download-card-web" target="_blank"
  344. :url="'https://www.' + config.host + '.com/' + locale + '/mt5/web'"
  345. title="Downloadpage.item39">
  346. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  347. <!-- class="fi fi-rr-download"></i> 开始交易</view>-->
  348. <view class="card card-action action-elevate action-border-primary">
  349. <view class="row g-0">
  350. <view class="col-md-4">
  351. <view
  352. class="card-header border-0 p-0 m-2 position-relative overflow-hidden">
  353. <image src="/static/images/vu/icon-windows-ios.png" alt=""
  354. mode="widthFix" class="img-fluid rounded" />
  355. </view>
  356. </view>
  357. <view class="col-md-8 py-3 d-flex flex-column">
  358. <view class="card-body px-3 py-2">
  359. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  360. <h4>
  361. <view class="text-dark" v-t="'Downloadpage.item40'" />
  362. </h4>
  363. <p>PC and macOS</p>
  364. </view>
  365. </view>
  366. </view>
  367. </view>
  368. </cwg-link>
  369. </view>
  370. <h3 class="mb-3 fw-bold" v-t="'Downloadpage.item13'" />
  371. <view class="col-lg-6 mb-5">
  372. <cwg-link type="download" class="download-card" :url="mt51"
  373. downloadName="MetaTrader5.abb"
  374. title="Downloadpage.item14">
  375. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  376. <!-- class="fi fi-rr-download"></i> {{-->
  377. <!-- t('Downloadpage.item6-1') }}</view>-->
  378. <view class="card card-action action-elevate action-border-primary">
  379. <view class="row g-0">
  380. <view class="col-md-6">
  381. <view class="card-header border-0 download-qr-header position-relative">
  382. <QrCode :text="mt52" :width="qrSize" :height="qrSize" />
  383. <!-- <image src="/static/images/vu/android.png" alt=""
  384. mode="widthFix" class="img-fluid" /> -->
  385. </view>
  386. </view>
  387. <view class="col-md-6 py-3 d-flex flex-column">
  388. <view class="card-body px-3 py-2">
  389. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  390. <h4>
  391. <view class="text-dark">Google Play (Android)</view>
  392. </h4>
  393. <p>CWG MT5</p>
  394. </view>
  395. </view>
  396. </view>
  397. </view>
  398. </cwg-link>
  399. </view>
  400. <view class="col-lg-6 mb-5">
  401. <cwg-link type="download" class="download-card" :url="mt52"
  402. downloadName="MetaTrader5.apk"
  403. title="Downloadpage.item14">
  404. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  405. <!-- class="fi fi-rr-download"></i> {{-->
  406. <!-- t('Downloadpage.item6-1') }}</view>-->
  407. <view class="card card-action action-elevate action-border-primary">
  408. <view class="row g-0">
  409. <view class="col-md-6">
  410. <view class="card-header border-0 download-qr-header position-relative overflow-hidden">
  411. <QrCode :text="mt52" :width="qrSize" :height="qrSize" />
  412. <!-- <image src="/static/images/vu/metatrade.png" alt=""
  413. mode="widthFix" class="img-fluid" /> -->
  414. </view>
  415. </view>
  416. <view class="col-md-6 py-3 d-flex flex-column">
  417. <view class="card-body px-3 py-2">
  418. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  419. <h4>
  420. <view class="text-dark">MetaTrader .Apk</view>
  421. </h4>
  422. <p>CWG MT5</p>
  423. </view>
  424. </view>
  425. </view>
  426. </view>
  427. </cwg-link>
  428. </view>
  429. <view class="col-lg-6 mb-5">
  430. <cwg-link type="download" class="download-card" :url="mt53"
  431. downloadName="MetaTrader5.app"
  432. title="Downloadpage.item15">
  433. <!-- <view class="btn btn-danger waves-effect waves-light"><i-->
  434. <!-- class="fi fi-rr-download"></i> {{-->
  435. <!-- t('Downloadpage.item6-1') }}</view>-->
  436. <view class="card card-action action-elevate action-border-primary">
  437. <view class="row g-0">
  438. <view class="col-md-6">
  439. <view class="card-header border-0 download-qr-header position-relative overflow-hidden">
  440. <QrCode :text="mt53" :width="qrSize" :height="qrSize" />
  441. <!-- <image src="/static/images/vu/ios-1.png" alt=""
  442. mode="widthFix" class="img-fluid" /> -->
  443. </view>
  444. </view>
  445. <view class="col-md-6 py-3 d-flex flex-column">
  446. <view class="card-body px-3 py-2">
  447. <view class="badge badge-sm bg-danger mb-1">MT-5</view>
  448. <h4>
  449. <view class="text-dark">App Store (IOS)</view>
  450. </h4>
  451. <p>CWG MT5</p>
  452. </view>
  453. </view>
  454. </view>
  455. </view>
  456. </cwg-link>
  457. </view>
  458. </view>
  459. </view>
  460. </view>
  461. </view>
  462. </view>
  463. </view>
  464. </view>
  465. </view>
  466. </cwg-page-wrapper>
  467. </template>
  468. <script setup lang="ts">
  469. import { ref, computed, onMounted, nextTick } from 'vue'
  470. import QrCode from "@/components/QRCode.vue"
  471. import { useI18n } from 'vue-i18n'
  472. import config from '@/config';
  473. const { t, locale } = useI18n()
  474. const activeName = ref('MT4')
  475. const logoImageRef = ref('') // 保持变量名 logoImage
  476. const mt41 = ref('https://www.metatrader4.com/en/download#download-block-android?server=CWGMarketsSVGLtd-Demo,CWGMarketsSVGLtd-Live')
  477. const mt42 = ref(`${config.Host80}/metatrader/metatrader4.apk`) // 稍后动态计算
  478. const mt43 = ref('https://apps.apple.com/us/app/metatrader-4/id496212596?server=CWGMarketsSVGLtd-Demo,CWGMarketsSVGLtd-Live')
  479. const mt51 = ref('https://download.metatrader.com/cdn/mobile/mt5/android?server=CWGMarketsSVG-Demo,CWGMarketsSVG-Live')
  480. const mt52 = ref(`${config.Host80}/mt/metatrader5.apk`)
  481. const mt53 = ref('https://download.metatrader.com/cdn/mobile/mt5/ios?server=CWGMarketsSVG-Demo,CWGMarketsSVG-Live')
  482. const qrSize = 160
  483. const tabsConfig = computed(() => [
  484. { text: 'MT4', value: 'MT4' },
  485. { text: 'MT5', value: 'MT5' },
  486. ])
  487. // ---------- 计算属性 ----------
  488. const isZh = computed(() => ['cn', 'zh', 'zhHant'].includes(locale.value))
  489. const showQrcode = ref(false)
  490. onMounted(async () => {
  491. await nextTick()
  492. setTimeout(() => {
  493. showQrcode.value = true
  494. }, 200)
  495. })
  496. </script>
  497. <style lang="scss" scoped>
  498. @import "@/uni.scss";
  499. :deep(.nav-pills .nav-link.active) {
  500. color: #fff;
  501. background-color: #FF8110;
  502. }
  503. .download-qr-header {
  504. padding: 12px 0;
  505. margin: 0;
  506. display: flex;
  507. align-items: center;
  508. justify-content: center;
  509. }
  510. /* 让 card 本身等高,但内部元素自适应 */
  511. .row {
  512. display: flex;
  513. flex-wrap: wrap;
  514. align-items: stretch;
  515. }
  516. .row > [class*="col-lg-4"] {
  517. display: flex;
  518. flex-direction: column;
  519. }
  520. .card {
  521. flex: 1;
  522. display: flex;
  523. flex-direction: column;
  524. height: 100%;
  525. }
  526. /* 关键修改:让 card-body 不强制占满,只保持默认 */
  527. .card-body {
  528. /* 移除 flex: 1,改为默认值 */
  529. flex: 0 0 auto;
  530. display: block;
  531. }
  532. /* 只有需要弹性填充的特定容器才使用 flex */
  533. .flex-column.d-flex {
  534. flex: 1;
  535. display: flex;
  536. flex-direction: column;
  537. }
  538. /* 按钮底部对齐只在需要的地方使用 */
  539. .card-body .btn {
  540. margin-top: auto;
  541. }
  542. @media screen and (max-width: 768px) {
  543. .img-fluid {
  544. max-width: px2rpx(120);
  545. }
  546. :deep(.qr-container) {
  547. justify-content: flex-start;
  548. }
  549. }
  550. #custom_Downloadpage {
  551. width: 100%;
  552. height: 100%;
  553. .main-content {
  554. width: 100%;
  555. height: calc(100% - px2rpx(50));
  556. padding: px2rpx(10);
  557. box-sizing: border-box;
  558. overflow-y: auto;
  559. }
  560. .download-section {
  561. background: transparent;
  562. border: 1px solid var(--bs-border-color);
  563. border-radius: px2rpx(12);
  564. padding: px2rpx(24) px2rpx(20);
  565. margin-bottom: px2rpx(16);
  566. box-shadow: 0 px2rpx(2) px2rpx(12) rgba(0, 0, 0, 0.06);
  567. .section-header {
  568. text-align: center;
  569. margin-bottom: px2rpx(24);
  570. }
  571. .section-title {
  572. font-size: px2rpx(20);
  573. font-weight: 600;
  574. color: var(--bs-heading-color);
  575. margin-bottom: px2rpx(8);
  576. }
  577. .section-subtitle {
  578. font-size: px2rpx(14);
  579. color: var(--bs-heading-color);
  580. line-height: 1.5;
  581. }
  582. }
  583. .download-cards {
  584. display: flex;
  585. justify-content: center;
  586. flex-wrap: wrap;
  587. gap: px2rpx(16);
  588. }
  589. .download-card {
  590. display: flex;
  591. flex-direction: column;
  592. align-items: center;
  593. padding: px2rpx(24) px2rpx(20);
  594. background: linear-gradient(135deg, #4990EF 0%, #3A7BE0 100%);
  595. color: #fff;
  596. border-radius: px2rpx(12);
  597. min-width: px2rpx(160);
  598. max-width: px2rpx(200);
  599. text-decoration: none;
  600. transition: all 0.3s ease;
  601. position: relative;
  602. overflow: hidden;
  603. &::before {
  604. content: '';
  605. position: absolute;
  606. top: 0;
  607. left: 0;
  608. right: 0;
  609. bottom: 0;
  610. background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  611. }
  612. &:hover {
  613. transform: translateY(px2rpx(-4));
  614. box-shadow: 0 px2rpx(8) px2rpx(24) rgba(73, 144, 239, 0.35);
  615. }
  616. &:active {
  617. transform: translateY(px2rpx(-2));
  618. }
  619. .card-icon {
  620. width: px2rpx(48);
  621. height: px2rpx(48);
  622. margin-bottom: px2rpx(16);
  623. position: relative;
  624. z-index: 1;
  625. }
  626. .card-info {
  627. text-align: center;
  628. position: relative;
  629. z-index: 1;
  630. .card-title {
  631. font-size: px2rpx(15);
  632. font-weight: 500;
  633. margin-bottom: px2rpx(4);
  634. color: #fff;
  635. }
  636. .card-desc {
  637. font-size: px2rpx(12);
  638. opacity: 0.85;
  639. }
  640. }
  641. .download-badge {
  642. margin-top: px2rpx(12);
  643. padding: px2rpx(4) px2rpx(12);
  644. background: rgba(255, 255, 255, 0.2);
  645. border-radius: px2rpx(20);
  646. font-size: px2rpx(11);
  647. font-weight: 500;
  648. position: relative;
  649. z-index: 1;
  650. }
  651. .download-badge-apple {
  652. background: rgba(0, 0, 0, 0.25);
  653. }
  654. }
  655. .download-card-web {
  656. flex-direction: row;
  657. justify-content: space-between;
  658. padding: px2rpx(20) px2rpx(24);
  659. min-width: px2rpx(280);
  660. max-width: 100%;
  661. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  662. .card-info {
  663. text-align: left;
  664. }
  665. .icon-arrow {
  666. font-size: px2rpx(20);
  667. opacity: 0.9;
  668. }
  669. &:hover {
  670. .icon-arrow {
  671. transform: translateX(px2rpx(4));
  672. transition: transform 0.3s ease;
  673. }
  674. }
  675. }
  676. .mobile-section {
  677. .mobile-cards {
  678. display: flex;
  679. flex-direction: column;
  680. gap: px2rpx(20);
  681. }
  682. .mobile-card {
  683. background: transparent;
  684. border-radius: px2rpx(12);
  685. padding: px2rpx(20);
  686. border: px2rpx(1) solid var(--bs-border-color);
  687. }
  688. .mobile-card-header {
  689. display: flex;
  690. align-items: center;
  691. margin-bottom: px2rpx(20);
  692. .card-icon {
  693. width: px2rpx(40);
  694. height: px2rpx(40);
  695. margin-right: px2rpx(16);
  696. background-color: #fff;
  697. overflow: hidden;
  698. border-radius: px2rpx(10);
  699. }
  700. .card-info {
  701. text-align: left;
  702. .card-title {
  703. font-size: px2rpx(16);
  704. font-weight: 600;
  705. color: var(--bs-heading-color);
  706. margin-bottom: px2rpx(4);
  707. }
  708. .card-desc {
  709. font-size: px2rpx(13);
  710. color: var(--bs-heading-color);
  711. }
  712. }
  713. }
  714. .qr-codes {
  715. display: flex;
  716. justify-content: space-around;
  717. flex-wrap: wrap;
  718. gap: px2rpx(16);
  719. &.qr-codes-single {
  720. justify-content: center;
  721. }
  722. }
  723. .qr-item {
  724. text-align: center;
  725. .qr-label {
  726. font-weight: 600;
  727. font-size: px2rpx(13);
  728. color: var(--bs-heading-color);
  729. margin-bottom: px2rpx(10);
  730. line-height: 2;
  731. }
  732. }
  733. }
  734. .instruments-banner {
  735. width: 100%;
  736. padding: px2rpx(40) px2rpx(20);
  737. background-image: url('/static/images/tc_bg.png');
  738. background-size: cover;
  739. background-repeat: no-repeat;
  740. background-position: center;
  741. color: var(--bs-emphasis-color);
  742. text-align: center;
  743. border-radius: px2rpx(12);
  744. margin-bottom: px2rpx(16);
  745. box-sizing: border-box;
  746. .banner-content {
  747. margin-bottom: px2rpx(24);
  748. }
  749. .banner-title {
  750. font-size: px2rpx(22);
  751. font-weight: 600;
  752. margin-bottom: px2rpx(8);
  753. }
  754. .banner-subtitle {
  755. font-size: px2rpx(14);
  756. opacity: 0.9;
  757. }
  758. .banner-buttons {
  759. display: flex;
  760. justify-content: center;
  761. flex-wrap: wrap;
  762. gap: px2rpx(12);
  763. }
  764. .banner-btn {
  765. display: inline-flex;
  766. flex-direction: column;
  767. align-items: center;
  768. padding: px2rpx(14) px2rpx(25);
  769. background-color: #EB3F57;
  770. color: var(--bs-emphasis-color);
  771. font-size: px2rpx(14);
  772. text-decoration: none;
  773. border-radius: px2rpx(8);
  774. transition: all 0.3s ease;
  775. min-width: px2rpx(200);
  776. &:hover {
  777. background-color: #d6364d;
  778. transform: translateY(px2rpx(-2));
  779. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(235, 63, 87, 0.4);
  780. }
  781. .btn-tag {
  782. font-size: px2rpx(12);
  783. opacity: 0.85;
  784. margin-top: px2rpx(4);
  785. }
  786. }
  787. }
  788. .features-grid {
  789. background: transparent;
  790. border: 1px solid var(--bs-border-color);
  791. border-radius: px2rpx(12);
  792. padding: px2rpx(24) px2rpx(20);
  793. margin-bottom: px2rpx(16);
  794. box-shadow: 0 px2rpx(2) px2rpx(12) rgba(0, 0, 0, 0.06);
  795. .feature-item {
  796. display: flex;
  797. align-items: center;
  798. padding: px2rpx(20) 0;
  799. border-bottom: px2rpx(1) solid #f0f0f0;
  800. &:last-child {
  801. border-bottom: none;
  802. }
  803. }
  804. .feature-icon {
  805. width: px2rpx(64);
  806. height: px2rpx(64);
  807. display: flex;
  808. align-items: center;
  809. justify-content: center;
  810. background: linear-gradient(135deg, #fef0f0 0%, #ffe8e8 100%);
  811. border-radius: px2rpx(12);
  812. margin-right: px2rpx(16);
  813. flex-shrink: 0;
  814. i {
  815. font-size: px2rpx(32);
  816. color: #EB3F57;
  817. }
  818. }
  819. .feature-content {
  820. flex: 1;
  821. }
  822. .feature-title {
  823. font-size: px2rpx(16);
  824. font-weight: 600;
  825. color: var(--bs-heading-color);
  826. margin-bottom: px2rpx(6);
  827. }
  828. .feature-desc {
  829. font-size: px2rpx(14);
  830. color: var(--bs-heading-color);
  831. line-height: 1.6;
  832. }
  833. }
  834. .info-section {
  835. background: transparent;
  836. border: 1px solid var(--bs-border-color);
  837. border-radius: px2rpx(12);
  838. padding: px2rpx(24) px2rpx(20);
  839. margin-bottom: px2rpx(16);
  840. box-shadow: 0 px2rpx(2) px2rpx(12) rgba(0, 0, 0, 0.06);
  841. .info-block {
  842. .info-title {
  843. font-size: px2rpx(20);
  844. font-weight: 600;
  845. text-align: center;
  846. margin-bottom: px2rpx(20);
  847. span {
  848. border-bottom: px2rpx(3) solid #EB3F57;
  849. padding: 0 px2rpx(8) px2rpx(8);
  850. }
  851. }
  852. .info-subtitle {
  853. font-size: px2rpx(14);
  854. color: var(--bs-heading-color);
  855. text-align: center;
  856. margin-bottom: px2rpx(24);
  857. }
  858. }
  859. .info-content {
  860. .info-item {
  861. padding: px2rpx(20) 0;
  862. border-bottom: px2rpx(1) dashed #e0e0e0;
  863. &:last-child {
  864. border-bottom: none;
  865. }
  866. &.info-item-border {
  867. border-top: px2rpx(1) dashed #e0e0e0;
  868. }
  869. }
  870. .info-label {
  871. font-size: px2rpx(15);
  872. font-weight: 600;
  873. color: var(--bs-heading-color);
  874. margin-bottom: px2rpx(8);
  875. }
  876. .info-text {
  877. font-size: px2rpx(14);
  878. color: var(--bs-heading-color);
  879. line-height: 1.6;
  880. }
  881. .info-image {
  882. display: flex;
  883. justify-content: center;
  884. padding-top: px2rpx(24);
  885. image {
  886. max-width: 100%;
  887. border-radius: px2rpx(8);
  888. }
  889. }
  890. }
  891. }
  892. @media (max-width: 768px) {
  893. .download-section {
  894. padding: px2rpx(16) px2rpx(12);
  895. border-radius: px2rpx(8);
  896. .section-title {
  897. font-size: px2rpx(18);
  898. }
  899. }
  900. .download-cards {
  901. gap: px2rpx(12);
  902. }
  903. .download-card {
  904. min-width: px2rpx(140);
  905. padding: px2rpx(16) px2rpx(12);
  906. .card-icon {
  907. width: px2rpx(40);
  908. height: px2rpx(40);
  909. }
  910. .card-info {
  911. .card-title {
  912. font-size: px2rpx(13);
  913. }
  914. .card-desc {
  915. font-size: px2rpx(11);
  916. }
  917. }
  918. }
  919. .download-card-web {
  920. width: 100%;
  921. }
  922. .mobile-section {
  923. .mobile-card {
  924. padding: px2rpx(16);
  925. }
  926. .qr-codes {
  927. gap: px2rpx(12);
  928. }
  929. }
  930. .instruments-banner {
  931. padding: px2rpx(24) px2rpx(16);
  932. border-radius: px2rpx(8);
  933. .banner-title {
  934. font-size: px2rpx(18);
  935. }
  936. .banner-btn {
  937. min-width: px2rpx(160);
  938. padding: px2rpx(12) px2rpx(20);
  939. }
  940. }
  941. .features-grid {
  942. padding: px2rpx(16) px2rpx(12);
  943. border-radius: px2rpx(8);
  944. .feature-item {
  945. flex-direction: column;
  946. text-align: center;
  947. padding: px2rpx(16) 0;
  948. }
  949. .feature-icon {
  950. margin-right: 0;
  951. margin-bottom: px2rpx(12);
  952. }
  953. }
  954. .info-section {
  955. padding: px2rpx(16) px2rpx(12);
  956. border-radius: px2rpx(8);
  957. .info-block {
  958. .info-title {
  959. font-size: px2rpx(18);
  960. }
  961. }
  962. }
  963. }
  964. :deep(.el-tabs) {
  965. .el-tabs__header {
  966. margin-bottom: px2rpx(20);
  967. }
  968. .el-tabs__nav-wrap::after {
  969. height: px2rpx(1);
  970. }
  971. .el-tabs__item {
  972. font-size: px2rpx(15);
  973. color: var(--bs-heading-color);
  974. padding: 0 px2rpx(20);
  975. height: px2rpx(44);
  976. line-height: px2rpx(44);
  977. &.is-active {
  978. color: #4990EF;
  979. font-weight: 600;
  980. }
  981. }
  982. .el-tabs__active-bar {
  983. height: px2rpx(3);
  984. border-radius: px2rpx(3);
  985. }
  986. }
  987. :deep(uni-image),
  988. :deep(img) {
  989. width: px2rpx(30);
  990. height: px2rpx(30);
  991. object-fit: cover;
  992. border-radius: px2rpx(6);
  993. }
  994. }
  995. .mt {
  996. width: px2rpx(200) !important;
  997. height: px2rpx(200) !important;
  998. }
  999. :deep(.pdf-link){
  1000. width: 100%;
  1001. }
  1002. </style>