becomeVIP.vue 21 KB

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