App.vue 24 KB

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