becomeVIP.vue 21 KB

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