takenotes.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <view>
  3. <view style="color: #fff;">
  4. <tn-nav-bar backgroundColor="#26B3A0" :bottomShadow="false">问答记录</tn-nav-bar>
  5. <!-- <view :style="{height: tobheight+'px'}"></view> -->
  6. </view>
  7. <z-paging ref="paging" refresher-complete-delay="200" v-model="jobList" @query="queryList">
  8. <view slot="top" class="z_tabs" :style="{ marginTop: tobheight + 'px' }"></view>
  9. <view class="container">
  10. <!-- <view class="bg"></view> -->
  11. <view class="form">
  12. <!-- <view class="header">
  13. <view class="title">人工智能回答你需要的问题</view>
  14. </view> -->
  15. <block v-for="(item, index) in jobList" :key="index">
  16. <view class="panel">
  17. <view class="head">
  18. <!-- <view class="title">问:{{ item.question }}</view> -->
  19. <view class="title">
  20. <u-parse :content="item.question1" scrollTable selectable :tag-style="parse_style" style="width: 100%;"></u-parse>
  21. </view>
  22. </view>
  23. <u-read-more :toggle="true" :shadowStyle="shadowStyle" showHeight="200" color="#26B3A0">
  24. <!-- <zero-markdown-view v-if="item.answer.indexOf('```') != -1 || item.answer.indexOf('/*') != -1" :themeColor="themeColor" :markdown="item.answer"></zero-markdown-view> -->
  25. <!-- <text class="content">{{ item.answer.replace(/^\s+|\s+$/g, '') }}</text> -->
  26. <u-parse :content="item.answer1" scrollTable selectable :tag-style="parse_style" style="width: 100%;"></u-parse>
  27. </u-read-more>
  28. <view class="bottom">{{appInfo.site_name?appInfo.site_name:'AI智能问答机器人'}}回答时间:{{ item.create_time }}</view>
  29. <view class="tn-flex justify-between">
  30. <view @click="copyText(item.answer)" hover-class="hoversubmit" class="onekey">一键复制</view>
  31. <view @click="createPoster(index)" hover-class="hoversubmit" class="onekey" style="background: #FFC107;">生成海报</view>
  32. </view>
  33. <!-- <u-button color="" @click="copyText(item.answer)" type="primary" text="一键复制" ></u-button> --><view class="circle" @click.stop="gallerydel(index)">
  34. <u-icon name="close-circle-fill" color="#e83a30" size="24"></u-icon>
  35. </view>
  36. </view>
  37. </block>
  38. <!-- <view class="panel">
  39. <view class="head">
  40. <view class="title">问:量化交易怎么做呢?</view>
  41. </view>
  42. <view class="content">
  43. 量化交易怎么做呢?量化交易怎么做呢?量化交易怎么做呢?量化交易怎么做呢?量化交易怎么做呢?量化交易怎么做呢?
  44. </view>
  45. <view class="bottom">
  46. ChatGPT回答时间:2022-12-12 14:00:00
  47. </view>
  48. </view> -->
  49. </view>
  50. </view>
  51. </z-paging>
  52. <u-popup :show="showPoster" mode="bottom" @close="showPoster = false">
  53. <scroll-view scroll-y="true" :style="{maxHeight: (posterheight) +'px'}">
  54. <wike-painter :board="posterObj" @done="posterSuccess" ref="painter"></wike-painter>
  55. <view style="height: 78px;"></view>
  56. <view class="dygbhg" >
  57. <view class="whole" @click="showPoster = false">取消</view>
  58. <view class="distinguish" @click="toSave">保存/分享</view>
  59. </view>
  60. </scroll-view>
  61. </u-popup>
  62. <!-- <u-popup :show="showPoster" mode="bottom" :round="10" @close="close" @open="open">
  63. <view class="poster">
  64. <wike-painter :board="posterObj" @success="posterSuccess" ref="painter"></wike-painter>
  65. <view class="footer-btn">
  66. <view class="" @click="showPoster = false">退出</view>
  67. <view class="save" @click="toSave">保存/分享</view>
  68. </view>
  69. </view>
  70. </u-popup> -->
  71. <wike-loading-page :isLoading="isLoading"></wike-loading-page>
  72. </view>
  73. </template>
  74. <script>
  75. import { mapMutations, mapActions, mapState, mapGetters } from 'vuex';
  76. const {
  77. marked
  78. } = require('marked');
  79. import hljs from "highlight.js";
  80. import "highlight.js/scss/atom-one-dark.scss";
  81. export default {
  82. data() {
  83. return {
  84. jobList: [],
  85. tobheight: 45,
  86. platform: this.$platform.get(),
  87. isLoading: true,
  88. themeColor: '#007AFF',
  89. showPoster:false,
  90. posterObj: {},
  91. qrcode:'',
  92. spmplatform: 0,
  93. showimg:true,
  94. imgPath:'http://img5.iqilu.com/c/u/2020/0409/1586401171483.jpg',
  95. posterheight:'',
  96. shadowStyle: {
  97. backgroundImage: 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 80%)',
  98. paddingTop: '100px',
  99. marginTop: '-100px',
  100. zIndex: 9
  101. },
  102. parse_style: {
  103. // 字符串的形式
  104. p: 'margin-bottom:0rpx;',
  105. // 一级标题
  106. h1: `
  107. margin:25px 0;
  108. font-size: 24px;
  109. text-align: center;
  110. font-weight: bold;
  111. color: #00ca88;
  112. padding:3px 10px 1px;
  113. border-bottom: 2px solid #00ca88;
  114. border-top-right-radius:3px;
  115. border-top-left-radius:3px;
  116. `,
  117. // 二级标题
  118. h2: `
  119. margin:40px 0 20px 0;
  120. font-size: 20px;
  121. text-align:center;
  122. color:#00ca88;
  123. font-weight:bolder;
  124. padding-left:10px;
  125. border:1px solid #00ca88;
  126. `,
  127. // 三级标题
  128. h3: `
  129. margin:30px 0 10px 0;
  130. font-size: 18px;
  131. color: #00ca88;
  132. padding-left:10px;
  133. border-left:3px solid #00ca88;
  134. `,
  135. // 四级标题
  136. h4: `
  137. margin:20px 0 10px 0;
  138. font-size: 16px;
  139. color: #00ca88;
  140. padding-left:10px;
  141. border-left:3px solid #00ca88;
  142. `,
  143. // 五级标题
  144. h5: `
  145. margin:10px 0 10px 0;
  146. font-size: 14px;
  147. color: #00ca88;
  148. padding-left:10px;
  149. border-left:3px solid #00ca88;
  150. `,
  151. // 六级标题
  152. h6: `
  153. margin:10px 0 10px 0;
  154. font-size: 12px;
  155. color: #00ca88;
  156. padding-left:10px;
  157. border-left:3px solid #00ca88;
  158. `,
  159. ul: 'margin:24rpx;color: #555;',
  160. ol: 'margin:12rpx;color:#555;',
  161. li: `
  162. margin: 12rpx 0;
  163. color: #555;
  164. `,
  165. // 链接
  166. a: `
  167. color: #00ca88;`,
  168. // 加粗
  169. strong: `
  170. font-weight: border;
  171. color: #00ca88;
  172. `,
  173. // 斜体
  174. em: `
  175. color: #00ca88;
  176. letter-spacing:0.3em;
  177. `,
  178. blockquote: 'padding: 15rpx;margin:0 0 12rpx 0;border-radius: 6rpx;color: #555;border-left: 4px solid #dddddd;',
  179. hr: `height:1px;padding:0;border:none;text-align:center;background-image:linear-gradient(to right,rgba(248,57,41,0),${'#9e9e9e'},rgba(248,57,41,0));`,
  180. table: 'border-spacing:0;overflow:auto;min-width:100%;margin:10px 0;border-collapse: collapse;',
  181. th: 'background-color: whitesmoke;border: 1px solid #2d2d2d;padding:10rpx;',
  182. td: 'border: 1px solid #2d2d2d;padding:10rpx;',
  183. pre: `
  184. color: #c7254e;
  185. padding: 20rpx;
  186. border-radius: 5px;
  187. white-space: pre;
  188. overflow: auto;
  189. margin:12rpx 0;
  190. font-size:13px;
  191. background: #2d2d2d;
  192. `,
  193. },
  194. };
  195. },
  196. computed: {
  197. ...mapGetters(['appInfo', 'userInfo', 'isLogin'])
  198. },
  199. watch: {
  200. appInfo: function(e) {
  201. let that = this;
  202. // uni.setNavigationBarTitle({
  203. // title: that.appInfo.site_name
  204. // });
  205. // console.log(that.appInfo.site_logo_path);
  206. // that.$base64.imageUrlToBase64(that.appInfo.site_logo_path)
  207. }
  208. },
  209. onLoad() {
  210. const that = this;
  211. if (this.platform == 'wxMiniProgram') {
  212. var menumtop = uni.getMenuButtonBoundingClientRect().top - uni.getSystemInfoSync().statusBarHeight;
  213. var paddingtop = uni.getSystemInfoSync().statusBarHeight + menumtop;
  214. this.tobheight = menumtop + paddingtop + uni.getMenuButtonBoundingClientRect().height;
  215. }
  216. this.posterheight = uni.$u.sys().windowHeight-this.tobheight
  217. this.spmplatform = ['H5', 'wxOfficialAccount', 'wxMiniProgram', 'App'].indexOf(this.platform) + 1;
  218. this.commonqrcodePath();
  219. this.initHighLight();
  220. // this.questionlist()
  221. },
  222. methods: {
  223. queryList(pageNo, pageSize) {
  224. //这里的pageNo和pageSize会自动计算好,直接传给服务器即可
  225. var mylist = [];
  226. const params = {
  227. page: pageNo,
  228. limit: pageSize
  229. };
  230. this.$http('question.my', params).then(res => {
  231. if (res.code == 0) {
  232. uni.setNavigationBarTitle({
  233. title: this.appInfo.site_name
  234. });
  235. for (var i=0;i<res.data.data.length;i++) {
  236. mylist.push(res.data.data[i])
  237. mylist[i].question1 = marked(res.data.data[i].question)
  238. mylist[i].answer1 = marked(res.data.data[i].answer)
  239. }
  240. console.log(mylist);
  241. this.$refs.paging.complete(mylist);
  242. this.isLoading = false;
  243. }
  244. });
  245. },
  246. // questionlist(){
  247. // this.$http('question.list').then(res=>{
  248. // if(res.code == 0){
  249. // }
  250. // })
  251. // },
  252. initHighLight() {
  253. hljs.configure({
  254. useBR: true,
  255. tabReplace: " ",
  256. });
  257. marked.setOptions({
  258. renderer: new marked.Renderer(),
  259. gfm: true,
  260. tables: true,
  261. breaks: false,
  262. pedantic: false,
  263. highlight: function(code, lang) {
  264. if (lang && hljs.getLanguage(lang)) {
  265. return hljs.highlight(lang, code, true).value;
  266. } else {
  267. return hljs.highlightAuto(code).value;
  268. }
  269. },
  270. });
  271. },
  272. toSave() {
  273. uni.showLoading({
  274. title: '海报生成中'
  275. });
  276. this.$refs.painter.canvasToTempFilePathSync({
  277. // 在nvue里是jpeg
  278. fileType: 'jpg',
  279. quality: 1,
  280. success: res => {
  281. // this.path = res.tempFilePath;
  282. // this.$refs.posterImg.open();
  283. // this.show_poster = true;
  284. // console.log(res.tempFilePath);
  285. // 非H5 保存到相册
  286. // H5 提示用户长按图另存
  287. // #ifdef MP-WEIXIN
  288. // uni.saveImageToPhotosAlbum({
  289. // filePath: res.tempFilePath,
  290. // success: function() {
  291. // uni.showToast({
  292. // title: '保存成功'
  293. // });
  294. // that.showPoster = false;
  295. // }
  296. // });
  297. wx.showShareImageMenu({
  298. path: res.tempFilePath
  299. })
  300. this.showPoster = false;
  301. uni.hideLoading();
  302. // #endif
  303. // #ifdef H5
  304. this.showPoster = false;
  305. uni.hideLoading();
  306. uni.showModal({
  307. confirmColor: '#26B3A0',
  308. confirmText: '查看图片',
  309. title: '提示',
  310. content: '查看图片后长按图片即可保存或分享',
  311. success(src) {
  312. if (src.confirm) {
  313. uni.previewImage({
  314. urls: [res.tempFilePath]
  315. });
  316. } else if (src.cancel) {
  317. this.showPoster = true;
  318. }
  319. }
  320. });
  321. // #endif
  322. }
  323. });
  324. },
  325. commonqrcodePath() {
  326. let spm = this.userInfo.id+'.1.0.'+this.spmplatform+'.1';
  327. this.$http('common.qrcodePath',{spm:spm}).then(res => {
  328. if (res.code == 0) {
  329. this.qrcode = res.data;
  330. }
  331. });
  332. },
  333. copyText(text) {
  334. uni.setClipboardData({
  335. data: text,
  336. success: function() {
  337. // console.log('success');
  338. uni.showToast({
  339. title: '复制成功'
  340. });
  341. }
  342. });
  343. },
  344. gallerydel(e){
  345. var that = this;
  346. uni.showModal({
  347. confirmText: '删除',
  348. content: '是否删除此问答记录',
  349. title: '提示',
  350. confirmColor: '#26B3A0',
  351. success(res) {
  352. // console.log(res);
  353. if (res.confirm) {
  354. that.$http('question.del', {id:that.jobList[e].id}).then(res => {
  355. if (res.code == 0) {
  356. uni.showToast({
  357. title:'删除成功'
  358. })
  359. // that.drawList = []
  360. that.$refs.paging.reload(true);
  361. }else{
  362. uni.showToast({
  363. title:'删除失败',
  364. icon:'none'
  365. })
  366. }
  367. });
  368. }
  369. }
  370. })
  371. },
  372. onSubmit() {
  373. uni.navigateTo({
  374. url: '/pages/main/answer/index'
  375. });
  376. },
  377. getdownload(e,type){
  378. return new Promise((resolve, reject) => {
  379. // uni.getImageInfo({
  380. // src: e,
  381. // success: res => {
  382. // uni.downloadFile({
  383. // url: e,
  384. // success: (res) => {
  385. // if (res.statusCode === 200) {
  386. // resolve(res.tempFilePath);
  387. // }
  388. // if(res.statusCode === 404){
  389. // let head = '/static/images/head.jpg',open = '/static/images/open.png';
  390. // if(type == 1){
  391. // resolve(head);
  392. // }else{
  393. // resolve(open);
  394. // }
  395. // }
  396. // }
  397. // });
  398. // },
  399. // fail: err => {
  400. // let head = '/static/images/head.jpg',open = '/static/images/open.png';
  401. // if(type == 1){
  402. // resolve(head);
  403. // }else{
  404. // resolve(open);
  405. // }
  406. // }
  407. // })
  408. uni.request({
  409. url: e,
  410. method:'GET',
  411. responseType:'arraybuffer',
  412. success: ress => {
  413. let base64 = wx.arrayBufferToBase64(ress.data);
  414. base64 = 'data:image/jpeg;base64,' + base64
  415. resolve(base64);
  416. },
  417. fail: (e) => {
  418. let head = '/static/images/head.jpg',open = '/static/images/open.png';
  419. if(type == 1){
  420. resolve(head);
  421. }else{
  422. resolve(open);
  423. }
  424. }
  425. })
  426. });
  427. },
  428. posterSuccess(){
  429. uni.hideLoading();
  430. },
  431. async createPoster(e) {
  432. let that = this;
  433. let site_logo = '';
  434. uni.showLoading({
  435. title: '海报渲染中'
  436. });
  437. let avatar_logo = that.userInfo.avatar ? await this.getdownload(that.userInfo.avatar,1):'/static/images/head.jpg';
  438. if(that.appInfo.site_logo_path.indexOf("https") < 0){
  439. site_logo = that.appInfo.site_logo_path ? await that.getdownload(that.appInfo.site_logo_path.replace("http:", "https:"),2):'/static/images/open.png';
  440. }else{
  441. site_logo = that.appInfo.site_logo_path ? await that.getdownload(that.appInfo.site_logo_path,2):'/static/images/open.png';
  442. }
  443. (this.posterObj = {
  444. width: uni.$u.sys().windowWidth+ 'px',
  445. background: 'linear-gradient(to right, #00ca88 0%, #00BCD4 100%)',
  446. // borderRadius: '16rpx',
  447. css: {
  448. // 根节点若无尺寸,自动获取父级节点
  449. width: uni.$u.sys().windowWidth+ 'px'
  450. },
  451. views: [
  452. {
  453. type: 'view',
  454. css: {
  455. marginTop: '20rpx',
  456. paddingLeft: '10rpx',
  457. display: 'flex'
  458. },
  459. views: [
  460. {
  461. type: 'image',
  462. src: avatar_logo,
  463. css: {
  464. marginTop: '10rpx',
  465. marginLeft: '20rpx',
  466. borderRadius: '16rpx',
  467. width: '80rpx',
  468. height: '80rpx',
  469. border: '2rpx solid #fff',
  470. objectFit: 'cover'
  471. }
  472. },
  473. {
  474. type: 'view',
  475. css: {
  476. marginTop: '10rpx',
  477. marginLeft: '20rpx'
  478. // display:'flex',
  479. // flexDirection:'column'
  480. },
  481. views: [
  482. {
  483. type: 'view',
  484. views: [
  485. {
  486. type: 'text',
  487. text: this.userInfo.nickname?this.userInfo.nickname:'提问者',
  488. css: {
  489. marginTop: '10rpx',
  490. fontSize: '28rpx',
  491. fontWeight: 'bold',
  492. color: '#32324A',
  493. lineHeight: '28rpx'
  494. }
  495. }
  496. ]
  497. },
  498. {
  499. type: 'view',
  500. views: [
  501. {
  502. type: 'text',
  503. text: '我的提问❓',
  504. css: {
  505. marginTop: '15rpx',
  506. fontSize: '20rpx',
  507. color: '#fff',
  508. lineHeight: '25rpx',
  509. }
  510. }
  511. ]
  512. }
  513. ]
  514. }
  515. ]
  516. },
  517. {
  518. type: 'view',
  519. css: {
  520. marginTop: '20rpx',
  521. width: (uni.$u.sys().windowWidth - 48) + 'px',
  522. padding: '15rpx',
  523. background: '#fff',
  524. borderRadius: '16rpx',
  525. marginLeft: '30rpx',
  526. // marginRight: '10rpx'
  527. },
  528. views: [
  529. {
  530. type: 'text',
  531. text: that.jobList[e].question,
  532. css: {
  533. fontSize: '28rpx',
  534. color: '#000',
  535. // lineHeight: '45rpx',
  536. // lineClamp: 2,
  537. // padding: '10rpx',
  538. // paddingRight: '10rpx',
  539. width: (uni.$u.sys().windowWidth - 48) + 'px'
  540. // padding:'10rpx'
  541. }
  542. }
  543. ]
  544. },
  545. {
  546. type: 'view',
  547. css: {
  548. marginTop: '20rpx',
  549. paddingLeft: '10rpx',
  550. display: 'flex'
  551. },
  552. views: [
  553. {
  554. type: 'image',
  555. src: site_logo,
  556. css: {
  557. marginTop: '10rpx',
  558. marginLeft: '20rpx',
  559. borderRadius: '16rpx',
  560. width: '80rpx',
  561. height: '80rpx',
  562. border: '2rpx solid #fff',
  563. objectFit: 'cover'
  564. }
  565. },
  566. {
  567. type: 'view',
  568. css: {
  569. marginTop: '10rpx',
  570. marginLeft: '20rpx'
  571. // display:'flex',
  572. // flexDirection:'column'
  573. },
  574. views: [
  575. {
  576. type: 'view',
  577. views: [
  578. {
  579. type: 'text',
  580. text: this.appInfo.site_name?this.appInfo.site_name:'AI智能问答机器人',
  581. css: {
  582. marginTop: '10rpx',
  583. fontSize: '28rpx',
  584. fontWeight: 'bold',
  585. color: '#32324A',
  586. lineHeight: '28rpx'
  587. }
  588. }
  589. ]
  590. },
  591. {
  592. type: 'view',
  593. views: [
  594. {
  595. type: 'text',
  596. text: '回答结果📝',
  597. css: {
  598. marginTop: '15rpx',
  599. fontSize: '20rpx',
  600. color: '#fff',
  601. lineHeight: '25rpx',
  602. }
  603. }
  604. ]
  605. }
  606. ]
  607. }
  608. ]
  609. },
  610. {
  611. type: 'view',
  612. css: {
  613. marginTop: '20rpx',
  614. width: (uni.$u.sys().windowWidth - 48) + 'px',
  615. padding: '15rpx',
  616. background: '#fff',
  617. borderRadius: '16rpx',
  618. marginLeft: '30rpx',
  619. },
  620. views: [
  621. {
  622. type: 'text',
  623. text: uni.$u.trim(that.jobList[e].answer),
  624. css: {
  625. fontSize: '28rpx',
  626. color: '#000',
  627. // lineHeight: '45rpx',
  628. // lineClamp: 12,
  629. width: (uni.$u.sys().windowWidth - 48) + 'px',
  630. // padding: '10rpx',
  631. // padding: '10rpx'
  632. }
  633. }
  634. ]
  635. },
  636. {
  637. type: 'view',
  638. css: {
  639. marginTop: '30rpx',
  640. width: '100%',
  641. textAlign: 'center',
  642. },
  643. // #ifdef H5
  644. views: [
  645. {
  646. type: 'qrcode',
  647. text: this.qrcode,
  648. css: {
  649. width: '200rpx',
  650. height: '200rpx',
  651. borderRadius: '16rpx',
  652. // background: '#f5f6f8',
  653. }
  654. }
  655. ],
  656. // #endif
  657. // #ifdef MP-WEIXIN
  658. views: [
  659. {
  660. type: 'image',
  661. src: this.qrcode,
  662. css: {
  663. width: '200rpx',
  664. height: '200rpx',
  665. borderRadius: '16rpx',
  666. // background: '#f5f6f8',
  667. }
  668. }
  669. ]
  670. // #endif
  671. },
  672. {
  673. type: 'text',
  674. text: '———— ' + '长按识别 | 欢迎使用' + ' ————',
  675. css: {
  676. marginTop: '20rpx',
  677. marginBottom: '20rpx',
  678. width: '100%',
  679. textAlign: 'center',
  680. fontSize: '24rpx',
  681. color: '#fff',
  682. lineHeight: '33rpx'
  683. }
  684. }
  685. ]
  686. }),
  687. (this.showPoster = true);
  688. }
  689. }
  690. };
  691. </script>
  692. <style lang="scss">
  693. page {
  694. background: #f6f7fb;
  695. }
  696. .form {
  697. width: 90%;
  698. margin: 0 auto;
  699. z-index: 999;
  700. .header {
  701. margin-bottom: 30rpx;
  702. .title {
  703. text-align: center;
  704. color: #fff;
  705. margin: 30rpx 0rpx;
  706. }
  707. }
  708. .panel {
  709. padding: 30rpx;
  710. background-color: #fff;
  711. border-radius: 30rpx;
  712. margin: 30rpx 0;
  713. position: relative;
  714. // box-shadow: 0rpx 10rpx 10rpx #eee;
  715. // margin-bottom: 15rpx;
  716. .bottom {
  717. font-size: 24rpx;
  718. }
  719. .head {
  720. border-bottom: 1rpx solid #eee;
  721. padding-bottom: 30rpx;
  722. margin-bottom: 30rpx;
  723. .title {
  724. font-weight: bolder;
  725. font-size: 35rpx;
  726. }
  727. }
  728. .content {
  729. // margin: 30rpx 0rpx;
  730. }
  731. .bottom {
  732. background-color: #f0faf8;
  733. color: #26b3a0;
  734. padding: 15rpx;
  735. border-radius: 10rpx;
  736. margin: 30rpx 0;
  737. }
  738. .onekey {
  739. background: linear-gradient(to right, #00ca88, #00BCD4);
  740. color: #fff;
  741. padding: 15rpx;
  742. // font-weight: bold;
  743. border-radius: 10rpx;
  744. text-align: center;
  745. font-size: 24rpx;
  746. width: 48%;
  747. }
  748. .hoversubmit {
  749. background: #f7f7f7;
  750. color: #acacb3;
  751. }
  752. }
  753. }
  754. .bg {
  755. position: fixed;
  756. top: 0rpx;
  757. left: 0rpx;
  758. width: 100%;
  759. background-color: #26b3a0;
  760. min-height: 200rpx;
  761. border-radius: 0rpx 0rpx 140rpx 140rpx;
  762. z-index: -1;
  763. }
  764. .poster {
  765. padding: 40rpx;
  766. .footer-btn {
  767. margin-top: 24rpx;
  768. display: flex;
  769. align-items: center;
  770. justify-content: space-between;
  771. view {
  772. width: 319rpx;
  773. height: 66rpx;
  774. border-radius: 40rpx;
  775. border: 1px solid #4070ff;
  776. font-size: 26rpx;
  777. font-family: PingFangSC-Regular, PingFang SC;
  778. font-weight: 400;
  779. color: #4070ff;
  780. line-height: 66rpx;
  781. text-align: center;
  782. }
  783. .save {
  784. background: #4070ff;
  785. color: #ffffff;
  786. }
  787. }
  788. }
  789. .circle{
  790. position: absolute;
  791. right: -12rpx;
  792. top: -12rpx;
  793. background: #fff;
  794. border-radius: 50%;
  795. }
  796. .popupimg{
  797. image{
  798. width: 375px;
  799. // height: 450px;
  800. border-radius: 20rpx;
  801. }
  802. }
  803. .dygbhg {
  804. background: #ffffff;
  805. border-radius: 15rpx 15rpx 0 0;
  806. position: fixed;
  807. bottom: 0;
  808. left: 0;
  809. width: 100%;
  810. box-shadow: 0px 0px 10px #00000024;
  811. display: flex;
  812. align-items: center;
  813. justify-content: space-evenly;
  814. }
  815. .whole{
  816. width: 45%;
  817. height: 88rpx;
  818. display: flex;
  819. color: #ffffff;
  820. align-items: center;
  821. justify-content: center;
  822. background: #f3f3f3;
  823. font-weight: bold;
  824. border-radius: 60rpx;
  825. color: #3d7eff;
  826. }
  827. .distinguish {
  828. width: 45%;
  829. height: 88rpx;
  830. display: flex;
  831. color: #ffffff;
  832. align-items: center;
  833. justify-content: center;
  834. background: #3d7eff;
  835. font-weight: bold;
  836. border-radius: 60rpx;
  837. margin: 38rpx 0;
  838. margin-left: 4%;
  839. }
  840. </style>