index.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. <template>
  2. <div class="theAuth">
  3. <div class="theTitle"></div>
  4. <!-- {/* <i class={styles.iconClose} onClick={() => emit('close')}></i> */} -->
  5. <div class="authContent">
  6. <div class="steps">
  7. <div class="scrollbarRef">
  8. <div v-if="brower.ios">
  9. <div v-if="step === 1">
  10. <div class="step">
  11. <div class="stepNum">01</div>
  12. <div class="stepContent">
  13. <p class="txt">
  14. 点击下方【下载证书】按钮,下载数据安全证书安装包
  15. </p>
  16. <div>
  17. <div class="downloadCert" @click="onDownload"></div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="step">
  22. <div class="stepNum">02</div>
  23. <div class="stepContent">
  24. <p class="txt">
  25. 双击<span>《安全证书.p12》</span>
  26. ,输入钥匙串密码 ,点击
  27. <span>【修改钥匙串】</span>
  28. <span style=" color: #777">
  29. (若无此步骤则忽略)
  30. </span>
  31. </p>
  32. <div class="imgs imgs2">
  33. <img src="./images/mac/1.png" class="m1" />
  34. <img src="./images/mac/6.png" class="m6" />
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="step" v-if="step === 2">
  40. <div class="stepNum">03</div>
  41. <div class="stepContent">
  42. <p class="txt">
  43. 输入证书密码:
  44. <span class="red" style="text-decoration: underline">
  45. dayaedu.com
  46. </span>
  47. ,点击
  48. <span>【好】</span>
  49. </p>
  50. <div class="imgs">
  51. <img src="./images/mac/2.png" class="m2" />
  52. </div>
  53. </div>
  54. </div>
  55. <div class="step" v-if="step === 3">
  56. <div class="stepNum">04</div>
  57. <div class="stepContent">
  58. <p class="txt">
  59. <span class="red">重启浏览器</span>
  60. (在电脑屏幕左上方选择当前浏览器并点击
  61. <span>【退出】</span>),再重新打开管乐迷后台网址
  62. </p>
  63. <div class="imgs">
  64. <img src="./images/mac/3.png" class="m3" />
  65. </div>
  66. </div>
  67. </div>
  68. <div class="step" v-if="step === 4">
  69. <div class="stepNum">05</div>
  70. <div class="stepContent">
  71. <p class="txt">
  72. 在【选择证书】弹窗中点击<span>【确定】</span>按钮
  73. </p>
  74. <div class="imgs">
  75. <img src="./images/mac/4.png" class="m4" />
  76. </div>
  77. </div>
  78. </div>
  79. <div v-if="step === 5">
  80. <div class="step">
  81. <div class="stepNum">06</div>
  82. <div class="stepContent">
  83. <p class="txt">
  84. 输入您的电脑密码,点击<span>【始终允许】</span>
  85. <span style="color: #777;">
  86. (若无此步骤则忽略)
  87. </span>
  88. </p>
  89. <div class="imgs">
  90. <img src="./images/mac/5.png" class="m5" />
  91. </div>
  92. </div>
  93. </div>
  94. <div class="step">
  95. <div class="stepNum">07</div>
  96. <div class="stepContent">
  97. <p class="txt">证书安装完成,开始使用管乐迷后台吧!</p>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div v-else>
  103. <div v-if="step === 1">
  104. <div class="step">
  105. <div class="stepNum">01</div>
  106. <div class="stepContent">
  107. <p class="txt">
  108. 点击下方【下载证书】按钮,下载数据安全证书安装包
  109. </p>
  110. <div>
  111. <div class="downloadCert" @click="onDownload"></div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="step">
  116. <div class="stepNum">02</div>
  117. <div class="stepContent">
  118. <p class="txt">
  119. 双击<span>《安全证书.pfx》</span>,出现弹窗后点击
  120. <span>【下一步】</span>
  121. </p>
  122. <div class="imgs imgs2">
  123. <img src="./images/window/1.png" class="w1" />
  124. <img src="./images/window/2.png" class="w2" />
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="step" v-if="step === 2">
  130. <div class="stepNum">03</div>
  131. <div class="stepContent">
  132. <p class="txt">点击<span>【下一步】</span></p>
  133. <div class="imgs">
  134. <img src="./images/window/3.png" class="w3" />
  135. </div>
  136. </div>
  137. </div>
  138. <div class="step" v-if="step === 3">
  139. <div class="stepNum">04</div>
  140. <div class="stepContent">
  141. <p class="txt">点击<span>【下一步】</span></p>
  142. <div class="imgs">
  143. <img src="./images/window/4.png" class="w4" />
  144. </div>
  145. </div>
  146. </div>
  147. <div class="step" v-if="step === 4">
  148. <div class="stepNum">05</div>
  149. <div class="stepContent">
  150. <p class="txt">点击<span>【下一步】</span></p>
  151. <div class="imgs">
  152. <img src="./images/window/8.png" class="w8" />
  153. </div>
  154. </div>
  155. </div>
  156. <div class="step" v-if="step === 5">
  157. <div class="stepNum">06</div>
  158. <div class="stepContent">
  159. <p class="txt">点击<span>【完成】</span></p>
  160. <div class="imgs">
  161. <img src="./images/window/5.png" class="w5" />
  162. </div>
  163. </div>
  164. </div>
  165. <div class="step" v-if="step === 6">
  166. <div class="stepNum">07</div>
  167. <div class="stepContent">
  168. <p class="txt">点击<span>【确定】</span></p>
  169. <div class="imgs">
  170. <img src="./images/window/6.png" class="w6" />
  171. </div>
  172. </div>
  173. </div>
  174. <div v-if="step === 7">
  175. <div class="step">
  176. <div class="stepNum">08</div>
  177. <div class="stepContent">
  178. <p class="txt">
  179. <span class="red">重启浏览器</span>
  180. ,打开管乐迷后台网址
  181. </p>
  182. </div>
  183. </div>
  184. <div class="step">
  185. <div class="stepNum">09</div>
  186. <div class="stepContent">
  187. <p class="txt">
  188. 在【选择证书】弹窗中点击<span>【确定】</span>
  189. 按钮,证书安装完成,开始使用管乐迷后台吧!
  190. </p>
  191. <img src="./images/window/7.png" class="w7" />
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="btnGroup">
  199. <div
  200. v-if="step > 1"
  201. class="btn btnUp"
  202. :style="{ cursor: step <= 1 ? 'not-allowed' : 'pointer' }"
  203. @click="changeUpDown('up')"
  204. ></div>
  205. <div
  206. :class="['btn', 'btnDown', step === maxStep && 'btnDone']"
  207. @click="changeUpDown('down')"
  208. ></div>
  209. </div>
  210. </div>
  211. </div>
  212. </template>
  213. <script>
  214. import { browser } from "@/utils";
  215. export default {
  216. data() {
  217. return {
  218. brower: browser() || {},
  219. step: 1,
  220. maxStep: browser().ios ? 5 : 7
  221. };
  222. },
  223. methods: {
  224. changeUpDown(type) {
  225. if (type === "up") {
  226. if (this.step <= 1) return;
  227. this.step -= 1;
  228. } else if (type === "down") {
  229. if (this.step >= this.maxStep) {
  230. this.$listeners.close();
  231. } else {
  232. this.step += 1;
  233. }
  234. }
  235. document.querySelector(".scrollbarRef").scrollTo(0, 0);
  236. },
  237. onDownload() {
  238. const isMac = (function() {
  239. return /macintosh|mac os x/i.test(navigator.userAgent);
  240. })();
  241. if (isMac) {
  242. window.open(
  243. `https://oss.dayaedu.com/https-ssl/gym/安全证书.p12?v=${new Date().getTime()}`
  244. );
  245. } else {
  246. window.open("https://oss.dayaedu.com/https-ssl/安全证书.pfx");
  247. }
  248. }
  249. }
  250. };
  251. </script>
  252. <style lang="less" scoped>
  253. .theAuth {
  254. // background-color: #fff;
  255. width: 724px;
  256. padding-top: 130px;
  257. box-shadow: none;
  258. position: relative;
  259. // overflow: hidden;
  260. .iconClose {
  261. position: absolute;
  262. right: 38px;
  263. top: 118px;
  264. width: 16px;
  265. height: 16px;
  266. background: url("./images/icon-close.png") no-repeat center;
  267. background-size: contain;
  268. cursor: pointer;
  269. }
  270. }
  271. .theTitle {
  272. position: absolute;
  273. top: 0;
  274. left: 0;
  275. background: url("./images/auth-title-bg.png") top center no-repeat;
  276. background-size: 100%;
  277. width: 100%;
  278. height: 142px;
  279. }
  280. .authContent {
  281. // background: linear-gradient(180deg, #e1f8ff 0%, #bbe7fd 100%);
  282. background: linear-gradient(180deg, #d3ede8 0%, #cff5fa 100%);
  283. border-radius: 0 0 23px 23px;
  284. padding-top: 8px;
  285. }
  286. .steps {
  287. margin: 11px 27px 0;
  288. padding-top: 12px;
  289. background: linear-gradient(
  290. 180deg,
  291. rgba(255, 255, 255, 0.7) 0%,
  292. rgba(255, 255, 255, 0.7) 88%,
  293. #c0e7eb 100%
  294. );
  295. border-radius: 18px;
  296. border: 1px solid #ffffff;
  297. .scrollbarRef {
  298. margin: 0 0 25px;
  299. padding: 14px 25px 25px;
  300. min-height: calc(55vh - 28px);
  301. max-height: calc(55vh - 28px);
  302. overflow-x: hidden;
  303. overflow-y: auto;
  304. &::-webkit-scrollbar {
  305. display: none;
  306. }
  307. }
  308. }
  309. .step {
  310. display: flex;
  311. align-items: flex-start;
  312. padding-bottom: 35px;
  313. .stepNum {
  314. width: 33px;
  315. height: 33px;
  316. display: flex;
  317. align-items: center;
  318. justify-content: center;
  319. text-align: center;
  320. background: #c1ece8;
  321. border: 1px solid #ffffff;
  322. font-size: 14px;
  323. font-weight: 600;
  324. color: #131415;
  325. border-radius: 50%;
  326. margin-right: 14px;
  327. flex-shrink: 0;
  328. }
  329. .stepContent {
  330. .txt {
  331. font-size: 14px;
  332. font-family: PingFangSC, PingFang SC;
  333. font-weight: 600;
  334. color: #000000;
  335. line-height: 33px;
  336. span {
  337. color: #14928a;
  338. }
  339. .red {
  340. color: #e80000;
  341. }
  342. }
  343. }
  344. .downloadCert {
  345. margin-top: 14px;
  346. width: 165px;
  347. height: 39px;
  348. background: url("./images/downlowdCert.png") no-repeat center;
  349. background-size: contain;
  350. border-radius: 50px;
  351. cursor: pointer;
  352. }
  353. .imgs2 {
  354. display: flex;
  355. align-items: flex-start;
  356. padding-top: 12px;
  357. .m6,
  358. .w2 {
  359. margin-left: 38px;
  360. }
  361. }
  362. img {
  363. border-radius: 2px;
  364. }
  365. .w1 {
  366. width: 90px;
  367. height: 98px;
  368. }
  369. .w2 {
  370. width: 250px;
  371. height: 258px;
  372. }
  373. .w3,
  374. .w4,
  375. .w5,
  376. .w8 {
  377. margin-top: 12px;
  378. width: 313px;
  379. height: 322px;
  380. }
  381. .w6 {
  382. margin-top: 12px;
  383. width: 196px;
  384. height: 207px;
  385. }
  386. .w7 {
  387. margin-top: 8px;
  388. width: 96%;
  389. }
  390. .m1 {
  391. width: 73px;
  392. height: 80px;
  393. }
  394. .m6 {
  395. width: 263px;
  396. }
  397. .m3 {
  398. margin-top: 8px;
  399. width: 358px;
  400. }
  401. .m2,
  402. .m4,
  403. .m5 {
  404. margin-top: 8px;
  405. width: 100%;
  406. }
  407. .m2 {
  408. width: 90%;
  409. }
  410. .moreImg {
  411. display: flex;
  412. align-items: center;
  413. flex-wrap: wrap;
  414. img {
  415. width: 47%;
  416. margin-bottom: 32px;
  417. &:nth-child(2n + 2) {
  418. margin-left: 6%;
  419. }
  420. }
  421. }
  422. }
  423. .btnGroup {
  424. padding: 25px 0;
  425. display: flex;
  426. align-items: center;
  427. justify-content: center;
  428. // :global {
  429. // .n-button {
  430. // height: 37px !important;
  431. // width: 223px !important;
  432. // --n-border: none !important;
  433. // --n-border-hover: none !important;
  434. // --n-border-pressed: none !important;
  435. // --n-border-focus: none !important;
  436. // background: linear-gradient(305deg, #15BBFF 0%, #1784FF 100%);
  437. // border-radius: 22px;
  438. // font-size: 15Px;
  439. // font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  440. // font-weight: bold;
  441. // color: #FFFFFF;
  442. // line-height: 22px;
  443. // letter-spacing: 1px;
  444. // }
  445. // }
  446. .btn {
  447. width: 165px;
  448. height: 39px;
  449. cursor: pointer;
  450. transition: opacity 0.2s ease;
  451. &:hover {
  452. opacity: 0.8;
  453. transition: opacity 0.2s ease;
  454. }
  455. + .btn {
  456. margin-left: 16px;
  457. }
  458. }
  459. .btnUp {
  460. background: url("./images/btn-up.png") no-repeat center center;
  461. background-size: contain;
  462. }
  463. .btnDown {
  464. background: url("./images/btn-down.png") no-repeat center center;
  465. background-size: contain;
  466. }
  467. .btnDone {
  468. background: url("./images/btn-done.png") no-repeat center center;
  469. background-size: contain;
  470. }
  471. }
  472. </style>