product_info.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  1. <template>
  2. <u-loading-page :loading="loading"></u-loading-page>
  3. <view class="wrap" v-if="!loading">
  4. <!-- 轮播图 -->
  5. <view class="swiper">
  6. <u-swiper
  7. indicator
  8. circular
  9. height="338"
  10. indicatorMode="dot"
  11. imgMode="scaleToFill"
  12. :list="detail.images_arr"
  13. @change="swiperChange"
  14. @click="swiperClick"
  15. ></u-swiper>
  16. </view>
  17. <!-- 商品信息 -->
  18. <view class="baseInfo">
  19. <view class="titleBox">
  20. <view class="wechat"> 客服微信:{{ platform_info.kfwx }} </view>
  21. <view class="takeImg" @click="popup_diagram = true">
  22. 生成斑马简图
  23. </view>
  24. </view>
  25. <view class="attributeBox">
  26. <view class="attributeItem">
  27. <view class="labelItem">
  28. 编号:<text class="fontWeight">{{ detail.code }}</text>
  29. </view>
  30. <view class="labelItem">
  31. 区服:<text class="fontWeight">{{ detail.server }}</text>
  32. </view>
  33. </view>
  34. <view class="attributeItem">
  35. <view class="labelItem">
  36. 金伙伴:<text class="fontWeight">{{ detail.partner }}</text>
  37. </view>
  38. <view class="labelItem">
  39. vip:<text class="fontWeight">{{ detail.level }}</text>
  40. </view>
  41. </view>
  42. <view class="attributeItem">
  43. <view class="labelItem">
  44. 战力:<text class="fontWeight">{{ detail.force }}亿</text>
  45. </view>
  46. <view class="labelItem">
  47. 速度:<text class="fontWeight">{{ detail.speed }}万</text>
  48. </view>
  49. </view>
  50. <view class="attributeItem">
  51. <view class="labelItem">
  52. 法伤:<text class="fontWeight">{{ detail.atk }}万</text>
  53. </view>
  54. <view class="labelItem">
  55. 冰冻:<text class="fontWeight">{{ detail.property }}万</text>
  56. </view>
  57. </view>
  58. <view class="attributeItem">
  59. <view class="labelItem">
  60. 渡劫:<text class="fontWeight">{{ detail.dj_level }}</text>
  61. </view>
  62. <view class="labelItem">
  63. 小号数量:<text class="fontWeight">{{ detail.children }}</text>
  64. </view>
  65. </view>
  66. <view class="attributeItem">
  67. <view class="labelItem">
  68. 是否榜一:<text class="fontWeight">{{
  69. detail.top_one == 1 ? "是" : "否"
  70. }}</text>
  71. </view>
  72. <view class="labelItem">
  73. 账号类型:<text class="fontWeight">{{
  74. detail.account_type_text
  75. }}</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- tag标签 -->
  81. <view class="labelBox">
  82. <view
  83. class="labelItem"
  84. :style="{
  85. backgroundImage: 'url(' + BASE_URL + bg_list.top_bg.value + ')',
  86. }"
  87. v-if="detail.is_top == 1"
  88. >
  89. 置顶
  90. </view>
  91. <view
  92. class="labelItem"
  93. :style="{
  94. backgroundImage: 'url(' + BASE_URL + bg_list.discount_bg.value + ')',
  95. }"
  96. v-if="detail.discount == 1"
  97. >
  98. 特价
  99. </view>
  100. <view
  101. class="labelItem"
  102. :style="{
  103. backgroundImage: 'url(' + BASE_URL + bg_list.recommend_bg.value + ')',
  104. }"
  105. v-if="detail.recommend == 1"
  106. >
  107. 斑马推荐
  108. </view>
  109. <view
  110. class="labelItem"
  111. :style="{
  112. backgroundImage: 'url(' + BASE_URL + bg_list.stage_bg.value + ')',
  113. }"
  114. v-if="detail.stage == 1"
  115. >
  116. 可分期
  117. </view>
  118. <view
  119. class="labelItem"
  120. :style="{
  121. backgroundImage: 'url(' + BASE_URL + bg_list.recommend_bg.value + ')',
  122. }"
  123. v-if="detail.is_hot == 1"
  124. >
  125. 热门
  126. </view>
  127. <view
  128. class="labelItem"
  129. :style="{
  130. backgroundImage: 'url(' + BASE_URL + bg_list.new_bg.value + ')',
  131. }"
  132. v-if="detail.is_new == 1"
  133. >
  134. 新品
  135. </view>
  136. <view
  137. class="labelItem"
  138. :style="{
  139. backgroundImage: 'url(' + BASE_URL + bg_list.standby1_bg.value + ')',
  140. }"
  141. v-if="detail.standby1 == 1"
  142. >
  143. {{ detail.standby1_title }}
  144. </view>
  145. <view
  146. class="labelItem"
  147. :style="{
  148. backgroundImage: 'url(' + BASE_URL + bg_list.standby2_bg.value + ')',
  149. }"
  150. v-if="detail.standby2 == 1"
  151. >
  152. {{ detail.standby2_title }}
  153. </view>
  154. <view
  155. class="labelItem"
  156. :style="{
  157. backgroundImage: 'url(' + BASE_URL + bg_list.standby3_bg.value + ')',
  158. }"
  159. v-if="detail.standby3 == 1"
  160. >
  161. {{ detail.standby3_title }}
  162. </view>
  163. </view>
  164. <!-- 商品详情 -->
  165. <view class="productInfo">
  166. <view class="infoTitle"> 商品详情 </view>
  167. <view class="">
  168. <u-parse :content="detail.detail"></u-parse>
  169. </view>
  170. <view class="" v-if="detail.content_switch == 1">
  171. <u-parse :content="detail.detail2"></u-parse>
  172. </view>
  173. </view>
  174. <!-- 免责声明 -->
  175. <view class="productInfo">
  176. <view class="infoTitle"> 免责声明 </view>
  177. <view class="statement">
  178. <u-parse :content="platform_info.disclaimer"></u-parse>
  179. </view>
  180. </view>
  181. <!-- 底部 -->
  182. <view class="footer">
  183. <view class="back" @click="goBack">
  184. <u-icon name="home-fill" color="#fff"></u-icon>
  185. <span style="font-size: 16px">返回</span>
  186. </view>
  187. <view class="price">
  188. jià格:<text class="bold">{{ detail.money }}</text
  189. ><text>米</text>
  190. </view>
  191. <view class="back purchase" @click="popup_flow = true"> 流程规则 </view>
  192. </view>
  193. <!-- 截图模板 -->
  194. <view class="template" id="template">
  195. <view
  196. class="titleBox"
  197. :style="
  198. meun_info.jt_bg1
  199. ? { background: `url(${BASE_URL + meun_info.jt_bg1})` }
  200. : ''
  201. "
  202. >
  203. <limeQrcodeVue
  204. v-if="image_detail.id"
  205. size="112rpx"
  206. ref="qrcodeRef"
  207. :value="
  208. BASE_URL1 +
  209. `/h5/#/pages/deal/product_info?id=${id}&rand_num=${rand_num}`
  210. "
  211. ></limeQrcodeVue>
  212. <view class="title">
  213. <p>{{ image_detail.title1 }}</p>
  214. <p>{{ image_detail.title2 }}</p>
  215. <p class="warn">{{ image_detail.title3 }}</p>
  216. </view>
  217. </view>
  218. <view
  219. class="content"
  220. v-if="image_detail.detail"
  221. :style="
  222. meun_info.jt_bg2
  223. ? { background: 'url(' + BASE_URL + meun_info.jt_bg2 + ')' }
  224. : ''
  225. "
  226. >
  227. <u-parse :content="image_detail.detail"></u-parse>
  228. <view
  229. class="watermark"
  230. v-if="
  231. image_detail.watermark_info &&
  232. (image_detail.watermark_info.type == 1 ||
  233. image_detail.watermark_info.type == 3)
  234. "
  235. >
  236. <image
  237. v-if="
  238. image_detail.watermark_info.image &&
  239. image_detail.watermark_info.type == 1
  240. "
  241. v-for="i in 100"
  242. :style="image_detail.style"
  243. :src="BASE_URL + image_detail.watermark_info.image"
  244. ></image>
  245. <text
  246. v-if="
  247. image_detail.watermark_info.water_text &&
  248. image_detail.watermark_info.type == 3
  249. "
  250. v-for="i in 100"
  251. :style="image_detail.style"
  252. >{{ image_detail.watermark_info.water_text }}</text
  253. >
  254. </view>
  255. <view
  256. class="watermark-position"
  257. v-if="
  258. image_detail.watermark_info &&
  259. (image_detail.watermark_info.type == 2 ||
  260. image_detail.watermark_info.type == 4)
  261. "
  262. :style="image_detail.style_position"
  263. >
  264. <image
  265. v-if="
  266. image_detail.watermark_info.image &&
  267. image_detail.watermark_info.type == 2
  268. "
  269. :style="image_detail.style"
  270. :src="BASE_URL + image_detail.watermark_info.image"
  271. ></image>
  272. <text
  273. v-if="
  274. image_detail.watermark_info.water_text &&
  275. image_detail.watermark_info.type == 4
  276. "
  277. :style="image_detail.style"
  278. >{{ image_detail.watermark_info.water_text }}
  279. </text>
  280. </view>
  281. </view>
  282. </view>
  283. <!-- 流程规则 -->
  284. <u-popup
  285. :show="popup_flow"
  286. :round="10"
  287. mode="bottom"
  288. @close="popup_flow = false"
  289. >
  290. <view class="popup">
  291. <view class="popupTop">
  292. <view class="contactInfo">
  293. <p>{{ platform_info.notice_text }}</p>
  294. </view>
  295. <image :src="BASE_URL + platform_info.noticeimage" mode=""></image>
  296. </view>
  297. <view class="notice">
  298. <!-- <view class="noticeTitle">
  299. 购买须知
  300. </view> -->
  301. <view class="noticeInfo">
  302. <u-parse :content="platform_info.buy_notes"></u-parse>
  303. </view>
  304. <view class="popupBottom">
  305. <view class="back" @click="popup_flow = false">
  306. <u-icon name="home-fill" color="#fff"></u-icon>
  307. 返回
  308. </view>
  309. </view>
  310. </view>
  311. </view>
  312. </u-popup>
  313. <!-- 已出售 -->
  314. <u-overlay :show="popup_sell" @click="popup_sell = false">
  315. <view class="window">
  316. <view class="is-sell" @tap.stop>
  317. <image src="@/static/tishi.png" mode=""></image>
  318. <p>该商品已出售或下架</p>
  319. <u-button
  320. color="#A5CF49"
  321. type="success"
  322. shape="circle"
  323. size="large"
  324. text="看看其他斑马账号"
  325. @click="goBack"
  326. ></u-button>
  327. </view>
  328. </view>
  329. </u-overlay>
  330. <!-- 简图 -->
  331. <u-overlay :show="popup_diagram" @click="popup_diagram = false">
  332. <view class="window">
  333. <view class="diagram" @tap.stop>
  334. <image :src="diagram_url" mode="widthFix"></image>
  335. <!-- <p @touchstart.prevent="touchstart" @touchend.prevent="touchend">
  336. 长按保存到本地
  337. </p> -->
  338. <p @click="popup_diagram = false">长按保存到本地</p>
  339. </view>
  340. </view>
  341. </u-overlay>
  342. </view>
  343. </template>
  344. <script setup>
  345. import { ref, nextTick } from "vue";
  346. import { onLoad, onShow, onPullDownRefresh, onReady } from "@dcloudio/uni-app";
  347. import limeQrcodeVue from "@/uni_modules/lime-qrcode/components/l-qrcode/l-qrcode.vue";
  348. // import html2canvas from "html2canvas";
  349. // import domtoimage from "dom-to-image";
  350. import domtoimage from "@/components/dom-to-image.js";
  351. import { BASE_URL, BASE_URL1 } from "@/utils/http.js";
  352. import {
  353. getGoodsDetail,
  354. getplatformeditor,
  355. getsimpleimagesdetail,
  356. getplatformmeun,
  357. } from "@/utils/api.js";
  358. const id = ref(""), // 商品id
  359. rand_num = ref(""),
  360. detail = ref({}), // 商品详情
  361. bg_list = ref({}), // tag信息
  362. meun_info = ref({}), // tabbar等信息
  363. platform_info = ref({}), // 平台信息
  364. popup_sell = ref(false), // 已售出弹窗
  365. popup_flow = ref(false), // 流程弹窗
  366. popup_diagram = ref(false), // 简图弹窗
  367. diagram_url = ref(""), // 简图地址
  368. current = ref(0), // 轮播图当前页
  369. image_detail = ref({}), // 简图详情
  370. loop = ref(() => {}), // 长按延时事件
  371. loading = ref(true); // 加载状态
  372. // 轮播图切换
  373. function swiperChange(e) {
  374. current.value = e.current;
  375. }
  376. // 轮播图点击---预览
  377. function swiperClick() {
  378. uni.previewImage({
  379. // 预览时,默认显示图片的索引
  380. current: current.value,
  381. // 所有图片 url 地址的数组
  382. urls: detail.value.images_arr,
  383. });
  384. }
  385. // 返回
  386. function goBack() {
  387. let page = getCurrentPages();
  388. if (page.length == 1) {
  389. uni.switchTab({
  390. url: "/pages/deal/deal",
  391. });
  392. } else {
  393. uni.navigateBack();
  394. }
  395. }
  396. // 过滤空标签
  397. function filterDetail(str) {
  398. let detail = str.split('<font style="">');
  399. detail = detail.map((item, index) => {
  400. return !index ? item : item.replace("</font>", "");
  401. });
  402. return detail.join("");
  403. }
  404. // 生成简图图片---domtoimage截图
  405. function createCanvas() {
  406. let template = document.querySelector("#template"); // 获取dom元素
  407. // if (diagram_url.value) return (popup_diagram.value = true);
  408. const height = template.clientHeight,
  409. width = template.clientWidth;
  410. domtoimage
  411. .toPng(template, {
  412. bgcolor: "#fff",
  413. cacheBust: true,
  414. width: width,
  415. height: height,
  416. scale: 4,
  417. filter: (el) => {
  418. if (el.contains(template) || template.contains(el)) {
  419. return true;
  420. }
  421. return false;
  422. },
  423. })
  424. .then(function (dataUrl) {
  425. diagram_url.value = dataUrl.replace("image/png", "image/octet-stream");
  426. // popup_diagram.value = true;
  427. })
  428. .catch((err) => {
  429. console.log(err);
  430. });
  431. }
  432. // 长按开始
  433. function touchstart() {
  434. clearTimeout(loop.value);
  435. loop.value = setTimeout(() => {
  436. saveImage();
  437. }, 600);
  438. }
  439. // 长按结束
  440. function touchend() {
  441. clearTimeout(loop.value);
  442. }
  443. // 保存图片
  444. function saveImage() {
  445. var arr = diagram_url.value.split(","),
  446. mime = arr[0].match(/:(.*?);/)[1],
  447. bstr = atob(arr[1]),
  448. n = bstr.length,
  449. u8arr = new Uint8Array(n);
  450. while (n--) {
  451. u8arr[n] = bstr.charCodeAt(n);
  452. }
  453. // 将Blob对象转换成文件并下载到本地
  454. var blob = new Blob([u8arr], {
  455. type: mime,
  456. });
  457. var a = document.createElement("a");
  458. a.download = detail.value.code + "简图.png";
  459. a.href = URL.createObjectURL(blob);
  460. a.click();
  461. }
  462. // 请求数据
  463. function getData(url) {
  464. switch (url) {
  465. case "getplatformeditor": // 获取平台信息
  466. getplatformeditor().then(({ data }) => {
  467. platform_info.value = data;
  468. });
  469. break;
  470. case "getGoodsDetail": // 获取商品信息
  471. getGoodsDetail({
  472. goods_id: id.value,
  473. rand_num: rand_num.value,
  474. }).then(({ data, code }) => {
  475. if (!code || !data.detail.status) {
  476. popup_sell.value = true;
  477. loading.value = false;
  478. return;
  479. } else {
  480. detail.value = data.detail;
  481. bg_list.value = data.bg_list;
  482. }
  483. detail.value.images_arr = detail.value.images_arr.map((item) => {
  484. return BASE_URL + item;
  485. });
  486. if (detail.value.id && image_detail.value) {
  487. loading.value = false;
  488. // setTimeout(() => {
  489. // createCanvas();
  490. // }, 1000);
  491. nextTick(() => {
  492. createCanvas();
  493. });
  494. }
  495. });
  496. break;
  497. case "getsimpleimagesdetail": // 获取水印信息
  498. getsimpleimagesdetail({ goods_id: id.value }).then(({ data }) => {
  499. let { watermark_info } = data,
  500. family_arr = [
  501. "fangsong",
  502. "Helvetica",
  503. "Arial",
  504. "Tahoma",
  505. "Microsoft YaHei",
  506. "SimSun",
  507. ];
  508. // data.detail = filterDetail(data.detail);
  509. data.style = {
  510. opacity: (100 - watermark_info.opacity * 1) * 0.01,
  511. color: watermark_info.color,
  512. fontSize: watermark_info.text_font + "px",
  513. fontWeight: watermark_info.bold == 1 ? "bold" : "",
  514. // fontFamily: `typeface${watermark_info.typeface}`,
  515. fontFamily: family_arr[watermark_info.typeface - 1],
  516. transform: `rotate(${watermark_info.angle}deg)`,
  517. // textShadow:'0 0 5px #000'
  518. };
  519. data.style_position = {};
  520. if (watermark_info.type == "2" || watermark_info.type == "4") {
  521. // let box_height =
  522. // 30 + Number(watermark_info.hh) + Number(watermark_info.hh);
  523. // switch (watermark_info.waterPos) {
  524. // case "1":
  525. // data.style_position = {
  526. // top: 0,
  527. // justifyContent: "flex-start",
  528. // ...data.style_position,
  529. // };
  530. // break;
  531. // case "2":
  532. // data.style_position = {
  533. // top: 0,
  534. // justifyContent: "center",
  535. // ...data.style_position,
  536. // };
  537. // break;
  538. // case "3":
  539. // data.style_position = {
  540. // top: 0,
  541. // justifyContent: "flex-end",
  542. // ...data.style_position,
  543. // };
  544. // break;
  545. // case "4":
  546. // data.style_position = {
  547. // top: `calc(50% - ${box_height / 2}px)`,
  548. // justifyContent: "flex-start",
  549. // ...data.style_position,
  550. // };
  551. // break;
  552. // case "5":
  553. // data.style_position = {
  554. // top: `calc(50% - ${box_height / 2}px)`,
  555. // justifyContent: "center",
  556. // ...data.style_position,
  557. // };
  558. // break;
  559. // case "6":
  560. // data.style_position = {
  561. // top: `calc(50% - ${box_height / 2}px)`,
  562. // justifyContent: "flex-end",
  563. // ...data.style_position,
  564. // };
  565. // break;
  566. // case "7":
  567. // data.style_position = {
  568. // bottom: 0,
  569. // justifyContent: "flex-start",
  570. // ...data.style_position,
  571. // };
  572. // break;
  573. // case "8":
  574. // data.style_position = {
  575. // bottom: 0,
  576. // justifyContent: "center",
  577. // ...data.style_position,
  578. // };
  579. // break;
  580. // case "9":
  581. // data.style_position = {
  582. // bottom: 0,
  583. // justifyContent: "flex-end",
  584. // ...data.style_position,
  585. // };
  586. // break;
  587. // default:
  588. // data.style_position = {
  589. // top: 0,
  590. // justifyContent: "flex-start",
  591. // ...data.style_position,
  592. // };
  593. // }
  594. data.style_position = {
  595. top: watermark_info.yy + "px",
  596. left: watermark_info.xx + "px",
  597. };
  598. if (watermark_info.type == "4") {
  599. data.style_position.height = data.style.lineHeight =
  600. data.style.fontSize;
  601. }
  602. } else if (watermark_info.type == "1" || watermark_info.type == "3") {
  603. Object.assign(data.style, {
  604. marginTop: watermark_info.hh + "px",
  605. marginBottom: watermark_info.hh + "px",
  606. marginLeft: watermark_info.ww + "px",
  607. marginRight: watermark_info.ww + "px",
  608. });
  609. }
  610. image_detail.value = data;
  611. if (detail.value.id && image_detail.value) {
  612. loading.value = false;
  613. // setTimeout(() => {
  614. // createCanvas();
  615. // }, 1000);
  616. nextTick(() => {
  617. createCanvas();
  618. });
  619. }
  620. });
  621. break;
  622. case "getplatformmeun": // 获取tabbar等信息
  623. getplatformmeun().then(({ data }) => {
  624. uni.setNavigationBarTitle({
  625. title: data.name,
  626. });
  627. meun_info.value = data;
  628. });
  629. break;
  630. }
  631. }
  632. onLoad((option) => {
  633. id.value = option.id;
  634. rand_num.value = option.rand_num;
  635. getData("getplatformeditor");
  636. getData("getGoodsDetail");
  637. getData("getsimpleimagesdetail");
  638. getData("getplatformmeun");
  639. });
  640. onReady(() => {});
  641. onShow(() => {
  642. window.scrollTo(0, 0);
  643. });
  644. onPullDownRefresh(() => {
  645. setTimeout(function () {
  646. uni.stopPullDownRefresh();
  647. }, 1000);
  648. });
  649. </script>
  650. <style lang="scss" scoped>
  651. page {
  652. user-select: none;
  653. width: 100%;
  654. display: flex;
  655. justify-content: center;
  656. }
  657. .wrap {
  658. padding-bottom: 160rpx;
  659. width: 750rpx;
  660. .swiper {
  661. }
  662. .baseInfo {
  663. width: 100%;
  664. background-color: #fff;
  665. padding: 22rpx 30rpx;
  666. .titleBox {
  667. display: flex;
  668. justify-content: space-between;
  669. .wechat {
  670. font-size: 40rpx;
  671. color: #1677ff;
  672. font-weight: bold;
  673. }
  674. .takeImg {
  675. width: 206rpx;
  676. height: 52rpx;
  677. line-height: 52rpx;
  678. background: #a5cf49;
  679. border-radius: 40rpx;
  680. font-size: 28rpx;
  681. color: #ffff;
  682. font-weight: bold;
  683. text-align: center;
  684. }
  685. }
  686. .attributeBox {
  687. font-size: 28rpx;
  688. color: #666666;
  689. .attributeItem {
  690. margin-top: 20rpx;
  691. display: flex;
  692. .labelItem {
  693. flex: 1;
  694. }
  695. .fontWeight {
  696. font-weight: bold;
  697. color: #000;
  698. font-size: 30rpx;
  699. }
  700. }
  701. }
  702. }
  703. .labelBox {
  704. padding: 0 15px;
  705. margin: 10rpx 0;
  706. display: flex;
  707. flex-wrap: wrap;
  708. .labelItem {
  709. margin-right: 20rpx;
  710. margin-bottom: 5rpx;
  711. font-size: 20rpx;
  712. color: #fff;
  713. border-radius: 30rpx;
  714. padding: 7rpx 16rpx;
  715. background-position: center center;
  716. background-repeat: no-repeat;
  717. background-size: cover;
  718. }
  719. }
  720. .productInfo {
  721. margin-bottom: 10rpx;
  722. background-color: #fff;
  723. padding: 20rpx 32rpx;
  724. .infoTitle {
  725. margin-bottom: 10rpx;
  726. font-size: 28rpx;
  727. font-weight: bold;
  728. }
  729. .statement {
  730. font-size: 24rpx;
  731. }
  732. }
  733. .footer {
  734. bottom: 0;
  735. padding: 20rpx 28rpx;
  736. position: fixed;
  737. width: 750rpx;
  738. height: 160rpx;
  739. background: #ffffff;
  740. display: flex;
  741. justify-content: space-between;
  742. .back {
  743. display: flex;
  744. justify-content: center;
  745. font-size: 28rpx;
  746. color: #fff;
  747. width: 162rpx;
  748. height: 80rpx;
  749. text-align: center;
  750. line-height: 80rpx;
  751. background: #a5cf49;
  752. border-radius: 40rpx;
  753. }
  754. .price {
  755. line-height: 80rpx;
  756. font-size: 24rpx;
  757. color: #333333;
  758. text {
  759. color: #ff2828;
  760. }
  761. .bold {
  762. font-weight: bold;
  763. font-size: 40rpx;
  764. }
  765. }
  766. }
  767. .popup {
  768. overflow: hidden;
  769. .notice {
  770. padding: 24rpx 28rpx;
  771. font-size: 28rpx;
  772. .noticeTitle {
  773. font-weight: bold;
  774. text-align: center;
  775. }
  776. .noticeInfo {
  777. height: 500rpx;
  778. overflow: scroll;
  779. }
  780. }
  781. .popupBottom {
  782. display: flex;
  783. justify-content: right;
  784. padding: 20rpx 28rpx;
  785. height: 160rpx;
  786. .back {
  787. display: flex;
  788. justify-content: center;
  789. text-align: center;
  790. font-size: 28rpx;
  791. color: #fff;
  792. width: 162rpx;
  793. height: 80rpx;
  794. line-height: 80rpx;
  795. background: #a5cf49;
  796. border-radius: 40rpx;
  797. }
  798. }
  799. .popupTop {
  800. border-radius: 20rpx 20rpx 0rpx 0rpx;
  801. display: flex;
  802. justify-content: space-between;
  803. align-items: center;
  804. padding: 26rpx;
  805. background: linear-gradient(135deg, #f9ffe9 0%, #ddffda 100%);
  806. .contactInfo {
  807. flex: 1;
  808. font-size: 32rpx;
  809. margin-right: 20rpx;
  810. }
  811. image {
  812. width: 300rpx;
  813. height: 300rpx;
  814. }
  815. }
  816. }
  817. .window {
  818. padding: 0 28rpx;
  819. display: flex;
  820. align-items: center;
  821. justify-content: center;
  822. height: 100%;
  823. .is-sell {
  824. padding: 60rpx 120rpx;
  825. display: flex;
  826. flex-direction: column;
  827. align-items: center;
  828. width: 558rpx;
  829. height: 438rpx;
  830. background: #ffffff;
  831. border-radius: 20rpx;
  832. image {
  833. width: 96rpx;
  834. height: 96rpx;
  835. }
  836. p {
  837. font-size: 30rpx;
  838. margin: 62rpx 0 40rpx;
  839. }
  840. }
  841. .diagram {
  842. display: flex;
  843. flex-direction: column;
  844. align-items: center;
  845. width: 694px;
  846. height: auto;
  847. user-select: none;
  848. image {
  849. width: 100%;
  850. }
  851. p {
  852. font-size: 48rpx;
  853. color: #fff;
  854. margin-top: 12rpx;
  855. width: 100%;
  856. text-align: center;
  857. }
  858. }
  859. }
  860. .template {
  861. position: absolute;
  862. top: 0;
  863. left: 0;
  864. z-index: -100;
  865. max-width: 60vh;
  866. .titleBox {
  867. font-size: 28rpx;
  868. color: #666666;
  869. padding: 6rpx;
  870. background: #fff5e5;
  871. display: flex;
  872. align-items: flex-end;
  873. image {
  874. margin-right: 4rpx;
  875. width: 112rpx;
  876. height: 112rpx;
  877. }
  878. .warn {
  879. font-size: 32rpx;
  880. color: #ff2828;
  881. }
  882. .title {
  883. margin-left: 4rpx;
  884. }
  885. }
  886. .content {
  887. padding-left: 10rpx;
  888. padding-right: 10rpx;
  889. overflow: hidden;
  890. position: relative;
  891. word-break: break-all;
  892. word-wrap: break-word;
  893. overflow: hidden;
  894. position: relative;
  895. .watermark {
  896. position: absolute;
  897. display: flex;
  898. flex-wrap: wrap;
  899. top: 0;
  900. left: 0;
  901. right: 0;
  902. image {
  903. width: 100rpx;
  904. height: 100rpx;
  905. }
  906. }
  907. .watermark-position {
  908. position: absolute;
  909. height: 30rpx;
  910. width: 100%;
  911. display: flex;
  912. image {
  913. width: 100rpx;
  914. height: 100rpx;
  915. }
  916. }
  917. text {
  918. white-space: nowrap;
  919. }
  920. }
  921. }
  922. }
  923. </style>