index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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. shop: that.$config.shop
  446. })
  447. if (res.errcode == '0') {
  448. uni.setStorage({
  449. key: 'token',
  450. data: res.data,
  451. success: function() {
  452. uni.navigateBack({
  453. delta: 1
  454. })
  455. let user = that.$jwt(res.data);
  456. //当websocket收到后端发送的消息时,触发
  457. let config = that.$config.wsUrl;
  458. // 开启websocket
  459. that.$store.dispatch('websocketInit',
  460. config + `/${user._id}`);
  461. // 如果是团长,请求刷新
  462. if (user.is_leader == '0') {
  463. let pages = getCurrentPages();
  464. let prePage = pages[pages.length - 2];
  465. let prePage2 = pages[pages.length - 3];
  466. if (prePage && prePage.route ==
  467. 'pagesHome/order/detail')
  468. prePage.$vm
  469. .search()
  470. if (prePage2 && prePage2.route ==
  471. 'pages/home/index') {
  472. prePage2.$vm.clearPage();
  473. prePage2.$vm.search();
  474. }
  475. }
  476. }
  477. });
  478. } else {
  479. if (res.errcode == '-5') {
  480. // 无账号,注册账号
  481. that.wxCreate();
  482. } else {
  483. uni.showToast({
  484. title: res.errmsg || '信息错误',
  485. icon: 'none'
  486. })
  487. }
  488. }
  489. } else {
  490. uni.showToast({
  491. title: '系统更新中,请稍后再试!',
  492. icon: 'none'
  493. })
  494. }
  495. }
  496. }
  497. } else {
  498. uni.showToast({
  499. title: '请阅读并同意用户协议和隐私政策',
  500. icon: 'none'
  501. })
  502. }
  503. },
  504. // wx,注册账号
  505. wxCreate() {
  506. const that = this;
  507. uni.getUserProfile({
  508. desc: '用于展示',
  509. success: async function(res) {
  510. let parmas = {
  511. openid: that.openid,
  512. icon: [{
  513. url: res.userInfo.avatarUrl
  514. }],
  515. shop: that.$config.shop,
  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. that.otherLogin('wx');
  524. } else {
  525. uni.showToast({
  526. title: arr.errmsg,
  527. icon: 'none'
  528. });
  529. }
  530. },
  531. fail: function(err) {
  532. console.log(err);
  533. }
  534. })
  535. },
  536. // 打开弹框,绑定手机号
  537. diaShow() {
  538. const that = this;
  539. that.$refs.dialogShow.open();
  540. },
  541. // 获取手机号
  542. async getUserPhone(e) {
  543. const that = this;
  544. let user = that.user;
  545. let detail = e.detail;
  546. let res = await that.$api(`/wechat/api/login/getPhone`, 'GET', {
  547. config: that.$config.wx_projectkey,
  548. code: detail.code
  549. })
  550. if (res.errcode == '0') {
  551. let phone = res.data && res.data.phone_info && res.data.phone_info.purePhoneNumber || '';
  552. that.updatePhone(phone, 'wx')
  553. } else {
  554. uni.showToast({
  555. title: res.errmsg,
  556. icon: 'none'
  557. })
  558. }
  559. },
  560. // 弹框关闭
  561. diaClose() {
  562. const that = this;
  563. that.$refs.dialogShow.close();
  564. that.otherLogin('wx');
  565. },
  566. async twoSms() {
  567. const that = this;
  568. let user = this.user;
  569. let form = that.phoneForm;
  570. if (form && form.phone) {
  571. let res = await that.$api(`/user/toBindPhone`, 'POST', {
  572. id: user._id,
  573. phone: form.phone
  574. })
  575. if (res.errcode == '0') {
  576. uni.showToast({
  577. title: '发送成功',
  578. icon: 'none'
  579. })
  580. that.$set(that, `sms_1`, 60);
  581. that.timeDown();
  582. } else {
  583. uni.showToast({
  584. title: res.errmsg,
  585. icon: 'none'
  586. })
  587. }
  588. } else {
  589. uni.showToast({
  590. title: '请输入手机号!',
  591. icon: 'none'
  592. })
  593. }
  594. },
  595. // 弹框确定
  596. async diaSubmit(e) {
  597. const that = this;
  598. let user = this.user;
  599. let form = that.phoneForm;
  600. if (e.type == '1') {
  601. if (form.type == 0) {
  602. if (form && form.phone) that.updatePhone(form.phone, 'wx');
  603. } else if (form.type == 1) {
  604. const res = await that.$api(`/user/checkBindPhone`, 'POST', {
  605. id: user._id,
  606. code: form.code,
  607. phone: form.phone
  608. });
  609. if (res.errcode == '0') {
  610. that.updatePhone(form.phone, 'wx');
  611. } else {
  612. uni.showToast({
  613. title: arr.errmsg,
  614. icon: 'none'
  615. })
  616. }
  617. } else {
  618. uni.showToast({
  619. title: res.errmsg,
  620. icon: 'none'
  621. })
  622. }
  623. }
  624. },
  625. // 弹框取消(关闭)
  626. diaReset(e) {
  627. const that = this;
  628. if (e.type == '1') {
  629. that.otherLogin('wx');
  630. }
  631. },
  632. async updatePhone(e, type) {
  633. const that = this;
  634. let user = that.user;
  635. let arr = await that.$api(`/user/${user._id}`, 'POST', {
  636. phone: e
  637. })
  638. if (arr.errcode == '0') {
  639. that.otherLogin(type);
  640. } else {
  641. uni.showToast({
  642. title: res.errmsg,
  643. icon: 'none'
  644. })
  645. }
  646. },
  647. // 倒计时
  648. timeDown() {
  649. const that = this;
  650. var times = setInterval(() => {
  651. that.sms_1--;
  652. if (that.sms_1 <= 0) {
  653. clearInterval(times);
  654. }
  655. }, 1000);
  656. },
  657. // 同意隐私协议
  658. changeAgree() {
  659. const that = this;
  660. let agree = true;
  661. if (that.agree) agree = false;
  662. that.$set(that, `agree`, agree);
  663. },
  664. // 查看隐私协议
  665. toAgree() {
  666. const that = this;
  667. uni.navigateTo({
  668. url: `/pagesOther/other/agree`
  669. })
  670. },
  671. },
  672. }
  673. </script>
  674. <style lang="scss">
  675. .main {
  676. display: flex;
  677. flex-direction: column;
  678. width: 100vw;
  679. height: 100vh;
  680. .one {
  681. position: relative;
  682. flex-grow: 0.01;
  683. padding: 0 5vw;
  684. margin: 10vw 0;
  685. text {
  686. font-size: 30px;
  687. font-family: cursive;
  688. font-weight: bold;
  689. }
  690. }
  691. .two {
  692. position: relative;
  693. flex-grow: 0.3;
  694. padding: 0 5vw;
  695. .type {
  696. text-align: center;
  697. margin: 0 0 2vw 0;
  698. }
  699. .agree {
  700. text-align: center;
  701. font-size: 12px;
  702. margin: 0 0 2vw 0;
  703. }
  704. .btn {
  705. text-align: center;
  706. button {
  707. width: 80%;
  708. border-radius: 25px;
  709. font-size: 16px;
  710. color: #fff;
  711. background-color: green;
  712. }
  713. }
  714. }
  715. .thr {
  716. padding: 0 2vw;
  717. text-align: center;
  718. .thr_1 {
  719. font-size: 14px;
  720. margin: 0 0 2vw 0;
  721. color: #858585;
  722. }
  723. .thr_2 {
  724. display: flex;
  725. justify-content: center;
  726. .thr_2_1 {
  727. margin: 0 2vw;
  728. text {
  729. font-size: 40px;
  730. }
  731. }
  732. }
  733. }
  734. .wx {
  735. text-align: center;
  736. margin: 25vw 0 0 0;
  737. .wx_1 {
  738. margin: 0 0 5vw 0;
  739. text {
  740. font-size: 50px;
  741. }
  742. }
  743. .wx_2 {
  744. button {
  745. background: var(--f35BColor);
  746. color: var(--fffColor);
  747. font-size: var(--font16Size);
  748. }
  749. }
  750. .wx_3 {
  751. position: absolute;
  752. bottom: 10vw;
  753. width: 100vw;
  754. text-align: center;
  755. font-size: 12px;
  756. }
  757. }
  758. }
  759. .yzm {
  760. display: flex;
  761. flex-direction: row;
  762. justify-content: space-between;
  763. .l {
  764. flex-grow: 1;
  765. }
  766. .r {
  767. width: 18vw;
  768. button {
  769. width: 100%;
  770. line-height: 2.8;
  771. padding: 0 1vw;
  772. }
  773. }
  774. }
  775. .dialog {
  776. width: 100vw;
  777. }
  778. .dialog_1 {
  779. .uni-forms {
  780. display: flex;
  781. form {
  782. width: 100%;
  783. }
  784. }
  785. .uni-data-checklist {
  786. border: 1px solid #E5E5E5;
  787. padding: 1vw;
  788. border-radius: 5px;
  789. }
  790. .uni-forms-item {
  791. margin-bottom: 2vw !important;
  792. }
  793. }
  794. .uni-popup__wrapper {
  795. border-radius: 5px;
  796. }
  797. .popup {
  798. width: 86vw;
  799. padding: 2vw;
  800. .title {
  801. text-align: center;
  802. margin: 0 0 2vw 0;
  803. text {
  804. color: var(--fFB1Color);
  805. font-size: var(--font16Size);
  806. }
  807. }
  808. .wx_1 {
  809. text-align: center;
  810. margin: 9vw 0;
  811. text {
  812. font-size: var(--font18Size);
  813. }
  814. }
  815. .wx_2 {
  816. text-align: center;
  817. button {
  818. margin: 0 2vw;
  819. font-size: var(--font16Size);
  820. padding: 0 10vw;
  821. color: var(--fffColor);
  822. background-color: var(--f35BColor);
  823. }
  824. button:nth-child(1) {
  825. background-color: var(--fFB1Color);
  826. }
  827. }
  828. }
  829. </style>