index.vue 18 KB

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