index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="shortcut icon" href="/selectstatic/favicon.ico">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>大卫博士-代理商授权查询</title>
  8. <script src="/selectstatic/js/vue@2.6.12.js"></script>
  9. <script src="/selectstatic/js/axios.min.js"></script>
  10. <script src="/selectstatic/js/pxtorem.js"></script>
  11. <style>
  12. * {
  13. margin: 0;
  14. padding: 0;
  15. }
  16. html, body, .container{
  17. width: 100%;
  18. height: 100%;
  19. user-select: none;
  20. overflow: hidden;
  21. }
  22. .container {
  23. background-image: url(/selectstatic/img/bg.png);
  24. background-repeat: no-repeat;
  25. background-size: cover;
  26. background-position: center;
  27. display: flex;
  28. align-items: center;
  29. justify-content: space-between;
  30. position: relative;
  31. }
  32. .LoginContainer {
  33. position: absolute;
  34. top: 50%;
  35. right: -5.36rem;
  36. width: 15.08rem;
  37. height: 15.08rem;
  38. border-radius: 50%;
  39. background: #ffffff;
  40. transform: translateY(-50%);
  41. }
  42. .Login-show {
  43. position: absolute;
  44. left: 0;
  45. top: 50%;
  46. transform: translateY(-50%);
  47. width: 9.72rem;
  48. }
  49. .Login-brand {
  50. width: calc(100% + 1.2rem);
  51. }
  52. .Login-brand> p:nth-of-type(1) {
  53. text-align: right;
  54. color: #333333;
  55. font-size: 0.46rem;
  56. margin-bottom: 0.05rem;
  57. font-weight: 500;
  58. }
  59. .Login-brand> p:nth-of-type(2) {
  60. color: #F5321D;
  61. font-size: 0.32rem;
  62. text-align: right;
  63. opacity: 0.3;
  64. }
  65. .Login-body {
  66. position: absolute;
  67. top: 50%;
  68. left: 0;
  69. transform: translateY(-50%);
  70. padding: 0.50rem 0.50rem 0.50rem 2.15rem;
  71. box-sizing: border-box;
  72. height: 100%;
  73. width: max-content;
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. }
  78. .Login-title {
  79. width: 5.84rem;
  80. text-align: center;
  81. color: #333333;
  82. font-size: 0.68rem;
  83. font-weight: 500;
  84. text-align: center;
  85. margin-bottom: 0.05rem;
  86. }
  87. .Login-desc {
  88. width: 5.84rem;
  89. text-align: center;
  90. color: #333333;
  91. font-size: 0.34rem;
  92. font-weight: 400;
  93. text-align: center;
  94. margin-bottom: 0.60rem;
  95. }
  96. .login-input {
  97. width: 5.84rem;
  98. height: 0.90rem;
  99. line-height: 0.90rem;
  100. text-align: center;
  101. font-size: 0.28rem;
  102. border: 2px solid #F53C1E !important;
  103. border-radius: 4px;
  104. outline-color: #F53C1E !important;
  105. box-sizing: border-box;
  106. margin-bottom: 0.33rem;
  107. }
  108. .Login-btn {
  109. width: 5.84rem;
  110. height: 0.90rem;
  111. line-height: 0.90rem;
  112. text-align: center;
  113. color: #FFFFFF;
  114. font-size: 0.27rem;
  115. background: #F53C1E;
  116. border-radius: 4px;
  117. cursor: pointer;
  118. margin-bottom: 0.36rem;
  119. }
  120. .Login-tip {
  121. width: 5.84rem;
  122. text-align: center;
  123. color: #EA4A41;
  124. font-size: 0.20rem;
  125. text-align: center;
  126. }
  127. .Login-info {
  128. display: flex;
  129. align-items: flex-start;
  130. justify-content: flex-start;
  131. flex-direction: column;
  132. margin-top: 1.00rem;
  133. }
  134. .BrandContainer {
  135. padding-top: 1.40rem;
  136. padding-left: 0.80rem;
  137. padding-bottom: 0.30rem;
  138. height: 100%;
  139. box-sizing: border-box;
  140. display: flex;
  141. align-items: flex-start;
  142. justify-content: space-between;
  143. flex-direction: column;
  144. }
  145. .Brand-logo {
  146. display: block;
  147. height: 2.12rem;
  148. }
  149. .Brand-chengnuo {
  150. display: block;
  151. height: 3.73rem;
  152. margin-left: 0.50rem;
  153. }
  154. .Brand-start {
  155. width: calc(100% + 0.80rem);
  156. color: #ffffff;
  157. font-size: 0.18rem;
  158. text-align: right;
  159. margin-right: -0.20rem;
  160. }
  161. .Search-info {
  162. width: 5.52rem;
  163. margin-top: 0.70rem;
  164. }
  165. .Search-account {
  166. color: #333333;
  167. font-size: 0.24rem;
  168. margin-bottom: 0.20rem;
  169. text-align: center;
  170. width: 100%;
  171. }
  172. .Search-fixed-title {
  173. color: #F53C1E;
  174. font-size: 0.46rem;
  175. margin-bottom: 0.27rem;
  176. text-align: center;
  177. width: 100%;
  178. }
  179. .Search-fixed-desc {
  180. color: #333333;
  181. width: 80%;
  182. text-align: center;
  183. height: 0.25rem;
  184. font-size: 0.24rem;
  185. line-height: 0.25rem;
  186. background-image: url(/selectstatic/img/fixed_bg.png);
  187. background-size: 100% auto;
  188. background-position: center;
  189. background-repeat: no-repeat;
  190. margin: 0 auto;
  191. margin-bottom: 0.4rem;
  192. }
  193. .Member-info {
  194. width: 100%;
  195. list-style: none;
  196. margin-bottom: 0.40rem;
  197. }
  198. .Member-info>li {
  199. width: 100%;
  200. height: 0.70rem;
  201. display: flex;
  202. align-items: center;
  203. justify-content: space-between;
  204. border-bottom: 1px solid #EEEEEE;
  205. color: #333333;
  206. font-size: 0.28rem;
  207. }
  208. .Member-info>li .spec {
  209. color: #F53C1E;
  210. }
  211. .Secrch-see {
  212. width: 100%;
  213. height: 0.85rem;
  214. border-radius: 4px;
  215. color: #FFFFFF;
  216. font-size: 0.28rem;
  217. cursor: pointer;
  218. line-height: 0.85rem;
  219. text-align: center;
  220. background: #F53C1E;
  221. letter-spacing: 3px;
  222. }
  223. </style>
  224. </head>
  225. <body>
  226. <div id="app" class="container">
  227. <div class="BrandContainer">
  228. <img src="/selectstatic/img/logo.png" alt="" class="Brand-logo">
  229. <img src="/selectstatic/img/chengnuo.png" alt="" class="Brand-chengnuo">
  230. <p class="Brand-start">不变的承诺始于2014:90天——366天穿了不满意全额退款</p>
  231. </div>
  232. <div
  233. class="LoginContainer"
  234. ref="login"
  235. >
  236. <!-- :style="`height: %{ 1508 }`" -->
  237. <div class="Login-show" :style="`height:${screenH}px`">
  238. <div class="Login-body">
  239. <!--<div class="Login-brand">-->
  240. <!--<p>大卫博士</p>-->
  241. <!--<p>Dr. David</p>-->
  242. <!--</div>-->
  243. <div v-if="!status" class="Login-info">
  244. <p class="Login-title">代理商授权查询</p>
  245. <p class="Login-desc">Authorization query</p>
  246. <input v-model="phone" type="text" placeholder="请输入代理商手机号" class="login-input">
  247. <p class="Login-btn" @click="toSearch">立即查询</p>
  248. <p class="Login-tip">未查询到代理商信息,请勿轻易转款,谨防受骗</p>
  249. </div>
  250. <div v-else class="Login-info Search-info">
  251. <p class="Search-account">账户{{ phone.substring(0, 3) + '****' + phone.substr(phone.length - 4) }}是</p>
  252. <p class="Search-fixed-title">大卫博士授权代理商</p>
  253. <p class="Search-fixed-desc">代理信息</p>
  254. <ul class="Member-info">
  255. <li>
  256. <p>级  别:</p>
  257. <p>{{ memberInfo.level }}</p>
  258. </li>
  259. <li>
  260. <p>昵  称:</p>
  261. <p>{{ memberInfo.wechat }}</p>
  262. </li>
  263. <li>
  264. <p>姓  名:</p>
  265. <p>{{ memberInfo.realname }}</p>
  266. </li>
  267. <!-- <li>-->
  268. <!-- <p>身份证号:</p>-->
  269. <!-- <p>{{ memberInfo.num | showCradNum }}</p>-->
  270. <!-- </li>-->
  271. <li>
  272. <p>授权状态</p>
  273. <p :class="memberInfo.status === 1 ? 'spec' : ''">{{ memberInfo.status === 1 ? '已授权' : '已过期' }}</p>
  274. </li>
  275. </ul>
  276. <!-- <p class="Secrch-see" @click="toSeeAuth">查看授权书</p>-->
  277. </div>
  278. <p style="opacity: 0">1</p>
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. </body>
  284. <script>
  285. var app = new Vue({
  286. el: '#app',
  287. data() {
  288. return {
  289. screenH: 0,
  290. phone: '',
  291. status: false,
  292. memberInfo: {}
  293. }
  294. },
  295. filters: {
  296. showCradNum(str) {
  297. if (!str) {
  298. return ''
  299. }
  300. let arr = str.split('')
  301. if (arr.length === 18) {
  302. arr.splice(6, 8, 'xxxx')
  303. return arr.join('')
  304. } else if (arr.length === 15) {
  305. arr.splice(6, 6, 'xxxx')
  306. return arr.join('')
  307. } else {
  308. return str
  309. }
  310. },
  311. },
  312. mounted() {
  313. this.getScreenH()
  314. let _this = this
  315. window.onresize = function() {
  316. _this.getScreenH()
  317. }
  318. },
  319. methods:{
  320. getScreenH() {
  321. this.screenH = document.body.clientHeight
  322. let _W = document.body.clientWidth
  323. ratio = (1920 / _W).toFixed(2)
  324. this.$refs.login.setAttribute('style', `width: ${15 * ratio}rem; height: ${15 * ratio}rem; right: -${570 * ratio}px`)
  325. },
  326. toSearch() {
  327. if(!this.phone) {
  328. alert('请输入要查询的手机号')
  329. return false
  330. }
  331. axios.get("https://api.app.jiuweiyun.cn/api/user/auth_sel", {
  332. params: {
  333. phone: this.phone
  334. }
  335. }).then(res => {
  336. if(res.code === 200) {
  337. const { status } = res.data;
  338. if (status !== 3) {
  339. this.status = true
  340. this.memberInfo = res.data
  341. } else {
  342. alert(res.msg || '手机号未授权')
  343. }
  344. } else {
  345. alert('查询失败')
  346. }
  347. }).catch(() => {
  348. alert('服务器发生错误,查询失败')
  349. })
  350. },
  351. toSeeAuth() {
  352. axios.get("https://api.app.jiuweiyun.cn/api/user/auth_show", {
  353. params: {
  354. phone: this.phone
  355. }
  356. }).then(res => {
  357. if(res.code === 200){
  358. const { url } = res.data
  359. window.open(url, '_target')
  360. } else {
  361. alert(res.msg || '查看授权书失败')
  362. }
  363. }).catch(() => {
  364. alert('服务器发生错误,查看授权书失败')
  365. })
  366. }
  367. }
  368. })
  369. </script>
  370. </html>