result.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <template>
  2. <view class="result">
  3. <view class="desc">使用操作视频</view>
  4. <view class="video">
  5. <video id="myVideo" src="https://resources.delesson.cn/operate.mp4" controls></video>
  6. </view>
  7. <view class="bless">
  8. <image src="../../static/bless.png" mode="aspectFit"></image>
  9. </view>
  10. <view class="diannao">
  11. <view class="text">电脑端</view>
  12. <image class="maozi" src="../../static/maozi.png" mode="aspectFit"></image>
  13. <view class="piece">
  14. <view @click="copy" class="url">www.dlxgk.com</view>
  15. <view class="rubric">请前往德立信志愿官网使用</view>
  16. </view>
  17. </view>
  18. <view class="diannao xiaochengxu">
  19. <view class="text">小程序</view>
  20. <image class="zhi" src="../../static/zhi.png" mode="aspectFit"></image>
  21. <view class="piece">
  22. <image :show-menu-by-longpress="true" class="code" src="../../static/code.jpg" mode="aspectFit"
  23. @click="previewImage"></image>
  24. <view class="rubric">长按识别二维码,前往微信小程序</view>
  25. </view>
  26. </view>
  27. <view class="diannao downloadApp">
  28. <view class="text">下载app</view>
  29. <image src="../../static/shu.png" class="shu" mode="aspectFit"></image>
  30. <view class="piece">
  31. <image :show-menu-by-longpress="true" class="code" src="../../static/code.jpg" mode="aspectFit"
  32. @click="previewImage"></image>
  33. <view class="rubric" >长按识别二维码,下载APP</view>
  34. </view>
  35. </view>
  36. <view class="bless-text">
  37. <view>高分不滑档,低分有选择!</view>
  38. <view>德立信志愿祝您金榜题名!</view>
  39. </view>
  40. </view>
  41. <uni-popup ref="message" type="dialog">
  42. <uni-popup-dialog type="info" before-close cancelText="取消" confirmText="复制" :title="title"
  43. @confirm="dialogConfirm" @close="message.close()">
  44. <view>
  45. <view>账号:{{myAccount}}</view>
  46. <view>密码:123456</view>
  47. </view>
  48. </uni-popup-dialog>
  49. </uni-popup>
  50. </template>
  51. <script lang="ts" setup>
  52. import { computed, ref } from 'vue'
  53. import { onLoad } from '@dcloudio/uni-app'
  54. const accountList = ref([
  55. {
  56. "value": "11",
  57. "text": "北京市",
  58. account: 16666666026
  59. },
  60. {
  61. "value": "12",
  62. "text": "天津市",
  63. account: 16666666027
  64. },
  65. {
  66. "value": "13",
  67. "text": "河北省",
  68. account: 16666666099
  69. },
  70. {
  71. "value": "14",
  72. "text": "山西省",
  73. account: 16666666098
  74. },
  75. {
  76. "value": "15",
  77. "text": "内蒙古",
  78. account: 16666666023
  79. },
  80. {
  81. "value": "21",
  82. "text": "辽宁省",
  83. account: 16666666097
  84. },
  85. {
  86. "value": "22",
  87. "text": "吉林省",
  88. account: 16666666096
  89. },
  90. {
  91. "value": "23",
  92. "text": "黑龙江",
  93. account: 16666666005
  94. },
  95. {
  96. "value": "31",
  97. "text": "上海市",
  98. account: 16666666028
  99. },
  100. {
  101. "value": "32",
  102. "text": "江苏省",
  103. account: 16666666006
  104. },
  105. {
  106. "value": "33",
  107. "text": "浙江省",
  108. account: 16666666007
  109. },
  110. {
  111. "value": "34",
  112. "text": "安徽省",
  113. account: 16666666008
  114. },
  115. {
  116. "value": "35",
  117. "text": "福建省",
  118. account: 16666666009
  119. },
  120. {
  121. "value": "36",
  122. "text": "江西省",
  123. account: 16666666010
  124. },
  125. {
  126. "value": "37",
  127. "text": "山东省",
  128. account: 16666666011
  129. },
  130. {
  131. "value": "41",
  132. "text": "河南省",
  133. account: 16666666012
  134. },
  135. {
  136. "value": "42",
  137. "text": "湖北省",
  138. account: 16666666013
  139. },
  140. {
  141. "value": "43",
  142. "text": "湖南省",
  143. account: 16666666014
  144. },
  145. {
  146. "value": "44",
  147. "text": "广东省",
  148. account: 16666666015
  149. },
  150. {
  151. "value": "45",
  152. "text": "广西省",
  153. account: 16666666094
  154. },
  155. {
  156. "value": "46",
  157. "text": "海南省",
  158. account: 16666666016
  159. },
  160. {
  161. "value": "50",
  162. "text": "重庆市",
  163. account: 16666666029
  164. },
  165. {
  166. "value": "51",
  167. "text": "四川省",
  168. account: 16666666017
  169. },
  170. {
  171. "value": "52",
  172. "text": "贵州省",
  173. account: 16666666018
  174. },
  175. {
  176. "value": "53",
  177. "text": "云南省",
  178. account: 16666666019
  179. },
  180. {
  181. "value": "61",
  182. "text": "陕西省",
  183. account: 16666666020
  184. },
  185. {
  186. "value": "62",
  187. "text": "甘肃省",
  188. account: 16666666021
  189. },
  190. {
  191. "value": "63",
  192. "text": "青海省",
  193. account: 16666666022
  194. },
  195. {
  196. "value": "64",
  197. "text": "宁夏",
  198. account: 16666666025
  199. },
  200. {
  201. "value": "65",
  202. "text": "新疆",
  203. account: 16666666028
  204. }
  205. ])
  206. const copy = () => {
  207. uni.setClipboardData({
  208. data: 'https://www.dlxgk.com',
  209. success: () => {
  210. uni.showToast({
  211. title: '复制成功',
  212. icon: 'none'
  213. });
  214. }
  215. });
  216. }
  217. const dialogConfirm = () => {
  218. uni.setClipboardData({
  219. data: `账号:${myAccount.value} 密码:123456`,
  220. success: () => {
  221. uni.showToast({
  222. title: '复制成功',
  223. icon: 'none'
  224. });
  225. }
  226. })
  227. message.value.close()
  228. }
  229. const previewImage = (e) => {
  230. uni.previewImage({
  231. urls: ['/static/code.jpg'],
  232. indicator: 'default',
  233. loop: false,
  234. });
  235. }
  236. const message = ref()
  237. const provinceCode = ref()
  238. const title = computed(() => {
  239. const str = accountList.value.find(item => item.value == provinceCode.value)?.text?.replace('省', '')?.replace('市', '')
  240. return str + '试用账号'
  241. })
  242. const myAccount = computed(() => {
  243. return accountList.value.find(item => item.value == provinceCode.value)?.account
  244. })
  245. onLoad((options) => {
  246. provinceCode.value = options.provinceCode
  247. })
  248. </script>
  249. <style lang="scss" scoped>
  250. .result {
  251. background: url('../../static/newbejing.png') no-repeat;
  252. width: 100%;
  253. height: 100%;
  254. background-size: 100% 100%;
  255. .desc {
  256. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  257. font-weight: bold;
  258. font-size: 20px;
  259. color: #FFFFFF;
  260. line-height: 23px;
  261. letter-spacing: 4px;
  262. text-align: left;
  263. font-style: normal;
  264. text-transform: none;
  265. padding: 30rpx 0;
  266. text-align: center;
  267. }
  268. .video {
  269. width: 80%;
  270. height: 400rpx;
  271. background: url('../../static/videokuang.png') no-repeat;
  272. background-size: 100% 100%;
  273. margin: 0 auto;
  274. display: flex;
  275. align-items: center;
  276. justify-content: center;
  277. margin-bottom: 20rpx;
  278. video {
  279. width: 100%;
  280. height: 100%;
  281. border-radius: 5rpx;
  282. }
  283. }
  284. .bless {
  285. width: 80%;
  286. height: 300rpx;
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. margin: 0 auto 20rpx;
  291. image {
  292. width: 100%;
  293. height: 300rpx;
  294. }
  295. }
  296. .diannao {
  297. background: url('../../static/beijingkuang.png') no-repeat;
  298. background-size: 100% 100%;
  299. width: 80%;
  300. height: 300rpx;
  301. margin: 0 auto 20rpx;
  302. position: relative;
  303. .text {
  304. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  305. font-weight: bold;
  306. font-size: 16px;
  307. color: #FFFFFF;
  308. height: 92rpx;
  309. line-height: 92rpx;
  310. letter-spacing: 3px;
  311. text-align: left;
  312. font-style: normal;
  313. text-transform: none;
  314. text-align: center;
  315. }
  316. .maozi {
  317. width: 208rpx;
  318. height: 96rpx;
  319. position: absolute;
  320. right: -50rpx;
  321. top: 10rpx;
  322. }
  323. .shu {
  324. width: 114rpx;
  325. height: 82rpx;
  326. position: absolute;
  327. right: -40rpx;
  328. top: 20rpx;
  329. }
  330. .piece {
  331. position: absolute;
  332. top: 60%;
  333. left: 0;
  334. transform: translateY(-50%);
  335. width: 100%;
  336. text-align: center;
  337. .url {
  338. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  339. font-weight: bold;
  340. font-size: 56rpx;
  341. color: #1A7DF1;
  342. line-height: 66rpx;
  343. text-align: left;
  344. font-style: normal;
  345. text-transform: none;
  346. text-align: center;
  347. margin-bottom: 20rpx;
  348. }
  349. .rubric {
  350. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  351. font-weight: bold;
  352. font-size: 28rpx;
  353. color: #1A7DF1;
  354. line-height: 33rpx;
  355. text-align: left;
  356. font-style: normal;
  357. text-transform: none;
  358. text-align: center;
  359. }
  360. .advert {
  361. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  362. font-weight: bold;
  363. font-size: 24rpx;
  364. color: #1A7DF1;
  365. line-height: 36rpx;
  366. letter-spacing: 1px;
  367. text-align: left;
  368. font-style: normal;
  369. text-transform: none;
  370. margin: 0 32rpx 20rpx;
  371. }
  372. .receive {
  373. width: 80%;
  374. height: 62rpx;
  375. margin: 0 auto;
  376. background: #1A7DF1;
  377. border-radius: 64rpx;
  378. text-align: center;
  379. line-height: 62rpx;
  380. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  381. font-weight: bold;
  382. font-size: 32rpx;
  383. color: #FFFFFF;
  384. letter-spacing: 3px;
  385. font-style: normal;
  386. text-transform: none;
  387. }
  388. }
  389. }
  390. .xiaochengxu,.downloadApp {
  391. .zhi {
  392. width: 122rpx;
  393. height: 98rpx;
  394. position: absolute;
  395. left: -50rpx;
  396. top: 10rpx;
  397. }
  398. .piece {
  399. .code {
  400. width: 136rpx;
  401. height: 136rpx;
  402. margin-bottom: 10rpx;
  403. }
  404. }
  405. }
  406. .bless-text {
  407. padding-bottom: 42rpx;
  408. font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
  409. font-weight: bold;
  410. font-size: 40rpx;
  411. color: #FFFFFF;
  412. line-height: 47rpx;
  413. letter-spacing: 4px;
  414. text-shadow: 0px 4px 8px #1A7DF1;
  415. text-align: center;
  416. font-style: normal;
  417. text-transform: none;
  418. padding-top: 20rpx;
  419. view {
  420. margin-bottom: 20rpx;
  421. }
  422. }
  423. }
  424. </style>