App.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <script>
  2. export default {
  3. onLaunch: function () {
  4. // #ifdef APP-PLUS
  5. // 初始化极光推送
  6. this.initJPush()
  7. // #endif
  8. let that = this;
  9. this.$queue.connectSocket()
  10. that.$queue.changeTabbar(that.$queue.getData('userType')||1)
  11. uni.removeStorageSync('filter')
  12. // #ifdef APP || H5
  13. uni.setStorageSync("isDial", false);
  14. setInterval(() => {
  15. // #ifdef H5 || APP
  16. let userId = uni.getStorageSync("userId");
  17. if (uni.getStorageSync("token")) {
  18. that.$Request.get("/app/chat/selectUserChatVideo").then((res) => {
  19. if (res.code == 0 && res.data) {
  20. // videoStatus 状态 1是发起 2是通话中 3是已取消 4是已拒绝 5是已结束 不过他只会返回1和2
  21. if (res.data.videoStatus) {
  22. console.log(res.data);
  23. uni.setStorageSync("videoStatus", res.data.videoStatus);
  24. uni.setStorageSync("messageType", res.data.messageType); //4视频通话 5语音通话
  25. if (res.data.videoStatus == 1) {
  26. console.log(uni.getStorageSync("isDial"));
  27. if (!uni.getStorageSync("isDial")) {
  28. uni.setStorageSync("isDial", true); //跳转通话页面 做标识 true 已跳转 false 未跳转
  29. uni.navigateTo({
  30. url:
  31. "/my/videoVoice/videoVoice?byUserId=" +
  32. res.data.userId +
  33. "&chatContentId=" +
  34. res.data.chatContentId +
  35. "&isRol=2&messageType=" +
  36. res.data.messageType +
  37. "&chatConversationId=" +
  38. res.data.chatConversationId +
  39. "&postPushId=" +
  40. res.data.postPushId +
  41. "&resumesId=" +
  42. res.data.resumesId +
  43. "&userType=" +
  44. res.data.userType,
  45. });
  46. }
  47. }
  48. }
  49. } else {
  50. uni.setStorageSync("videoStatus", 4);
  51. }
  52. });
  53. }
  54. // #endif
  55. }, 5000);
  56. // #endif
  57. // #ifdef MP-WEIXIN
  58. if (!uni.getStorageSync("token")) {
  59. uni.login({
  60. provider: "weixin",
  61. success: function (loginRes) {
  62. console.log(loginRes, "************");
  63. let data = {
  64. code: loginRes.code,
  65. };
  66. that.$Request.get("/app/Login/wxLogin", data).then((res) => {
  67. if (res.code == 0) {
  68. uni.setStorageSync("openId", res.data.open_id);
  69. uni.setStorageSync("unionId", res.data.unionId);
  70. uni.setStorageSync("sessionkey", res.data.session_key);
  71. let inviterCode = "";
  72. if (uni.getStorageSync("inviterCode")) {
  73. inviterCode = uni.getStorageSync("inviterCode");
  74. }
  75. let sendData = {
  76. openId: uni.getStorageSync("openId"),
  77. unionId: uni.getStorageSync("unionId"),
  78. userName: "游客",
  79. avatar: "",
  80. sex: "1", //性别
  81. inviterCode: inviterCode, //别人登录进来携带你的邀请码
  82. };
  83. let phoneNum = false;
  84. uni.setStorageSync("sendDataList", sendData);
  85. that.$Request.getT("/app/common/type/188").then((ret) => {
  86. if (ret.code == 0) {
  87. if (ret.data && ret.data.value && ret.data.value == "是") {
  88. phoneNum = true;
  89. let flag = res.data.flag;
  90. if (flag == "2" && phoneNum) {
  91. //需要授权手机号则走手机号授权
  92. uni.setStorageSync("weixinPhone", true);
  93. } else {
  94. //不需要手机号则则直接走授权登录
  95. uni.setStorageSync("weixinPhone", false);
  96. }
  97. } else {
  98. uni.setStorageSync("weixinPhone", false);
  99. }
  100. }
  101. });
  102. }
  103. });
  104. },
  105. });
  106. }
  107. // #endif
  108. setInterval((d) => {
  109. //定时器,定时去调取聊天未读消息
  110. let userId = uni.getStorageSync("userId");
  111. let token = uni.getStorageSync('token')
  112. if (userId && token) {
  113. this.$Request.get("/app/chat/selectChatCount").then((res) => {
  114. if (res.code === 0) {
  115. let chatCount = res.data.chatCount;
  116. let messageCount = res.data.messageCount;
  117. uni.setStorageSync("messageCount", messageCount);
  118. // #ifdef APP-PLUS
  119. plus.runtime.setBadgeNumber(chatCount + messageCount)
  120. // #endif
  121. uni.$emit('chatUnreadCount', chatCount || 0)
  122. let num = chatCount + messageCount;
  123. if (num == 0) {
  124. uni.removeTabBarBadge({
  125. index: 2,
  126. });
  127. return;
  128. }
  129. uni.setTabBarBadge({
  130. index: 2,
  131. text: num + "",
  132. });
  133. }
  134. });
  135. }
  136. }, 6000);
  137. //#ifdef APP-PLUS
  138. // APP检测更新 具体打包流程可以参考:https://ask.dcloud.net.cn/article/35667
  139. plus.screen.lockOrientation("portrait-primary"); //竖屏正方向锁定
  140. //获取是否热更新过
  141. const updated = uni.getStorageSync("updated"); // 尝试读取storage
  142. if (updated.completed === true) {
  143. // 如果上次刚更新过
  144. // 删除安装包及安装记录
  145. console.log("安装记录被删除,更新成功");
  146. uni.removeSavedFile({
  147. filePath: updated.packgePath,
  148. success: (res) => {
  149. uni.removeStorageSync("updated");
  150. },
  151. });
  152. } else if (updated.completed === false) {
  153. console.log('安装未完成,继续安装')
  154. uni.removeStorageSync("updated");
  155. plus.runtime.install(updated.packgePath, {
  156. force: true,
  157. });
  158. uni.setStorage({
  159. key: "updated",
  160. data: {
  161. completed: true,
  162. packgePath: updated.packgePath,
  163. },
  164. success: (res) => {
  165. console.log("成功安装上次的更新,应用需要重启才能继续完成");
  166. },
  167. });
  168. uni.showModal({
  169. title: "温馨提示",
  170. content: "应用将重启以完成更新",
  171. showCancel: false,
  172. complete: () => {
  173. plus.runtime.restart();
  174. },
  175. });
  176. } else {
  177. console.log('获取当前系统版本信息')
  178. //获取当前系统版本信息
  179. plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
  180. //请求后台接口 解析数据 对比版本
  181. that.$Request.getT("/app/user/selectNewApp").then((res) => {
  182. res = res.data[0];
  183. console.log('当前版本:',widgetInfo.version+'线上版本:'+res.version)
  184. if (res.wgtUrl && widgetInfo.version < res.version) {
  185. console.log('进入更新逻辑')
  186. let downloadLink = "";
  187. let androidLink = res.androidWgtUrl;
  188. let iosLink = res.iosWgtUrl;
  189. let ready = false;
  190. //校验是是不是热更新
  191. if (res.wgtUrl.match(RegExp(/.wgt/))) {
  192. // 判断系统类型
  193. if (plus.os.name.toLowerCase() === "android") {
  194. console.log("安卓系统");
  195. if (androidLink && androidLink !== "#") {
  196. // 我这里默认#也是没有地址,请根据业务自行修改
  197. console.log("发现下载地址");
  198. // 安卓:创建下载任务
  199. if (androidLink.match(RegExp(/.wgt/))) {
  200. console.log("确认wgt热更新包");
  201. downloadLink = androidLink;
  202. ready = true;
  203. } else {
  204. console.log("安卓推荐.wgt强制更新,.apk的强制更新请您自行修改程序");
  205. }
  206. } else {
  207. console.log("下载地址是空的,无法继续");
  208. }
  209. } else {
  210. console.log("苹果系统");
  211. if (iosLink && iosLink !== "#") {
  212. // 我这里默认#也是没有地址,请根据业务自行修改
  213. console.log("发现下载地址");
  214. // 苹果(A):进行热更新(如果iosLink是wgt更新包的下载地址)判断文件名中是否含有.wgt
  215. if (iosLink.match(RegExp(/.wgt/))) {
  216. console.log("确认wgt热更新包");
  217. downloadLink = iosLink;
  218. ready = true;
  219. } else {
  220. console.log("苹果只支持.wgt强制更新");
  221. }
  222. } else {
  223. console.log("下载地址是空的,无法继续");
  224. }
  225. }
  226. if (ready) {
  227. console.log("任务开始");
  228. let downloadTask = uni.downloadFile({
  229. url: downloadLink,
  230. success: (res) => {
  231. if (res.statusCode === 200) {
  232. // 保存下载的安装包
  233. console.log("保存安装包");
  234. uni.saveFile({
  235. tempFilePath: res.tempFilePath,
  236. success: (res) => {
  237. const packgePath = res.savedFilePath;
  238. // 保存更新记录到stroage,下次启动app时安装更新
  239. if(true){
  240. console.log('直接进行安装')
  241. uni.removeStorageSync("updated");
  242. plus.runtime.install(packgePath, {
  243. force: true,
  244. });
  245. uni.setStorage({
  246. key: "updated",
  247. data: {
  248. completed: true,
  249. packgePath: packgePath,
  250. },
  251. success: (res) => {
  252. console.log("成功安装上次的更新,应用需要重启才能继续完成");
  253. },
  254. });
  255. uni.showModal({
  256. title: "温馨提示",
  257. content: "应用将重启以完成更新",
  258. showCancel: false,
  259. complete: () => {
  260. plus.runtime.restart();
  261. },
  262. });
  263. }else{
  264. uni.setStorage({
  265. key: "updated",
  266. data: {
  267. completed: false,
  268. packgePath: packgePath,
  269. },
  270. success: () => {
  271. console.log("成功保存记录");
  272. },
  273. });
  274. }
  275. // 任务完成,关闭下载任务
  276. console.log(
  277. "任务完成,关闭下载任务,下一次启动应用时将安装更新"
  278. );
  279. downloadTask.abort();
  280. downloadTask = null;
  281. },
  282. });
  283. }
  284. },
  285. });
  286. } else {
  287. console.log("下载地址未准备,无法开启下载任务");
  288. }
  289. } else {
  290. //不是热更新是在线更新 校验是否强制升级
  291. if (res.method == "true") {
  292. uni.showModal({
  293. showCancel: false,
  294. confirmText: "立即更新",
  295. title: "发现新版本",
  296. content: res.des,
  297. success: (res) => {
  298. if (res.confirm) {
  299. that.$queue.showLoading("下载中...");
  300. if (uni.getSystemInfoSync().platform == "android") {
  301. uni.downloadFile({
  302. url: androidLink,
  303. success: (downloadResult) => {
  304. if (downloadResult.statusCode === 200) {
  305. plus.runtime.install(
  306. downloadResult.tempFilePath,
  307. {
  308. force: false,
  309. },
  310. (d) => {
  311. console.log("install success...");
  312. plus.runtime.restart();
  313. },
  314. (e) => {
  315. console.error("install fail...");
  316. }
  317. );
  318. }
  319. },
  320. });
  321. }
  322. if (uni.getSystemInfoSync().platform == "ios") {
  323. plus.runtime.openURL(iosLink, function (res) {});
  324. }
  325. } else if (res.cancel) {
  326. console.log("取消");
  327. }
  328. },
  329. });
  330. } else {
  331. uni.showModal({
  332. title: "发现新版本",
  333. confirmText: "立即更新",
  334. cancelText: "下次更新",
  335. content: res.des,
  336. success: (res) => {
  337. if (res.confirm) {
  338. that.$queue.showLoading("下载中...");
  339. if (uni.getSystemInfoSync().platform == "android") {
  340. uni.downloadFile({
  341. url: androidLink,
  342. success: (downloadResult) => {
  343. if (downloadResult.statusCode === 200) {
  344. plus.runtime.install(
  345. downloadResult.tempFilePath,
  346. {
  347. force: false,
  348. },
  349. (d) => {
  350. console.log("install success...");
  351. plus.runtime.restart();
  352. },
  353. (e) => {
  354. console.error("install fail...");
  355. }
  356. );
  357. }
  358. },
  359. });
  360. }
  361. if (uni.getSystemInfoSync().platform == "ios") {
  362. plus.runtime.openURL(iosLink, function (res) {});
  363. }
  364. } else if (res.cancel) {
  365. console.log("取消");
  366. }
  367. },
  368. });
  369. }
  370. }
  371. }
  372. });
  373. });
  374. }
  375. //#endif
  376. // #ifdef APP-PLUS
  377. // 检查是否首次启动 - 引导页逻辑
  378. let firstUpload = uni.getStorageSync("firstUpload") || false;
  379. let token = this.$queue.getData('token')
  380. let userType = this.$queue.getData('userType')
  381. let companyStatus = this.$queue.getData('companyStatus')
  382. if (!firstUpload) {
  383. // 跳转到引导页
  384. uni.reLaunch({
  385. url: "/pages/my/jobApplicant/startPage",
  386. success: () => {
  387. // 标记已经显示过引导页
  388. uni.setStorageSync("firstUpload", true);
  389. }
  390. });
  391. // 这里需要return,避免执行后面的代码
  392. return;
  393. } else if (
  394. token &&
  395. (!userType || (userType == 2 && companyStatus != 2))
  396. ) {
  397. // 有登录token,但是没有userType,跳转选择角色页面,强制用户选择
  398. // 有登录token,并且userType为2,但是公司状态没有通过
  399. uni.reLaunch({
  400. url: '/pages/my/jobApplicant/guidePage',
  401. })
  402. return
  403. } else if (token && userType) {
  404. // 已经登录,且有userType
  405. uni.reLaunch({
  406. url: '/pages/index/index',
  407. })
  408. }
  409. // #endif
  410. },
  411. onShow: function () {
  412. // uni.removeStorageSync('firstLogin');
  413. // uni.removeStorageSync('firstUpload');
  414. //关键词过滤 602
  415. this.$Request.getT("/app/common/type/602").then((res) => {
  416. if (res.code == 0) {
  417. if (res.data && res.data.value) {
  418. this.$queue.setData("chatSearchKeys", res.data.value);
  419. }
  420. }
  421. });
  422. // 小程序是否上线
  423. // this.$Request.get('/app/common/type/238').then(res => {
  424. // if (res.code == 0) {
  425. // // #ifdef MP-WEIXIN
  426. // this.$queue.setData('XCXIsSelect', res.data.value);
  427. // // #endif
  428. // // #ifndef MP-WEIXIN
  429. // this.$queue.setData('XCXIsSelect', '是');
  430. // // #endif
  431. // }
  432. // });
  433. this.$Request.get("/app/common/type/257").then((res) => {
  434. if (res.code == 0) {
  435. // #ifdef MP-WEIXIN
  436. this.$queue.setData("XCXIsSelect", res.data.value);
  437. // #endif
  438. // #ifndef MP-WEIXIN
  439. this.$queue.setData("XCXIsSelect", "是");
  440. // #endif
  441. }
  442. });
  443. //用户客服
  444. // 企业微信链接 274
  445. this.$Request.get("/app/common/type/322").then((res) => {
  446. if (res.code == 0) {
  447. this.$queue.setData("kefu", res.data.value);
  448. }
  449. });
  450. // 企业微信客服APPID 275
  451. this.$Request.get("/app/common/type/324").then((res) => {
  452. if (res.code == 0) {
  453. this.$queue.setData("kefuAppid", res.data.value);
  454. }
  455. });
  456. //企业端客服
  457. this.$Request.get("/app/common/type/321").then((res) => {
  458. if (res.code == 0) {
  459. this.$queue.setData("kefuq", res.data.value);
  460. }
  461. });
  462. // 企业微信客服APPID 275
  463. this.$Request.get("/app/common/type/323").then((res) => {
  464. if (res.code == 0) {
  465. this.$queue.setData("kefuAppidq", res.data.value);
  466. }
  467. });
  468. // 企业会员每天免费联系次数 421
  469. this.$Request.get("/app/common/type/421").then((res) => {
  470. if (res.code == 0) {
  471. this.$queue.setData("vipMsgNum", res.data.value);
  472. }
  473. });
  474. // 企业非会员每天免费联系次数 422
  475. this.$Request.get("/app/common/type/422").then((res) => {
  476. if (res.code == 0) {
  477. this.$queue.setData("msgNum", res.data.value);
  478. }
  479. });
  480. // 企业会员每次联系价格 419
  481. this.$Request.get("/app/common/type/419").then((res) => {
  482. if (res.code == 0) {
  483. this.$queue.setData("vipMsgPrice", res.data.value);
  484. }
  485. });
  486. // 企业非会员每次联系价格 420
  487. this.$Request.get("/app/common/type/420").then((res) => {
  488. if (res.code == 0) {
  489. this.$queue.setData("msgPrice", res.data.value);
  490. }
  491. });
  492. //腾讯云实时语音SDKAppID
  493. this.$Request.get("/app/common/type/814").then((res) => {
  494. if (res.code == 0) {
  495. uni.setStorageSync("sdkAppId", res.data.value);
  496. }
  497. });
  498. console.log("App Show");
  499. // #ifdef H5
  500. // let sysTem = uni.getSystemInfoSync()
  501. // if (sysTem.model == 'PC') { //如果是pc访问移动端域名
  502. // this.$Request.get('/app/common/type/432').then(res => {
  503. // if (res.code == 0) {
  504. // if (res.data.value == '是') {
  505. // this.$Request.get('/app/common/type/433').then(ree => {
  506. // if (ree.code == 0) {
  507. // if (ree.data.value) {
  508. // window.location.href = ree.data.value;
  509. // }
  510. // }
  511. // })
  512. // }
  513. // }
  514. // })
  515. // }
  516. // #endif
  517. // #ifdef APP-PLUS
  518. if (uni.getSystemInfoSync().platform == "android") {
  519. let clientid = plus.push.getClientInfo().clientid;
  520. let userId = this.$queue.getData("userId");
  521. if (userId) {
  522. this.$Request
  523. .postT("/app/user/updateClientId?clientId=" + clientid + "&userId=" + userId)
  524. .then((res) => {});
  525. }
  526. }
  527. //#endif
  528. //#ifdef H5
  529. let isopen = false;
  530. this.$Request.get("/app/common/type/237").then((res) => {
  531. if (res.data.value == "是") {
  532. isopen = true;
  533. }
  534. });
  535. if (isopen) {
  536. let ua = navigator.userAgent.toLowerCase();
  537. if (ua.indexOf("micromessenger") !== -1) {
  538. let openid = uni.getStorageSync("openid");
  539. let userId = uni.getStorageSync("userId");
  540. let that = this;
  541. if (!openid) {
  542. if (
  543. window.location.href.indexOf("?code=") !== -1 ||
  544. window.location.href.indexOf("&code=") !== -1
  545. ) {
  546. let code;
  547. if (window.location.href.indexOf("?code=") !== -1) {
  548. code = window.location.href.split("?code=")[1].split("&")[0];
  549. } else {
  550. code = window.location.href.split("&code=")[1].split("&")[0];
  551. }
  552. this.$Request.get("/app/Login/getOpenId?code=" + code).then((ret) => {
  553. uni.setStorageSync("openId", ret.data);
  554. this.$Request
  555. .get("/app/Login/openid/login?openId=" + ret.data)
  556. .then((res) => {
  557. this.$queue.setData("userId", res.user.userId);
  558. this.$queue.setData("token", res.token);
  559. this.$queue.setData("phone", res.user.phone);
  560. this.$queue.setData("userName", res.user.userName);
  561. this.$queue.setData("avatar", res.user.avatar);
  562. this.$queue.setData("invitationCode", res.user.invitationCode);
  563. this.$queue.setData("inviterCode", res.user.inviterCode);
  564. });
  565. });
  566. } else {
  567. this.$Request.get("/app/common/type/108").then((res) => {
  568. if (res.data.value == "是") {
  569. window.location.href =
  570. "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
  571. that.$queue.getWxAppid() +
  572. "&redirect_uri=" +
  573. window.location.href.split("#")[0] +
  574. "&response_type=code&scope=snsapi_userinfo#wechat_redirect";
  575. }
  576. });
  577. }
  578. }
  579. if (userId && openid) {
  580. this.$Request
  581. .get("/app/Login/bindOpenId?userId=" + userId + "&openId=" + openid)
  582. .then((res) => {
  583. });
  584. }
  585. }
  586. }
  587. //#endif
  588. },
  589. onHide: function () {
  590. console.log("App Hide");
  591. },
  592. methods: {
  593. // 初始化极光推送
  594. initJPush() {
  595. // 确保在App环境下执行(H5/小程序不支持)
  596. if (uni.getSystemInfoSync().platform === 'android' || uni.getSystemInfoSync().platform === 'ios') {
  597. const jpushModule = uni.requireNativePlugin('JG-JPush')
  598. if (!jpushModule) {
  599. console.error('极光推送插件未找到,请检查导入和调试基座')
  600. return;
  601. }
  602. jpushModule.initJPushService()
  603. // 监听:点击通知(用户点击通知栏的通知)
  604. jpushModule.addNotificationListener((res) => {
  605. // console.log('点击了通知:', res)
  606. // setTimeout(() => {
  607. // // jpushModule.setBadge(0)
  608. // // jpushModule.setBadgeNumber({ badge: 0 })
  609. // console.log('设置了Badge')
  610. // }, 500)
  611. // 可在这里跳转到指定页面(比如根据通知的extra参数跳转)
  612. // if (res.extras && res.extras.page) {
  613. // // tab页面
  614. // // /pages/index/index
  615. // // /pages/talentSearch/index
  616. // // /pages/msg/index
  617. // // /pages/my/index
  618. // setTimeout(() => {
  619. // uni.switchTab({
  620. // url: res.extras.page // 例如:/pages/detail/detail?id=123
  621. // })
  622. // }, 500)
  623. // }
  624. })
  625. jpushModule.getRegistrationID((res) => {
  626. if (res.code === 0) {
  627. console.log('获取设备ID', res)
  628. this.$queue.setData('registerID', res?.registerID || '')
  629. } else {
  630. console.error('获取RegistrationID失败:', res)
  631. }
  632. })
  633. }
  634. },
  635. }
  636. };
  637. </script>
  638. <style lang="scss">
  639. /*每个页面公共css */
  640. @import "uview-ui/index.scss";
  641. @import "components/colorui/main.css";
  642. @import "components/colorui/icon.css";
  643. page {
  644. background-color: #ffffff;
  645. color: #343546;
  646. }
  647. .bg {
  648. background-color: #f7f7f7;
  649. }
  650. /*文本省略*/
  651. .m-ellipsis {
  652. overflow: hidden;
  653. white-space: nowrap;
  654. text-overflow: ellipsis;
  655. }
  656. .m-ellipsis-l2,
  657. .m-ellipsis-l3 {
  658. display: -webkit-box;
  659. overflow: hidden;
  660. text-overflow: ellipsis;
  661. -webkit-box-orient: vertical;
  662. word-break: break-all;
  663. }
  664. .m-ellipsis-l2 {
  665. -webkit-line-clamp: 2;
  666. }
  667. .m-ellipsis-l3 {
  668. -webkit-line-clamp: 3;
  669. }
  670. .popup-content .popup-text-permission{
  671. padding: 100rpx;
  672. color: #343546;
  673. }
  674. </style>