index.vue 19 KB

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