AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

445 lines
9.7 KiB

  1. <template>
  2. <view class="main">
  3. <!-- <u-parse :content="content" /> -->
  4. <!-- <view v-html="content"></view> -->
  5. <rich-text :nodes="content"></rich-text>
  6. </view>
  7. </template>
  8. <script>
  9. var util = require("../../utils/util.js");
  10. var config = require("../../config");
  11. import uParse from '../../components/gaoyia-parse/parse.vue'
  12. export default {
  13. data() {
  14. return {
  15. content:"",
  16. id:""
  17. };
  18. },
  19. components: {
  20. uParse
  21. },
  22. onLoad(e){
  23. this.id = e.id;
  24. let link=JSON.parse(decodeURIComponent(e.content))
  25. this.content = link
  26. this.read()
  27. },
  28. methods:{
  29. read(){
  30. uni.request({
  31. url: config.service.updateRead,
  32. method: "GET",
  33. data:{id:this.id},
  34. header: {
  35. 'content-type': 'application/json',
  36. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  37. },
  38. success: (res) => {
  39. console.log(res)
  40. }
  41. })
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .main{
  48. padding: 20rpx;
  49. }
  50. .ql-container {
  51. box-sizing: border-box;
  52. font-family: Helvetica, Arial, sans-serif;
  53. font-size: 13px;
  54. height: 100%;
  55. margin: 0px;
  56. position: relative;
  57. }
  58. .ql-container.ql-disabled .ql-tooltip {
  59. visibility: hidden;
  60. }
  61. .ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
  62. pointer-events: none;
  63. }
  64. .ql-clipboard {
  65. left: -100000px;
  66. height: 1px;
  67. overflow-y: hidden;
  68. position: absolute;
  69. top: 50%;
  70. }
  71. .ql-clipboard p {
  72. margin: 0;
  73. padding: 0;
  74. }
  75. .ql-editor {
  76. box-sizing: border-box;
  77. line-height: 1.42;
  78. height: 100%;
  79. outline: none;
  80. overflow-y: auto;
  81. padding: 12px 15px;
  82. tab-size: 4;
  83. -moz-tab-size: 4;
  84. text-align: left;
  85. white-space: pre-wrap;
  86. word-wrap: break-word;
  87. }
  88. .ql-editor > * {
  89. cursor: text;
  90. }
  91. .ql-editor p,
  92. .ql-editor ol,
  93. .ql-editor ul,
  94. .ql-editor pre,
  95. .ql-editor blockquote,
  96. .ql-editor h1,
  97. .ql-editor h2,
  98. .ql-editor h3,
  99. .ql-editor h4,
  100. .ql-editor h5,
  101. .ql-editor h6 {
  102. margin: 0;
  103. padding: 0;
  104. counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  105. }
  106. .ql-editor ol,
  107. .ql-editor ul {
  108. padding-left: 1.5em;
  109. }
  110. .ql-editor ol > li,
  111. .ql-editor ul > li {
  112. list-style-type: none;
  113. }
  114. .ql-editor ul > li::before {
  115. content: '\2022';
  116. }
  117. .ql-editor ul[data-checked=true],
  118. .ql-editor ul[data-checked=false] {
  119. pointer-events: none;
  120. }
  121. .ql-editor ul[data-checked=true] > li *,
  122. .ql-editor ul[data-checked=false] > li * {
  123. pointer-events: all;
  124. }
  125. .ql-editor ul[data-checked=true] > li::before,
  126. .ql-editor ul[data-checked=false] > li::before {
  127. color: #777;
  128. cursor: pointer;
  129. pointer-events: all;
  130. }
  131. .ql-editor ul[data-checked=true] > li::before {
  132. content: '\2611';
  133. }
  134. .ql-editor ul[data-checked=false] > li::before {
  135. content: '\2610';
  136. }
  137. .ql-editor li::before {
  138. display: inline-block;
  139. white-space: nowrap;
  140. width: 1.2em;
  141. }
  142. .ql-editor li:not(.ql-direction-rtl)::before {
  143. margin-left: -1.5em;
  144. margin-right: 0.3em;
  145. text-align: right;
  146. }
  147. .ql-editor li.ql-direction-rtl::before {
  148. margin-left: 0.3em;
  149. margin-right: -1.5em;
  150. }
  151. .ql-editor ol li:not(.ql-direction-rtl),
  152. .ql-editor ul li:not(.ql-direction-rtl) {
  153. padding-left: 1.5em;
  154. }
  155. .ql-editor ol li.ql-direction-rtl,
  156. .ql-editor ul li.ql-direction-rtl {
  157. padding-right: 1.5em;
  158. }
  159. .ql-editor ol li {
  160. counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  161. counter-increment: list-0;
  162. }
  163. .ql-editor ol li:before {
  164. content: counter(list-0, decimal) '. ';
  165. }
  166. .ql-editor ol li.ql-indent-1 {
  167. counter-increment: list-1;
  168. }
  169. .ql-editor ol li.ql-indent-1:before {
  170. content: counter(list-1, lower-alpha) '. ';
  171. }
  172. .ql-editor ol li.ql-indent-1 {
  173. counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  174. }
  175. .ql-editor ol li.ql-indent-2 {
  176. counter-increment: list-2;
  177. }
  178. .ql-editor ol li.ql-indent-2:before {
  179. content: counter(list-2, lower-roman) '. ';
  180. }
  181. .ql-editor ol li.ql-indent-2 {
  182. counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  183. }
  184. .ql-editor ol li.ql-indent-3 {
  185. counter-increment: list-3;
  186. }
  187. .ql-editor ol li.ql-indent-3:before {
  188. content: counter(list-3, decimal) '. ';
  189. }
  190. .ql-editor ol li.ql-indent-3 {
  191. counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
  192. }
  193. .ql-editor ol li.ql-indent-4 {
  194. counter-increment: list-4;
  195. }
  196. .ql-editor ol li.ql-indent-4:before {
  197. content: counter(list-4, lower-alpha) '. ';
  198. }
  199. .ql-editor ol li.ql-indent-4 {
  200. counter-reset: list-5 list-6 list-7 list-8 list-9;
  201. }
  202. .ql-editor ol li.ql-indent-5 {
  203. counter-increment: list-5;
  204. }
  205. .ql-editor ol li.ql-indent-5:before {
  206. content: counter(list-5, lower-roman) '. ';
  207. }
  208. .ql-editor ol li.ql-indent-5 {
  209. counter-reset: list-6 list-7 list-8 list-9;
  210. }
  211. .ql-editor ol li.ql-indent-6 {
  212. counter-increment: list-6;
  213. }
  214. .ql-editor ol li.ql-indent-6:before {
  215. content: counter(list-6, decimal) '. ';
  216. }
  217. .ql-editor ol li.ql-indent-6 {
  218. counter-reset: list-7 list-8 list-9;
  219. }
  220. .ql-editor ol li.ql-indent-7 {
  221. counter-increment: list-7;
  222. }
  223. .ql-editor ol li.ql-indent-7:before {
  224. content: counter(list-7, lower-alpha) '. ';
  225. }
  226. .ql-editor ol li.ql-indent-7 {
  227. counter-reset: list-8 list-9;
  228. }
  229. .ql-editor ol li.ql-indent-8 {
  230. counter-increment: list-8;
  231. }
  232. .ql-editor ol li.ql-indent-8:before {
  233. content: counter(list-8, lower-roman) '. ';
  234. }
  235. .ql-editor ol li.ql-indent-8 {
  236. counter-reset: list-9;
  237. }
  238. .ql-editor ol li.ql-indent-9 {
  239. counter-increment: list-9;
  240. }
  241. .ql-editor ol li.ql-indent-9:before {
  242. content: counter(list-9, decimal) '. ';
  243. }
  244. .ql-editor .ql-indent-1:not(.ql-direction-rtl) {
  245. padding-left: 3em;
  246. }
  247. .ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
  248. padding-left: 4.5em;
  249. }
  250. .ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
  251. padding-right: 3em;
  252. }
  253. .ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
  254. padding-right: 4.5em;
  255. }
  256. .ql-editor .ql-indent-2:not(.ql-direction-rtl) {
  257. padding-left: 6em;
  258. }
  259. .ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
  260. padding-left: 7.5em;
  261. }
  262. .ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
  263. padding-right: 6em;
  264. }
  265. .ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
  266. padding-right: 7.5em;
  267. }
  268. .ql-editor .ql-indent-3:not(.ql-direction-rtl) {
  269. padding-left: 9em;
  270. }
  271. .ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
  272. padding-left: 10.5em;
  273. }
  274. .ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
  275. padding-right: 9em;
  276. }
  277. .ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
  278. padding-right: 10.5em;
  279. }
  280. .ql-editor .ql-indent-4:not(.ql-direction-rtl) {
  281. padding-left: 12em;
  282. }
  283. .ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
  284. padding-left: 13.5em;
  285. }
  286. .ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
  287. padding-right: 12em;
  288. }
  289. .ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
  290. padding-right: 13.5em;
  291. }
  292. .ql-editor .ql-indent-5:not(.ql-direction-rtl) {
  293. padding-left: 15em;
  294. }
  295. .ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
  296. padding-left: 16.5em;
  297. }
  298. .ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
  299. padding-right: 15em;
  300. }
  301. .ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
  302. padding-right: 16.5em;
  303. }
  304. .ql-editor .ql-indent-6:not(.ql-direction-rtl) {
  305. padding-left: 18em;
  306. }
  307. .ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
  308. padding-left: 19.5em;
  309. }
  310. .ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
  311. padding-right: 18em;
  312. }
  313. .ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
  314. padding-right: 19.5em;
  315. }
  316. .ql-editor .ql-indent-7:not(.ql-direction-rtl) {
  317. padding-left: 21em;
  318. }
  319. .ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
  320. padding-left: 22.5em;
  321. }
  322. .ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
  323. padding-right: 21em;
  324. }
  325. .ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
  326. padding-right: 22.5em;
  327. }
  328. .ql-editor .ql-indent-8:not(.ql-direction-rtl) {
  329. padding-left: 24em;
  330. }
  331. .ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
  332. padding-left: 25.5em;
  333. }
  334. .ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
  335. padding-right: 24em;
  336. }
  337. .ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
  338. padding-right: 25.5em;
  339. }
  340. .ql-editor .ql-indent-9:not(.ql-direction-rtl) {
  341. padding-left: 27em;
  342. }
  343. .ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
  344. padding-left: 28.5em;
  345. }
  346. .ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
  347. padding-right: 27em;
  348. }
  349. .ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
  350. padding-right: 28.5em;
  351. }
  352. .ql-editor .ql-video {
  353. display: block;
  354. max-width: 100%;
  355. }
  356. .ql-editor .ql-video.ql-align-center {
  357. margin: 0 auto;
  358. }
  359. .ql-editor .ql-video.ql-align-right {
  360. margin: 0 0 0 auto;
  361. }
  362. .ql-editor .ql-bg-black {
  363. background-color: #000;
  364. }
  365. .ql-editor .ql-bg-red {
  366. background-color: #e60000;
  367. }
  368. .ql-editor .ql-bg-orange {
  369. background-color: #f90;
  370. }
  371. .ql-editor .ql-bg-yellow {
  372. background-color: #ff0;
  373. }
  374. .ql-editor .ql-bg-green {
  375. background-color: #008a00;
  376. }
  377. .ql-editor .ql-bg-blue {
  378. background-color: #06c;
  379. }
  380. .ql-editor .ql-bg-purple {
  381. background-color: #93f;
  382. }
  383. .ql-editor .ql-color-white {
  384. color: #fff;
  385. }
  386. .ql-editor .ql-color-red {
  387. color: #e60000;
  388. }
  389. .ql-editor .ql-color-orange {
  390. color: #f90;
  391. }
  392. .ql-editor .ql-color-yellow {
  393. color: #ff0;
  394. }
  395. .ql-editor .ql-color-green {
  396. color: #008a00;
  397. }
  398. .ql-editor .ql-color-blue {
  399. color: #06c;
  400. }
  401. .ql-editor .ql-color-purple {
  402. color: #93f;
  403. }
  404. .ql-editor .ql-font-serif {
  405. font-family: Georgia, Times New Roman, serif;
  406. }
  407. .ql-editor .ql-font-monospace {
  408. font-family: Monaco, Courier New, monospace;
  409. }
  410. .ql-editor .ql-size-small {
  411. font-size: 0.75em;
  412. }
  413. .ql-editor .ql-size-large {
  414. font-size: 1.5em;
  415. }
  416. .ql-editor .ql-size-huge {
  417. font-size: 2.5em;
  418. }
  419. .ql-editor .ql-direction-rtl {
  420. direction: rtl;
  421. text-align: inherit;
  422. }
  423. .ql-editor .ql-align-center {
  424. text-align: center;
  425. }
  426. .ql-editor .ql-align-justify {
  427. text-align: justify;
  428. }
  429. .ql-editor .ql-align-right {
  430. text-align: right;
  431. }
  432. .ql-editor.ql-blank::before {
  433. color: rgba(0,0,0,0.6);
  434. content: attr(data-placeholder);
  435. font-style: italic;
  436. left: 15px;
  437. pointer-events: none;
  438. position: absolute;
  439. right: 15px;
  440. }
  441. </style>