login.vue 19 KB

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