index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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.list[3].isShow = false;
  513. //this.$forceUpdate();
  514. uni.showToast({
  515. title: "退出登录成功",
  516. duration: 2500,
  517. icon: "none",
  518. success() {
  519. that.open()
  520. }
  521. });
  522. }
  523. },
  524. fail: () => {
  525. console.log("连接失败");
  526. },
  527. });
  528. },
  529. },
  530. };
  531. </script>
  532. <style lang="scss" scoped>
  533. .content {
  534. display: flex;
  535. flex-direction: column;
  536. // .self-inf {
  537. // position: relative;
  538. // height: 240rpx;
  539. // width: 100%;
  540. // // display: flex;
  541. // // margin-bottom: 80rpx;
  542. // background-color: #c2e3e6;
  543. // // border-radius: 0rpx 0rpx 100% 100%;
  544. // .img-name-box {
  545. // height: 150rpx;
  546. // margin-top: 20rpx;
  547. // margin-bottom: 20rpx;
  548. // display: flex;
  549. // align-items: center;
  550. // width: 85%;
  551. // .auth-btn {
  552. // margin-left: 30rpx;
  553. // margin-top: 20rpx;
  554. // font-size: 28rpx;
  555. // background-color: #02a7f0;
  556. // color: #fff;
  557. // }
  558. // .heade-img {
  559. // z-index: 1;
  560. // width: 100rpx;
  561. // height: 100rpx;
  562. // border-radius: 50%;
  563. // // margin-left: 80rpx;
  564. // }
  565. // }
  566. // .bg-img {
  567. // z-index: -1;
  568. // position: absolute;
  569. // width: 100%;
  570. // height: 100%;
  571. // // border-radius: 0rpx 0rpx 70rpx 70rpx;
  572. // }
  573. // .nickname {
  574. // font-weight: 600;
  575. // font-size: 28rpx;
  576. // margin-left: 30rpx;
  577. // margin-top: 20rpx;
  578. // color: #555;
  579. // letter-spacing: 1rpx;
  580. // }
  581. // }
  582. .self-inf {
  583. position: relative;
  584. height: 440rpx;
  585. width: 100%;
  586. display: flex;
  587. // margin-bottom: 80rpx;
  588. border-radius: 0rpx 0rpx 100% 100%;
  589. .img-name-box {
  590. height: 150rpx;
  591. margin-top:80rpx;
  592. display: flex;
  593. align-items: center;
  594. z-index: 99999;
  595. .auth-btn {
  596. margin-left: 30rpx;
  597. margin-top: 20rpx;
  598. font-size: 28rpx;
  599. background-color: #02a7f0;
  600. color: #fff;
  601. }
  602. .heade-img {
  603. z-index: 1;
  604. width: 100rpx;
  605. height: 100rpx;
  606. border-radius: 50%;
  607. margin-left: 80rpx;
  608. }
  609. }
  610. .bg-img {
  611. z-index: -1;
  612. position: absolute;
  613. width: 100%;
  614. height: 100%;
  615. background-color: #c2e3e6
  616. // border-radius: 0rpx 0rpx 70rpx 70rpx;
  617. }
  618. .groove-img {
  619. width: 100%;
  620. height: 100rpx;
  621. bottom: -22rpx;
  622. position: absolute;
  623. }
  624. .nickname {
  625. font-weight: 600;
  626. font-size: 28rpx;
  627. margin-left: 30rpx;
  628. margin-top: 20rpx;
  629. color: #ffffff;
  630. letter-spacing: 1rpx;
  631. }
  632. }
  633. .options {
  634. // padding: 0rpx 70rpx 20rpx 70rpx;
  635. // z-index: 99;
  636. // position: relative;
  637. z-index: 99;
  638. position: absolute;
  639. width: 84%;
  640. left: 7%;
  641. top: 26.5%;
  642. .options-item {
  643. background-color: #fff;
  644. display: flex;
  645. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  646. border-radius: 32rpx;
  647. margin-top: 30rpx;
  648. height: 75px;
  649. align-items: center;
  650. .img-box {
  651. margin-left: 40rpx;
  652. .options-item-img {
  653. width: 56rpx;
  654. height: 56rpx;
  655. }
  656. }
  657. .options-item-name {
  658. margin-left: 40rpx;
  659. font-weight: 600;
  660. font-size: 30rpx;
  661. margin-bottom: 10rpx;
  662. }
  663. }
  664. }
  665. }
  666. .auth-box {
  667. display: flex;
  668. background-color: #fff;
  669. height: 500rpx;
  670. width: 600rpx;
  671. border-radius: 10rpx;
  672. button {
  673. height:100rpx;
  674. font-size: 26rpx;
  675. };
  676. }
  677. .fontGrey {
  678. color: $uni-text-color-grey;
  679. }
  680. .antu-box {
  681. display: flex;
  682. flex-direction: column;
  683. width: 100%;
  684. // align-items: center;
  685. // background: #fff;
  686. // border-radius: 10rpx;
  687. // position: relative;
  688. // z-index: 99;
  689. // top: 25px;
  690. // width: 80%;
  691. // left: 10%;
  692. // color: #555;
  693. // box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  694. }
  695. .submit-btn {
  696. color: white;
  697. font-weight: normal;
  698. width: 70%;
  699. border-radius: 20rpx;
  700. background-color: #02a7f0;
  701. margin: 50rpx auto;
  702. }
  703. .org-info-box {
  704. display: flex;
  705. justify-content: space-evenly;
  706. height: 50rpx;
  707. align-items: center;
  708. width: 100%;
  709. // border-top: 1px solid #d4d4d4;
  710. font-size: 30rpx;
  711. color: #fff;
  712. // background: #fff;
  713. }
  714. .org-info {
  715. width: 50%;
  716. padding-left: 15%;
  717. }
  718. .org-line {
  719. // width: 1px;
  720. // height: 82rpx;
  721. // background: #d4d4d4;
  722. }
  723. .auth-pop{
  724. background-color: #fff;
  725. text-align: center;
  726. display: flex;
  727. flex-direction: column;
  728. justify-content: center;
  729. align-items: center;
  730. width: 75%;
  731. margin: 0 auto;
  732. border-radius: 10rpx;
  733. padding: 20rpx;
  734. }
  735. .auth-pop image{
  736. width: 200upx;
  737. height: 200upx;
  738. margin-top: 10%;
  739. }
  740. .auth-pop view {
  741. // display: flex;
  742. // width: 490upx;
  743. // justify-content: space-between;
  744. }
  745. .auth-title {
  746. font-size: 32upx;
  747. }
  748. .auth-content {
  749. font-size: 26upx;
  750. color: #a7aaa9;
  751. }
  752. .allow {
  753. background-color: #27BCEF;
  754. margin: 20rpx 0 75rpx;
  755. text-align: center;
  756. vertical-align: middle;
  757. touch-action: manipulation;
  758. cursor: pointer;
  759. background-image: none;
  760. white-space: nowrap;
  761. user-select: none;
  762. font-size: 14px;
  763. border: 0 !important;
  764. position: relative;
  765. text-decoration: none;
  766. height: 44px;
  767. width: 250rpx;
  768. line-height: 44px;
  769. box-shadow: inset 0 0 0 1px #27BCEF;
  770. background: #fff !important;
  771. color: #27BCEF !important;
  772. display: inline-block;
  773. border-radius: 10rpx;
  774. }
  775. .refuse {
  776. background-color: #19be6b;
  777. margin: 20rpx 20rpx 200rpx 20rpx;
  778. text-align: center;
  779. vertical-align: middle;
  780. touch-action: manipulation;
  781. cursor: pointer;
  782. background-image: none;
  783. white-space: nowrap;
  784. user-select: none;
  785. font-size: 14px;
  786. border: 0 !important;
  787. position: relative;
  788. text-decoration: none;
  789. height: 44px;
  790. width: 250rpx;
  791. line-height: 44px;
  792. box-shadow: inset 0 0 0 1px #8a8a8a;
  793. background: #fff !important;
  794. color: #8a8a8a !important;
  795. display: inline-block;
  796. border-radius: 10rpx;
  797. }
  798. .paddingTop80 {
  799. padding-top:160rpx;
  800. }
  801. </style>