index.vue 19 KB

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