product.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <view class="container">
  3. <view class="swiper-box">
  4. <view class="img" v-if="isSc == 2">
  5. <image :src="shopDetail.image" mode="widthFix"></image>
  6. </view>
  7. <view class="img" v-if="isSc == 1">
  8. <image :src="shopDetail.class_info.uri" mode="widthFix"></image>
  9. </view>
  10. </view>
  11. <view class="content-box">
  12. <view class="content-top" v-if="isSc == 2">
  13. <view class="hd flex">
  14. <view>
  15. {{ shopDetail.store_name }}
  16. </view>
  17. <view class="flex rightTip">
  18. <view class="textStock border-radius-10 flex">
  19. <view class="tip">
  20. 限量
  21. </view>
  22. <view class="num">
  23. {{shopDetail.stock}}
  24. </view>
  25. </view>
  26. <view class="tip border-radius-10 margin-l-10">
  27. 限购{{shopDetail.buy_limit}}份
  28. </view>
  29. </view>
  30. </view>
  31. <!-- <view class="content-img">
  32. <image src="../../static/img/fx.png" mode=""></image>分享
  33. </view> -->
  34. </view>
  35. <view class="content-center" v-if="isSc == 2">
  36. <view class="title">已售数量: {{ shopDetail.ficti }}份</view>
  37. <view class="title">发行方: 艺绘官方ssss</view>
  38. </view>
  39. <view class="content-center" v-if="isSc == 1">
  40. <view class="title" style="font-size: 38rpx;font-weight: bold;color: #FFFFFF;">
  41. {{ shopDetail.class_info.name }}</view>
  42. <view class="title">持有者: {{ shopDetail.user.nickname }}</view>
  43. </view>
  44. <view class="content-bottom">
  45. <view class="price">
  46. {{ shopDetail.price }}
  47. <span>RMB</span>
  48. </view>
  49. <view class="gobuy" @click="buy()">立即购买</view>
  50. </view>
  51. </view>
  52. <view class="rz" v-show="isSc == 2">
  53. <view class="rz-title">作品描述</view>
  54. <view class="rz-ms">{{ shopDetail.store_info }}</view>
  55. </view>
  56. <view class="rz">
  57. <view class="rz-title">链上信息</view>
  58. <view class="rz-ms">
  59. <view class="tc-item flex">
  60. <view class="tcitem-name">地址</view>
  61. <view class="ali-name clamp">{{ nft.id }}</view>
  62. <image class="tcitem-image" src="../../static/img/copy.png" mode="" @click="copy(nft.id)"></image>
  63. </view>
  64. <view class="tc-item flex margin-t-30">
  65. <view class="tcitem-name">Token Hash</view>
  66. <view class="ali-name clamp">{{ nft.tx_hash }}</view>
  67. <image class="tcitem-image" src="../../static/img/copy.png" mode="" @click="copy(nft.id)"></image>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="rz" v-show="isSc == 2">
  72. <view class="rz-title">作品详情</view>
  73. <rich-text class="rich" :nodes="shopDetail.description"></rich-text>
  74. </view>
  75. <uni-popup ref="popupkf" type="bottom">
  76. <view class="popup-box">
  77. <view class="pop-title">选择支付方式</view>
  78. <view class="pop-radio">
  79. <radio-group name="">
  80. <!-- #ifdef APP-PLUS -->
  81. <label class="pop-radio-box" @click="type = 'ali'">
  82. <view class="pop-radio-cont">
  83. <image src="../../static/img/ali.png" style="width: 40rpx;height: 40rpx;"
  84. mode="scaleToFill"></image>
  85. <text>支付宝支付</text>
  86. </view>
  87. <radio :checked="type == 'ali'" style="transform: scale(0.8);" />
  88. </label>
  89. <!-- <label class="pop-radio-box" @click="type='weixin'">
  90. <view class="pop-radio-cont">
  91. <image src="../../static/img/weixin.png" style="width: 40rpx;height: 40rpx;"
  92. mode="scaleToFill">
  93. </image>
  94. <text>微信支付</text>
  95. </view>
  96. <radio :checked="type=='weixin'" style="transform: scale(0.8);" />
  97. </label> -->
  98. <!-- #endif -->
  99. <label class="pop-radio-box" @click="type = 'yue'">
  100. <view class="pop-radio-cont">
  101. <image src="../../static/img/yue.png" style="width: 40rpx;height: 40rpx;"
  102. mode="scaleToFill"></image>
  103. <text>余额支付:{{ now_money }}</text>
  104. </view>
  105. <radio :checked="type == 'yue'" style="transform: scale(0.8);" />
  106. </label>
  107. </radio-group>
  108. <view class="pop-bottom">
  109. <view class="pirce">
  110. <view class="price-left">合计:</view>
  111. <view class="price-right">
  112. <span>{{ shopDetail.price }}</span>
  113. </view>
  114. </view>
  115. <!-- "!payLoding ? pay() : ''" -->
  116. <view class="buy" @click="pay()" :class="{ clickbg: payLoding }">立即支付</view>
  117. </view>
  118. </view>
  119. </view>
  120. </uni-popup>
  121. <!-- <uni-popup ref="popupZf" type="bottom" >
  122. </uni-popup> -->
  123. </view>
  124. </template>
  125. <script>
  126. // import uniPopup from '@/components/uni-popup/uni-popup.vue'
  127. import {
  128. balance
  129. } from '@/api/wallet.js';
  130. import {
  131. mapState
  132. } from 'vuex';
  133. import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
  134. import {
  135. goodsDetails,
  136. cartAdd
  137. } from '@/api/product.js';
  138. import {
  139. confirm,
  140. orderPay,
  141. createOrderkey,
  142. nftmall,
  143. nftDetail,
  144. nftBuy
  145. } from '@/api/order.js';
  146. export default {
  147. data() {
  148. return {
  149. orderId: '', //订单编号
  150. moneyAll: '', //购物车订单
  151. now_money: 0, //余额
  152. payLoding: true, //判断是否支付中
  153. orderKey: '', //订单的key值
  154. addressData: {}, //地址信息
  155. shopList: [], //商品列表
  156. cartId: '', //购物车id
  157. uniqueId: '',
  158. nft: '',
  159. type: 'yue', //支付状态
  160. shopDetail: {
  161. class_info: {},
  162. user: {}
  163. }, //商品详情
  164. weixin: '',
  165. yue: '',
  166. shopId: '', //商品id
  167. list: [
  168. // 'https://img.php.cn/upload/article/202104/15/2021041518005466284.jpg',
  169. // 'https://img.php.cn/upload/article/202104/15/2021041518005466284.jpg',
  170. // 'https://img.php.cn/upload/article/202104/15/2021041518005466284.jpg'
  171. ],
  172. froms: '', //保存h5中数据来源对象
  173. isSc: 0 //是否是是市场传递过来的参数
  174. };
  175. },
  176. onLoad(options) {
  177. // 保存当前获取数据的类型
  178. this.isSc = options.isSc;
  179. // 商品id
  180. this.shopId = options.id;
  181. // 判断是否是首页
  182. if (this.isSc == 2) {
  183. this.goodsDetail();
  184. }
  185. // 判断是否是市场
  186. if (this.isSc == 1) {
  187. this.getNftDetail();
  188. }
  189. // 载入余额
  190. balance({}).then(({
  191. data
  192. }) => {
  193. // 获取余额
  194. this.now_money = data.now_money;
  195. });
  196. },
  197. computed: {
  198. ...mapState(['weichatObj', 'baseURL', 'urlFile']),
  199. ...mapState('user', ['userInfo', 'hasLogin'])
  200. },
  201. methods: {
  202. //选择支付方式
  203. changePayType(type) {
  204. this.type = type;
  205. },
  206. copy(value) {
  207. let obj = this;
  208. let content = value; //需要复制的内容
  209. console.log('复制的内容:', content);
  210. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  211. const result = uniCopy(content);
  212. if (result === false) {
  213. uni.showToast({
  214. title: '不支持'
  215. });
  216. } else {
  217. uni.showToast({
  218. title: '复制成功',
  219. icon: 'none'
  220. });
  221. }
  222. },
  223. buy() {
  224. // 判断是否是首页
  225. if (this.isSc == 2) {
  226. this.indexPay();
  227. }
  228. // 判断是否是市场
  229. if (this.isSc == 1) {
  230. this.$refs.popupkf.open();
  231. }
  232. },
  233. // 判断是否是首页进入交易
  234. indexPay() {
  235. let obj = this;
  236. let lj = true;
  237. // 判断是否需要拦截
  238. if (obj.userInfo.is_company == 1 || obj.userInfo.is_partner == 1) {
  239. lj = false;
  240. }
  241. if (lj) {
  242. let time = new Date();
  243. if (time.getTime() < obj.shopDetail.sell_time * 1000) {
  244. uni.showModal({
  245. title: '错误',
  246. content: '未到开售时间,不能购买',
  247. showCancel: false,
  248. success: res => {},
  249. fail: () => {}
  250. });
  251. return;
  252. }
  253. }
  254. let data = {
  255. cartNum: 1,
  256. uniqueId: obj.uniqueId, //商品标签.默认无
  257. new: '1',
  258. // mer_id: '',//商店id暂未知晓
  259. productId: obj.shopId
  260. };
  261. //生成订单
  262. cartAdd(data)
  263. .then(res => {
  264. console.log(res, 'res');
  265. //需要获取购物车号
  266. obj.cartId = res.data.cartId;
  267. this.getKeys();
  268. })
  269. .catch(e => {
  270. console.log(e);
  271. });
  272. this.$refs.popupkf.open();
  273. },
  274. getKeys() {
  275. let obj = this;
  276. confirm({
  277. cartId: obj.cartId
  278. }).then(data => {
  279. console.log(data, '生平具体信息');
  280. obj.addressData = data.data.addressInfo || {};
  281. obj.shopList = data.data.cartInfo; //商品列表
  282. // obj.moneyAll = data.data.cartInfo.truePrice; //金额数据
  283. obj.orderKey = data.data.orderKey; //订单key
  284. // let url = `/pages/money/pay?key=${obj.orderKey}`
  285. // console.log(url);
  286. });
  287. },
  288. //支付
  289. async pay() {
  290. let obj = this;
  291. if (obj.type == 'yue' && obj.now_money * 1 < obj.shopDetail.price * 1) {
  292. uni.showModal({
  293. title: '提示',
  294. content: '账户余额不足!',
  295. showCancel: false
  296. });
  297. return;
  298. }
  299. // uni.hideLoading()
  300. uni.showLoading({
  301. title: '支付中',
  302. mask: true
  303. });
  304. // 判断是否支付中
  305. if (!obj.payLoding) {
  306. return;
  307. }
  308. obj.payLoding = false;
  309. if (obj.type == 'weixin') {
  310. obj.$api.msg('微信暂未开通!');
  311. uni.hideLoading();
  312. obj.payLoding = true;
  313. return;
  314. }
  315. // 判断是否是市场进入
  316. if (obj.isSc == 1) {
  317. console.log('sc');
  318. obj.marketPay();
  319. }
  320. // 判断是否是市场进入
  321. if (obj.isSc == 2) {
  322. obj.firstCreateOrder();
  323. }
  324. },
  325. // 市场支付
  326. marketPay() {
  327. const obj = this;
  328. nftBuy({
  329. pay_type: obj.type
  330. },
  331. obj.shopId
  332. )
  333. .then(res => {
  334. console.log(res, '购入');
  335. uni.hideLoading();
  336. if (obj.type == 'yue') {
  337. obj.paySuccessTo();
  338. }
  339. if (obj.type == 'ali') {
  340. const url = res.data.payConfig;
  341. console.log(url, 'url');
  342. uni.requestPayment({
  343. provider: 'alipay',
  344. orderInfo: url,
  345. success: res => {
  346. obj.paySuccessTo();
  347. },
  348. fail: e => {
  349. uni.showModal({
  350. title: '错误',
  351. content: '未成功支付',
  352. showCancel: false
  353. });
  354. console.log(e);
  355. },
  356. complete: () => {}
  357. });
  358. }
  359. })
  360. .catch(() => {
  361. obj.payLoding = true;
  362. });
  363. return;
  364. },
  365. //普通商品支付
  366. firstCreateOrder() {
  367. let obj = this;
  368. // 获取下单页面数据
  369. // let prepage = obj.$api.prePage();
  370. // console.log(prepage,'prepage');
  371. let pages = getCurrentPages(); // 获取页面栈
  372. let current = pages[pages.length - 1]; // 当前页面
  373. console.log(current, 'current');
  374. let data = {
  375. real_name: '', //联系人名称
  376. phone: '', //联系人号码
  377. couponId: '', //优惠券编号
  378. addressId: '', //支付地址id
  379. useIntegral: 0, //是否积分抵扣1为是0为否
  380. payType: obj.type, //支付类型 weixin-微信 yue-余额
  381. mark: '', //备注
  382. from: 'app', //来源
  383. shipping_type: 1 //提货方式 1 快递 2自提
  384. };
  385. // 生成订单
  386. console.log(obj.orderKey, 'obj.orderKey');
  387. createOrderkey(data, obj.orderKey)
  388. .then(({
  389. data,
  390. status,
  391. msg
  392. }) => {
  393. console.log(status);
  394. // 判断是否支付失败
  395. if (data.status == 'ORDER_EXIST') {
  396. uni.showModal({
  397. title: '提示',
  398. content: msg,
  399. showCancel: false
  400. });
  401. uni.hideLoading();
  402. obj.payLoding = true;
  403. return;
  404. }
  405. // 保存订单号
  406. obj.orderId = data.result.orderId;
  407. // 判断是否为余额支付
  408. if (obj.type == 'yue') {
  409. if (status == 200) {
  410. obj.paySuccessTo();
  411. } else {
  412. obj.$api.msg(msg);
  413. }
  414. } else {
  415. // 立即支付
  416. obj.orderMoneyPay();
  417. }
  418. })
  419. .catch(e => {
  420. uni.hideLoading();
  421. obj.payLoding = true;
  422. console.log(e, '123456789');
  423. });
  424. },
  425. //立即支付订单
  426. orderMoneyPay() {
  427. let obj = this;
  428. orderPay({
  429. uni: obj.orderKey,
  430. from: 'app', //来源
  431. paytype: obj.type //支付类型 weixin-微信 yue-余额
  432. }).then(res => {
  433. console.log(res, '订单支付信息');
  434. if (res.data.status == 'SUCCESS' && obj.type == 'yue') {
  435. if (res.status == 200) {
  436. obj.paySuccessTo();
  437. } else {
  438. obj.$api.msg(msg);
  439. console.log('失败');
  440. }
  441. }
  442. if (obj.type == 'ali') {
  443. const url = res.data.result.jsConfig;
  444. console.log(url, 'url');
  445. uni.requestPayment({
  446. provider: 'alipay',
  447. orderInfo: url,
  448. success: res => {
  449. console.log(res);
  450. uni.showToast({
  451. title: '支付成功',
  452. duration: 2000
  453. });
  454. obj.paySuccessTo();
  455. },
  456. fail: e => {
  457. console.log(e);
  458. },
  459. complete: () => {}
  460. });
  461. }
  462. uni.hideLoading();
  463. obj.payLoding = true;
  464. });
  465. },
  466. // 获取商品详情
  467. goodsDetail() {
  468. let obj = this;
  469. console.log(obj.isSc, 'issc');
  470. goodsDetails({}, obj.shopId).then(res => {
  471. console.log(res, '123456789');
  472. obj.uniqueId = res.data.productValue['默认'].unique;
  473. obj.nft = res.data.nft_class;
  474. obj.shopDetail = res.data.storeInfo;
  475. console.log(obj.shopDetail, obj.uniqueId, 'res1111');
  476. if (obj.shopDetail.description != null) {
  477. obj.shopDetail.description = obj.shopDetail.description.replace(/<img/g,
  478. '<img class="rich-img"').replace(/<p>\s*<img/g, '<p class="pHeight"><img');
  479. }
  480. if (obj.shopDetail.rule != null) {
  481. obj.shopDetail.rule = '<p>' + obj.shopDetail.rule.replace(/\n/g, '</p><p>').trim() +
  482. '</p>';
  483. }
  484. let time = new Date(obj.shopDetail.sell_time * 1000);
  485. obj.shopDetail.cmy_pay_time =
  486. time.getFullYear() + '年' + (time.getMonth() + 1) + '月' + time.getDate() + '日' + time
  487. .getHours() + '时' + time.getMinutes() + '分' + time.getSeconds() + '秒';
  488. return;
  489. });
  490. },
  491. // 获取交易市场进入时候的数据
  492. getNftDetail() {
  493. let obj = this;
  494. nftDetail({}, obj.shopId).then(res => {
  495. // obj.uniqueId = res.data.productValue['默认'].unique
  496. // obj.shopDetail = res.data.storeInfo
  497. obj.shopDetail = res.data.info;
  498. console.log(res, obj.isSc, 'res1111');
  499. });
  500. },
  501. // 支付成功跳转
  502. paySuccessTo() {
  503. uni.hideLoading();
  504. uni.redirectTo({
  505. url: '/pages/money/paySuccess?orderKey=' + this.orderKey
  506. });
  507. }
  508. }
  509. };
  510. </script>
  511. <style lang="scss">
  512. .container,
  513. page {
  514. // background: #111111;
  515. min-height: 100%;
  516. }
  517. /deep/ .rich-img {
  518. width: 100% !important;
  519. height: auto;
  520. }
  521. /* #ifdef MP */
  522. .rich-img {
  523. width: 100% !important;
  524. height: auto;
  525. }
  526. // 处理图片间白色间距问题
  527. .pHeight {
  528. line-height: 0;
  529. }
  530. /* #endif */
  531. .swiper-box {
  532. background: #0c0a36;
  533. }
  534. .img {
  535. margin: 0 auto;
  536. width: 750rpx;
  537. image {
  538. width: 100%;
  539. }
  540. }
  541. .content-box {
  542. border-bottom: 2rpx solid #919295;
  543. padding: 30rpx;
  544. display: flex;
  545. flex-direction: column;
  546. .content-top {
  547. display: flex;
  548. justify-content: space-between;
  549. align-items: center;
  550. .hd {
  551. font-size: 38rpx;
  552. font-family: PingFang SC;
  553. font-weight: bold;
  554. color: #ffffff;
  555. line-height: 1;
  556. .rightTip{
  557. .textStock {
  558. overflow: hidden;
  559. }
  560. .num {
  561. font-size: 18rpx;
  562. padding: 6rpx 10rpx;
  563. color: #9F570E;
  564. background-color: #4D3414;
  565. }
  566. .tip {
  567. font-size: 20rpx;
  568. color: #9F570E;
  569. padding: 6rpx 10rpx;
  570. line-height: 1;
  571. background: $bgBaseBg;
  572. }
  573. }
  574. }
  575. .content-img {
  576. display: flex;
  577. align-items: center;
  578. justify-content: space-around;
  579. font-size: 24rpx;
  580. font-family: PingFang SC;
  581. font-weight: 500;
  582. color: #585be7;
  583. line-height: 39rpx;
  584. padding: 10rpx;
  585. height: 41rpx;
  586. border: 2rpx solid #585be7;
  587. border-radius: 5rpx;
  588. image {
  589. width: 26rpx;
  590. height: 26rpx;
  591. }
  592. }
  593. }
  594. .content-center {
  595. margin: 20rpx 0;
  596. display: flex;
  597. flex-direction: column;
  598. .title {
  599. font-size: 24rpx;
  600. font-weight: 500;
  601. color: #ffffff;
  602. line-height: 42rpx;
  603. }
  604. }
  605. .content-bottom {
  606. display: flex;
  607. align-items: center;
  608. justify-content: space-between;
  609. .price {
  610. display: flex;
  611. justify-content: flex-end;
  612. font-size: 48rpx;
  613. font-weight: bold;
  614. color: #FDD58A;
  615. span {
  616. font-size: 24rpx;
  617. font-weight: bold;
  618. color: #666666;
  619. font-family: SourceHanSerifSC;
  620. line-height: 66rpx;
  621. }
  622. }
  623. .gobuy {
  624. width: 334rpx;
  625. height: 90rpx;
  626. background: $bgBaseBg;
  627. border-radius: 10rpx;
  628. font-size: 36rpx;
  629. font-weight: 500;
  630. color: #9F570E;
  631. line-height: 90rpx;
  632. text-align: center;
  633. }
  634. }
  635. }
  636. .rz {
  637. display: flex;
  638. flex-direction: column;
  639. align-items: center;
  640. .rz-title {
  641. margin: 35rpx 0;
  642. font-size: 36rpx;
  643. font-family: PingFang SC;
  644. font-weight: bold;
  645. color: #ffffff;
  646. line-height: 42rpx;
  647. }
  648. .rich {
  649. display: block;
  650. justify-content: center;
  651. margin: 30rpx;
  652. width: 750rpx;
  653. overflow: hidden;
  654. }
  655. .rz-ms {
  656. padding: 30rpx;
  657. width: 690rpx;
  658. font-size: 24rpx;
  659. line-height: 36rpx;
  660. color: #ffffff;
  661. word-wrap: break-word;
  662. word-break: normal;
  663. background-color:#1D1D22 ;
  664. border-radius: 30rpx;
  665. }
  666. .rz-content {
  667. padding: 20rpx;
  668. display: flex;
  669. flex-direction: column;
  670. width: 690rpx;
  671. background: #222222;
  672. border-radius: 20rpx;
  673. .con-box {
  674. line-height: 60rpx;
  675. display: flex;
  676. justify-content: space-between;
  677. align-items: center;
  678. .left {
  679. font-size: 24rpx;
  680. color: #a5a5a5;
  681. }
  682. .right {
  683. display: flex;
  684. align-items: center;
  685. .address {
  686. color: #6363fe;
  687. font-size: 24rpx;
  688. width: 300rpx;
  689. text-align: right;
  690. overflow: hidden;
  691. text-overflow: ellipsis;
  692. white-space: nowrap;
  693. }
  694. .copy {
  695. margin-left: 15rpx;
  696. margin-bottom: 22rpx;
  697. width: 30rpx;
  698. height: 30rpx;
  699. image {
  700. width: 30rpx;
  701. height: 30rpx;
  702. }
  703. }
  704. }
  705. }
  706. }
  707. .tc-item {
  708. width: 100%;
  709. line-height: 1;
  710. .tcitem-name {
  711. flex-shrink: 0;
  712. font-size: 30rpx;
  713. font-family: PingFang SC;
  714. font-weight: 500;
  715. color: #fff;
  716. }
  717. .ali-name {
  718. font-size: 30rpx;
  719. font-family: PingFang SC;
  720. font-weight: 500;
  721. padding: 0 20rpx;
  722. color: #FDD58A;
  723. }
  724. .tcitem-image {
  725. flex-shrink: 0;
  726. width: 26rpx;
  727. height: 28rpx;
  728. }
  729. }
  730. }
  731. .popup-box {
  732. width: 750rpx;
  733. background: #ffffff;
  734. border-radius: 10rpx 10rpx 0px 0px;
  735. padding-bottom: 130rpx;
  736. .pop-title {
  737. line-height: 1;
  738. padding-top: 30rpx;
  739. padding-left: 30rpx;
  740. padding-bottom: 10rpx;
  741. font-size: 34rpx;
  742. font-weight: bold;
  743. color: #333333;
  744. }
  745. .pop-radio {
  746. display: flex;
  747. .pop-radio-box {
  748. height: 100rpx;
  749. display: flex;
  750. align-items: center;
  751. padding: 25rpx;
  752. justify-content: space-between;
  753. width: 750rpx;
  754. .pop-radio-cont {
  755. display: flex;
  756. img {
  757. width: 40rpx;
  758. height: 40rpx;
  759. }
  760. text {
  761. margin-left: 10rpx;
  762. font-size: 28rpx;
  763. font-weight: 400;
  764. color: #3f454b;
  765. }
  766. }
  767. }
  768. .pop-bottom {
  769. position: fixed;
  770. bottom: 0;
  771. right: 0;
  772. height: 93rpx;
  773. width: 750rpx;
  774. display: flex;
  775. justify-content: space-between;
  776. .pirce {
  777. display: flex;
  778. align-items: center;
  779. margin-left: 25rpx;
  780. .price-left {
  781. font-size: 28rpx;
  782. font-family: PingFang SC;
  783. font-weight: 400;
  784. color: #3f454b;
  785. line-height: 100px;
  786. }
  787. display: flex;
  788. .price-right {
  789. font-size: 24rpx;
  790. font-weight: 500;
  791. color: #fd3b39;
  792. line-height: 55px;
  793. span {
  794. font-size: 36rpx;
  795. font-weight: 500;
  796. color: #fd3b39;
  797. line-height: 55px;
  798. }
  799. }
  800. }
  801. .buy {
  802. width: 360rpx;
  803. height: 93rpx;
  804. background: $bgBaseBg;
  805. font-size: 32rpx;
  806. font-weight: bold;
  807. line-height: 93rpx;
  808. text-align: center;
  809. color: #ffffff;
  810. }
  811. }
  812. }
  813. }
  814. .clickbg {
  815. background-color: $color-gray !important;
  816. }
  817. </style>