becomeVIP.vue 21 KB

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