index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <template>
  2. <view>
  3. <!-- <u-notice-bar :autoplay="autoplay" :playState="playState" :speed="speed" :mode="mode" @click="click"
  4. :show="show" :type="type" :list="list" :moreIcon="moreIcon" :volumeIcon="volumeIcon" :duration="duration"
  5. bgColor="" padding="8rpx 24rpx" :isCircular="isCircular"
  6. style="position: absolute;top: 12%;z-index: 9;width: 100%;"></u-notice-bar> -->
  7. <!-- 状态栏 -->
  8. <view class="status" :style="{position:headerPosition,backgroundColor:bgColor}"></view>
  9. <!-- 漂浮头部 -->
  10. <view class="header" :style="{position:headerPosition,backgroundColor:bgColor}">
  11. <view class="scan">
  12. <view class="icon iconfont icon-saoyisao" @tap="scan"></view>
  13. </view>
  14. <view class="input">
  15. <view class="icon iconfont icon-search"></view>
  16. <input disabled placeholder="车险" @tap="toSearch()" />
  17. </view>
  18. <view class="menu">
  19. <image mode="aspectFill" :src="avatar"
  20. @click='isShow?navigate({url:"/pages/realname/realname"},"navigateTo",true):""'></image>
  21. </view>
  22. </view>
  23. <!-- 公共组件-每个页面必须引入 -->
  24. <public-module></public-module>
  25. <!-- 占位 -->
  26. <view class="place" :style="{backgroundColor:'#fff'}"></view>
  27. <!-- 实名认证提示 -->
  28. <view class="" @click='navigate({url:"/pages/realname/realname"},"navigateTo",true)' v-show="isShow">
  29. <u-notice-bar :list="list" type="error" padding="8rpx 24rpx"></u-notice-bar>
  30. </view>
  31. <!-- 轮播图 -->
  32. <swiper-image :resdata="swiperList" @changeEvent="swiperChange"></swiper-image>
  33. <!-- 分类轮播 -->
  34. <index-nav :resdata="categoryList" :row="2"></index-nav>
  35. <!-- 推荐商品 -->
  36. <view class="pick" :style="{'background':'#fff'}">
  37. <view class="box">
  38. <view class="title">
  39. <view class="big">推荐商品</view>
  40. <view class="small">好货推荐 低价精选</view>
  41. </view>
  42. <view class="product-list">
  43. <view v-for="product in pickList" :key="product.goods_id" @tap="toPick(product)">
  44. <image mode="widthFix" :src="product.img"></image>
  45. <view class="price">{{product.price}}起</view>
  46. <view class="slogan">{{product.slogan}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 广告横幅 -->
  52. <view class="banner">
  53. <image mode="widthFix" src="/static/image/index/ad-img/ad.jpg"></image>
  54. </view>
  55. <!-- 商品列表 -->
  56. <view class="goods-list">
  57. <view class="title">— 猜你喜欢 —</view>
  58. <view class="product-list">
  59. <view class="product" v-for="product in productList" :key="product.goods_id" @tap="toGoods(product)">
  60. <image mode="widthFix" :src="product.img"></image>
  61. <view class="name">{{product.name}}</view>
  62. <view class="info">
  63. <view class="price">¥{{product.price}} 起</view>
  64. <view class="slogan">{{product.slogan}}</view>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="loading-text">{{loadingText}}</view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import swiperImage from "@/components/modules/index/swiper-image.vue"
  74. import indexNav from "@/components/modules/index/index-nav.vue"
  75. import bankBin from "@/common/bankcardinfo.js"
  76. import store from '@/store';
  77. import {
  78. pathToBase64,
  79. base64ToPath
  80. } from '@/common/image-tools-base64.js';
  81. import {
  82. mapState
  83. } from "vuex"
  84. export default {
  85. components: {
  86. swiperImage,
  87. indexNav,
  88. },
  89. data() {
  90. return {
  91. avatar: "",
  92. xuelishow: false,
  93. border: false,
  94. form: {
  95. name: "", //姓名
  96. identity: "", //身份证号
  97. birthday: "", //出生日期
  98. addressnow: "", //居住地址
  99. education: "", //学历
  100. bankname: "", //开户行
  101. accountno: "", //银行卡号
  102. },
  103. labelPosition: 'left',
  104. errorType: ['message'],
  105. rules: {
  106. name: [{
  107. required: true,
  108. message: '请输入姓名',
  109. trigger: 'blur',
  110. }, ]
  111. },
  112. contentSlot: true,
  113. showTitle: false,
  114. asyncClose: false,
  115. isShow: false,
  116. autoplay: true,
  117. type: 'warning',
  118. list: ['欢迎登录晋掌柜,请点击此处文字进行实名验证,方可使用所有功能。'],
  119. mode: 'horizontal',
  120. playState: 'play',
  121. speed: 160,
  122. duration: 1000,
  123. moreIcon: true,
  124. volumeIcon: true,
  125. isCircular: true,
  126. current: 0,
  127. banben: {},
  128. bgColor: "#4B75EB",
  129. //轮播
  130. swiperList: [],
  131. //分类
  132. categoryList: [{
  133. cat_id: 0,
  134. img: '/static/image/index/category-img/0.png',
  135. title: '车险',
  136. src: '/pages/carInsure2/entry'
  137. },
  138. {
  139. cat_id: 1,
  140. img: '/static/image/index/category-img/1.png',
  141. title: '车损测算',
  142. // src: '/pages/carInsure2/entry'
  143. },
  144. {
  145. cat_id: 2,
  146. img: '/static/image/index/category-img/2.png',
  147. title: '道路救援',
  148. src: '/pages/roadRescue/index'
  149. },
  150. {
  151. cat_id: 3,
  152. img: '/static/image/index/category-img/3.png',
  153. title: '司法鉴定',
  154. src: ''
  155. },
  156. {
  157. cat_id: 4,
  158. img: '/static/image/index/category-img/4.png',
  159. title: '掌柜商城',
  160. src: ''
  161. },
  162. {
  163. cat_id: 5,
  164. img: '/static/image/index/category-img/5.png',
  165. title: '洗车',
  166. src: ''
  167. },
  168. {
  169. cat_id: 6,
  170. img: '/static/image/index/category-img/6.png',
  171. title: '审车',
  172. src: ''
  173. },
  174. {
  175. cat_id: 7,
  176. img: '/static/image/index/category-img/7.png',
  177. title: '代驾',
  178. src: ''
  179. },
  180. {
  181. cat_id: 8,
  182. img: '/static/image/index/category-img/8.png',
  183. title: '车检代办',
  184. src: '/pages/caragent/index'
  185. },
  186. {
  187. cat_id: 9,
  188. img: '/static/image/index/category-img/9.png',
  189. title: '一键挪车',
  190. src: '/pages/ticket/ticket'
  191. }
  192. ],
  193. //推荐商品 3个
  194. pickList: [{
  195. goods_id: 0,
  196. img: '/static/image/index/pick-img/p1.jpg',
  197. price: '¥5.85',
  198. slogan: '限时抢购'
  199. },
  200. {
  201. goods_id: 1,
  202. img: '/static/image/index/pick-img/p2.jpg',
  203. price: '¥270',
  204. slogan: '精选商品'
  205. },
  206. {
  207. goods_id: 2,
  208. img: '/static/image/index/pick-img/p3.jpg',
  209. price: '¥281',
  210. slogan: '今日疯抢'
  211. }
  212. ],
  213. //猜你喜欢列表
  214. productList: [{
  215. goods_id: 0,
  216. img: '/static/image/index/img/p1.jpg',
  217. name: '平安个人意外伤害险',
  218. price: '25.8',
  219. slogan: '1235人购买'
  220. },
  221. {
  222. goods_id: 1,
  223. img: '/static/image/index/img/p2.jpg',
  224. name: '一年期意外险',
  225. price: '1.2',
  226. slogan: '1235人购买'
  227. },
  228. {
  229. goods_id: 2,
  230. img: '/static/image/index/img/p3.jpg',
  231. name: '平安行·国内自助游保险',
  232. price: '88',
  233. slogan: '1235人购买'
  234. },
  235. {
  236. goods_id: 3,
  237. img: '/static/image/index/img/p4.jpg',
  238. name: '企业团体综合意外险',
  239. price: '1.9',
  240. slogan: '1235人购买'
  241. },
  242. {
  243. goods_id: 4,
  244. img: '/static/image/index/img/p5.jpg',
  245. name: '平安行·境内自驾旅游保险',
  246. price: '442',
  247. slogan: '1235人购买'
  248. },
  249. {
  250. goods_id: 5,
  251. img: '/static/image/index/img/p6.jpg',
  252. name: '平安行·境内节假日旅游保险',
  253. price: '257',
  254. slogan: '1235人购买'
  255. },
  256. {
  257. goods_id: 6,
  258. img: '/static/image/index/img/p7.jpg',
  259. name: '平安行·境内高原旅游保险',
  260. price: '0.2',
  261. slogan: '1235人购买'
  262. },
  263. {
  264. goods_id: 7,
  265. img: '/static/image/index/img/p8.jpg',
  266. name: '儿童综合医疗保险',
  267. price: '1400',
  268. slogan: '1235人购买'
  269. },
  270. {
  271. goods_id: 8,
  272. img: '/static/image/index/img/p9.jpg',
  273. name: '女性关爱保险',
  274. price: '70',
  275. slogan: '1235人付款'
  276. },
  277. {
  278. goods_id: 9,
  279. img: '/static/image/index/img/p10.jpg',
  280. name: '全球交通意外保险',
  281. price: '74.5',
  282. slogan: '1235人购买'
  283. }
  284. ],
  285. headerPosition: "fixed",
  286. loadingText: "正在加载...",
  287. getApplicationStatus: "",
  288. };
  289. },
  290. computed: {
  291. ...mapState(['userInfo'])
  292. },
  293. onPageScroll(e) {
  294. //兼容iOS端下拉时顶部漂移
  295. if (e.scrollTop >= 0) {
  296. this.headerPosition = "fixed";
  297. } else {
  298. this.headerPosition = "absolute";
  299. }
  300. },
  301. onShow() {
  302. if (this.userInfo.sysUser.headSculpture) {
  303. this.avatar = this.$base.baseUrl + this.userInfo.sysUser.headSculpture;
  304. } else {
  305. this.avatar = "/static/image/my/avatar1.png"
  306. }
  307. const arr = uni.getStorageSync('historyInfo');
  308. if (arr) {
  309. uni.removeStorageSync('historyInfo');
  310. }
  311. },
  312. async onLoad() {
  313. // uni.startPullDownRefresh();
  314. this.isShow = this.userInfo.sysUser.status == '2' ? true : false
  315. let res = await this.$http.get('/apps/getApplicationStatus?jobNumber=' + this.userInfo.sysUser.id);
  316. if (res.code == 200) {
  317. if (res.data == '0') {
  318. this.getApplicationStatus = res.data;
  319. }
  320. } else {
  321. }
  322. let banner = await this.$http.get('/apps/getCarousel');
  323. this.swiperList = banner.data;
  324. this.bgColor = this.swiperList[0].color;
  325. },
  326. // async onReady() {
  327. // this.bgColor = this.swiperList[0].color;
  328. // },
  329. //下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
  330. async onPullDownRefresh() {
  331. let userInfoRes = await this.$http.get('/user/loginUser')
  332. // let userInfoRes = await this.$http.get('/esmUserInternal/findById?id=' + this.userInfo.sysUser.id, {}, {});
  333. uni.stopPullDownRefresh();
  334. store.commit('setUserModules', {
  335. title: 'userInfo',
  336. data: {
  337. sysUser: {
  338. ...userInfoRes.data
  339. }
  340. }
  341. })
  342. if (userInfoRes.data.status == 2) {
  343. this.isShow = true;
  344. } else {
  345. this.isShow = false;
  346. }
  347. },
  348. //上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
  349. onReachBottom() {
  350. uni.showLoading({
  351. mask: true,
  352. title: "Loading..."
  353. })
  354. let len = this.productList.length;
  355. if (len >= 40) {
  356. uni.hideLoading()
  357. this.loadingText = "到底了";
  358. return false;
  359. }
  360. let end_goods_id = this.productList[len - 1].goods_id;
  361. for (let i = 1; i <= 10; i++) {
  362. let goods_id = end_goods_id + i;
  363. let goods_name = this.productList[i - 1].name;
  364. let goods_price = this.productList[i - 1].price;
  365. let p = {
  366. goods_id: goods_id,
  367. img: '/static/image/index/img/p' + (goods_id % 10 == 0 ? 10 : goods_id % 10) + '.jpg',
  368. name: goods_name,
  369. price: goods_price,
  370. slogan: '1235人购买'
  371. };
  372. this.productList.push(p);
  373. }
  374. setTimeout(() => {
  375. uni.hideLoading()
  376. }, 1000)
  377. },
  378. // async onShow() {
  379. // if (this.userInfo.sysUser.status == '2') {
  380. // this.show = true;
  381. // } else {
  382. // this.show = false;
  383. // }
  384. // },
  385. methods: {
  386. nameClick() {
  387. this.navigate({
  388. url: "/pages/realname/realname"
  389. }, "navigateTo", true)
  390. },
  391. async chooseImage() {
  392. var _this = this;
  393. uni.chooseImage({
  394. count: 1,
  395. sizeType: "compressed",
  396. success(res) {
  397. pathToBase64(res.tempFilePaths[0])
  398. .then(async base64 => {
  399. var paramImg = {
  400. "image": base64, //图片base64
  401. "imgType": "1" //1身份证 2行驶证
  402. }
  403. let res2 = await _this.$http.post('/api/huanong/imgAI', paramImg);
  404. var data = res2.data.customerInfo;
  405. data.identifyValidDate = data.identifyValidDate.substr(0, 4) + '-' +
  406. data.identifyValidDate.substr(4, 2) + "-" + data.identifyValidDate
  407. .substr(6, 2)
  408. _this.form.name = data.name;
  409. _this.form.identifyNumber = data.identifyNumber;
  410. _this.form.identifyValidDate = data.identifyValidDate;
  411. })
  412. }
  413. });
  414. },
  415. // 验证银行卡
  416. async validateBankCard() {
  417. var that = this;
  418. that.bankname = "";
  419. await bankBin.getBankBin(this.form.name4)
  420. .then((data) => {
  421. that.form.name5 = data.bankName;
  422. return true;
  423. })
  424. .catch((err) => {
  425. return uni.showToast({
  426. title: err.split(":")[1],
  427. icon: "none"
  428. });
  429. })
  430. },
  431. //点击通知
  432. async click(index) {
  433. let res1 = await this.$http.get('/apps/getApplicationStatus?jobNumber=' + this.userInfo.sysUser.id);
  434. if (res1.code == 200) {
  435. this.getApplicationStatus = res1.data;
  436. if (this.getApplicationStatus == '0') {
  437. uni.showToast({
  438. icon: "none",
  439. title: '实名认证等待审核中',
  440. duration: 1500
  441. })
  442. } else if (this.getApplicationStatus == '3') {
  443. uni.showToast({
  444. icon: "none",
  445. title: '实名认证不通过,请修改后提交',
  446. duration: 1500
  447. })
  448. setTimeout(() => {
  449. uni.navigateTo({
  450. url: '/pages/user/certification'
  451. })
  452. }, 1000)
  453. }
  454. } else if (res1.code != '200') {
  455. setTimeout(() => {
  456. uni.navigateTo({
  457. url: '/pages/user/infoInput'
  458. })
  459. }, 1000)
  460. }
  461. if (res1.code == 200) {
  462. this.getApplicationStatus = res1.data;
  463. }
  464. },
  465. // 改变头部颜色
  466. swiperChange(event) {
  467. this.bgColor = this.swiperList[event.detail.current].color;
  468. },
  469. //扫一扫
  470. scan() {
  471. uni.scanCode({
  472. success: async (res) => {
  473. let uuid = this.getParameterByName("uuid", res.result)
  474. let resCode = await this.$http.get('/scanQrCode?uuid=' + uuid);
  475. }
  476. });
  477. },
  478. //搜索跳转
  479. toSearch() {
  480. // uni.showToast({title: "建议跳转到新页面做搜索功能"});
  481. },
  482. //推荐商品跳转
  483. toPick(e) {
  484. // uni.showToast({title: '推荐商品'+e.goods_id});
  485. },
  486. //商品跳转
  487. toGoods(e) {
  488. // uni.showToast({title: '商品'+e.goods_id});
  489. },
  490. getParameterByName(name, url) {
  491. if (!url) url = window.location.href;
  492. name = name.replace(/[\[\]]/g, '\\$&');
  493. var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
  494. results = regex.exec(url);
  495. if (!results) return null;
  496. if (!results[2]) return '';
  497. return decodeURIComponent(results[2].replace(/\+/g, ' '));
  498. }
  499. }
  500. };
  501. </script>
  502. <style>
  503. .icon {
  504. font-size: 50upx;
  505. font-style: normal;
  506. color: #ffffff;
  507. }
  508. .status {
  509. width: 100%;
  510. height: 0;
  511. /* #ifdef APP-PLUS */
  512. height: var(--status-bar-height);
  513. /* #endif */
  514. position: fixed;
  515. top: 0;
  516. z-index: 999;
  517. }
  518. .header {
  519. width: 100%;
  520. height: 100upx;
  521. display: flex;
  522. position: fixed;
  523. top: 0;
  524. /* #ifdef APP-PLUS */
  525. top: var(--status-bar-height);
  526. /* #endif */
  527. z-index: 996;
  528. }
  529. .header .scan {
  530. width: 100upx;
  531. height: 100upx;
  532. flex-shrink: 1;
  533. display: flex;
  534. justify-content: center;
  535. align-items: center;
  536. }
  537. .header .input {
  538. width: calc(100% - 200upx);
  539. display: flex;
  540. justify-content: center;
  541. align-items: center;
  542. position: relative;
  543. }
  544. .header .input input {
  545. width: calc(100% - 60upx);
  546. height: 60upx;
  547. background-color: #ffffff;
  548. border-radius: 60upx;
  549. padding-left: 60upx;
  550. font-size: 30upx;
  551. }
  552. .header .input .icon {
  553. width: 60upx;
  554. height: 60upx;
  555. position: absolute;
  556. color: #a18090;
  557. z-index: 996;
  558. top: 20upx;
  559. left: 0;
  560. font-size: 40upx;
  561. display: flex;
  562. justify-content: center;
  563. align-items: center;
  564. }
  565. .header .menu {
  566. background-color: #FFFFFF;
  567. border-radius: 50%;
  568. box-sizing: border-box;
  569. margin: 20upx;
  570. width: 60upx;
  571. height: 60upx;
  572. flex-shrink: 1;
  573. display: flex;
  574. justify-content: center;
  575. align-items: center;
  576. }
  577. .header .menu image {
  578. width: 50upx;
  579. height: 50upx;
  580. border-radius: 60upx;
  581. }
  582. /* 占位 */
  583. .place {
  584. /* #ifdef APP-PLUS */
  585. margin-top: var(--status-bar-height);
  586. /* #endif */
  587. height: 100upx;
  588. }
  589. .pick {
  590. padding: 0 2.5vw 2.5vw 2.5vw;
  591. }
  592. .pick .box {
  593. width: 100%;
  594. border-radius: 20upx;
  595. background-color: #ffffff;
  596. }
  597. .pick .box .title {
  598. display: flex;
  599. justify-content: flex-start;
  600. align-items: flex-end;
  601. height: 60upx;
  602. border-bottom: solid 1upx #eee;
  603. padding-bottom: 10upx;
  604. }
  605. .pick .box .title .big {
  606. font-size: 34upx;
  607. padding-left: 20upx;
  608. color: #46434f;
  609. }
  610. .pick .box .title .small {
  611. font-size: 24upx;
  612. padding-left: 20upx;
  613. color: #827f8b;
  614. }
  615. .pick .box .product-list {
  616. padding-top: 15upx;
  617. box-sizing: border-box;
  618. overflow: hidden;
  619. }
  620. .pick .box .product-list>view {
  621. background-color: #f8f8f8;
  622. display: inline-block;
  623. width: calc(50% - 10upx);
  624. position: relative;
  625. box-sizing: border-box;
  626. margin: 5upx;
  627. float: left;
  628. }
  629. .pick .box .product-list>view:nth-child(1) {
  630. height: 390upx;
  631. }
  632. .pick .box .product-list>view:nth-child(2),
  633. .pick .box .product-list>view:nth-child(3) {
  634. height: 190upx;
  635. }
  636. .pick .box .product-list>view:nth-child(1) .price {
  637. color: #e65339;
  638. font-size: 26upx;
  639. position: absolute;
  640. bottom: 6upx;
  641. left: 8upx;
  642. }
  643. .pick .box .product-list>view:nth-child(1) .slogan {
  644. color: #807c87;
  645. font-size: 26upx;
  646. position: absolute;
  647. bottom: 6upx;
  648. right: 15upx;
  649. }
  650. .pick .box .product-list>view:nth-child(1) image {
  651. width: 100%;
  652. height: 350upx !important;
  653. padding: 15upx;
  654. box-sizing: border-box;
  655. margin-bottom: 40upx;
  656. }
  657. .pick .box .product-list>view:nth-child(2),
  658. .pick .box .product-list>view:nth-child(3) {
  659. padding: 10upx;
  660. box-sizing: border-box;
  661. }
  662. .pick .box .product-list>view:nth-child(2) image,
  663. .pick .box .product-list>view:nth-child(3) image {
  664. width: calc(50% - 5upx);
  665. height: 170upx !important;
  666. }
  667. .pick .box .product-list>view:nth-child(2) .price,
  668. .pick .box .product-list>view:nth-child(3) .price {
  669. position: absolute;
  670. top: 25%;
  671. left: 55%;
  672. color: #e65339;
  673. font-size: 30upx;
  674. }
  675. .pick .box .product-list>view:nth-child(2) .slogan,
  676. .pick .box .product-list>view:nth-child(3) .slogan {
  677. position: absolute;
  678. top: 60%;
  679. left: 55%;
  680. color: #807c87;
  681. font-size: 26upx;
  682. }
  683. .banner image {
  684. width: 100%;
  685. }
  686. .goods-list {
  687. background-color: #f4f4f4;
  688. }
  689. .goods-list .title {
  690. width: 100%;
  691. display: flex;
  692. justify-content: center;
  693. align-items: center;
  694. height: 60upx;
  695. color: #979797;
  696. font-size: 24upx;
  697. }
  698. .goods-list .loading-text {
  699. width: 100%;
  700. display: flex;
  701. justify-content: center;
  702. align-items: center;
  703. height: 60upx;
  704. color: #979797;
  705. font-size: 24upx;
  706. }
  707. .goods-list .product-list {
  708. padding: 0 2.5% 2.5vw 2.5%;
  709. display: flex;
  710. justify-content: space-between;
  711. flex-wrap: wrap;
  712. }
  713. .goods-list .product-list .product {
  714. width: 48.75%;
  715. border-radius: 20upx;
  716. background-color: #fff;
  717. margin: 0 0 15upx 0;
  718. }
  719. .goods-list .product-list .product image {
  720. width: 100%;
  721. border-radius: 20upx 20upx 0 0;
  722. }
  723. .goods-list .product-list .product .name {
  724. width: 92%;
  725. padding: 10upx 4%;
  726. display: -webkit-box;
  727. -webkit-box-orient: vertical;
  728. -webkit-line-clamp: 1;
  729. text-align: justify;
  730. overflow: hidden;
  731. font-size: 30upx;
  732. }
  733. .goods-list .product-list .product .info {
  734. display: flex;
  735. justify-content: space-between;
  736. align-items: flex-end;
  737. width: 92%;
  738. padding: 10upx 4% 10upx 4%;
  739. }
  740. .goods-list .product-list .product .info .price {
  741. color: #e65339;
  742. font-size: 30upx;
  743. font-weight: 600;
  744. }
  745. .goods-list .product-list .product .info .slogan {
  746. color: #807c87;
  747. font-size: 24upx;
  748. }
  749. </style>