numberlogin.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. <template>
  2. <view>
  3. <view class="content x-c">
  4. <image class="backImg" @tap="goBack()" src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/icon_close.png"></image>
  5. <view class="pageTop x-c">
  6. <view class="head x-c">
  7. 登录即可体验完整功能
  8. </view>
  9. <view class="loginBox">
  10. <view class="login-item">
  11. <view class="input-account">
  12. <input v-model="userName" placeholder="手机号登录" type="number" />
  13. </view>
  14. <view class="line"></view>
  15. </view>
  16. <!-- <view class="login-item">
  17. <view class="input-pwd">
  18. <input v-model="password" placeholder="请输入密码" type="password" />
  19. </view>
  20. <view class="line"></view>
  21. </view> -->
  22. <view class="btns">
  23. <view class="login-btn" @click="login">登录</view>
  24. </view>
  25. <view class="reg-box x-bc">
  26. <view class="reg-btn" @click="goToRegister()">注册账号</view>
  27. <!-- <view class="reg-btn" @click="goToFindPass()">忘记密码</view> -->
  28. </view>
  29. </view>
  30. </view>
  31. <view class="pageBottom" v-if="isApp && isAgreePrivacy">
  32. <view class="tips y-f"> — 快捷登录 — </view>
  33. <view class="menu x-ac">
  34. <view @tap="loginWeixin" ><image src="/static/image/login/weixin.png"></image></view>
  35. <view v-if="isIos" @tap="quickAppleLogin" ><image src="/static/image/login/apple.png"></image></view>
  36. </view>
  37. </view>
  38. <view class="checkbox">
  39. <view class="checkbox-icon" @tap="handleAgree">
  40. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/right_org_ling.png" v-show="!agree"></image>
  41. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/right_org.png" v-show="agree"></image>
  42. </view>
  43. <view>我已阅读并同意<text @tap="goToWeb(0)">《用户协议》</text><text @tap="goToWeb(1)">《隐私政策》</text> 并使用本机号码登录</view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import { login } from '@/api/living'
  50. // login
  51. import { loginByWeChat,getUserInfo,loginByApple } from '@/api/user'
  52. export default {
  53. data() {
  54. return {
  55. userName:"",
  56. password:"",
  57. registrationID:"",
  58. unionid:"",
  59. userPhone:"",
  60. loginType:0,
  61. isApp:false,
  62. agree: false,
  63. isAgreePrivacy:false,
  64. isIos:false,
  65. from: '',
  66. source:'',
  67. appleKey:""
  68. }
  69. },
  70. onLoad(option) {
  71. // #ifdef APP-PLUS
  72. this.isIos = plus.os.name == "iOS"
  73. // #endif
  74. this.from= option.from || ''
  75. let that=this;
  76. uni.$on('getRegistrationID', function(data) {
  77. //console.log("getRegistrationID " + JSON.stringify(data));
  78. that.registrationID=data;
  79. });
  80. // #ifdef APP-PLUS
  81. this.isApp=true;
  82. this.source = plus.runtime.channel || 'app'
  83. // #endif
  84. // if(!this.$isLogin()) {
  85. // this.$showLoginPage()
  86. // }
  87. },
  88. onShow() {
  89. // if(this.$isLogin()) {
  90. // this.goPage()
  91. // }
  92. // #ifdef APP-PLUS
  93. this.isAgreePrivacy=this.isIos ? true : plus.runtime.isAgreePrivacy();
  94. if(plus.runtime.isAgreePrivacy()) {
  95. this.getRegistrationID();
  96. }
  97. // #endif
  98. },
  99. onUnload() {
  100. uni.$off('getRegistrationID');
  101. },
  102. mounted() {
  103. },
  104. methods: {
  105. initUniverify(){
  106. const callback = (res) => {
  107. // 获取一键登录弹框协议勾选状态
  108. univerifyManager.getCheckBoxState({
  109. success(res) {
  110. console.log("getCheckBoxState res: ", res);
  111. if (res.state) {
  112. // 关闭一键登录弹框
  113. univerifyManager.close()
  114. }
  115. }
  116. })
  117. }
  118. // 订阅自定义按钮点击事件
  119. univerifyManager.onButtonsClick(callback);
  120. // 取消订阅自定义按钮点击事件
  121. univerifyManager.offButtonsClick(callback);
  122. },
  123. login(){
  124. // if (this.$isEmpty(this.password)) {
  125. // uni.showToast({
  126. // title: "请输入密码",
  127. // icon: 'none',
  128. // });
  129. // return
  130. // }
  131. if (!this.agree) {
  132. uni.showToast({
  133. title: "请同意相关协议",
  134. icon: 'none'
  135. });
  136. return
  137. }
  138. var data = {
  139. phone:this.userName,
  140. password: this.password,
  141. jpushId:this.registrationID,
  142. loginType:3,
  143. source: this.source
  144. };
  145. var that=this;
  146. uni.showLoading({
  147. title:"处理中..."
  148. });
  149. login(data).then(res => {
  150. uni.hideLoading();
  151. console.log("qxj res:"+JSON.stringify(res));
  152. if(res.code==200){
  153. console.log("登录了>>>>",res)
  154. uni.setStorageSync('AppToken',res.token);
  155. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  156. uni.$emit('refreshIM');
  157. uni.$emit('showHealthButler');
  158. that.goPage();
  159. // // #ifdef H5
  160. // this.$navBack();
  161. // // #endif
  162. // // #ifdef APP-PLUS
  163. // this.$navBack();
  164. // // uni.reLaunch({
  165. // // url: '../index/index',
  166. // // animationType: 'pop-in',
  167. // // animationDuration: 100
  168. // // })
  169. // // #endif
  170. }
  171. else{
  172. uni.showToast({title: res.msg,icon: 'none'});
  173. }
  174. },
  175. rej => {
  176. console.log("qxj rej:"+JSON.stringify(rej));
  177. }
  178. );
  179. },
  180. quickAppleLogin() {
  181. let that=this;
  182. if (!this.agree) {
  183. uni.showToast({
  184. title: "请同意相关协议",
  185. icon: 'none'
  186. });
  187. return
  188. }
  189. uni.getProvider({
  190. service: 'oauth',
  191. success: function (res) {
  192. // console.log(res.provider)
  193. if (res.provider.indexOf('apple')) {
  194. uni.login({
  195. provider: 'apple',
  196. success: function (loginRes) {
  197. that.appleKey = loginRes.authResult.openid
  198. that.loginByAppleAct(loginRes.authResult)
  199. },
  200. fail: function (err) {
  201. console.log(err);
  202. // 登录授权失败
  203. // err.code错误码参考`授权失败错误码(code)说明`
  204. }
  205. });
  206. }
  207. }
  208. });
  209. },
  210. async loginByAppleAct(authResult) {
  211. let loginDevice = ''
  212. if(plus.runtime.isAgreePrivacy()) {
  213. const info = await uni.getPushClientId();
  214. uni.setStorageSync("registrationID", info.cid);
  215. this.registrationID = info.cid;
  216. let devinfo= await uni.getDeviceInfo();
  217. if(devinfo!=null){
  218. loginDevice += devinfo.deviceBrand ? devinfo.deviceBrand : "";
  219. loginDevice += devinfo.deviceModel ? " " + devinfo.deviceModel : "";
  220. loginDevice += devinfo.system ? " " + devinfo.system : "";
  221. }
  222. }
  223. const params={
  224. loginDevice:loginDevice,
  225. jpushId:this.registrationID,
  226. source:this.source,
  227. appleKey: authResult.openid
  228. };
  229. uni.showLoading({
  230. title: '登陆中'
  231. })
  232. loginByApple(params).then(res=>{
  233. uni.hideLoading()
  234. if(res.user!=null){
  235. uni.hideLoading();
  236. uni.setStorageSync('AppToken',res.token);
  237. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  238. uni.closeAuthView();
  239. uni.$emit('refreshIM');
  240. uni.$emit('showHealthButler');
  241. uni.$emit('refreshUserInfo',{});
  242. // this.$navBack();
  243. this.goPage()
  244. }else{
  245. if(res.isNew){
  246. this.bindMobile('apple');
  247. }
  248. }
  249. }).catch(()=>{
  250. uni.hideLoading()
  251. })
  252. },
  253. loginWeixin(){
  254. if (!this.agree) {
  255. uni.showToast({
  256. title: "请同意相关协议",
  257. icon: 'none'
  258. });
  259. return
  260. }
  261. uni.login({
  262. provider: "weixin",
  263. onlyAuthorize:true,
  264. success: async (res) => {
  265. let that=this;
  266. uni.showLoading({
  267. title:"处理中..."
  268. });
  269. const params={code:res.code,jpushId:this.registrationID,source:this.source};
  270. this.loginByWeChatAct(params);
  271. },
  272. fail: (err) => {
  273. console.log('qxj loginWeixin fail:', JSON.stringify(err));
  274. // 未开通
  275. if (err.code == 1000) {
  276. uni.showModal({
  277. title: '登录失败',
  278. content: `${err.errMsg}\n,错误码:${err.code}`,
  279. confirmText: '开通指南',
  280. cancelText: '确定',
  281. success: (res) => {
  282. if (res.confirm) {
  283. setTimeout(() => {
  284. plus.runtime.openWeb('https://ask.dcloud.net.cn/article/37965')
  285. }, 500)
  286. }
  287. }
  288. });
  289. return;
  290. }
  291. // 一键登录预登陆失败
  292. if (err.code == '30005') {
  293. uni.showModal({
  294. showCancel: false,
  295. title: '预登录失败',
  296. content: err.errMsg
  297. });
  298. return;
  299. }
  300. // 一键登录用户关闭验证界面
  301. if (err.code != '30003') {
  302. uni.showModal({
  303. showCancel: false,
  304. title: '登录失败',
  305. content: JSON.stringify(err)
  306. });
  307. }
  308. },
  309. complete: () => {
  310. }
  311. });
  312. },
  313. goToRegister(){
  314. this.$navTo('./register');
  315. },
  316. goToFindPass(){
  317. this.$navTo('./findpass');
  318. },
  319. doUniverify(authResult){
  320. uniCloud.callFunction({
  321. name: 'loginByMobile', // 你的云函数名称
  322. data: {
  323. access_token: authResult.access_token, // 客户端一键登录接口返回的access_token
  324. openid:authResult.openid // 客户端一键登录接口返回的openid
  325. }
  326. }).then(res => {
  327. uni.closeAuthView();
  328. if(res.result.errCode==0){
  329. this.userName=res.result.phoneNumber;
  330. }else{
  331. uni.showToast({title:res.result.message,icon: 'none' });
  332. }
  333. }).catch(err=>{
  334. // 处理错误
  335. console.error('调用云函数失败:',err);
  336. // 详细记录错误信息
  337. console.error('错误信息:', err.errMsg);
  338. })
  339. },
  340. loginByWeChatAct(params){
  341. loginByWeChat(params).then(res => {
  342. if(res.code==200){
  343. if(res.user!=null){
  344. uni.hideLoading();
  345. uni.setStorageSync('AppToken',res.token);
  346. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  347. uni.closeAuthView();
  348. uni.$emit('refreshIM');
  349. uni.$emit('showHealthButler');
  350. uni.$emit('refreshUserInfo',{});
  351. // this.$navBack();
  352. this.goPage()
  353. }else{
  354. this.unionid=res.unionid;
  355. if(res.isNew){
  356. this.bindMobile();
  357. }
  358. }
  359. }
  360. else{
  361. uni.hideLoading();
  362. uni.showToast({title: res.msg,icon: 'none'});
  363. }
  364. },
  365. rej => {}
  366. );
  367. },
  368. bindMobile(type){
  369. // #ifdef APP-PLUS
  370. uni.login({
  371. provider: 'univerify',
  372. univerifyStyle: { // 自定义登录框样式
  373. fullScreen: false,
  374. authButton: {
  375. "title": "绑定手机号",
  376. "normalColor": "#FF5C03",
  377. "highlightColor": "#FF5C03",
  378. },
  379. privacyTerms: {
  380. "defaultCheckBoxState":true, // 条款勾选框初始状态 默认值: true
  381. "isCenterHint":false, //未勾选服务条款时点击登录按钮的提示是否居中显示 默认值: false (3.7.13+ 版本支持)
  382. "uncheckedImage":"", // 可选 条款勾选框未选中状态图片(仅支持本地图片 建议尺寸 24x24px)(3.2.0+ 版本支持)
  383. "checkedImage":"", // 可选 条款勾选框选中状态图片(仅支持本地图片 建议尺寸24x24px)(3.2.0+ 版本支持)
  384. "checkBoxSize":18, // 可选 条款勾选框大小
  385. "textColor": "#BBBBBB", // 文字颜色 默认值:#BBBBBB
  386. "termsColor": "#FF5C03", // 协议文字颜色 默认值: #5496E3
  387. "prefix": "我已阅读并同意", // 条款前的文案 默认值:“我已阅读并同意”
  388. "suffix": "并使用本机号码登录", // 条款后的文案 默认值:“并使用本机号码登录”
  389. "privacyItems": [ // 自定义协议条款,最大支持2个,需要同时设置url和title. 否则不生效
  390. ]
  391. },
  392. },
  393. success(res){ //
  394. console.log("qxj univerify login:"+JSON.stringify(res.authResult)); // {openid:'登录授权唯一标识',access_token:'接口返回的 token'}
  395. if(type == 'apple') {
  396. this.loginByUniverify(res.authResult,3);
  397. } else {
  398. this.loginByUniverify(res.authResult,1);
  399. }
  400. },
  401. fail(res){
  402. uni.hideLoading();
  403. uni.showToast({title: "一键登录失败请检查网络和SIM卡是否可用",icon: 'none',position:'bottom'});
  404. //setTimeout(function() {
  405. uni.navigateTo({url: "/pages/auth/login"});
  406. //}, 1800);
  407. //}
  408. //登录失败
  409. console.log("qxj failRes:"+JSON.stringify(res));
  410. }
  411. });
  412. // #endif
  413. // #ifdef H5
  414. uni.navigateTo({
  415. url: "/pages/auth/login"
  416. });
  417. // #endif
  418. },
  419. loginByUniverify(authResult,type){
  420. uniCloud.callFunction({
  421. name: 'loginByMobile', // 你的云函数名称
  422. data: {
  423. access_token: authResult.access_token, // 客户端一键登录接口返回的access_token
  424. openid:authResult.openid // 客户端一键登录接口返回的openid
  425. }
  426. }).then(res => {
  427. console.log("qxj doUniverify:",JSON.stringify(res));
  428. if(res.result.errCode==0){
  429. userPhone=res.result.phoneNumber;
  430. if(type==3) {
  431. // 苹果登录
  432. this.setPhoneAct(3,userPhone,this.unionid);
  433. } else {
  434. this.setPhoneAct(1,userPhone,this.unionid);
  435. }
  436. }else{
  437. uni.showToast({title:res.result.message,icon: 'none' });
  438. }
  439. }).catch(err=>{
  440. // 处理错误
  441. console.error('调用云函数失败:',err);
  442. // 详细记录错误信息
  443. console.error('错误信息:', err.errMsg);
  444. })
  445. },
  446. setPhoneAct(type,phone,unionId){
  447. let params={
  448. phone:phone,
  449. unionId:unionId,
  450. };
  451. if(type==3) {
  452. params={
  453. phone:phone,
  454. unionId:unionId,
  455. appleKey: this.appleKey
  456. };
  457. }
  458. setPhone(params).then(res => {
  459. uni.hideLoading();
  460. if(res.code==200){
  461. uni.setStorageSync('AppToken',res.token);
  462. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  463. uni.closeAuthView();
  464. uni.$emit('refreshIM');
  465. // #ifdef APP-PLUS
  466. // #endif
  467. this.goPage()
  468. }
  469. else{
  470. uni.showToast({title: res.msg,icon: 'none'});
  471. uni.closeAuthView();
  472. }
  473. },
  474. rej => {}
  475. );
  476. },
  477. getRegistrationID(){
  478. this.registrationID=uni.getStorageSync("registrationID");
  479. if(this.registrationID==null || this.registrationID==""){
  480. uni.getPushClientId({success: res => {
  481. uni.setStorageSync("registrationID",res.cid);
  482. this.registrationID = res.cid
  483. }
  484. });
  485. }
  486. },
  487. goBack(){
  488. console.log("qxj goBack");
  489. uni.$emit('showHealthButler');
  490. // this.$navBack();
  491. uni.redirectTo({
  492. url: "/pages/auth/loginIndex"
  493. })
  494. },
  495. handleAgree() { // 同意
  496. this.agree = !this.agree
  497. if(this.isIos) {
  498. if(this.agree) {
  499. plus.runtime.agreePrivacy()
  500. this.getRegistrationID();
  501. } else {
  502. plus.runtime.disagreePrivacy();
  503. }
  504. }
  505. },
  506. goToWeb(index){
  507. uni.setStorageSync('url',index==0?"https://userapp.his.cdwjyyh.com/web/userAgreement":"https://userapp.his.cdwjyyh.com/web/privacyPolicy");
  508. uni.navigateTo({
  509. url:"/pages/index/h5"
  510. })
  511. },
  512. goPage() {
  513. let pages = getCurrentPages();
  514. let url = pages[ pages.length - 1];
  515. let openUrl = uni.getStorageSync("openUrl");
  516. if(openUrl) {
  517. uni.navigateTo({
  518. url: openUrl,
  519. success: function(res) {
  520. uni.removeStorageSync("openUrl")
  521. }
  522. })
  523. } else {
  524. uni.reLaunch({
  525. url: '/pages/home/index',
  526. animationType: 'none',
  527. animationDuration: 2000
  528. });
  529. return;
  530. if(pages.length == 1) {
  531. uni.reLaunch({
  532. url: '/pages/home/index',
  533. //url: '../course/video/living-app',
  534. animationType: 'none',
  535. animationDuration: 2000
  536. });
  537. } else {
  538. //this.$navBack();
  539. }
  540. }
  541. this.$updateMsgDot()
  542. this.$setSource()
  543. }
  544. },
  545. }
  546. </script>
  547. <style scoped lang="scss">
  548. page{
  549. background-color: #ffffff;
  550. }
  551. .other-login-btn {
  552. display: flex;
  553. align-items: center;
  554. justify-content: center;
  555. width: 100%;
  556. height: 80rpx;
  557. background: rgba(229, 138, 0, 0.08);
  558. border-radius: 40rpx;
  559. font-size: 30rpx;
  560. font-family: PingFang SC;
  561. font-weight: 500;
  562. color: #FF5C03;
  563. border: 2rpx solid #FF5C03;
  564. margin-top: 30rpx;
  565. &::after {
  566. border: none;
  567. }
  568. }
  569. .content{
  570. display: flex;
  571. flex-direction: column;
  572. align-items: center;
  573. height: calc(100vh);
  574. width: 100%;
  575. position: relative;
  576. // justify-content: space-between;
  577. //padding-top: calc(100% - 32vh);
  578. }
  579. .backImg{
  580. position: absolute;
  581. left:30rpx;
  582. top:40px;
  583. height: 30rpx;
  584. width: 30rpx;
  585. }
  586. .pageTop{
  587. display: flex;
  588. flex-direction: column;
  589. width: 100%;
  590. }
  591. .content .head{
  592. text-align: center;
  593. width: 100%;
  594. height: 100rpx;
  595. // background:url(/static/image/login/top_bg.png) no-repeat 0 center;
  596. background-size: cover;
  597. box-sizing: border-box;
  598. font-size: 36rpx;
  599. font-weight: bold;
  600. color: #666;
  601. }
  602. .content .head image{
  603. width: 150rpx;
  604. height: 150rpx;
  605. border-radius: 10rpx;
  606. box-shadow:0px 0px 20rpx rgba(0,0,0,0.2);
  607. }
  608. .title{
  609. color: #141414;
  610. margin:50upx 0upx 30upx 0rpx;
  611. font-size: 38rpx;
  612. font-weight: 500;
  613. }
  614. .desc{
  615. color: #686866;
  616. padding:0 0 30rpx 0rpx;
  617. font-size: 28rpx;
  618. }
  619. .loginBox{
  620. padding:0 10px 30rpx;
  621. width: calc(100%) ;
  622. background: #FDFDFD;
  623. z-index: 10;
  624. position: relative;
  625. .login-item p{
  626. text-align: left;
  627. }
  628. .line{
  629. height: 0.5rpx;
  630. background-color: #efefef;
  631. margin-top: 10rpx;
  632. }
  633. .input-account{
  634. margin-top: 20rpx;
  635. margin-bottom: 0rpx;
  636. border-radius:40rpx;
  637. border:solid 0rpx #efefef;
  638. height: 80rpx;
  639. width: 100%;
  640. // background:url(/static/account.png) no-repeat 0 center;
  641. background-size: 30rpx 30rpx;
  642. background-position: 30rpx;
  643. }
  644. .input-pwd{
  645. margin-top: 40rpx;
  646. margin-bottom: 20rpx;
  647. border-radius:40rpx;
  648. border:solid 0rpx #efefef;
  649. height: 80rpx;
  650. width: 100%;
  651. // background:url(/static/password.png) no-repeat 0 center;
  652. background-size: 30rpx 30rpx;
  653. background-position: 30rpx;
  654. }
  655. input{
  656. margin-left: 80rpx;
  657. height: 80rpx;
  658. line-height: 80rpx
  659. }
  660. .reg-box {
  661. padding-bottom:20rpx;
  662. margin:0 10px;
  663. .reg-btn{
  664. font-size:16px ;
  665. color: #FF5C03;
  666. }
  667. }
  668. }
  669. .btns{
  670. margin: 60rpx 0rpx;
  671. }
  672. .login-btn {
  673. display: flex;
  674. align-items: center;
  675. justify-content: center;
  676. width: 100%;
  677. height: 80rpx;
  678. background: linear-gradient(to right, #FF5C03 0%, #FF5C03 100%);
  679. background: -moz-linear-gradient(to right, #FF5C03 0%, #FF5C03 100%);
  680. box-shadow: 0px 7rpx 6rpx 0px rgba(229, 138, 0, 0.22);
  681. border-radius: 40rpx;
  682. font-size: 30rpx;
  683. font-family: PingFang SC;
  684. font-weight: 500;
  685. color: rgba(255, 255, 255, 1);
  686. }
  687. .pageBottom{
  688. height: 220rpx;
  689. width: 75%;
  690. display: flex;
  691. flex-direction: column;
  692. position: absolute;
  693. bottom: 100rpx;
  694. }
  695. .tips{
  696. color: #999;
  697. font-size: 32rpx;
  698. }
  699. .menu{
  700. margin-top: 30rpx;
  701. image{
  702. width: 96rpx;
  703. height: 96rpx;
  704. }
  705. }
  706. .checkbox {
  707. margin: 20rpx;
  708. margin-top: 36rpx;
  709. display: flex;
  710. flex-direction:row;
  711. align-items: flex-start;
  712. justify-content: flex-start;
  713. font-family: PingFang SC, PingFang SC;
  714. font-weight: 400;
  715. font-size: 26rpx;
  716. color: #999999;
  717. line-height: 38rpx;
  718. text-align: left;
  719. text {
  720. color:#FF5C03;
  721. }
  722. &-icon {
  723. flex-shrink: 0;
  724. margin-right: 12rpx;
  725. image {
  726. height: 24rpx;
  727. width: 24rpx;
  728. }
  729. }
  730. }
  731. </style>