index.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <template>
  2. <view id="app">
  3. <view class="container">
  4. <!-- 应用头部信息 -->
  5. <view class="app-header">
  6. <view class="app-icon">
  7. <text class="fas fa-book">水贝商城</text>
  8. <view class="official-badge">官方</view>
  9. </view>
  10. <!-- <view class="app-info">
  11. <view class="app-title">
  12. <view class="app-name">水贝商城</view>
  13. </view>
  14. <view class="app-stats">
  15. <view class="rating">
  16. 4.56分
  17. </view>
  18. <view>1.9亿次下载</view>
  19. </view>
  20. <view class="app-stats">
  21. 124.55MB
  22. </view>
  23. </view> -->
  24. </view>
  25. <!-- 下载选项 -->
  26. <view class="download-options">
  27. <view class="download-option option-primary" @click="downloadFrom('应用宝')">
  28. <view class="option-icon">
  29. <text class="fas fa-shield-alt"></text>
  30. </view>
  31. <view class="option-content">
  32. <view class="option-title">通过应用宝下载</view>
  33. <view class="option-desc">腾讯应用宝下载,人工智能保证安全</view>
  34. <view class="option-tag">无病毒</view>
  35. <view class="option-tag">免广告骚扰</view>
  36. </view>
  37. </view>
  38. <view class="download-option" @click="downloadFrom('第三方浏览器')">
  39. <view class="option-icon">
  40. <text class="fas fa-globe"></text>
  41. </view>
  42. <view class="option-content">
  43. <view class="option-title">通过第三方浏览器下载</view>
  44. <view class="option-desc">无法确认是否存在安全隐患</view>
  45. <view class="option-warning">请注意安全风险</view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 应用详情 -->
  50. <view class="app-details">
  51. <view class="detail-item">
  52. <view class="detail-label">运营者:</view>
  53. <view class="detail-value">神州通誉软件</view>
  54. </view>
  55. <view class="detail-item">
  56. <view class="detail-label">开发者:</view>
  57. <view class="detail-value">神州通誉软件</view>
  58. </view>
  59. <view class="detail-item">
  60. <view class="detail-label">版本:</view>
  61. <view class="detail-value">1.0.0</view>
  62. </view>
  63. </view>
  64. <!-- 底部信息 -->
  65. <view class="footer">
  66. <view class="footer-links">
  67. <span class="footer-link">权限</span>
  68. <span class="footer-link">隐私</span>
  69. <span class="footer-link">功能</span>
  70. <span class="footer-link">备案</span>
  71. </view>
  72. <view>腾讯应用宝</view>
  73. <view>该服务由应用宝技术提供</view>
  74. </view>
  75. </view>
  76. </view>
  77. </template>
  78. <script setup>
  79. const downloadFrom = (source) => {
  80. // window.location.href = 'shuibei://';
  81. // window.open("appmarket://details?id=com.tencent.mm")
  82. // alert(111)
  83. // const systemInfo = uni.getSystemInfoSync();
  84. window.location.href= "https://a.app.qq.com/o/simple.jsp?pkgname=com.lucky.luckyclient"
  85. if (source === '应用宝') {
  86. } else {
  87. }
  88. };
  89. </script>
  90. <style lang="scss" scoped>
  91. page {
  92. background-color: #f5f5f5;
  93. color: #333;
  94. line-height: 1.6;
  95. padding: 20rpx;
  96. font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  97. }
  98. .container {
  99. background: #fff;
  100. border-radius: 24rpx;
  101. overflow: hidden;
  102. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.05);
  103. height: 100vh;
  104. padding-top: 60px;
  105. box-sizing: border-box;
  106. }
  107. /* 应用头部信息 */
  108. .app-header {
  109. // display: flex;
  110. padding: 40rpx;
  111. border-bottom: 1rpx solid #eee;
  112. }
  113. .app-icon {
  114. width: 160rpx;
  115. height: 160rpx;
  116. border-radius: 32rpx;
  117. background: linear-gradient(45deg, #ff2442, #ff2c53);
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. // margin-right: 30rpx;
  122. margin: 0 auto;
  123. box-shadow: 0 8rpx 20rpx rgba(255, 36, 66, 0.2);
  124. position: relative;
  125. .official-badge {
  126. position: absolute;
  127. top: -15rpx;
  128. right: -15rpx;
  129. }
  130. }
  131. .app-icon text {
  132. font-size: 36rpx;
  133. color: white;
  134. }
  135. .app-info {
  136. flex: 1;
  137. }
  138. .app-title {
  139. display: flex;
  140. align-items: center;
  141. margin-bottom: 16rpx;
  142. }
  143. .app-name {
  144. font-size: 44rpx;
  145. font-weight: 700;
  146. margin-right: 16rpx;
  147. }
  148. .official-badge {
  149. background: #3875e9;
  150. color: white;
  151. font-size: 24rpx;
  152. padding: 4rpx 12rpx;
  153. border-radius: 8rpx;
  154. }
  155. .app-stats {
  156. display: flex;
  157. align-items: center;
  158. margin-bottom: 10rpx;
  159. color: #666;
  160. font-size: 28rpx;
  161. }
  162. .rating {
  163. color: #ff9c27;
  164. margin-right: 30rpx;
  165. }
  166. /* 下载选项 */
  167. .download-options {
  168. padding: 40rpx;
  169. }
  170. .download-option {
  171. // border: 1rpx solid #eee;
  172. border-radius: 24rpx;
  173. padding: 5rpx;
  174. margin-bottom: 30rpx;
  175. display: flex;
  176. align-items: center;
  177. cursor: pointer;
  178. transition: all 0.2s;
  179. // padding-left:80rpx;
  180. }
  181. // .download-option:hover {
  182. // transform: translateY(-4rpx);
  183. // box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.05);
  184. // }
  185. .option-primary {
  186. // border-color: #ff2442;
  187. // background: rgba(255, 36, 66, 0.03);
  188. }
  189. .option-icon {
  190. width: 80rpx;
  191. height: 80rpx;
  192. background: #f5f5f5;
  193. border-radius: 20rpx;
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. margin-right: 30rpx;
  198. }
  199. .option-primary .option-icon {
  200. background: rgba(255, 36, 66, 0.1);
  201. color: #ff2442;
  202. }
  203. .option-content {
  204. flex: 1;
  205. }
  206. .option-title {
  207. font-weight: 600;
  208. margin-bottom: 8rpx;
  209. font-size: 26rpx;
  210. }
  211. .option-desc {
  212. font-size: 26rpx;
  213. color: #666;
  214. }
  215. .option-tag {
  216. background: rgba(56, 117, 233, 0.1);
  217. color: #3875e9;
  218. font-size: 24rpx;
  219. padding: 4rpx 16rpx;
  220. border-radius: 8rpx;
  221. margin-top: 10rpx;
  222. display: inline-block;
  223. }
  224. .option-warning {
  225. color: #f5a623;
  226. font-size: 24rpx;
  227. margin-top: 10rpx;
  228. }
  229. /* 应用详情 */
  230. .app-details {
  231. padding:0 150rpx;
  232. border-top: 1rpx solid #eee;
  233. // padding-left:80rpx;
  234. }
  235. .detail-item {
  236. display: flex;
  237. // margin-bottom: 24rpx;
  238. font-size: 22rpx;
  239. }
  240. .detail-label {
  241. width: 160rpx;
  242. color: #666;
  243. }
  244. .detail-value {
  245. flex: 1;
  246. color: #333;
  247. }
  248. /* 底部信息 */
  249. .footer {
  250. text-align: center;
  251. padding: 10rpx;
  252. color: #999;
  253. font-size: 26rpx;
  254. border-top: 1rpx solid #eee;
  255. position: absolute;
  256. bottom: 0px;
  257. left: 23%;
  258. }
  259. .footer-links {
  260. display: flex;
  261. justify-content: center;
  262. margin-bottom: 20rpx;
  263. }
  264. .footer-link {
  265. margin: 0 20rpx;
  266. color: #3875e9;
  267. }
  268. /* 下载按钮 */
  269. .download-btn {
  270. display: block;
  271. background: #ff2442;
  272. color: white;
  273. text-align: center;
  274. padding: 30rpx;
  275. border-radius: 24rpx;
  276. font-weight: 600;
  277. margin-top: 40rpx;
  278. cursor: pointer;
  279. transition: all 0.2s;
  280. font-size: 32rpx;
  281. }
  282. .download-btn:hover {
  283. background: #e61a36;
  284. transform: translateY(-4rpx);
  285. box-shadow: 0 8rpx 24rpx rgba(255, 36, 66, 0.3);
  286. }
  287. </style>