index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <view class="content">
  3. <!-- <view class="self-inf">
  4. <view class="antu-box" v-if="isAuth">
  5. <view class="img-name-box">
  6. <image :src="userHeadImg" class="heade-img" mode="aspectFill"></image>
  7. <p class="nickname">{{ userNickName }}</p>
  8. <p class="nickname">{{userPhone}}</p>
  9. </view>
  10. <view class="org-info-box" v-for="(item,index) in userPosList" :key="index">
  11. <view class="org-info">{{item.name || '-'}}</view>
  12. <view class="org-line"></view>
  13. <view class="org-info">{{item.position}}</view>
  14. </view>
  15. </view>
  16. <view class="img-name-box" v-if="!isAuth" style="height: 180rpx;">
  17. <image src="/static/auth-icon.png" class="heade-img" mode="aspectFill" style="margin-left: 80rpx;"></image>
  18. <button @click="goAuthPage()" class="auth-btn">授权登录</button>
  19. </view>
  20. </view> -->
  21. <view class="self-inf">
  22. <view class="antu-box" v-if="isAuth">
  23. <view class="img-name-box">
  24. <image :src="userHeadImg" class="heade-img" mode="aspectFill"></image>
  25. <p class="nickname">{{ userNickName }}</p>
  26. <p class="nickname">{{userPhone}}</p>
  27. </view>
  28. <view class="org-info-box" v-for="(item,index) in userPosList" :key="index">
  29. <view class="org-info">{{item.name || '-'}}</view>
  30. <view class="org-line"></view>
  31. <view class="org-info">{{item.position}}</view>
  32. </view>
  33. </view>
  34. <!-- <view class="img-name-box" v-if="!isAuth">
  35. <image src="/static/auth-icon.png" class="heade-img" mode="aspectFill"></image>
  36. <button @click="goAuthPage()" class="auth-btn">授权登录</button>
  37. </view> -->
  38. <image class="bg-img" :src="swiperBackground" mode="aspectFill"></image>
  39. <image src="/static/Intersect.svg" class="groove-img"></image>
  40. </view>
  41. <view class="options" :style="{top:btnPos}">
  42. <!-- <view class="options" :style="{paddingTop:(posLength > 1 ? '160rpx':'80rpx')} " :class="{ paddingTop80: userPosList.length > 1 }"> -->
  43. <view v-for="(item, idx) in list" :key="idx" class="options-item" @click="goDetailFn(idx, item.url)" v-if="item.isShow">
  44. <view class="img-box">
  45. <img :src="item.icon" alt="" class="options-item-img" />
  46. </view>
  47. <view class="options-item-name">
  48. {{ item.name }}
  49. </view>
  50. </view>
  51. </view>
  52. <uni-popup ref="popup" type="center" :is-mask-click="false">
  53. <view class="auth-pop">
  54. <image src="/static/logo.png" mode="aspectFill"></image>
  55. <text class="margin-top-3 auth-title">欢迎使用农工笔记小程序</text>
  56. <text class="margin-top-3 auth-content">此页面是微信授权页面,授权之后你可以获取更优质的服务,您的隐私将会受到保护</text>
  57. <view class="margin-top-3">
  58. <!-- <button type='default' class="refuse" @click="goAuthPage">去授权</button> -->
  59. <button type='primary' class="allow" @click="getUserInfo()" v-if="!isAuth">登录授权</button>
  60. <button type="primary" class="allow" open-type="getPhoneNumber" style="font-size: 12px;"
  61. @getphonenumber="getPhoneNumber" v-if="isAuth && !isNeedPhone">手机号码授权</button>
  62. </view>
  63. </view>
  64. </uni-popup>
  65. <!-- <button class="submit-btn" @click="goUpload()">上传</button> -->
  66. </view>
  67. </template>
  68. <script>
  69. import md5 from "@/common/md5.js";
  70. export default {
  71. components: {
  72. },
  73. data() {
  74. return {
  75. isAuth: true,
  76. btnPos:26.5,
  77. userHeadImg: getApp().globalData.user_headUrl,
  78. userNickName:getApp().globalData.user_name,
  79. userPhone:getApp().globalData.user_phone.substr(0, 3) + '****' + getApp().globalData.user_phone.substr(7),
  80. userPosList:[],
  81. posLength:0,
  82. userPos:'',
  83. userscanCode:"",
  84. iv:'',
  85. encryptedData:'',
  86. isNeedPhone:getApp().globalData.user_phone,
  87. list: [
  88. // {
  89. // icon: "/static/upload.png",
  90. // name: "内容上传" ,
  91. // url: "/pages/index/upload/upload",
  92. // isShow:false,
  93. // },
  94. // {
  95. // icon: "/static/sign.png",
  96. // name: "发布记录" ,
  97. // url: "/pages/index/record/record",
  98. // isShow:false,
  99. // },
  100. {
  101. icon: "/static/scan.png",
  102. name: "扫码" ,
  103. // url: "/pages/index/scanCode/index",
  104. isShow:true,
  105. },
  106. {
  107. icon: "/static/self-icon.png",
  108. name: "个人信息" ,
  109. url: "/pages/index/self_info",
  110. isShow:true,
  111. },
  112. {
  113. icon: "/static/org-icon.png",
  114. name: "组织成员" ,
  115. url: "/pages/index/org_member",
  116. isShow:true,
  117. },
  118. {
  119. icon: "/static/explain-icon.png",
  120. name: "后台登录" ,
  121. url: "/pages/index/back_login",
  122. isShow:true,
  123. },
  124. {
  125. icon: "/static/back.png",
  126. name: "退出登录" ,
  127. // url: "/pages/index/scanCode/index",
  128. isShow:true,
  129. },
  130. ],
  131. };
  132. },
  133. onLoad() {
  134. this.getPageHeight()
  135. this.getUserInfoBranch();
  136. },
  137. onShow() {
  138. },
  139. methods: {
  140. getPageHeight(){
  141. let phoneHeight = uni.getSystemInfoSync().windowHeight;
  142. this.btnPos = phoneHeight > 690 ? '23.5%':'26.5%';
  143. },
  144. goAuthPage() {
  145. uni.navigateTo({
  146. url: "./auth/index",
  147. });
  148. },
  149. open(){
  150. // 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
  151. uni.hideTabBar()
  152. this.$refs.popup.open('center')
  153. },
  154. getUserInfo() {
  155. uni.getUserProfile({
  156. desc:'登录',
  157. success:(res)=> {
  158. getApp().globalData.user_headUrl = res.userInfo.avatarUrl;
  159. getApp().globalData.user_name = res.userInfo.nickName;
  160. this.userHeadImg = res.userInfo.avatarUrl;
  161. this.userNickName = res.userInfo.nickName;
  162. this.iv = res.iv;
  163. this.encryptedData = res.encryptedData;
  164. this.isAuth = true;
  165. getApp().globalData.isAuth = true;
  166. getApp().globalData.globalAuth = true;
  167. this.loginUserInfo()
  168. },
  169. fail:(err)=> {
  170. getApp().globalData.isAuth = false;
  171. getApp().globalData.globalAuth = false;
  172. this.isAuth = false;
  173. }
  174. })
  175. },
  176. getPhoneNumber(e){
  177. let that = this;
  178. if (e.detail.errMsg == 'getPhoneNumber:ok') { //允许授权执行跳转
  179. that.phoneRequest(e.detail.iv, e.detail.encryptedData, getApp().globalData.session_key)
  180. } else { //
  181. that.isNeedPhone = false;
  182. }
  183. },
  184. phoneRequest(myIv,myEncryptedData,sKey){
  185. let that = this;
  186. let md5Sign = md5("method="+'user'+"&timestamp="+getApp().globalData.globalTimestamp+"&secret="+getApp().globalData.secret)
  187. let url = getApp().globalData.shareUrl+'api/api.php'+'?method=user&source=user&action=phone&timestamp='+getApp().globalData.globalTimestamp +'&sign='+md5Sign
  188. uni.request({
  189. url:url,
  190. method: 'POST',
  191. header: {
  192. 'content-type': 'application/x-www-form-urlencoded'
  193. },
  194. data: {
  195. iv:myIv,
  196. sessionKey:sKey,
  197. encryptedData:myEncryptedData,
  198. openid:getApp().globalData.open_id
  199. },
  200. success: (res) => {
  201. console.log(res)
  202. if(res.data.code === 200){
  203. getApp().globalData.user_phone = res.data.data;
  204. this.userPhone = res.data.data.substr(0, 3) + '****' + res.data.data.substr(7) ;
  205. this.$refs.popup.close()
  206. uni.showTabBar({})
  207. }else {
  208. uni.showToast({
  209. title: res.data.msg,
  210. duration: 2500,
  211. icon: "none",
  212. });
  213. }
  214. },
  215. fail: () => {
  216. console.log("连接失败");
  217. }
  218. });
  219. },
  220. loginUserInfo(){
  221. let md5Sign = md5(
  222. "method=" +
  223. "user" +
  224. "&timestamp=" +
  225. getApp().globalData.globalTimestamp +
  226. "&secret=" +
  227. getApp().globalData.secret
  228. );
  229. let url =
  230. getApp().globalData.shareUrl +
  231. "api/api.php" +
  232. "?method=user&action=update&timestamp=" +
  233. getApp().globalData.globalTimestamp +
  234. "&sign=" +
  235. md5Sign;
  236. uni.request({
  237. url: url,
  238. method: "POST",
  239. header: {
  240. "content-type": "application/x-www-form-urlencoded",
  241. },
  242. data: {
  243. nickname:getApp().globalData.user_name,
  244. headimg:getApp().globalData.user_headUrl,
  245. openid:getApp().globalData.open_id
  246. },
  247. success: (res) => {
  248. if (res.data.code === 200) {
  249. }
  250. },
  251. fail: () => {
  252. console.log("连接失败");
  253. },
  254. });
  255. },
  256. goUpload(){
  257. let that = this;
  258. if(!that.isAuth){
  259. uni.showToast({
  260. title: "您还没有授权",
  261. duration: 2500,
  262. icon: "none",
  263. });
  264. return;
  265. }else {
  266. uni.navigateTo({
  267. url: "/pages/index/upload/upload",
  268. })
  269. }
  270. },
  271. getUserInfoData() {
  272. let md5Sign = md5(
  273. "method=" +
  274. "user" +
  275. "&timestamp=" +
  276. getApp().globalData.globalTimestamp +
  277. "&secret=" +
  278. getApp().globalData.secret
  279. );
  280. let url =
  281. getApp().globalData.shareUrl +
  282. "api/api.php" +
  283. "?method=user&action=info_by_openid&timestamp=" +
  284. getApp().globalData.globalTimestamp +
  285. "&sign=" +
  286. md5Sign;
  287. uni.request({
  288. url: url,
  289. method: "POST",
  290. header: {
  291. "content-type": "application/x-www-form-urlencoded",
  292. },
  293. data: {
  294. openid:getApp().globalData.open_id,
  295. },
  296. success: (res) => {
  297. if (res.data.code === 200) {
  298. if (res.data.data.nickname) {
  299. this.isAuth = true;
  300. this.userHeadImg = res.data.data.headimg;
  301. this.userNickName = res.data.data.nickname;
  302. if(res.data.data.phone){
  303. this.userPhone = res.data.data.phone.substr(0, 3) + '****' + res.data.data.phone.substr(7)
  304. this.getUserInfoBranch();
  305. }else {
  306. this.open()
  307. }
  308. getApp().globalData.globalAuth = true;
  309. getApp().globalData.user_name = res.data.data.nickname;
  310. getApp().globalData.user_headUrl = res.data.data.headimg;
  311. getApp().globalData.user_department = res.data.data.department;
  312. getApp().globalData.user_real_name = res.data.data.real_name;
  313. getApp().globalData.user_phone = res.data.data.phone;
  314. getApp().globalData.isAuth = true;
  315. this.isAuth = true;
  316. this.isNeedPhone = false;
  317. }else {
  318. this.open();
  319. this.isAuth = false;
  320. getApp().globalData.globalAuth = false;
  321. getApp().globalData.user_name = '';
  322. getApp().globalData.isAuth = false;
  323. this.isAuth = false;
  324. }
  325. }
  326. },
  327. fail: () => {
  328. console.log("连接失败");
  329. },
  330. });
  331. },
  332. getUserInfoBranch() {
  333. let md5Sign = md5(
  334. "method=" +
  335. "member" +
  336. "&timestamp=" +
  337. getApp().globalData.globalTimestamp +
  338. "&secret=" +
  339. getApp().globalData.secret
  340. );
  341. let url =
  342. getApp().globalData.shareUrl +
  343. "api/api.php" +
  344. "?method=member&action=my_branch&timestamp=" +
  345. getApp().globalData.globalTimestamp +
  346. "&sign=" +
  347. md5Sign;
  348. uni.request({
  349. url: url,
  350. method: "POST",
  351. header: {
  352. "content-type": "application/x-www-form-urlencoded",
  353. },
  354. data: {
  355. openid:getApp().globalData.open_id,
  356. },
  357. success: (res) => {
  358. if (res.data.code === 200) {
  359. this.userPosList = res.data.data;
  360. // this.posLength = res.data.data.length;
  361. }
  362. },
  363. fail: () => {
  364. console.log("连接失败");
  365. },
  366. });
  367. },
  368. codeReg(strs){
  369. let reg = /\[(.*?)\]/gi;
  370. let str = strs;
  371. let tmp = str.match(reg) , result = '';
  372. if (tmp) {
  373. for (let i = 0; i < tmp.length; i++) {
  374. result = tmp[i].replace(reg, "$1")
  375. }
  376. } else {
  377. console.log("no match.");
  378. }
  379. console.log(result)
  380. this.getScanCode(result)
  381. },
  382. getScanCode(codeRes) {
  383. let md5Sign = md5(
  384. "method=" +
  385. "user" +
  386. "&timestamp=" +
  387. getApp().globalData.globalTimestamp +
  388. "&secret=" +
  389. getApp().globalData.secret
  390. );
  391. let url =
  392. getApp().globalData.shareUrl +
  393. "api/api.php" +
  394. "?method=user&action=qrcode_login&timestamp=" +
  395. getApp().globalData.globalTimestamp +
  396. "&sign=" +
  397. md5Sign;
  398. uni.request({
  399. url: url,
  400. method: "POST",
  401. header: {
  402. "content-type": "application/x-www-form-urlencoded",
  403. },
  404. data: {
  405. openid:getApp().globalData.open_id,
  406. qrcode:codeRes
  407. },
  408. success: (res) => {
  409. if (res.data.code === 200) {
  410. uni.showToast({
  411. title:res.data.msg,
  412. icon:'none'
  413. })
  414. } else {
  415. uni.showToast({
  416. title:res.data.msg,
  417. icon:'none'
  418. })
  419. }
  420. },
  421. fail: () => {
  422. console.log("连接失败");
  423. },
  424. });
  425. },
  426. goDetailFn(index, url) {
  427. let that = this;
  428. if(!that.isAuth){
  429. uni.showToast({
  430. title: "您还没有授权",
  431. duration: 2500,
  432. icon: "none",
  433. });
  434. return;
  435. }
  436. switch (index) {
  437. case 0: //扫码
  438. uni.scanCode({
  439. success: function (res) {
  440. console.log('条码类型:' + res.scanType);
  441. console.log('条码内容:' + res.result);
  442. that.codeReg(res.result)
  443. }
  444. });
  445. break;
  446. case 1: //个人信息
  447. uni.navigateTo({
  448. url,
  449. });
  450. break;
  451. case 2: //组织成员
  452. uni.navigateTo({
  453. url,
  454. });
  455. break;
  456. case 3: //后台登录
  457. uni.navigateTo({
  458. url,
  459. });
  460. break;
  461. case 4: //退出登录
  462. uni.showModal({
  463. title: "确定退出登录吗?",
  464. success(res) {
  465. if (res.confirm) {
  466. that.loginOut();
  467. } else if (res.cancel) {
  468. console.log("用户点击取消");
  469. }
  470. },
  471. });
  472. break;
  473. default:
  474. uni.navigateTo({
  475. url,
  476. });
  477. }
  478. },
  479. loginOut() {
  480. let md5Sign = md5(
  481. "method=" +
  482. "user" +
  483. "&timestamp=" +
  484. getApp().globalData.globalTimestamp +
  485. "&secret=" +
  486. getApp().globalData.secret
  487. );
  488. let url = getApp().globalData.shareUrl +
  489. "api/api.php" +
  490. "?method=user&action=logout&timestamp=" +
  491. getApp().globalData.globalTimestamp +
  492. "&sign=" +
  493. md5Sign;
  494. uni.request({
  495. url: url,
  496. method: "POST",
  497. header: {
  498. "content-type": "application/x-www-form-urlencoded",
  499. },
  500. data: {
  501. openid: getApp().globalData.open_id,
  502. },
  503. success: (res) => {
  504. if (res.data.code === 200) {
  505. let that = this;
  506. that.isAuth = false;
  507. getApp().globalData.isAuth = false;
  508. getApp().globalData.user_headUrl = "";
  509. getApp().globalData.user_name = "";
  510. getApp().globalData.user_phone = "";
  511. this.userPhone = '';
  512. this.isNeedPhone = '';
  513. //this.list[3].isShow = false;
  514. //this.$forceUpdate();
  515. uni.showToast({
  516. title: "退出登录成功",
  517. duration: 2500,
  518. icon: "none",
  519. success() {
  520. that.open()
  521. }
  522. });
  523. }
  524. },
  525. fail: () => {
  526. console.log("连接失败");
  527. },
  528. });
  529. },
  530. },
  531. };
  532. </script>
  533. <style lang="scss" scoped>
  534. .content {
  535. display: flex;
  536. flex-direction: column;
  537. // .self-inf {
  538. // position: relative;
  539. // height: 240rpx;
  540. // width: 100%;
  541. // // display: flex;
  542. // // margin-bottom: 80rpx;
  543. // background-color: #c2e3e6;
  544. // // border-radius: 0rpx 0rpx 100% 100%;
  545. // .img-name-box {
  546. // height: 150rpx;
  547. // margin-top: 20rpx;
  548. // margin-bottom: 20rpx;
  549. // display: flex;
  550. // align-items: center;
  551. // width: 85%;
  552. // .auth-btn {
  553. // margin-left: 30rpx;
  554. // margin-top: 20rpx;
  555. // font-size: 28rpx;
  556. // background-color: #02a7f0;
  557. // color: #fff;
  558. // }
  559. // .heade-img {
  560. // z-index: 1;
  561. // width: 100rpx;
  562. // height: 100rpx;
  563. // border-radius: 50%;
  564. // // margin-left: 80rpx;
  565. // }
  566. // }
  567. // .bg-img {
  568. // z-index: -1;
  569. // position: absolute;
  570. // width: 100%;
  571. // height: 100%;
  572. // // border-radius: 0rpx 0rpx 70rpx 70rpx;
  573. // }
  574. // .nickname {
  575. // font-weight: 600;
  576. // font-size: 28rpx;
  577. // margin-left: 30rpx;
  578. // margin-top: 20rpx;
  579. // color: #555;
  580. // letter-spacing: 1rpx;
  581. // }
  582. // }
  583. .self-inf {
  584. position: relative;
  585. height: 440rpx;
  586. width: 100%;
  587. display: flex;
  588. // margin-bottom: 80rpx;
  589. border-radius: 0rpx 0rpx 100% 100%;
  590. .img-name-box {
  591. height: 150rpx;
  592. margin-top:80rpx;
  593. display: flex;
  594. align-items: center;
  595. z-index: 99999;
  596. .auth-btn {
  597. margin-left: 30rpx;
  598. margin-top: 20rpx;
  599. font-size: 28rpx;
  600. background-color: #02a7f0;
  601. color: #fff;
  602. }
  603. .heade-img {
  604. z-index: 1;
  605. width: 100rpx;
  606. height: 100rpx;
  607. border-radius: 50%;
  608. margin-left: 80rpx;
  609. }
  610. }
  611. .bg-img {
  612. z-index: -1;
  613. position: absolute;
  614. width: 100%;
  615. height: 100%;
  616. background-color: #c2e3e6
  617. // border-radius: 0rpx 0rpx 70rpx 70rpx;
  618. }
  619. .groove-img {
  620. width: 100%;
  621. height: 100rpx;
  622. bottom: -22rpx;
  623. position: absolute;
  624. }
  625. .nickname {
  626. font-weight: 600;
  627. font-size: 28rpx;
  628. margin-left: 30rpx;
  629. margin-top: 20rpx;
  630. color: #ffffff;
  631. letter-spacing: 1rpx;
  632. }
  633. }
  634. .options {
  635. // padding: 0rpx 70rpx 20rpx 70rpx;
  636. // z-index: 99;
  637. // position: relative;
  638. z-index: 99;
  639. position: absolute;
  640. width: 84%;
  641. left: 7%;
  642. top: 26.5%;
  643. .options-item {
  644. background-color: #fff;
  645. display: flex;
  646. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  647. border-radius: 32rpx;
  648. margin-top: 30rpx;
  649. height: 75px;
  650. align-items: center;
  651. .img-box {
  652. margin-left: 40rpx;
  653. .options-item-img {
  654. width: 56rpx;
  655. height: 56rpx;
  656. }
  657. }
  658. .options-item-name {
  659. margin-left: 40rpx;
  660. font-weight: 600;
  661. font-size: 30rpx;
  662. margin-bottom: 10rpx;
  663. }
  664. }
  665. }
  666. }
  667. .auth-box {
  668. display: flex;
  669. background-color: #fff;
  670. height: 500rpx;
  671. width: 600rpx;
  672. border-radius: 10rpx;
  673. button {
  674. height:100rpx;
  675. font-size: 26rpx;
  676. };
  677. }
  678. .fontGrey {
  679. color: $uni-text-color-grey;
  680. }
  681. .antu-box {
  682. display: flex;
  683. flex-direction: column;
  684. width: 100%;
  685. // align-items: center;
  686. // background: #fff;
  687. // border-radius: 10rpx;
  688. // position: relative;
  689. // z-index: 99;
  690. // top: 25px;
  691. // width: 80%;
  692. // left: 10%;
  693. // color: #555;
  694. // box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  695. }
  696. .submit-btn {
  697. color: white;
  698. font-weight: normal;
  699. width: 70%;
  700. border-radius: 20rpx;
  701. background-color: #02a7f0;
  702. margin: 50rpx auto;
  703. }
  704. .org-info-box {
  705. display: flex;
  706. justify-content: space-evenly;
  707. height: 50rpx;
  708. align-items: center;
  709. width: 100%;
  710. // border-top: 1px solid #d4d4d4;
  711. font-size: 30rpx;
  712. color: #fff;
  713. // background: #fff;
  714. }
  715. .org-info {
  716. width: 50%;
  717. padding-left: 15%;
  718. }
  719. .org-line {
  720. // width: 1px;
  721. // height: 82rpx;
  722. // background: #d4d4d4;
  723. }
  724. .auth-pop{
  725. background-color: #fff;
  726. text-align: center;
  727. display: flex;
  728. flex-direction: column;
  729. justify-content: center;
  730. align-items: center;
  731. width: 75%;
  732. margin: 0 auto;
  733. border-radius: 10rpx;
  734. padding: 20rpx;
  735. }
  736. .auth-pop image{
  737. width: 200upx;
  738. height: 200upx;
  739. margin-top: 10%;
  740. }
  741. .auth-pop view {
  742. // display: flex;
  743. // width: 490upx;
  744. // justify-content: space-between;
  745. }
  746. .auth-title {
  747. font-size: 32upx;
  748. }
  749. .auth-content {
  750. font-size: 26upx;
  751. color: #a7aaa9;
  752. }
  753. .allow {
  754. background-color: #27BCEF;
  755. margin: 20rpx 0 75rpx;
  756. text-align: center;
  757. vertical-align: middle;
  758. touch-action: manipulation;
  759. cursor: pointer;
  760. background-image: none;
  761. white-space: nowrap;
  762. user-select: none;
  763. font-size: 14px;
  764. border: 0 !important;
  765. position: relative;
  766. text-decoration: none;
  767. height: 44px;
  768. width: 250rpx;
  769. line-height: 44px;
  770. box-shadow: inset 0 0 0 1px #27BCEF;
  771. background: #fff !important;
  772. color: #27BCEF !important;
  773. display: inline-block;
  774. border-radius: 10rpx;
  775. }
  776. .refuse {
  777. background-color: #19be6b;
  778. margin: 20rpx 20rpx 200rpx 20rpx;
  779. text-align: center;
  780. vertical-align: middle;
  781. touch-action: manipulation;
  782. cursor: pointer;
  783. background-image: none;
  784. white-space: nowrap;
  785. user-select: none;
  786. font-size: 14px;
  787. border: 0 !important;
  788. position: relative;
  789. text-decoration: none;
  790. height: 44px;
  791. width: 250rpx;
  792. line-height: 44px;
  793. box-shadow: inset 0 0 0 1px #8a8a8a;
  794. background: #fff !important;
  795. color: #8a8a8a !important;
  796. display: inline-block;
  797. border-radius: 10rpx;
  798. }
  799. .paddingTop80 {
  800. padding-top:160rpx;
  801. }
  802. </style>