index.vue 20 KB

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