index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897
  1. <template>
  2. <view class="center">
  3. <!-- 小程序头部兼容 -->
  4. <!-- #ifdef MP -->
  5. <navigator url="/pages/product/search">
  6. <view class="input-box flex">
  7. <view class=" input-content flex">
  8. <view class="iconfont iconsearch"></view>
  9. <view class="input"><input disabled placeholder="请输入搜索内容" /></view>
  10. </view>
  11. </view>
  12. </navigator>
  13. <!-- #endif -->
  14. <view class="top"></view>
  15. <view class="carousel">
  16. <swiper autoplay="true" duration="400" interval="5000" @change="swiperChange" class="bor">
  17. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"><image :src="item.pic" /></swiper-item>
  18. </swiper>
  19. </view>
  20. <view class="swiper-dot">
  21. <template v-for="item in swiperLength">
  22. <view class="swiper-dots-item" :key="item" :class="{ action: swiperCurrent + 1 === item }"></view>
  23. </template>
  24. </view>
  25. <view class="cate-section">
  26. <view class="cate-item" @click="nav('/pages/index/vip')">
  27. <image src="/static/icon/c3.png"></image>
  28. <view class="cate-font">会员礼包</view>
  29. </view>
  30. <view class="cate-item" @click="nav('/pages/category/articleList')" v-if="iswz">
  31. <image src="/static/icon/c5.png"></image>
  32. <view class="cate-font">最新资讯</view>
  33. </view>
  34. <!-- <view class="cate-item" @click="showPopup()">
  35. <image src="/static/icon/c7.png"></image>
  36. <view class="cate-font">联系客服</view>
  37. </view> -->
  38. <view class="cate-item">
  39. <image src="/static/icon/c8.png" @click="nav('/pages/user/shareQrCode')"></image>
  40. <view class="cate-font">邀请有礼</view>
  41. </view>
  42. </view>
  43. <view class="xian"></view>
  44. <view class="goldenBean" v-if="vipList.length > 0">
  45. <view class="title">
  46. <view class="shu"></view>
  47. <view class="title-t">会员礼包</view>
  48. <text class="about">超值体验</text>
  49. </view>
  50. <view class="box">
  51. <view class="header">
  52. <view class="left">
  53. <view class="title">购买商品赠送消费补贴券</view>
  54. <view class="about">买到就是赚到</view>
  55. </view>
  56. <view class="right"><image src="@/static/img/right.png" @click="navto('/pages/index/vip')"></image></view>
  57. </view>
  58. <view class="footer">
  59. <view class="list">
  60. <view class="item" v-for="d in vipList" @click="navToVipDetailPage(d)">
  61. <view class="img"><image :src="d.image" mode=""></image></view>
  62. <view class="name nowarp" :title="d.store_name">{{ d.store_name }}</view>
  63. <view class="price">¥{{ d.price }}</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- <view class="goldenBean" v-if="vipList.length > 0">
  70. <view class="title">
  71. <view class="shu"></view>
  72. <view class="title-t">会员礼包</view>
  73. <text class="about">超值体验</text>
  74. </view>
  75. <view class="box">
  76. <view class="header">
  77. <view class="left">
  78. <view class="title">购买商品赠送消费积分</view>
  79. <view class="about">买到就是赚到</view>
  80. </view>
  81. <view class="right"><image src="@/static/img/right.png" @click="navto('/pages/index/vip')"></image></view>
  82. </view>
  83. <view class="footer">
  84. <view class="list">
  85. <view class="item" v-for="d in vipList" @click="navToDetailPage(d)">
  86. <view class="img"><image :src="d.image" mode=""></image></view>
  87. <view class="name nowarp" :title="d.store_name">{{ d.store_name }}</view>
  88. <view class="price">¥{{ d.price }}</view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view> -->
  94. <view class="xian"></view>
  95. <view class="main" v-if="dataList.length > 0">
  96. <view class="main-top flex">
  97. <view class="main-left">
  98. <view class="shu"></view>
  99. <view class="main-title">热销推荐</view>
  100. <view class="main-tip">在售精品</view>
  101. </view>
  102. </view>
  103. <view class="list-box-h">
  104. <view v-for="(item, index) in dataList" :key="index" class="guess-item" @click="navToDetailPage(item)">
  105. <image :src="item.image"></image>
  106. <view class="guess-box">
  107. <view class="title clamp2">{{ item.store_name }}</view>
  108. <view class="price-box flex">
  109. <view class="yuanprice">{{ item.ot_price }}</view>
  110. <image src="../../static/img/jiantou.png" mode=""></image>
  111. <view class="jiang">直降{{ (item.ot_price - item.price).toFixed(2) }}元</view>
  112. </view>
  113. <view class="price" v-if="item.integral != 0">¥{{ item.price }} + {{ item.integral }}消费补贴券</view>
  114. <view class="price" v-else>¥{{ item.price }}</view>
  115. <view class="btn">立即购买</view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <uni-popup ref="popup" type="center">
  121. <view class="popup-box">
  122. <view class="img">
  123. <image src="../../static/img/img009.png" mode=""></image>
  124. </view>
  125. <view class="mian">
  126. <view class="delivery">
  127. <view class="title">已经为您定制专属客服</view>
  128. <image src="../../static/img/img010.png" mode=""></image>
  129. </view>
  130. <view class="nocancel">客服VX:{{ weixin }}</view>
  131. <view class="comfirm-box">
  132. <view class="cancel" @click="cancel">取消</view>
  133. <view class="comfirm" @click="comfirm(weixin)">复制微信</view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="close_icon" @click="close"><image src="../../static/img/Close.png"></image></view>
  138. </uni-popup>
  139. </view>
  140. </template>
  141. <script>
  142. import { loadIndexs } from '@/api/index.js';
  143. import { dhList } from '@/api/product.js';
  144. import { mapState } from 'vuex';
  145. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  146. import { article,articleList } from '@/api/user.js';
  147. import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
  148. // import { service } from '@/api/user.js';
  149. // #ifdef H5
  150. import { weixindata, weixinlocation, shareLoad } from '@/utils/wxAuthorized';
  151. import weixinObj from '@/plugin/jweixin-module/index.js';
  152. // #endif
  153. export default {
  154. data() {
  155. return {
  156. carouselList: [], //轮播图
  157. swiperCurrent: 0,
  158. dataList: [], //积分商品
  159. vipList: [], //身份商品
  160. erweima: '',
  161. weixin: 'lzmycd0408', //客服微信
  162. swiperLength: 1,//图片数量
  163. iswz: false,//是否显示文章
  164. };
  165. },
  166. onLoad: function(option) {
  167. // let agree = uni.getStorageSync("agree")||false;
  168. // // 判断是否已经同意协议
  169. // if(!agree){
  170. // uni.redirectTo({url:"/pages/contract/start"})
  171. // }
  172. if (option.spread) {
  173. // 存储邀请人
  174. uni.setStorage({
  175. key: 'spread',
  176. data: option.spread
  177. });
  178. }
  179. // #ifndef MP
  180. if (option.spread) {
  181. // 存储其他邀请人
  182. uni.setStorageSync('spread', option.spread);
  183. }
  184. // #endif
  185. // #ifdef MP
  186. if (option.scene) {
  187. // 存储小程序邀请人
  188. uni.setStorage({
  189. key: 'spread_code',
  190. data: option.scene
  191. });
  192. }
  193. // #endif
  194. // #ifdef H5
  195. if (this.hasLogin) {
  196. console.log('显示');
  197. weixinObj.hideAllNonBaseMenuItem();
  198. this.IndexShare();
  199. } else {
  200. console.log('隐藏');
  201. weixinObj.hideAllNonBaseMenuItem();
  202. }
  203. //#endif
  204. },
  205. computed: {
  206. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
  207. ...mapState(['baseURL'])
  208. },
  209. onShow: function() {
  210. // 判断是否强制登录
  211. // if (!this.hasLogin) {
  212. // // 登录拦截
  213. // uni.showModal({
  214. // title: '登录',
  215. // content: '您未登录,是否马上登陆?',
  216. // success: e => {
  217. // if (e.confirm) {
  218. // interceptor();
  219. // }
  220. // },
  221. // fail: e => {
  222. // console.log(e);
  223. // }
  224. // });
  225. // }
  226. articleList({page:1,limit:10}).then(({data}) =>{
  227. let list = data.filter(e => {
  228. return (e.id !== 0)
  229. })
  230. if(list.length > 0) {
  231. this.iswz = true
  232. }
  233. })
  234. this.loadData();
  235. },
  236. //下拉刷新
  237. onPullDownRefresh() {
  238. this.loadData();
  239. },
  240. // #ifndef MP
  241. // 监听导航栏输入框点击事件
  242. onNavigationBarSearchInputClicked(e) {
  243. //跳转到搜索页面
  244. this.clickSearch();
  245. },
  246. //点击导航栏 buttons 时触发
  247. onNavigationBarButtonTap(e) {
  248. uni.navigateTo({
  249. url: '/pages/user/notice'
  250. });
  251. },
  252. // #endif
  253. methods: {
  254. // #ifdef H5
  255. IndexShare() {
  256. let obj = this;
  257. let pages = getCurrentPages();
  258. // 获取当前页面
  259. let page = pages[pages.length - 1];
  260. let path = '/#/' + page.route + '?';
  261. // 保存传值
  262. for (let i in page.options) {
  263. path += i + '=' + page.options[i] + '&';
  264. }
  265. console.log(obj.Path);
  266. // 保存邀请人
  267. path += 'spread=' + this.userInfo.uid;
  268. let data = {
  269. link: this.baseURL + '/index/' + path,
  270. title: this.userInfo.nickname + '邀请您进入和合商城',
  271. desc: '欢迎加入和合商城',
  272. imgUrl: 'https://dlzx.liuniu946.com/index/static/img/logo.png'
  273. };
  274. shareLoad(data);
  275. },
  276. // #endif
  277. // 监听切换事件
  278. listChange(e) {
  279. this.checkid = e.detail.current;
  280. },
  281. // 點擊搜索框
  282. clickSearch() {
  283. uni.navigateTo({
  284. url: '/pages/product/search'
  285. });
  286. },
  287. nav(url) {
  288. uni.navigateTo({
  289. url,
  290. fail: () => {
  291. console.log(1);
  292. uni.switchTab({
  293. url
  294. });
  295. }
  296. });
  297. },
  298. showPopup() {
  299. this.$refs.popup.open();
  300. },
  301. close() {
  302. this.$refs.popup.close();
  303. },
  304. //轮播图切换修改背景色
  305. swiperChange(e) {
  306. const index = e.detail.current;
  307. this.swiperCurrent = index;
  308. },
  309. copy(content) {
  310. /**
  311. * 小程序端 和 app端的复制逻辑
  312. */
  313. //#ifndef H5
  314. uni.setClipboardData({
  315. data: content,
  316. success: function() {
  317. console.log('success');
  318. return true;
  319. }
  320. });
  321. //#endif
  322. /**
  323. * H5端的复制逻辑
  324. */
  325. // #ifdef H5
  326. if (!document.queryCommandSupported('copy')) {
  327. //为了兼容有些浏览器 queryCommandSupported 的判断
  328. // 不支持
  329. return false;
  330. }
  331. let textarea = document.createElement('textarea');
  332. textarea.value = content;
  333. textarea.readOnly = 'readOnly';
  334. document.body.appendChild(textarea);
  335. textarea.select(); // 选择对象
  336. textarea.setSelectionRange(0, content.length); //核心
  337. let result = document.execCommand('copy'); // 执行浏览器复制命令
  338. textarea.remove();
  339. return result;
  340. // #endif
  341. },
  342. comfirm(text) {
  343. let obj = this;
  344. let content = text; //需要复制的内容
  345. console.log('复制的内容:', content);
  346. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  347. const result = uniCopy(content);
  348. if (result === false) {
  349. uni.showToast({
  350. title: '不支持'
  351. });
  352. } else {
  353. uni.showToast({
  354. title: '复制成功',
  355. icon: 'none'
  356. });
  357. }
  358. },
  359. bc_code() {
  360. let that = this;
  361. console.log('保存二维码', this.erweima);
  362. uni.downloadFile({
  363. //获得二维码的临时地址
  364. url: this.erweima,
  365. success: res => {
  366. //console.log('获取url',res)
  367. if (res.statusCode == 200) {
  368. uni.saveImageToPhotosAlbum({
  369. filePath: res.tempFilePath, //传入临时地址
  370. success() {
  371. that.$api.msg('保存成功'); //封装的提示
  372. },
  373. fail() {
  374. that.$api.msg('保存失败');
  375. }
  376. });
  377. }
  378. }
  379. });
  380. },
  381. // 请求载入数据
  382. async loadData() {
  383. dhList({ page: 1, limit: 3 }).then(({ data }) => {
  384. if (data.length > 0) {
  385. this.vipList = data;
  386. }
  387. });
  388. loadIndexs({})
  389. .then(({ data }) => {
  390. console.log(data);
  391. this.carouselList = data.banner;
  392. this.swiperLength = this.carouselList.length;
  393. this.dataList = data.likeInfo; //最新商品
  394. uni.stopPullDownRefresh();
  395. })
  396. .catch(e => {
  397. uni.stopPullDownRefresh();
  398. });
  399. // service({}).then(({ data }) => {
  400. // this.erweima = data.service_qr;
  401. // this.weixin = data.service_wechat;
  402. // });
  403. },
  404. //详情页
  405. navToDetailPage(item) {
  406. let id = item.id;
  407. uni.navigateTo({
  408. url: '/pages/product/product?id=' + id
  409. });
  410. },
  411. navToVipDetailPage(item) {
  412. uni.navigateTo({
  413. url: '/pages/product/vipProduct?id=' + item.id
  414. });
  415. },
  416. navto(url) {
  417. uni.switchTab({
  418. url,
  419. fail() {
  420. uni.navigateTo({
  421. url
  422. });
  423. }
  424. });
  425. }
  426. }
  427. };
  428. </script>
  429. <style lang="scss">
  430. page,
  431. .center {
  432. height: auto;
  433. min-height: 100%;
  434. background-color: #ffffff;
  435. }
  436. /* #ifdef MP || APP-PLUS*/
  437. .input-box {
  438. padding: 25rpx;
  439. /* #ifdef APP-PLUS */
  440. margin-top: var(--status-bar-height);
  441. /* #endif */
  442. background-color: #0fc8e4;
  443. height: 44px;
  444. .iconsearch {
  445. font-size: 50rpx;
  446. }
  447. .input-content {
  448. border-radius: 99rpx;
  449. flex-grow: 1;
  450. padding: 5rpx 30rpx;
  451. // background-color: rgba(231, 231, 231, 0.7);
  452. background: #ffffff;
  453. .input {
  454. flex-grow: 1;
  455. input {
  456. font-size: $font-base;
  457. }
  458. }
  459. }
  460. .input-button {
  461. padding-left: 20rpx;
  462. font-size: $font-base;
  463. height: 100%;
  464. }
  465. }
  466. /* #endif */
  467. .top {
  468. width: 1000rpx;
  469. height: 240rpx;
  470. background: linear-gradient(180deg, #08c4e6, #50ead2);
  471. overflow: hidden;
  472. text-align: center;
  473. border-bottom-left-radius: 50%;
  474. border-bottom-right-radius: 50%;
  475. margin-left: -125rpx;
  476. }
  477. .carousel {
  478. width: 700rpx;
  479. height: 300rpx;
  480. border-radius: 14rpx;
  481. margin: 0 auto;
  482. margin-top: calc(-260rpx + var(--status-bar-height));
  483. .bor {
  484. border-radius: 14rpx;
  485. .carousel-item {
  486. image {
  487. width: 100%;
  488. height: 100%;
  489. border-radius: 14rpx;
  490. }
  491. }
  492. }
  493. }
  494. .swiper-dot {
  495. position: relative;
  496. z-index: 10;
  497. margin-top: -40rpx;
  498. display: flex;
  499. justify-content: center;
  500. .swiper-dots-item {
  501. width: 14rpx;
  502. height: 14rpx;
  503. background: #aaaaaa;
  504. border-radius: 50%;
  505. margin: 0 16rpx;
  506. // z-index: 999;
  507. }
  508. .action {
  509. background-color: #ffffff;
  510. }
  511. }
  512. .cate-section {
  513. display: flex;
  514. justify-content: space-around;
  515. align-items: center;
  516. flex-wrap: wrap;
  517. padding: 40rpx 22rpx;
  518. .cate-item {
  519. display: flex;
  520. flex-direction: column;
  521. align-items: center;
  522. font-size: $font-sm + 4rpx;
  523. color: $font-color-dark;
  524. }
  525. .cate-font {
  526. margin-top: -26rpx;
  527. }
  528. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  529. image {
  530. width: 150rpx;
  531. height: 150rpx;
  532. margin-bottom: 14rpx;
  533. border-radius: 50%;
  534. }
  535. }
  536. .xian {
  537. width: 750rpx;
  538. height: 20rpx;
  539. background: #f5f5f5;
  540. }
  541. .shu {
  542. width: 8rpx;
  543. height: 38rpx;
  544. background: #05ab81;
  545. border-radius: 4rpx;
  546. }
  547. .main {
  548. margin-top: 40rpx;
  549. padding: 0 40rpx;
  550. .main-top {
  551. align-items: center;
  552. .main-left {
  553. display: flex;
  554. justify-content: flex-start;
  555. align-items: center;
  556. .main-title {
  557. margin-left: 10rpx;
  558. font-size: 36rpx;
  559. font-family: PingFang SC;
  560. font-weight: bold;
  561. color: #202739;
  562. }
  563. .main-tip {
  564. font-size: 22rpx;
  565. font-family: PingFang SC;
  566. font-weight: bold;
  567. color: #95a0b1;
  568. margin-left: 14rpx;
  569. }
  570. }
  571. }
  572. }
  573. .guess-item {
  574. display: flex;
  575. width: 710rpx;
  576. height: 300rpx;
  577. background: #ffffff;
  578. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  579. border-radius: 10rpx;
  580. padding: 15rpx;
  581. padding-bottom: 150rpx;
  582. margin: 20rpx auto 0;
  583. position: relative;
  584. image {
  585. width: 200rpx;
  586. height: 200rpx;
  587. border-radius: 10rpx;
  588. }
  589. .guess-box {
  590. padding: 12rpx 0 0 24rpx;
  591. width: 436rpx;
  592. .title {
  593. font-size: 36rpx;
  594. padding-left: 4rpx;
  595. font-family: PingFang SC;
  596. font-weight: 500;
  597. color: #333333;
  598. width: 368rpx;
  599. line-height: 36rpx;
  600. .tuanF {
  601. display: inline-block;
  602. margin-right: 4rpx;
  603. position: relative;
  604. top: -6rpx;
  605. .tuan {
  606. display: flex;
  607. align-items: center;
  608. padding: 10rpx;
  609. height: 36rpx;
  610. background: #ffebe9;
  611. border-radius: 18rpx;
  612. .tuan-image {
  613. width: 18rpx;
  614. height: 18rpx;
  615. }
  616. .tuan-font {
  617. display: inline;
  618. font-size: 20rpx;
  619. font-family: PingFang SC;
  620. font-weight: 500;
  621. color: #ff1135;
  622. margin-left: 2rpx;
  623. }
  624. }
  625. }
  626. }
  627. .ping-box {
  628. margin-top: 15rpx;
  629. justify-content: flex-start;
  630. .ping {
  631. margin-left: 10rpx;
  632. height: 39rpx;
  633. background: #fdf7eb;
  634. border-radius: 5rpx;
  635. font-size: 22rpx;
  636. font-family: PingFang SC;
  637. font-weight: 500;
  638. color: #ff911f;
  639. display: flex;
  640. align-items: center;
  641. padding: 0 10rpx;
  642. }
  643. }
  644. .price-box {
  645. margin-top: 50rpx;
  646. justify-content: flex-start;
  647. .yuanprice {
  648. font-size: 26rpx;
  649. font-family: PingFang SC;
  650. font-weight: 500;
  651. text-decoration: line-through;
  652. color: #999999;
  653. padding-right: 6rpx;
  654. }
  655. image {
  656. width: 14rpx;
  657. height: 16rpx;
  658. }
  659. .jiang {
  660. padding-left: 2rpx;
  661. font-size: 24rpx;
  662. font-family: PingFang SC;
  663. font-weight: bold;
  664. color: #b59467;
  665. }
  666. }
  667. .price {
  668. font-size: 36rpx;
  669. font-family: PingFang SC;
  670. font-weight: bold;
  671. color: #ff1135;
  672. }
  673. .btn {
  674. width: 137rpx;
  675. height: 56rpx;
  676. background: #16cc9f;
  677. border-radius: 28rpx;
  678. font-size: 28rpx;
  679. font-family: PingFang SC;
  680. font-weight: 500;
  681. color: #ffffff;
  682. line-height: 56rpx;
  683. text-align: center;
  684. position: absolute;
  685. bottom: 10rpx;
  686. right: 25rpx;
  687. }
  688. }
  689. }
  690. .popup-box {
  691. width: 522rpx;
  692. height: 605rpx;
  693. background-color: #ffffff;
  694. border-radius: 20rpx;
  695. position: relative;
  696. .img {
  697. position: relative;
  698. top: -56rpx;
  699. left: 0;
  700. width: 522rpx;
  701. height: 132rpx;
  702. display: flex;
  703. justify-content: center;
  704. image {
  705. border-radius: 20rpx 20rpx 0 0;
  706. width: 450rpx;
  707. height: 132rpx;
  708. }
  709. }
  710. .mian {
  711. margin-top: -44rpx;
  712. display: flex;
  713. flex-direction: column;
  714. align-items: center;
  715. // padding: 32rpx 32rpx;
  716. background-color: #ffffff;
  717. border-radius: 0 0 20rpx 20rpx;
  718. text-align: center;
  719. .delivery {
  720. font-size: 40rpx;
  721. color: #333333;
  722. display: flex;
  723. align-items: center;
  724. flex-direction: column;
  725. .title {}
  726. image {
  727. margin-top: 48rpx;
  728. width: 172rpx;
  729. height: 160rpx;
  730. }
  731. }
  732. .nocancel {
  733. font-size: 32rpx;
  734. color: #333333;
  735. margin-top: 14rpx;
  736. }
  737. .comfirm-box {
  738. margin-top: 52rpx;
  739. display: flex;
  740. // margin-bottom: 32rpx;
  741. // justify-content: space-around;
  742. .cancel {
  743. display: flex;
  744. align-items: center;
  745. justify-content: center;
  746. width: 197rpx;
  747. height: 74rpx;
  748. border: 1px solid #dcc786;
  749. border-radius: 38rpx;
  750. font-size: 32rpx;
  751. color: #605128;
  752. }
  753. .comfirm {
  754. margin-left: 32rpx;
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. width: 197rpx;
  759. height: 74rpx;
  760. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  761. border-radius: 38px;
  762. font-size: 32rpx;
  763. color: #605128;
  764. }
  765. }
  766. }
  767. }
  768. .close_icon {
  769. width: 60rpx;
  770. height: 60rpx;
  771. margin: 88rpx auto 0;
  772. image {
  773. width: 100%;
  774. height: 100%;
  775. }
  776. }
  777. $grey: #95a0b1;
  778. $text: #333333;
  779. $red: #ff4c4c;
  780. // 金豆专区
  781. .goldenBean {
  782. font-family: PingFang-SC-Bold;
  783. margin-top: 20rpx;
  784. padding: 20rpx;
  785. background-color: #fff;
  786. .title {
  787. display: flex;
  788. line-height: 40rpx;
  789. .title-t {
  790. color: $text;
  791. font-weight: bold;
  792. margin: 0 20rpx;
  793. font-size: 34rpx;
  794. }
  795. .about {
  796. font-size: 24rpx;
  797. color: $grey;
  798. }
  799. image {
  800. width: 40rpx;
  801. height: 40rpx;
  802. }
  803. }
  804. .box {
  805. margin: 20rpx 0;
  806. border-radius: 10rpx;
  807. overflow: hidden;
  808. .header {
  809. padding: 20rpx;
  810. background: linear-gradient(90deg, #ff8f44 0%, #ffbd70 100%);
  811. padding-bottom: 80rpx;
  812. width: 100%;
  813. display: flex;
  814. justify-content: space-between;
  815. color: #fff;
  816. .left {
  817. line-height: 40rpx;
  818. .title {
  819. font-size: 32rpx;
  820. }
  821. .about {
  822. opacity: 0.9;
  823. font-size: 24rpx;
  824. }
  825. }
  826. .right {
  827. margin: auto 0;
  828. image {
  829. width: 40rpx;
  830. height: 40rpx;
  831. }
  832. }
  833. }
  834. .footer {
  835. height: 300rpx;
  836. background-color: $page-color-base;
  837. padding: 20rpx;
  838. margin-bottom: -50rpx;
  839. .list {
  840. display: flex;
  841. overflow: auto;
  842. border-radius: 10rpx;
  843. position: relative;
  844. top: -90rpx;
  845. background-color: #fff;
  846. .item {
  847. padding: 30rpx;
  848. border-right: solid 1rpx $page-color-base;
  849. .name {
  850. font-size: 24rpx;
  851. color: #3f3f3f;
  852. width: 150rpx;
  853. overflow: hidden;
  854. text-overflow: ellipsis;
  855. }
  856. .price {
  857. font-size: 28rpx;
  858. color: $red;
  859. font-weight: bold;
  860. }
  861. .img {
  862. image {
  863. width: 150rpx;
  864. height: 150rpx;
  865. }
  866. }
  867. }
  868. }
  869. }
  870. }
  871. }
  872. </style>