becomeVIP.vue 21 KB

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