index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <!-- <view class="one">
  5. <text>{{type==0?'短信验证码登录':'手机号密码登录'}}</text>
  6. </view>
  7. <view class="two">
  8. <uni-forms ref="form" :model="form" :rules="rules" label-width="auto">
  9. <uni-forms-item label="手机号" name="phone">
  10. <uni-easyinput type="number" v-model="form.phone" />
  11. </uni-forms-item>
  12. <uni-forms-item label="验证码" name="code" v-if="type==0">
  13. <view class="yzm">
  14. <view class="l">
  15. <uni-easyinput type="number" v-model="form.code" placeholder="请输入验证码" />
  16. </view>
  17. <view class="r">
  18. <button type="default" size="mini" @tap="oneSms">{{sms_1==0?'验证码':sms_1}}</button>
  19. </view>
  20. </view>
  21. </uni-forms-item>
  22. <uni-forms-item label="登录密码" name="password" v-if="type==1">
  23. <uni-easyinput type="text" v-model="form.password" placeholder="请输入登录密码" />
  24. </uni-forms-item>
  25. <view class="type">
  26. <button type="default" size="mini" @tap="passLogin">{{type==0?'密码登录':'短信登录'}}</button>
  27. </view>
  28. <view class="agree">
  29. <checkbox-group @change="changeAgree">
  30. <label>
  31. <checkbox :checked="agree" />
  32. <text @tap.stop="toAgree()">我已阅读并同意“用户协议”和“隐私政策”</text>
  33. </label>
  34. </checkbox-group>
  35. </view>
  36. <view class="btn">
  37. <button type="default" size="mini" @click="onSubmit('form')">登录</button>
  38. </view>
  39. </uni-forms>
  40. </view>
  41. <view class="thr">
  42. <view class="thr_1">
  43. <text>其他登录方式</text>
  44. </view>
  45. <view class="thr_2">
  46. <view class="thr_2_1" @tap="otherLogin('wx')">
  47. <text class="iconfont icon-weixin"></text>
  48. </view>
  49. </view>
  50. </view> -->
  51. <view class="wx">
  52. <view class="wx_1">
  53. <text class="iconfont icon-weixin"></text>
  54. </view>
  55. <view class="wx_2">
  56. <button size="mini" @tap="otherLogin('wx')">微信信任登录</button>
  57. </view>
  58. <view class="wx_3">
  59. <checkbox-group @change="changeAgree">
  60. <label>
  61. <checkbox :checked="agree" />
  62. <text @tap.stop="toAgree()">我已阅读并同意“用户协议”和“隐私政策”</text>
  63. </label>
  64. </checkbox-group>
  65. </view>
  66. </view>
  67. </view>
  68. <uni-popup ref="dialogShow" type="center" :mask-click="false" background-color="#ffffff">
  69. <view class="popup">
  70. <view class="title">
  71. <text>绑定手机号</text>
  72. </view>
  73. <view class="wx_1">
  74. <text>确定获取微信绑定手机号吗?</text>
  75. </view>
  76. <view class="wx_2">
  77. <button size="mini" @tap="diaClose">取消</button>
  78. <button size="mini" open-type="getPhoneNumber" @getphonenumber="getUserPhone">确定</button>
  79. </view>
  80. </view>
  81. </uni-popup>
  82. <!-- <uni-popup ref="dialogShow" type="dialog">
  83. <uni-popup-dialog :title="dialog.title" mode="base" :before-close="true" @confirm="diaSubmit(dialog)" @close="diaReset(dialog)">
  84. <view class="dialog dialog_1" v-if="dialog.type=='1'">
  85. <uni-forms ref="phoneForm" :model="phoneForm" label-width="auto">
  86. <uni-forms-item label="方式">
  87. <uni-data-checkbox v-model="phoneForm.type" :localdata="typeList" />
  88. </uni-forms-item>
  89. <uni-forms-item label="微信" v-if="phoneForm.type==0">
  90. <button type="default" size="mini" open-type="getPhoneNumber" @getphonenumber="getUserPhone">获取微信绑定手机</button>
  91. </uni-forms-item>
  92. <uni-forms-item label="手机号" v-if="phoneForm.type==0">
  93. <uni-easyinput type="number" v-model="phoneForm.phone" disabled />
  94. </uni-forms-item>
  95. <uni-forms-item label="手机号" v-if="phoneForm.type==1">
  96. <view class="yzm">
  97. <view class="l">
  98. <uni-easyinput type="number" v-model="phoneForm.phone" placeholder="请输入手机号" />
  99. </view>
  100. <view class="r">
  101. <button type="default" size="mini" @tap="twoSms">{{sms_1==0?'验证码':sms_1}}</button>
  102. </view>
  103. </view>
  104. </uni-forms-item>
  105. <uni-forms-item label="验证码" v-if="phoneForm.type==1">
  106. <uni-easyinput type="number" v-model="phoneForm.code" placeholder="请输入验证码" />
  107. </uni-forms-item>
  108. </uni-forms>
  109. </view>
  110. </uni-popup-dialog>
  111. </uni-popup> -->
  112. </mobile-frame>
  113. </template>
  114. <script>
  115. import moment from 'moment';
  116. export default {
  117. data() {
  118. return {
  119. // 平台信息
  120. system: {},
  121. openid: '',
  122. // 登录类型
  123. type: 0,
  124. form: {},
  125. rules: {
  126. phone: {
  127. rules: [ //
  128. {
  129. required: true,
  130. errorMessage: '请输入手机号',
  131. },
  132. {
  133. minLength: 11,
  134. maxLength: 11,
  135. errorMessage: '账号长度在{maxLength}个字符',
  136. }
  137. ]
  138. }
  139. },
  140. sms_1: 0,
  141. // 用戶协议
  142. agree: true,
  143. // 注册账号信息
  144. user: {},
  145. // 弹框
  146. dialog: {
  147. title: '绑定手机号',
  148. type: '1'
  149. },
  150. // 绑定手机号
  151. phoneForm: {
  152. type: 0,
  153. },
  154. typeList: [ //
  155. {
  156. limit: 10,
  157. text: '微信',
  158. value: 0
  159. },
  160. {
  161. text: '短信验证',
  162. value: 1
  163. }
  164. ],
  165. };
  166. },
  167. onShow: function() {
  168. const that = this;
  169. // 查询平台信息
  170. that.searchSystem();
  171. },
  172. methods: {
  173. // 查询平台信息
  174. searchSystem() {
  175. const that = this;
  176. let system = that.$config.system;
  177. if (system) {
  178. that.$set(that, `system`, system);
  179. that.searchOpenid();
  180. }
  181. },
  182. // 查询openid
  183. searchOpenid() {
  184. const that = this;
  185. let system = that.system;
  186. if (system.uniPlatform == "mp-weixin") {
  187. uni.login({
  188. provider: 'weixin',
  189. success: function(res) {
  190. if (res && res.code) that.searchOpenids(res.code)
  191. },
  192. fail: function(err) {
  193. console.log('2');
  194. }
  195. })
  196. } else if (system.uniPlatform == "app") {
  197. console.log('app');
  198. }
  199. },
  200. async searchOpenids(code) {
  201. const that = this;
  202. const aee = await that.$api(`/wechat/api/login/app`, 'GET', {
  203. config: that.$config.wx_projectkey,
  204. js_code: code
  205. })
  206. if (aee.errcode == '0') {
  207. that.$set(that, `openid`, aee.data.openid);
  208. }
  209. },
  210. // 选择登录类型
  211. typeChange(e) {
  212. const that = this;
  213. that.$set(that, `type`, e.detail.value);
  214. },
  215. // 短信登录/密码登录
  216. passLogin() {
  217. const that = this;
  218. let type = 0;
  219. if (that.type == 0) type = 1;
  220. that.$set(that, `type`, type)
  221. },
  222. // 短信登录-发送验证码
  223. async oneSms() {
  224. const that = this;
  225. let form = that.form;
  226. if (form && form.phone) {
  227. let res = await that.$api(`/user/toLoginByCode`, 'POST', {
  228. phone: form.phone
  229. })
  230. if (res.errcode == '0') {
  231. uni.showToast({
  232. title: '发送成功',
  233. icon: 'none'
  234. })
  235. that.$set(that, `sms_1`, 60);
  236. that.timeDown();
  237. } else {
  238. uni.showToast({
  239. title: res.errmsg,
  240. icon: 'none'
  241. })
  242. }
  243. } else {
  244. uni.showToast({
  245. title: '输入错误,请重新输入!',
  246. icon: 'none'
  247. })
  248. }
  249. },
  250. // 登录
  251. onSubmit(ref) {
  252. const that = this;
  253. let agree = that.agree;
  254. let system = that.system;
  255. let type = that.type;
  256. that.$refs[ref].validate().then(async params => {
  257. if (agree) {
  258. if (type == 0 && system.uniPlatform == 'app') {
  259. // app,短信验证码登录
  260. that.appSmsLogin(params);
  261. } else if (type == 1 && system.uniPlatform == 'app') {
  262. // app,密码登录
  263. that.appPassLogin(params);
  264. } else if (type == 0 && system.uniPlatform == 'mp-weixin') {
  265. // wx,短信验证码登录
  266. that.wxSmsLogin(params)
  267. } else if (type == 1 && system.uniPlatform == 'mp-weixin') {
  268. // wx,密码登录
  269. that.wxPassLogin(params)
  270. }
  271. } else {
  272. uni.showToast({
  273. title: '请阅读并同意用户协议和隐私政策',
  274. icon: 'none'
  275. })
  276. }
  277. }).catch(err => {
  278. console.log(err);
  279. })
  280. },
  281. // app,短信验证码登录
  282. async appSmsLogin(e) {
  283. const that = this;
  284. if (e.code) {
  285. const res = await that.$api(`/user/checkLoginCode`, 'POST', e);
  286. if (res.errcode == '0') {
  287. uni.setStorage({
  288. key: 'token',
  289. data: res.data,
  290. success: function() {
  291. uni.navigateBack({
  292. delta: 1
  293. })
  294. }
  295. });
  296. } else {
  297. if (res.errcode == '-5') {
  298. uni.showToast({
  299. title: '用户不存在',
  300. icon: 'none'
  301. })
  302. // todo:验证码登录用户不存在可自动注册账号,并跳转
  303. } else {
  304. uni.showToast({
  305. title: res.errmsg || '信息错误',
  306. icon: 'none'
  307. })
  308. }
  309. }
  310. } else {
  311. uni.showToast({
  312. title: '请输入验证码',
  313. icon: 'none'
  314. })
  315. }
  316. },
  317. // app,密码登录
  318. async appPassLogin(e) {
  319. const that = this;
  320. if (e.password) {
  321. const res = await that.$api(`/user/login`, 'POST', e);
  322. if (res.errcode == '0') {
  323. uni.setStorage({
  324. key: 'token',
  325. data: res.data,
  326. success: function() {
  327. uni.navigateBack({
  328. delta: 1
  329. })
  330. }
  331. });
  332. } else {
  333. uni.showToast({
  334. title: res.errmsg || '信息错误',
  335. icon: 'none'
  336. })
  337. }
  338. } else {
  339. uni.showToast({
  340. title: '请输入登录密码',
  341. icon: 'none'
  342. })
  343. }
  344. },
  345. // wx,短信验证码登录
  346. async wxSmsLogin(e) {
  347. const that = this;
  348. if (e.code) {
  349. const res = await that.$api(`/user/checkLoginCode`, 'POST', e);
  350. if (res.errcode == '0') {
  351. uni.setStorage({
  352. key: 'token',
  353. data: res.data,
  354. success: function() {
  355. uni.navigateBack({
  356. delta: 1
  357. })
  358. }
  359. });
  360. } else {
  361. if (res.errcode == '-5') {
  362. uni.showModal({
  363. title: '提示',
  364. content: '用户不存在,是否注册新账号?',
  365. success: function(res) {
  366. if (res.confirm) {
  367. // 无账号,注册账号
  368. that.wxCreate();
  369. }
  370. }
  371. });
  372. } else {
  373. uni.showToast({
  374. title: res.errmsg || '信息错误',
  375. icon: 'none'
  376. })
  377. }
  378. }
  379. } else {
  380. uni.showToast({
  381. title: '请输入验证码',
  382. icon: 'none'
  383. })
  384. }
  385. },
  386. // wx,密码登录
  387. async wxPassLogin(e) {
  388. const that = this;
  389. if (e.password) {
  390. const res = await that.$api(`/user/login`, 'POST', e);
  391. if (res.errcode == '0') {
  392. uni.setStorage({
  393. key: 'token',
  394. data: res.data,
  395. success: function() {
  396. uni.navigateBack({
  397. delta: 1
  398. })
  399. }
  400. });
  401. } else {
  402. if (res.errcode == '-5') {
  403. uni.showModal({
  404. title: '提示',
  405. content: '用户不存在,是否注册新账号?',
  406. success: function(res) {
  407. if (res.confirm) {
  408. // 无账号,注册账号
  409. that.wxCreate();
  410. }
  411. }
  412. });
  413. } else {
  414. uni.showToast({
  415. title: res.errmsg || '信息错误',
  416. icon: 'none'
  417. })
  418. }
  419. }
  420. } else {
  421. uni.showToast({
  422. title: '请输入登录密码',
  423. icon: 'none'
  424. })
  425. }
  426. },
  427. // 其他登录方式
  428. async otherLogin(e) {
  429. const that = this;
  430. let system = that.system;
  431. let agree = that.agree;
  432. let openid = that.openid;
  433. if (agree) {
  434. if (system.uniPlatform == 'app') {
  435. uni.showToast({
  436. title: '暂无开通',
  437. icon: 'none'
  438. })
  439. // todo:app端,微信一键登录
  440. } else if (system.uniPlatform == 'mp-weixin') {
  441. if (e == 'wx') {
  442. if (openid) {
  443. const res = await that.$api(`/user/wxLogin`, 'POST', {
  444. openid: openid
  445. })
  446. if (res.errcode == '0') {
  447. uni.setStorage({
  448. key: 'token',
  449. data: res.data,
  450. success: function() {
  451. uni.navigateBack({
  452. delta: 1
  453. })
  454. let user = that.$jwt(res.data);
  455. // 如果是团长,请求刷新
  456. if (user.is_leader == '0') {
  457. let pages = getCurrentPages();
  458. let prePage = pages[pages.length - 2];
  459. let prePage2 = pages[pages.length - 3];
  460. if (prePage.route == 'pagesHome/order/detail') prePage.$vm
  461. .search()
  462. if (prePage2.route == 'pages/home/index') {
  463. prePage2.$vm.clearPage();
  464. prePage2.$vm.search();
  465. }
  466. }
  467. }
  468. });
  469. } else {
  470. if (res.errcode == '-5') {
  471. // 无账号,注册账号
  472. that.wxCreate();
  473. // uni.showModal({
  474. // title: '提示',
  475. // content: '用户不存在,是否注册新账号?',
  476. // success: function(res) {
  477. // if (res.confirm) {
  478. // // 无账号,注册账号
  479. // that.wxCreate();
  480. // }
  481. // }
  482. // });
  483. } else {
  484. uni.showToast({
  485. title: res.errmsg || '信息错误',
  486. icon: 'none'
  487. })
  488. }
  489. }
  490. } else {
  491. uni.showToast({
  492. title: '系统更新中,请稍后再试!',
  493. icon: 'none'
  494. })
  495. }
  496. }
  497. }
  498. } else {
  499. uni.showToast({
  500. title: '请阅读并同意用户协议和隐私政策',
  501. icon: 'none'
  502. })
  503. }
  504. },
  505. // wx,注册账号
  506. wxCreate() {
  507. const that = this;
  508. uni.getUserProfile({
  509. desc: '用于展示',
  510. success: async function(res) {
  511. let parmas = {
  512. openid: that.openid,
  513. icon: [{
  514. url: res.userInfo.avatarUrl
  515. }],
  516. name: res.userInfo.nickName + moment().valueOf(),
  517. }
  518. const arr = await that.$api(`/user`, 'POST', parmas);
  519. if (arr.errcode == '0') {
  520. that.$set(that, `user`, arr.data);
  521. // 打开弹框
  522. that.diaShow();
  523. } else {
  524. uni.showToast({
  525. title: arr.errmsg,
  526. icon: 'none'
  527. });
  528. }
  529. },
  530. fail: function(err) {
  531. console.log(err);
  532. }
  533. })
  534. },
  535. // 打开弹框,绑定手机号
  536. diaShow() {
  537. const that = this;
  538. that.$refs.dialogShow.open();
  539. },
  540. // 获取手机号
  541. async getUserPhone(e) {
  542. const that = this;
  543. let user = that.user;
  544. let detail = e.detail;
  545. let res = await that.$api(`/wechat/api/login/getPhone`, 'GET', {
  546. config: that.$config.wx_projectkey,
  547. code: detail.code
  548. })
  549. if (res.errcode == '0') {
  550. let phone = res.data && res.data.phone_info && res.data.phone_info.purePhoneNumber || '';
  551. that.updatePhone(phone, 'wx')
  552. } else {
  553. uni.showToast({
  554. title: res.errmsg,
  555. icon: 'none'
  556. })
  557. }
  558. },
  559. // 弹框关闭
  560. diaClose() {
  561. const that = this;
  562. that.$refs.dialogShow.close();
  563. that.otherLogin('wx');
  564. },
  565. async twoSms() {
  566. const that = this;
  567. let user = this.user;
  568. let form = that.phoneForm;
  569. if (form && form.phone) {
  570. let res = await that.$api(`/user/toBindPhone`, 'POST', {
  571. id: user._id,
  572. phone: form.phone
  573. })
  574. if (res.errcode == '0') {
  575. uni.showToast({
  576. title: '发送成功',
  577. icon: 'none'
  578. })
  579. that.$set(that, `sms_1`, 60);
  580. that.timeDown();
  581. } else {
  582. uni.showToast({
  583. title: res.errmsg,
  584. icon: 'none'
  585. })
  586. }
  587. } else {
  588. uni.showToast({
  589. title: '请输入手机号!',
  590. icon: 'none'
  591. })
  592. }
  593. },
  594. // 弹框确定
  595. async diaSubmit(e) {
  596. const that = this;
  597. let user = this.user;
  598. let form = that.phoneForm;
  599. if (e.type == '1') {
  600. if (form.type == 0) {
  601. if (form && form.phone) that.updatePhone(form.phone, 'wx');
  602. } else if (form.type == 1) {
  603. const res = await that.$api(`/user/checkBindPhone`, 'POST', {
  604. id: user._id,
  605. code: form.code,
  606. phone: form.phone
  607. });
  608. if (res.errcode == '0') {
  609. that.updatePhone(form.phone, 'wx');
  610. } else {
  611. uni.showToast({
  612. title: arr.errmsg,
  613. icon: 'none'
  614. })
  615. }
  616. } else {
  617. uni.showToast({
  618. title: res.errmsg,
  619. icon: 'none'
  620. })
  621. }
  622. }
  623. },
  624. // 弹框取消(关闭)
  625. diaReset(e) {
  626. const that = this;
  627. if (e.type == '1') {
  628. that.otherLogin('wx');
  629. }
  630. },
  631. async updatePhone(e, type) {
  632. const that = this;
  633. let user = that.user;
  634. let arr = await that.$api(`/user/${user._id}`, 'POST', {
  635. phone: e
  636. })
  637. if (arr.errcode == '0') {
  638. that.otherLogin(type);
  639. } else {
  640. uni.showToast({
  641. title: res.errmsg,
  642. icon: 'none'
  643. })
  644. }
  645. },
  646. // 倒计时
  647. timeDown() {
  648. const that = this;
  649. var times = setInterval(() => {
  650. that.sms_1--;
  651. if (that.sms_1 <= 0) {
  652. clearInterval(times);
  653. }
  654. }, 1000);
  655. },
  656. // 同意隐私协议
  657. changeAgree() {
  658. const that = this;
  659. let agree = true;
  660. if (that.agree) agree = false;
  661. that.$set(that, `agree`, agree);
  662. },
  663. // 查看隐私协议
  664. toAgree() {
  665. const that = this;
  666. uni.navigateTo({
  667. url: `/pages/other/agree`
  668. })
  669. },
  670. },
  671. }
  672. </script>
  673. <style lang="scss">
  674. .main {
  675. display: flex;
  676. flex-direction: column;
  677. width: 100vw;
  678. height: 100vh;
  679. .one {
  680. position: relative;
  681. flex-grow: 0.01;
  682. padding: 0 5vw;
  683. margin: 10vw 0;
  684. text {
  685. font-size: 30px;
  686. font-family: cursive;
  687. font-weight: bold;
  688. }
  689. }
  690. .two {
  691. position: relative;
  692. flex-grow: 0.3;
  693. padding: 0 5vw;
  694. .type {
  695. text-align: center;
  696. margin: 0 0 2vw 0;
  697. }
  698. .agree {
  699. text-align: center;
  700. font-size: 12px;
  701. margin: 0 0 2vw 0;
  702. }
  703. .btn {
  704. text-align: center;
  705. button {
  706. width: 80%;
  707. border-radius: 25px;
  708. font-size: 16px;
  709. color: #fff;
  710. background-color: green;
  711. }
  712. }
  713. }
  714. .thr {
  715. padding: 0 2vw;
  716. text-align: center;
  717. .thr_1 {
  718. font-size: 14px;
  719. margin: 0 0 2vw 0;
  720. color: #858585;
  721. }
  722. .thr_2 {
  723. display: flex;
  724. justify-content: center;
  725. .thr_2_1 {
  726. margin: 0 2vw;
  727. text {
  728. font-size: 40px;
  729. }
  730. }
  731. }
  732. }
  733. .wx {
  734. text-align: center;
  735. margin: 25vw 0 0 0;
  736. .wx_1 {
  737. margin: 0 0 5vw 0;
  738. text {
  739. font-size: 50px;
  740. }
  741. }
  742. .wx_2 {
  743. button {
  744. background: var(--f35BColor);
  745. color: var(--fffColor);
  746. font-size: var(--font16Size);
  747. }
  748. }
  749. .wx_3 {
  750. position: absolute;
  751. bottom: 10vw;
  752. width: 100vw;
  753. text-align: center;
  754. font-size: 12px;
  755. }
  756. }
  757. }
  758. .yzm {
  759. display: flex;
  760. flex-direction: row;
  761. justify-content: space-between;
  762. .l {
  763. flex-grow: 1;
  764. }
  765. .r {
  766. width: 18vw;
  767. button {
  768. width: 100%;
  769. line-height: 2.8;
  770. padding: 0 1vw;
  771. }
  772. }
  773. }
  774. .dialog {
  775. width: 100vw;
  776. }
  777. .dialog_1 {
  778. .uni-forms {
  779. display: flex;
  780. form {
  781. width: 100%;
  782. }
  783. }
  784. .uni-data-checklist {
  785. border: 1px solid #E5E5E5;
  786. padding: 1vw;
  787. border-radius: 5px;
  788. }
  789. .uni-forms-item {
  790. margin-bottom: 2vw !important;
  791. }
  792. }
  793. .uni-popup__wrapper {
  794. border-radius: 5px;
  795. }
  796. .popup {
  797. width: 86vw;
  798. padding: 2vw;
  799. .title {
  800. text-align: center;
  801. margin: 0 0 2vw 0;
  802. text {
  803. color: var(--ff0Color);
  804. font-size: var(--font16Size);
  805. }
  806. }
  807. .wx_1 {
  808. text-align: center;
  809. margin: 9vw 0;
  810. text {
  811. font-size: var(--font18Size);
  812. }
  813. }
  814. .wx_2 {
  815. text-align: center;
  816. button {
  817. margin: 0 2vw;
  818. font-size: var(--font16Size);
  819. padding: 0 10vw;
  820. color: var(--fffColor);
  821. background-color: var(--f35BColor);
  822. }
  823. button:nth-child(1) {
  824. background-color: var(--ff0Color);
  825. }
  826. }
  827. }
  828. </style>