index.vue 18 KB

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