becomeVIP.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  1. <template>
  2. <view class="content hb column justify-center align-center bgf">
  3. <image :src="imgPath+'/app/image/becomevip.png'" mode="widthFix"></image>
  4. <view class="justify-start align-center fs24 base-color-9" v-if="userInfo.userId">
  5. <view>{{nameuser}}#</view>
  6. <view>{{userInfo.userId}}</view>
  7. </view>
  8. <view class="bolds">成为会员,享受更多权益</view>
  9. <!--#ifdef H5-->
  10. <view class="sure" @click="registerCourse">{{isVip==1?'您已成为会员':viptext}}</view>
  11. <!--#endif-->
  12. <!--#ifdef MP-WEIXIN-->
  13. <view class="base-bg-orange colorf ptb20 plr40 radius60"
  14. v-if="(userInfos==null||userInfos=='')&&imgname=='乐氏本源'" @click="nato()">授权用户信息</view>
  15. <view class="btns" v-else>
  16. <!-- <button
  17. class="author-btn"
  18. open-type="getUserInfo"
  19. :disabled="userdisabled"
  20. @getuserinfo="userInfologin" v-if="authType==0">{{isVip==1?'您已成为会员':'申请成为会员'}}</button>
  21. <button
  22. v-else
  23. class="author-btn"
  24. open-type="getPhoneNumber"
  25. @getphonenumber="phoneLogin" >{{isVip==1?'您已成为会员':'申请成为会员'}}</button> -->
  26. <button class="author-btn" @click="handleAgree()">{{viptext}}</button>
  27. </view>
  28. <!--#endif-->
  29. <!--#ifdef MP-WEIXIN-->
  30. <u-popup :show="userlogo" mode="bottom" round='12'>
  31. <view class="userlogo column">
  32. <view class="mtb30 justify-start align-center ml20">
  33. <u-avatar :src="imgPath+'/app/image/logo.png'" size="50"></u-avatar>
  34. <view class="bold mlr20">{{imgname}}</view>
  35. <view>申请</view>
  36. </view>
  37. <view class="bold fs36 ml20">授权你的昵称头像信息</view>
  38. <view class="mtb20 justify-between align-center plr20">
  39. <view class="justify-start align-center">
  40. <view class="boxweixin" :class="userinfos.nickname==''?'boxnosel':'boxsel'">
  41. <view v-if="userinfos.nickname">√</view>
  42. </view>
  43. <view class="ml20">
  44. <view class="base-color-3 bold">第一步</view>
  45. <view class="fs24 base-color-9">请点击授权微信昵称</view>
  46. </view>
  47. </view>
  48. <view class="button-container">
  49. <input
  50. type="nickname"
  51. class="hidden-input"
  52. @blur="onNickNameInput"
  53. @input="onNickNameInput"
  54. />
  55. <button class="custom-button" :class="nameuser==''?'subname':'subavt'">{{nameuser?"已授权":'允许授权'}}</button>
  56. </view>
  57. </view>
  58. <view class="mtb20 justify-between align-center plr20 mt40">
  59. <view class="justify-start align-center">
  60. <view class="boxweixin" :class="userinfos.nickname==''?'boxnosel':'boxsel'">
  61. <view v-if="userinfos.avatar">√</view>
  62. </view>
  63. <view class="ml20">
  64. <view class="base-color-3 bold">第二步</view>
  65. <view class="fs24 base-color-9">请点击授权微信头像</view>
  66. </view>
  67. </view>
  68. <view class="button-container">
  69. <button open-type="chooseAvatar" @chooseavatar="onChooseAvatar" class="hidden-input"
  70. v-if="nameuser">
  71. 允许授权
  72. </button>
  73. <button class="custom-button sub" @click="shouquan" v-if="nameuser==''">允许授权</button>
  74. <button class="custom-button " :class="avataruser==''?'subname':'subavt'"
  75. v-else>{{avataruser?"已授权":'允许授权'}}</button>
  76. </view>
  77. </view>
  78. <view class="submitname" @click="confimrname" :class="nameuser&&avataruser?'subact':'sub'">确定</view>
  79. </view>
  80. </u-popup>
  81. <!--#endif-->
  82. <view class="footer-tips">重庆云联融智提供技术支持</view>
  83. </view>
  84. </template>
  85. <script>
  86. import { loginByMp,registerCourses,loginByMiniApp,handleFsUserWx} from '@/api/courseLook'
  87. import {
  88. getConfigByKey
  89. } from "@/api/user.js"
  90. export default {
  91. data() {
  92. return {
  93. isVip: 0,
  94. isWechat: false,
  95. isLogin: false,
  96. companyid:'',
  97. companyUserId:'',
  98. userInfo:{},
  99. tagIds:[],
  100. isbecomevip:0,
  101. viptext:'申请成为会员',
  102. userlogo:false,
  103. userinfos:{
  104. nickname:'',
  105. avatar:""
  106. },
  107. headImg:'',
  108. authType:0,//0微信登录 1手机号登录
  109. userdisabled:false,
  110. projectId:'',
  111. H5course:{}
  112. }
  113. },
  114. computed: {
  115. imgPath() {
  116. return this.$store.state.imgpath
  117. },
  118. imgname() {
  119. return this.$store.state.logoname
  120. },
  121. appid() {
  122. return this.$store.state.appid
  123. },
  124. nameuser() {
  125. return this.userinfos.nickname
  126. },
  127. avataruser() {
  128. return this.userinfos.avatar
  129. },
  130. },
  131. onLoad(option) {
  132. uni.$on('usercode',(data)=>{
  133. console.log('huoqu ',data)
  134. this.goLogin(data)
  135. })
  136. uni.$on('vipMsg',(data)=>{
  137. console.log('vipMsg ',data)
  138. this.viptext=data
  139. })
  140. console.log(option)
  141. let path = 'https://userapp.moonxiang.com/prod-api'//存在文化
  142. uni.setStorageSync('requestPath',path)
  143. if(uni.getStorageSync('userInfo')&&uni.getStorageSync('userInfo')!='{}') {
  144. this.userInfo = uni.getStorageSync('userInfo')
  145. } else {
  146. this.userInfo = {}
  147. }
  148. // this.userInfo=JSON.parse(uni.getStorageSync('userInfo')) || {};
  149. //#ifdef MP-WEIXIN
  150. let obj=uni.getStorageSync('TOKEN_WEXIN');
  151. //#endif
  152. // #ifdef H5
  153. let obj=uni.getStorageSync('TOKEN_KEY');
  154. // #endif
  155. // let obj=uni.getStorageSync('AppToken');
  156. this.isLogin = !!obj;
  157. this.companyid = option.companyId || ''
  158. this.companyUserId=option.companyUserId || 0
  159. this.projectId=option.projectId
  160. this.H5course.companyId=option.companyId
  161. this.H5course.companyUserId=option.companyUserId
  162. this.H5course.projectId=option.projectId
  163. uni.setStorageSync('H5course',this.H5course)
  164. console.log(this.H5course)
  165. //#ifdef MP-WEIXIN
  166. // if(this.$store.state.logoname!=='乐氏本源'&&!uni.getStorageSync('userInfos')){
  167. // this.userlogo=true
  168. // }
  169. if(!uni.getStorageSync('userInfos')&&this.$store.state.logoname=='乐氏本源'){
  170. uni.navigateTo({
  171. url:'/pages_course/webview'
  172. })
  173. return
  174. }
  175. //#endif
  176. if(option.tagids=="null"){
  177. this.tagIds=[]
  178. }else{
  179. this.tagIds=option.tagids
  180. const arr =this.tagIds.split(",")
  181. .map(item => parseInt(item.trim(), 10))
  182. .filter(num => !isNaN(num)); // 过滤无效转换
  183. this.tagIds =arr
  184. // console.log(this.tagIds);
  185. }
  186. // this.isWechat = String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) === "micromessenger"
  187. this.code = option.code
  188. // #ifdef H5
  189. if(this.code&&!this.isLogin) {
  190. this.loginByMp()
  191. }
  192. // #endif
  193. },
  194. onShow() {
  195. this.getWebviewUrl()
  196. if(uni.getStorageSync('userInfo')&&uni.getStorageSync('userInfo')!='{}') {
  197. this.userInfo = uni.getStorageSync('userInfo')
  198. } else {
  199. this.userInfo = {}
  200. }
  201. //#ifdef MP-WEIXIN
  202. this.userinfos=uni.getStorageSync('userInfo')
  203. console.log(uni.getStorageSync('userinfos'))
  204. let obj=uni.getStorageSync('TOKEN_WEXIN');
  205. //#endif
  206. // #ifdef H5
  207. let obj=uni.getStorageSync('TOKEN_KEY');
  208. // #endif
  209. this.isLogin = !!obj;
  210. if(this.isLogin&&this.isVip!=1) {
  211. this.registerCourse()
  212. }
  213. },
  214. methods: {
  215. getWebviewUrl() {
  216. var data = {
  217. key: 'course.config'
  218. }
  219. getConfigByKey(data).then(res => {
  220. if (res.code == 200) {
  221. console.log("getConfigByKey====", JSON.parse(res.data))
  222. let data = JSON.parse(res.data,)
  223. uni.setStorageSync('setWebviewUrl',data.userCourseAuthDomain)
  224. }else{
  225. uni.showToast({
  226. icon:'none',
  227. title: res.msg,
  228. });
  229. }
  230. })
  231. },
  232. goLogin(data) {
  233. console.log('huoqu111',data)
  234. if(data){
  235. console.log('huoqu1222',data)
  236. uni.showLoading({
  237. title: '加载中'
  238. })
  239. uni.login({
  240. provider: "weixin",
  241. success: async loginRes => {
  242. console.log(loginRes)
  243. let code = loginRes.code // 获取开发code
  244. handleFsUserWx({
  245. code: code,
  246. appId:this.appid,
  247. userId:data.userId
  248. })
  249. .then( res => {
  250. if(res.code==200){
  251. console.log(res)
  252. uni.hideLoading();
  253. uni.showToast({
  254. icon:'none',
  255. title: "登录成功",
  256. });
  257. this.userinfos=uni.getStorageSync('userinfos')
  258. uni.getStorageSync('TOKEN_WEXIN');
  259. this.userInfo=uni.getStorageSync('userInfo');
  260. this.isLogin = true
  261. setTimeout(()=>{
  262. this.registerCourse()
  263. },200)
  264. }else if(res.code==406){
  265. uni.hideLoading();
  266. uni.showToast({
  267. icon:'none',
  268. title: '该用户已成为其他销售会员',
  269. });
  270. }else{
  271. uni.hideLoading();
  272. uni.showToast({
  273. icon:'none',
  274. title: res.msg,
  275. });
  276. }
  277. })
  278. },
  279. })
  280. }else{
  281. uni.navigateTo({
  282. url:'/pages_course/webview?H5course='+uni.getStorageSync('H5course')
  283. })
  284. }
  285. },
  286. shouquan(){
  287. if(this.userinfos.nickname==''){
  288. uni.showToast({
  289. icon:'none',
  290. title: "请先授权微信昵称",
  291. });
  292. }
  293. },
  294. confimrname(){
  295. if(this.userinfos.nickname==''){
  296. uni.showToast({
  297. icon:'none',
  298. title: "请授权微信昵称",
  299. });
  300. return
  301. }
  302. if(this.userinfos.avatar==''){
  303. uni.showToast({
  304. icon:'none',
  305. title: "请授权微信头像",
  306. });
  307. return
  308. }
  309. uni.setStorageSync('userInfos',this.userinfos)
  310. this.editUserA()
  311. this.userlogo=false
  312. },
  313. onChooseAvatar(e){
  314. this.userinfos.avatar=e.detail.avatarUrl
  315. console.log(e.detail.avatarUrl)
  316. uni.uploadFile({
  317. url: uni.getStorageSync('requestPath')+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  318. filePath: e.detail.avatarUrl,
  319. name: 'file',
  320. formData: {
  321. 'user': 'test' // 上传附带参数
  322. },
  323. success: (uploadFileRes) => {
  324. console.log(uploadFileRes)
  325. // 根据接口具体返回格式 赋值具体对应url
  326. var data=JSON.parse(uploadFileRes.data)
  327. this.headImg=uni.getStorageSync('requestPath')+data.fileName
  328. this.userinfos.avatar=data.url
  329. }
  330. });
  331. },
  332. onNickNameInput(e){
  333. console.log(e)
  334. this.userinfos.nickname=e.detail.value
  335. },
  336. nato(){
  337. uni.navigateTo({
  338. url:'/pages_course/webview'
  339. })
  340. },
  341. handleAgree(){
  342. console.log(144443)
  343. if(this.isVip==1){
  344. uni.showToast({
  345. title: '您已成为会员!',
  346. icon: 'none',
  347. duration: 2000,
  348. })
  349. }else{
  350. this.goLogin()
  351. uni.showToast({
  352. title: this.viptext,
  353. icon: 'none',
  354. duration: 2000,
  355. })
  356. }
  357. },
  358. userInfologin(e) {
  359. console.log(123333)
  360. this.userdisabled=true
  361. var that=this;
  362. uni.showLoading({
  363. title: "加载中..."
  364. });
  365. if (e.mp.detail.errMsg == 'getUserInfo:ok') {
  366. this.utils.getProvider()
  367. .then(provider => {
  368. if (!provider) {
  369. this.userdisabled=false
  370. reject()
  371. }
  372. // uni登录
  373. uni.login({
  374. provider: provider,
  375. success: async loginRes => {
  376. let code = loginRes.code // 获取开发code
  377. this.userinfos=uni.getStorageSync('userInfos')?uni.getStorageSync('userInfos'):this.userinfos
  378. loginByMiniApp({
  379. encryptedData: e.mp.detail.encryptedData,
  380. iv: e.mp.detail.iv,
  381. code: code,
  382. nickname:this.userinfos.nickname?this.userinfos.nickname:'',
  383. avatar:this.userinfos.avatar?this.userinfos.avatar:'',
  384. companyId : this.companyid || '',
  385. companyUserId:this.companyUserId || 0,
  386. authType:this.authType,
  387. appId:this.appid,
  388. projectId:this.projectId
  389. })
  390. .then( res => {
  391. if(res.code==200){
  392. // console.log(res)
  393. uni.hideLoading();
  394. uni.showToast({
  395. icon:'none',
  396. title: "登录成功",
  397. });
  398. uni.setStorageSync('TOKEN_WEXIN', res.token);
  399. uni.setStorageSync('userInfo', JSON.stringify(res.user));
  400. this.userInfo=res.user;
  401. uni.hideLoading()
  402. this.userdisabled=false
  403. // this.isLogin = true
  404. setTimeout(()=>{
  405. this.checkUserInfoA()
  406. // this.registerCourse()
  407. },200)
  408. }else if(res.code==406){
  409. uni.hideLoading();
  410. uni.showToast({
  411. icon:'none',
  412. title: '该用户已成为其他销售会员',
  413. });
  414. }
  415. else{
  416. uni.hideLoading();
  417. uni.showToast({
  418. icon:'none',
  419. title: res.msg,
  420. });
  421. }
  422. })
  423. .catch(res=>{
  424. this.userdisabled=false
  425. })
  426. },
  427. fail() {
  428. this.userdisabled=false
  429. }
  430. })
  431. })
  432. .catch(err => {
  433. this.userdisabled=false
  434. uni.showToast({
  435. icon:'none',
  436. title: err,
  437. });
  438. })
  439. } else {
  440. this.userdisabled=false
  441. uni.showToast({
  442. title: '已拒绝授权',
  443. icon: 'none',
  444. duration: 2000,
  445. })
  446. }
  447. },
  448. // 微信用户手机号登录
  449. phoneLogin(e) {
  450. var that=this;
  451. uni.showLoading({
  452. title: "加载中..."
  453. });
  454. if (e.mp.detail.errMsg == 'getPhoneNumber:ok') {
  455. this.utils.getProvider()
  456. .then(provider => {
  457. if (!provider) {
  458. reject()
  459. }
  460. // uni登录
  461. uni.login({
  462. provider: provider,
  463. success: async loginRes => {
  464. let code = loginRes.code // 获取开发code
  465. this.userinfos=uni.getStorageSync('userInfos')?uni.getStorageSync('userInfos'):this.userinfos
  466. loginByMiniApp({
  467. encryptedData: e.mp.detail.encryptedData,
  468. iv: e.mp.detail.iv,
  469. code: code,
  470. nickname:this.userinfos.nickname?this.userinfos.nickname:'',
  471. avatar:this.userinfos.avatar?this.userinfos.avatar:'',
  472. companyId : this.companyid || '',
  473. companyUserId:this.companyUserId || 0,
  474. authType:this.authType,
  475. appId:this.appid,
  476. projectId:this.projectId
  477. })
  478. .then( res => {
  479. if(res.code==200){
  480. // console.log(res)
  481. uni.hideLoading();
  482. uni.showToast({
  483. icon:'none',
  484. title: "登录成功",
  485. });
  486. uni.setStorageSync('TOKEN_WEXIN', res.token);
  487. uni.setStorageSync('userInfo', JSON.stringify(res.user));
  488. this.userInfo=res.user;
  489. uni.hideLoading()
  490. // this.isLogin = true
  491. // setTimeout(()=>{
  492. // this.registerCourse()
  493. // },200)
  494. setTimeout(()=>{
  495. this.checkUserInfoA()
  496. // this.registerCourse()
  497. },200)
  498. }else if(res.code==406){
  499. uni.hideLoading();
  500. uni.showToast({
  501. icon:'none',
  502. title: '该用户已成为其他销售会员',
  503. });
  504. }
  505. else{
  506. uni.hideLoading();
  507. uni.showToast({
  508. icon:'none',
  509. title: res.msg,
  510. });
  511. }
  512. })
  513. }
  514. })
  515. })
  516. .catch(err => {
  517. uni.showToast({
  518. icon:'none',
  519. title: err,
  520. });
  521. })
  522. } else {
  523. uni.showToast({
  524. title: '已拒绝授权',
  525. icon: 'none',
  526. duration: 2000,
  527. })
  528. }
  529. },
  530. getWechatCode() {
  531. if (this.isWechat) {
  532. let appid = "wx0d021524695f1943"; //微信APPid(百年康城)
  533. let code = this.getUrlCode().code; //是否存在code
  534. let local = window.location.href;
  535. if (code == null || code === "") {
  536. let urlPaths = local.split("/registerCourse");
  537. uni.setStorageSync('beforLoginPage', urlPaths[1]);
  538. //不存在就打开上面的地址进行授权
  539. window.location.href =
  540. "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
  541. appid +
  542. "&redirect_uri=" +
  543. encodeURIComponent(local) +
  544. "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
  545. } else {
  546. this.code = code;
  547. this.loginByMp()
  548. }
  549. }else{
  550. uni.showToast({
  551. title: '请在微信浏览器中打开',
  552. icon:'error'
  553. })
  554. }
  555. },
  556. getUrlCode() {
  557. // 截取url中的code方法
  558. var url = location.search;
  559. var theRequest = new Object();
  560. if (url.indexOf("?") != -1) {
  561. var str = url.substr(1);
  562. var strs = str.split("&");
  563. for (var i = 0; i < strs.length; i++) {
  564. theRequest[strs[i].split("=")[0]] = strs[i].split("=")[1];
  565. }
  566. }
  567. return theRequest;
  568. },
  569. loginByMp() {
  570. if (this.code == null) {
  571. return;
  572. }
  573. uni.showLoading({
  574. title: "处理中..."
  575. });
  576. loginByMp({code:this.code}).then(res => {
  577. uni.hideLoading();
  578. if (res.code == 200) {
  579. uni.setStorageSync('TOKEN_KEY', res.token);
  580. uni.setStorageSync('userInfo', JSON.stringify(res.user));
  581. this.userInfo= res.user
  582. let beforLoginUrl = uni.getStorageSync('beforLoginPage');
  583. this.isLogin = true
  584. this.registerCourse()
  585. } else {
  586. uni.showToast({
  587. title: res.msg,
  588. icon: 'none'
  589. });
  590. }
  591. },
  592. err => {}
  593. );
  594. },
  595. // 成为会员
  596. registerCourse() {
  597. console.log(123333)
  598. this.isVip = 0
  599. // 确保从本地存储重新获取最新数据
  600. // if(uni.getStorageSync('userInfo')){
  601. // this.userInfo=JSON.parse(uni.getStorageSync('userInfo'));
  602. // }
  603. // if (!this.userInfo.userId) {
  604. // // 空值检查
  605. // uni.showToast({ title: '用户未登录或信息不完整', icon: 'none' });
  606. // return;
  607. // }
  608. if(this.tagIds==null){
  609. this.tagIds=""
  610. }
  611. // console.log(this.tagIds)
  612. const data={
  613. userId:this.userInfo.userId,
  614. companyUserId:this.companyUserId,
  615. companyId:this.companyid,
  616. tagIds:this.tagIds,
  617. projectId:this.projectId
  618. }
  619. if(this.isLogin) {
  620. registerCourses(data).then(res=>{
  621. if(res.code == 200) {
  622. this.isVip = 1
  623. this.isbecomevip=1
  624. this.viptext='您已成为会员'
  625. uni.showToast({
  626. title: '注册成功',
  627. icon:'none'
  628. })
  629. } else {
  630. this.isbecomevip=1
  631. // console.log(this.isbecomevip)
  632. this.viptext=res.msg
  633. uni.showToast({
  634. icon:'none',
  635. title: res.msg
  636. })
  637. }
  638. })
  639. } else {
  640. // #ifdef H5
  641. this.getWechatCode()
  642. // #endif
  643. }
  644. }
  645. }
  646. }
  647. </script>
  648. <style lang="scss" scoped>
  649. .subname{
  650. background-color: #00aa00;
  651. color: #fff;
  652. }
  653. .subavt{
  654. background-color: #fff;
  655. border: 2rpx #0a0 solid;
  656. color: #00aa00;
  657. }
  658. .boxweixin{
  659. width: 44rpx;
  660. height: 44rpx;
  661. border-radius: 50%;
  662. text-align: center;
  663. line-height: 34rpx;
  664. color: #0a0;
  665. }
  666. .boxnosel{
  667. border: #757575 4rpx solid;
  668. }
  669. .boxsel{
  670. border: #0a0 4rpx solid;
  671. }
  672. .button-container {
  673. position: relative;
  674. width: 240rpx;
  675. }
  676. .hidden-input {
  677. position: absolute;
  678. top: 0;
  679. left: 0;
  680. width: 100%;
  681. height: 100%;
  682. opacity: 0;
  683. z-index: 2;
  684. }
  685. .custom-button {
  686. position: relative;
  687. z-index: 1;
  688. /* 其他样式 */
  689. width:100%;
  690. margin: 0 auto;
  691. height: 80rpx;
  692. line-height: 60rpx;
  693. font-size: 28rpx;
  694. padding: 10rpx 20rpx;
  695. }
  696. .submitname{
  697. width: 90%;
  698. margin: 0 auto;
  699. text-align: center;
  700. padding: 30rpx;
  701. margin-top: 40rpx;
  702. }
  703. .sub{
  704. background-color: #f0f0f0;
  705. color: #0a0;
  706. }
  707. .subact{
  708. background-color: #0a0;
  709. color: #fff;
  710. }
  711. .userlogo{
  712. height: 760rpx;
  713. }
  714. .getlogo{
  715. width:240rpx;
  716. background-color: #fff;
  717. // padding: 10rpx 20rpx;
  718. }
  719. ::v-deep .u-popup {
  720. flex: 0 !important;
  721. }
  722. // .submitname{
  723. // width: 60%;
  724. // background-color: #05a8ee;
  725. // color: #fff;
  726. // margin: 0 auto;
  727. // border-radius: 80rpx;
  728. // text-align: center;
  729. // padding: 20rpx;
  730. // margin-top: 40rpx;
  731. // }
  732. .userlogo{
  733. height: 760rpx;
  734. }
  735. .getlogo{
  736. width:calc(60% - 40rpx);
  737. margin: 0 auto;
  738. background-color: #fff;
  739. padding: 10rpx 20rpx;
  740. image{
  741. width: 80rpx !important;
  742. height: 80rpx !important;
  743. }
  744. }
  745. .footer-tips {
  746. // margin-top: 14rpx;
  747. position: fixed;
  748. width: 100%;
  749. bottom: 44rpx;
  750. text-align: center;
  751. font-family: PingFang SC,PingFang SC;
  752. font-weight: 500;
  753. font-size: 12px;
  754. color: #bbb;
  755. transform: scale(0.8);
  756. }
  757. .content {
  758. image {
  759. width: 300rpx;
  760. height: 300rpx;
  761. }
  762. }
  763. .bolds {
  764. color: #999;
  765. font-size: 16px;
  766. height: auto;
  767. line-height: inherit;
  768. margin-bottom: 0;
  769. width: 304px;
  770. word-break: break-all;
  771. text-align: center;
  772. margin: 50rpx 0 100rpx 0;
  773. }
  774. .sure {
  775. width: 500rpx;
  776. background-color: #1777ff;
  777. line-height: 88rpx;
  778. text-align: center;
  779. border-radius: 8rpx;
  780. color: #fff;
  781. }
  782. .btns{
  783. position: relative;
  784. width: 630rpx;
  785. height: 80rpx;
  786. .author-btn{
  787. z-index:100;
  788. position: absolute;
  789. width: 630rpx;
  790. height: 80rpx;
  791. line-height: 80rpx;
  792. text-align: center;
  793. background: #1777ff;
  794. border-radius: 40rpx;
  795. font-size: 30rpx;
  796. font-family: PingFang SC;
  797. font-weight: 500;
  798. color: rgba(255, 255, 255, 1);
  799. }
  800. }
  801. </style>