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" @click='isShow?navigate({url:"/pages/realname/realname"},"navigateTo",true):""'></image>
  22. </view>
  23. </view>
  24. <!-- 公共组件-每个页面必须引入 -->
  25. <public-module></public-module>
  26. <!-- 占位 -->
  27. <view class="place" :style="{backgroundColor:'#fff'}"></view>
  28. <!-- 实名认证提示 -->
  29. <u-notice-bar
  30. :list="list"
  31. v-show="isShow"
  32. type="error"
  33. padding="8rpx 24rpx"
  34. @click='navigate({url:"/pages/realname/realname"},"navigateTo",true)'
  35. ></u-notice-bar>
  36. <!-- 轮播图 -->
  37. <swiper-image :resdata="swiperList" @changeEvent="swiperChange"></swiper-image>
  38. <!-- 分类轮播 -->
  39. <view class="px-2">
  40. <view class="py-1" style="border-radius: 20upx;background-color: #ffffff;">
  41. <index-nav :resdata="categoryList" :row="2"></index-nav>
  42. </view>
  43. </view>
  44. <!-- 推荐商品 -->
  45. <view class="pick" :style="{'background':'#fff'}">
  46. <view class="box">
  47. <view class="title">
  48. <view class="big">推荐商品</view>
  49. <view class="small">好货推荐 低价精选</view>
  50. </view>
  51. <view class="product-list">
  52. <view v-for="product in pickList" :key="product.goods_id" @tap="toPick(product)">
  53. <image mode="widthFix" :src="product.img"></image>
  54. <view class="price">{{product.price}}起</view>
  55. <view class="slogan">{{product.slogan}}</view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 广告横幅 -->
  61. <view class="banner">
  62. <image mode="widthFix" src="/static/image/index/ad-img/ad.jpg"></image>
  63. </view>
  64. <!-- 商品列表 -->
  65. <view class="goods-list">
  66. <view class="title">— 猜你喜欢 —</view>
  67. <view class="product-list">
  68. <view class="product" v-for="product in productList" :key="product.goods_id" @tap="toGoods(product)">
  69. <image mode="widthFix" :src="product.img"></image>
  70. <view class="name">{{product.name}}</view>
  71. <view class="info">
  72. <view class="price">¥{{product.price}} 起</view>
  73. <view class="slogan">{{product.slogan}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="loading-text">{{loadingText}}</view>
  78. </view>
  79. </view>
  80. </template>
  81. <script>
  82. import swiperImage from "@/components/modules/index/swiper-image.vue"
  83. import indexNav from "@/components/modules/index/index-nav.vue"
  84. import appUpdate from "@/components/yzhua006-update/app-update.vue"; //app更新组件
  85. import bankBin from "@/common/bankcardinfo.js"
  86. import store from '@/store';
  87. import {
  88. pathToBase64,
  89. base64ToPath
  90. } from '@/common/image-tools-base64.js';
  91. import {
  92. mapState
  93. } from "vuex"
  94. export default {
  95. components: {
  96. swiperImage,
  97. indexNav,
  98. appUpdate
  99. },
  100. data() {
  101. return {
  102. xuelishow: false,
  103. border: false,
  104. form: {
  105. name: "", //姓名
  106. identity: "", //身份证号
  107. birthday: "", //出生日期
  108. addressnow: "", //居住地址
  109. education: "", //学历
  110. bankname: "", //开户行
  111. accountno: "", //银行卡号
  112. },
  113. labelPosition: 'left',
  114. errorType: ['message'],
  115. rules: {
  116. name: [{
  117. required: true,
  118. message: '请输入姓名',
  119. trigger: 'blur',
  120. }, ]
  121. },
  122. contentSlot: true,
  123. showTitle: false,
  124. asyncClose: false,
  125. isShow: false,
  126. autoplay: true,
  127. type: 'warning',
  128. list: ['欢迎登录晋掌柜,请点击此处文字进行实名验证,方可使用所有功能。'],
  129. mode: 'horizontal',
  130. playState: 'play',
  131. speed: 160,
  132. duration: 1000,
  133. moreIcon: true,
  134. volumeIcon: true,
  135. isCircular: true,
  136. current: 0,
  137. banben: {},
  138. bgColor: "#4B75EB",
  139. //轮播
  140. swiperList: [],
  141. //分类
  142. categoryList: [{
  143. cat_id: 0,
  144. img: '/static/image/index/category-img/0.png',
  145. title: '车险',
  146. src: '/pages/carInsure/entry'
  147. },
  148. {
  149. cat_id: 1,
  150. img: '/static/image/index/category-img/1.png',
  151. title: '车损测算',
  152. src: ''
  153. },
  154. {
  155. cat_id: 2,
  156. img: '/static/image/index/category-img/2.png',
  157. title: '道路救援',
  158. src: ''
  159. },
  160. {
  161. cat_id: 3,
  162. img: '/static/image/index/category-img/3.png',
  163. title: '司法鉴定',
  164. src: ''
  165. },
  166. {
  167. cat_id: 4,
  168. img: '/static/image/index/category-img/4.png',
  169. title: '掌柜商城',
  170. src: ''
  171. },
  172. {
  173. cat_id: 5,
  174. img: '/static/image/index/category-img/5.png',
  175. title: '洗车',
  176. src: ''
  177. },
  178. {
  179. cat_id: 6,
  180. img: '/static/image/index/category-img/6.png',
  181. title: '审车',
  182. src: ''
  183. },
  184. {
  185. cat_id: 7,
  186. img: '/static/image/index/category-img/7.png',
  187. title: '代驾',
  188. src: ''
  189. },
  190. {
  191. cat_id: 8,
  192. img: '/static/image/index/category-img/8.png',
  193. title: '车检代办',
  194. src: '/pages/caragent/index'
  195. },
  196. {
  197. cat_id: 9,
  198. img: '/static/image/index/category-img/9.png',
  199. title: '一键挪车',
  200. src: '/pages/ticket/ticket'
  201. }
  202. ],
  203. //推荐商品 3个
  204. pickList: [{
  205. goods_id: 0,
  206. img: '/static/image/index/pick-img/p1.jpg',
  207. price: '¥5.85',
  208. slogan: '限时抢购'
  209. },
  210. {
  211. goods_id: 1,
  212. img: '/static/image/index/pick-img/p2.jpg',
  213. price: '¥270',
  214. slogan: '精选商品'
  215. },
  216. {
  217. goods_id: 2,
  218. img: '/static/image/index/pick-img/p3.jpg',
  219. price: '¥281',
  220. slogan: '今日疯抢'
  221. }
  222. ],
  223. //猜你喜欢列表
  224. productList: [{
  225. goods_id: 0,
  226. img: '/static/image/index/img/p1.jpg',
  227. name: '平安个人意外伤害险',
  228. price: '25.8',
  229. slogan: '1235人购买'
  230. },
  231. {
  232. goods_id: 1,
  233. img: '/static/image/index/img/p2.jpg',
  234. name: '一年期意外险',
  235. price: '1.2',
  236. slogan: '1235人购买'
  237. },
  238. {
  239. goods_id: 2,
  240. img: '/static/image/index/img/p3.jpg',
  241. name: '平安行·国内自助游保险',
  242. price: '88',
  243. slogan: '1235人购买'
  244. },
  245. {
  246. goods_id: 3,
  247. img: '/static/image/index/img/p4.jpg',
  248. name: '企业团体综合意外险',
  249. price: '1.9',
  250. slogan: '1235人购买'
  251. },
  252. {
  253. goods_id: 4,
  254. img: '/static/image/index/img/p5.jpg',
  255. name: '平安行·境内自驾旅游保险',
  256. price: '442',
  257. slogan: '1235人购买'
  258. },
  259. {
  260. goods_id: 5,
  261. img: '/static/image/index/img/p6.jpg',
  262. name: '平安行·境内节假日旅游保险',
  263. price: '257',
  264. slogan: '1235人购买'
  265. },
  266. {
  267. goods_id: 6,
  268. img: '/static/image/index/img/p7.jpg',
  269. name: '平安行·境内高原旅游保险',
  270. price: '0.2',
  271. slogan: '1235人购买'
  272. },
  273. {
  274. goods_id: 7,
  275. img: '/static/image/index/img/p8.jpg',
  276. name: '儿童综合医疗保险',
  277. price: '1400',
  278. slogan: '1235人购买'
  279. },
  280. {
  281. goods_id: 8,
  282. img: '/static/image/index/img/p9.jpg',
  283. name: '女性关爱保险',
  284. price: '70',
  285. slogan: '1235人付款'
  286. },
  287. {
  288. goods_id: 9,
  289. img: '/static/image/index/img/p10.jpg',
  290. name: '全球交通意外保险',
  291. price: '74.5',
  292. slogan: '1235人购买'
  293. }
  294. ],
  295. headerPosition: "fixed",
  296. loadingText: "正在加载...",
  297. getApplicationStatus: "",
  298. };
  299. },
  300. mounted() {
  301. setTimeout(() => {
  302. this.$refs.app_update.update(); //调用子组件检查更新方法
  303. setTimeout(() => {
  304. if (this.$refs.app_update.popup_show == true && this.$refs.app_update.force == true) {
  305. uni.hideTabBar()
  306. }
  307. }, 100)
  308. }, 2000)
  309. },
  310. computed: {
  311. ...mapState(['avatar', 'userInfo'])
  312. },
  313. onPageScroll(e) {
  314. //兼容iOS端下拉时顶部漂移
  315. if (e.scrollTop >= 0) {
  316. this.headerPosition = "fixed";
  317. } else {
  318. this.headerPosition = "absolute";
  319. }
  320. },
  321. async onLoad() {
  322. // uni.startPullDownRefresh();
  323. this.isShow=this.userInfo.sysUser.status=='2'?true:false
  324. let res = await this.$http.get('/apps/getApplicationStatus?jobNumber=' + this.userInfo.sysUser.id);
  325. if (res.code == 200) {
  326. if (res.data == '0') {
  327. this.getApplicationStatus = res.data;
  328. }
  329. } else {
  330. }
  331. let banner = await this.$http.get('/apps/getCarousel');
  332. this.swiperList=banner.data;
  333. this.bgColor = this.swiperList[0].color;
  334. },
  335. // async onReady() {
  336. // this.bgColor = this.swiperList[0].color;
  337. // },
  338. //下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
  339. async onPullDownRefresh() {
  340. let userInfoRes = await this.$http.get('/user/loginUser')
  341. // let userInfoRes = await this.$http.get('/esmUserInternal/findById?id=' + this.userInfo.sysUser.id, {}, {});
  342. uni.stopPullDownRefresh();
  343. store.commit('setUserModules', {
  344. title: 'userInfo',
  345. data: {
  346. sysUser:{...userInfoRes.data}
  347. }
  348. })
  349. if (userInfoRes.data.status == 2) {
  350. this.isShow = true;
  351. } else {
  352. this.isShow = false;
  353. }
  354. },
  355. //上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
  356. onReachBottom() {
  357. uni.showLoading({
  358. mask: true,
  359. title: "Loading..."
  360. })
  361. let len = this.productList.length;
  362. if (len >= 40) {
  363. uni.hideLoading()
  364. this.loadingText = "到底了";
  365. return false;
  366. }
  367. let end_goods_id = this.productList[len - 1].goods_id;
  368. for (let i = 1; i <= 10; i++) {
  369. let goods_id = end_goods_id + i;
  370. let goods_name = this.productList[i - 1].name;
  371. let goods_price = this.productList[i - 1].price;
  372. let p = {
  373. goods_id: goods_id,
  374. img: '/static/image/index/img/p' + (goods_id % 10 == 0 ? 10 : goods_id % 10) + '.jpg',
  375. name: goods_name,
  376. price: goods_price,
  377. slogan: '1235人购买'
  378. };
  379. this.productList.push(p);
  380. }
  381. setTimeout(() => {
  382. uni.hideLoading()
  383. }, 1000)
  384. },
  385. // async onShow() {
  386. // if (this.userInfo.sysUser.status == '2') {
  387. // this.show = true;
  388. // } else {
  389. // this.show = false;
  390. // }
  391. // },
  392. methods: {
  393. nameClick(){
  394. this.navigate({url:"/pages/realname/realname"},"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>