shopDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <template>
  2. <view class="main">
  3. <navbar :config="config" backColor="#666"></navbar>
  4. <view class="shopCard">
  5. <view class="shop-info">
  6. <image :src="shop.logo" mode=""></image>
  7. <view class="shopNamebox">
  8. <view class="phone-btn" @click="goPhone(shop.customer_service_phone)">售后电话</view>
  9. <view class="shopName">{{ shop.shop_name }}</view>
  10. <view class="shopName_rate">
  11. <rate :value="shop.averageCopy"></rate> {{ shop.average }}分
  12. </view>
  13. </view>
  14. </view>
  15. <template v-if="false">
  16. <view class="shop_item mt30" style="alignItems: flex-start;">
  17. <image src="/static/convenienceService/location2.png" mode=""></image>
  18. <!-- <view>{{ shop.map_punctuation }}{{ shop.address }}></view> -->
  19. <!-- <view>{{shop.province_name+shop.city_name+shop.area_name+shop.community_name+shop.address}}</view> -->
  20. <view>{{shop.province_name+shop.city_name+shop.area_name+shop.address}}</view>
  21. </view>
  22. <view class="shop_item" style="alignItems: flex-start;">
  23. <text class="iconfont2">&#xe651;</text>
  24. <view>营业时间:{{ shop.business_hours }}{{ shop.time_quantum }}</view>
  25. </view>
  26. </template>
  27. <!-- <view class="shop_item mt30" style="alignItems: flex-start;">
  28. <text class="iconfont3 blueicon">&#xe609;</text>
  29. <view @click="goPhone(shop.customer_service_phone)">售后电话:{{ $mUtil.phoneChange(shop.customer_service_phone) }}</view>
  30. </view> -->
  31. <view class="searchBox">
  32. <image src="/static/convenienceService/search.png" mode=""></image>
  33. <input @click="searchClick" v-model="value" type="text" placeholder-style="color:#B3B3B3;fontSize:28rpx"
  34. placeholder="可搜索本店商品" />
  35. </view>
  36. </view>
  37. <view class="limitCard" v-if="currSeckill && currSeckill.length > 0">
  38. <view class="limitCard_top">
  39. <view class="limitCard_top_title">限时秒杀</view>
  40. <view class="limitCard_top_lab">{{currTime}}点场 剩余</view>
  41. <!-- <view class="limitCard_top_time">3天 17 : 26 : 35</view> -->
  42. <view class="limitCard_top_time">
  43. <uni-countdown :backgroundColor="'none'" @timeup="overDown2" :color="'#fff'" :splitorColor="'#fff'"
  44. :show-day="time2[0] > 0" :day="time2[0]" :hour="time2[1]" :minute="time2[2]" :second="time2[3]">
  45. </uni-countdown>
  46. </view>
  47. </view>
  48. <swiper class="swiper" indicator-color="#EDEDED" indicator-active-color="#3775F6" circular
  49. :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
  50. <swiper-item v-for="(item,key) in currSeckill" :key="key">
  51. <view class="listBox">
  52. <view class="listBox_item" v-for="itemSon in item"
  53. @click="goProductDetails('/pages/product/goods/seckillGoods?id=' + itemSon.id)"
  54. :key="item.id">
  55. <image v-if="itemSon && itemSon.cover" :src="itemSon.cover" mode=""></image>
  56. <!-- <view>¥<text>64.</text>20</view> -->
  57. <view class="">
  58. <rich-text :nodes="$mUtil.priceBigSmall(itemSon.min_price)"></rich-text>
  59. </view>
  60. </view>
  61. </view>
  62. </swiper-item>
  63. </swiper>
  64. </view>
  65. <view class="groupCard" v-if="groupList && groupList.length > 0">
  66. <view class="group_title">
  67. <view class="group_title_l">拼团购</view>
  68. <view class="group_title_r"
  69. @click="goProductDetails('/pages/research/nearby/timeLimit?shopid='+shopId)">
  70. 查看更多
  71. <text class="iconfont2">&#xe65f;</text>
  72. </view>
  73. </view>
  74. <view class="goodsListBox">
  75. <view class="goods_item" v-for="(item, index) in groupList" :key="index"
  76. @click="goProductDetails('/pages/product/goods/puzzleGoods?id=' + item.id)">
  77. <view class="goods_item_img">
  78. <image :src="item.cover" mode=""></image>
  79. </view>
  80. <view class="goods_item_data">
  81. <view class="goods_item_data_title">{{ item.title }}</view>
  82. <view>
  83. <image class="autotrophyCls" src="/static/convenienceService/autotrophy.png" mode="">
  84. </image>
  85. <image class="originalCls" src="/static/convenienceService/original.png" mode="">
  86. </image>
  87. </view>
  88. <view class="goods_item_data_box">
  89. <view class="goods_item_data_box_l ">
  90. <!-- <view class="goods_item_data_box_l_price">
  91. <rich-text :nodes="$mUtil.priceBigSmall(item.min_price)"></rich-text>
  92. <view>¥ {{ item.min_sale_price }}</view>
  93. </view> -->
  94. <view class="num">
  95. <view class="large">
  96. <rich-text :nodes="$mUtil.priceBigSmall(item.min_price)"></rich-text>
  97. </view>
  98. <view class="small">
  99. <text class="pintuanc6">¥ {{ item.min_sale_price }}</text>
  100. </view>
  101. </view>
  102. <view class="goods_item_data_box_l_person">
  103. {{ item.group_people_num }}人团,已拼<text>{{item.result_sale_num}}</text>件
  104. </view>
  105. </view>
  106. <view class="goods_item_data_box_r">去拼团</view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="maxTab">
  113. <!-- <view :class="{active:maxTabIndex==0}" @click="switchAssembly(0)">精选服务</view> -->
  114. <view :class="{active:maxTabIndex==1}" @click="switchAssembly(1)">精选商品</view>
  115. </view>
  116. <!-- <view class="titleBox">精选服务</view> -->
  117. <view class="minTab">
  118. <view :class="{ active: activeIndex == i }" v-for="(v,i) in choice" :key="i"
  119. @click="commTypeChange(i, v.value, v.id)">{{v.name}}</view>
  120. </view>
  121. <view class="goodsListA" v-if="maxTabIndex==0">
  122. <view class="goodsListA_item" v-for="item in commGood" :key="item.id" v-if="commGood && commGood.length > 0"
  123. @click="goDetails(item.id)">
  124. <image :src="item.cover" mode=""></image>
  125. <view class="goodsListA_item_title">{{ item.title }}</view>
  126. <view class="goodsListA_item_pirce">
  127. <rich-text :nodes="$mUtil.priceBigSmall(item.sale_price||item.min_sale_price)"></rich-text>
  128. <view>¥ {{ item.market_price||item.min_market_price }}</view>
  129. </view>
  130. <view class="goodsListA_item_num">已售{{ item.result_sale_num }}件</view>
  131. </view>
  132. <!-- <view class="lookOther">
  133. 查看更多113个服务
  134. <text class="iconfont2">&#xe65f;</text>
  135. </view> -->
  136. </view>
  137. <!-- <view class="titleBox">精选商品</view> -->
  138. <!-- <view class="minTab">
  139. <view class="active">推荐</view>
  140. <view>商超</view>
  141. <view>茶舍</view>
  142. <view>美容</view>
  143. </view> -->
  144. <!-- <view class="minTab">
  145. <view :class="{ active: activeIndex == i }" v-for="(v,i) in choice" :key="i"
  146. @click="commTypeChange(i, v.value, v.id)">{{v.name}}</view>
  147. </view> -->
  148. <view class="goodsListA pb50" v-if="maxTabIndex==1">
  149. <view class="goodsListA_item" v-for="item in commGood" :key="item.id" v-if="commGood && commGood.length > 0"
  150. @click="goDetails(item.id)">
  151. <image :src="item.cover" mode=""></image>
  152. <view class="goodsListA_item_title">{{ item.title }}</view>
  153. <view class="goodsListA_item_pirce">
  154. <rich-text :nodes="$mUtil.priceBigSmall(item.sale_price||item.min_sale_price)"></rich-text>
  155. <view>¥ {{ item.market_price||item.min_market_price }}</view>
  156. </view>
  157. <view class="goodsListA_item_num">已售{{ item.result_sale_num }}件</view>
  158. </view>
  159. <!-- <view class="lookOther">
  160. 查看更多113个服务
  161. <text class="iconfont2">&#xe65f;</text>
  162. </view> -->
  163. </view>
  164. <nodata v-if="commGood.length == 0" :config="{top:5,content:'暂无数据~'}"></nodata>
  165. </view>
  166. </template>
  167. <script>
  168. import rate from "@/components/rate.vue"
  169. export default {
  170. components: {
  171. rate
  172. },
  173. data() {
  174. return {
  175. config: {
  176. back: true,
  177. title: '店铺信息',
  178. color: '#1a1a1a',
  179. backgroundColor: [1, '#fff'],
  180. // statusBarFontColor: 'black',
  181. },
  182. value: "",
  183. duration: 500,
  184. indicatorDots: true,
  185. autoplay: false,
  186. interval: 2000,
  187. shop: {}, //店铺信息
  188. shopId: null,
  189. currSeckill: [],
  190. currTime: null, //秒杀当前场
  191. time2: "",
  192. groupList: [], //拼团列表
  193. maxTabIndex: 1,
  194. commCate: [], //商品分类
  195. choiceCopy: [{
  196. id: 1,
  197. name: "推荐",
  198. value: "recommend",
  199. },
  200. {
  201. id: 2,
  202. name: "热销",
  203. value: "hot",
  204. },
  205. {
  206. id: 3,
  207. name: "新品",
  208. value: "new",
  209. },
  210. ],
  211. choice: [],
  212. commGood: [], //商品列表
  213. commParams: {
  214. limit: 100000,
  215. },
  216. activeIndex: 0,
  217. }
  218. },
  219. onLoad(options) {
  220. if (options.shopId) {
  221. this.shopId = options.shopId;
  222. this.getCommCate(options.shopId);
  223. this.getIndexList(options.shopId);
  224. this.seckillList(options.shopId);
  225. this.getgroupList(options.shopId);
  226. // this.getCommGood(this.shopId);
  227. // this.commTypeChange(0,"recommend")
  228. }
  229. },
  230. methods: {
  231. searchClick() {
  232. // console.log("dian");
  233. uni.navigateTo({
  234. url: "/pages/research/homepage/search",
  235. });
  236. },
  237. goProductDetails(url) {
  238. uni.navigateTo({
  239. url: url,
  240. });
  241. },
  242. /**获取店铺基本信息 */
  243. getIndexList(shopid) {
  244. this.$http.get("/yxt/shop/info/" + shopid).then((res) => {
  245. uni.stopPullDownRefresh();
  246. this.loading = false;
  247. if (res.data && res.code == 200) {
  248. this.shop = res.data;
  249. this.shop.averageCopy = Math.round(res.data.average)
  250. }
  251. });
  252. },
  253. /**限时秒杀 */
  254. seckillList(shopId) {
  255. this.$http
  256. .get(
  257. `/marketing/seckillActivityGoods/flash-sale?shop_id=${shopId}`, {
  258. limit: 10,
  259. page: 1
  260. },
  261. false
  262. )
  263. .then((res) => {
  264. if (res && res.code == 200) {
  265. this.currTime = res.data.start_hour;
  266. this.currSeckill = this.oneArrToTwoArr(res.data.list || [])
  267. if (res.data.finish_time) {
  268. this.time2 = this.$mUtil
  269. .countDown(Math.floor(res.data.finish_time / 1000))
  270. .split(":")
  271. .map((val) => Number(val));
  272. }
  273. }
  274. });
  275. },
  276. /**团购 */
  277. getgroupList(shopId) {
  278. this.$http
  279. .get(
  280. `/groupbuy/activitygoods/will-you-spell?shop_id=${shopId}`, {
  281. limit: 10,
  282. page: 1
  283. },
  284. false
  285. )
  286. .then((res) => {
  287. if (res && res.code == 200) {
  288. this.groupList = res.list;
  289. }
  290. });
  291. },
  292. switchAssembly(index) {
  293. this.maxTabIndex = index;
  294. this.activeIndex = 0;
  295. delete this.commParams.group_id;
  296. this.getCommCate(this.shopId);
  297. },
  298. commTypeChange(index, type, groupId) {
  299. let e = {
  300. type: type,
  301. groupId: groupId
  302. }
  303. this.activeIndex = index;
  304. if (e.type == undefined) {
  305. delete this.commParams.type;
  306. this.commParams.group_id = e.groupId;
  307. } else {
  308. delete this.commParams.group_id;
  309. this.commParams.type = e.type;
  310. }
  311. this.getCommGood(this.shopId);
  312. },
  313. /**商品列表 */
  314. getCommGood(shopId) {
  315. this.$http
  316. .get(this.maxTabIndex == 0 ? `/service/goods/list/${shopId}` : `/goods/list/${shopId}`, this
  317. .commParams,
  318. false)
  319. .then((res) => {
  320. if (res && res.code == 200) {
  321. this.commGood = res.list;
  322. }
  323. });
  324. },
  325. /**商品分类 */
  326. getCommCate(shopId) {
  327. this.$http
  328. .get(this.maxTabIndex == 0 ? `/servicegoods/group/all/${shopId}` : `/goods_group/all/${shopId}`, {},
  329. false)
  330. .then((res) => {
  331. if (res && res.code == 200) {
  332. // this.commCate = res.list;
  333. this.choice = [];
  334. if (this.maxTabIndex == 1) {
  335. this.choice = JSON.parse(JSON.stringify(this.choiceCopy));
  336. }
  337. this.choice.push(...res.list);
  338. if (this.maxTabIndex == 0) {
  339. this.commParams.type = this.choice[0].id;
  340. } else {
  341. this.commParams.type = 'recommend';
  342. }
  343. this.getCommGood(this.shopId);
  344. }
  345. });
  346. },
  347. goDetails(id) {
  348. uni.navigateTo({
  349. url: this.maxTabIndex == 0 ? '/pages/product/goods/serviceGood?id=' + id :
  350. '/pages/product/goods/goods?id=' + id,
  351. });
  352. },
  353. oneArrToTwoArr(data) {
  354. let newData = [];
  355. let zyf = 4; //一维数组转二维数组长度(此处是二维数组每一个长度控制)
  356. for (var i = 0; i < Math.ceil(data.length / zyf); i++) {
  357. newData[i] = [];
  358. newData[i].push(data[i * zyf]);
  359. for (var j = 1; j < zyf; j++) {
  360. if (data[i * zyf + j] == undefined) {
  361. //超出长度控住
  362. return newData;
  363. } else {
  364. newData[i].push(data[i * zyf + j]);
  365. }
  366. }
  367. }
  368. return newData;
  369. },
  370. // 商家电话
  371. goPhone(tel) {
  372. uni.makePhoneCall({
  373. phoneNumber: tel
  374. });
  375. }
  376. }
  377. }
  378. </script>
  379. <style lang="scss">
  380. .city-text {
  381. margin-left: 30rpx;
  382. font-size: 30rpx;
  383. font-family: PingFang SC, PingFang SC-Regular;
  384. font-weight: 400;
  385. text-align: center;
  386. color: #1a1a1a;
  387. image {
  388. width: 20rpx;
  389. height: 12rpx;
  390. margin-left: 5rpx;
  391. vertical-align: middle;
  392. }
  393. }
  394. .menuCls {
  395. margin-left: 10rpx;
  396. font-size: 44rpx;
  397. color: #fff;
  398. }
  399. .searchBox {
  400. display: flex;
  401. padding: 10rpx 35rpx;
  402. border: 1rpx solid #CCCCCC;
  403. border-radius: 36rpx;
  404. margin: 30rpx 0 0;
  405. display: flex;
  406. align-items: center;
  407. margin-top: 10rpx;
  408. background: #fff;
  409. image {
  410. width: 35rpx;
  411. height: 35rpx;
  412. margin-right: 15rpx;
  413. flex-shrink: 0;
  414. }
  415. input {
  416. text-align: left;
  417. }
  418. }
  419. .shopCard {
  420. // margin: 100rpx auto 0;
  421. width: 720rpx;
  422. // min-height: 320rpx;
  423. padding: 30rpx;
  424. // background: url('/static/convenienceService/cardBg.png')0 0 no-repeat;
  425. // background-size: 720rpx 320rpx;
  426. box-shadow: 0rpx 4rpx 8rpx 0rpx #f1f1f1;
  427. background: #ffffff;
  428. border-radius: 20rpx;
  429. position: relative;
  430. .shop-info {
  431. display: flex;
  432. align-items: center;
  433. >image {
  434. // position: absolute;
  435. // top: -70rpx;
  436. // left: 30rpx;
  437. width: 120rpx;
  438. height: 120rpx;
  439. border-radius: 20rpx;
  440. background: #fff;
  441. flex-shrink: 0;
  442. }
  443. }
  444. .shopNamebox {
  445. flex: 1;
  446. margin-left: 20rpx;
  447. position: relative;
  448. .phone-btn {
  449. width: 150rpx;
  450. margin-left: auto;
  451. padding: 6rpx 10rpx;
  452. text-align: center;
  453. color: #666;
  454. border-radius: 8rpx;
  455. background-color: #fff;
  456. border: 1rpx solid #666;
  457. position: absolute;
  458. right: 0;
  459. bottom: 0;
  460. }
  461. .shopName {
  462. font-size: 32rpx;
  463. color: #333333;
  464. font-weight: 700;
  465. // margin-top: 30rpx;
  466. }
  467. .shopName_rate {
  468. font-size: 28rpx;
  469. color: #333333;
  470. display: flex;
  471. margin-top: 15rpx;
  472. }
  473. }
  474. .shop_item {
  475. font-size: 24rpx;
  476. color: #333333;
  477. display: flex;
  478. align-items: center;
  479. margin-top: 22rpx;
  480. padding: 0 10rpx;
  481. text {
  482. color: #108948;
  483. font-size: 34rpx;
  484. }
  485. view {
  486. margin-left: 20rpx;
  487. }
  488. image {
  489. width: 34rpx;
  490. height: 37rpx;
  491. flex-shrink: 0;
  492. }
  493. .blueicon {
  494. color: #FA6138;
  495. }
  496. }
  497. }
  498. .limitCard {
  499. margin: auto;
  500. width: 720rpx;
  501. height: 410rpx;
  502. padding: 0 30rpx;
  503. background: url('/static/convenienceService/cardBg.png') 0 0 no-repeat;
  504. background-size: 720rpx 410rpx;
  505. .limitCard_top {
  506. display: flex;
  507. padding: 35rpx 30rpx 20rpx 30rpx;
  508. align-items: center;
  509. border-bottom: 1rpx solid #E6E6E6;
  510. .limitCard_top_title {
  511. font-size: 36rpx;
  512. color: #1A1A1A;
  513. font-weight: 700;
  514. display: flex;
  515. align-items: center;
  516. position: relative;
  517. padding-right: 15rpx;
  518. &::after {
  519. display: block;
  520. content: "";
  521. width: 1rpx;
  522. height: 33rpx;
  523. background: #707070;
  524. position: absolute;
  525. right: 0;
  526. top: 10rpx;
  527. }
  528. }
  529. .limitCard_top_lab {
  530. font-size: 24rpx;
  531. color: #666666;
  532. margin: 0 30rpx 0 15rpx;
  533. }
  534. .limitCard_top_time {
  535. border-radius: 17rpx;
  536. background: #FF0000;
  537. font-size: 24rpx;
  538. color: #fff;
  539. font-weight: 700;
  540. padding: 0 15rpx;
  541. }
  542. }
  543. .swiper {
  544. height: 280rpx;
  545. .listBox {
  546. padding: 25rpx 20rpx;
  547. display: flex;
  548. .listBox_item {
  549. margin-right: 20rpx;
  550. image {
  551. width: 140rpx;
  552. height: 140rpx;
  553. }
  554. >view {
  555. width: 140rpx;
  556. font-size: 20rpx;
  557. color: #333333;
  558. text-align: center;
  559. text {
  560. font-size: 28rpx;
  561. font-weight: 600;
  562. display: inline-block;
  563. margin-left: 10rpx;
  564. }
  565. }
  566. &:last-child {
  567. margin-right: 0 !important;
  568. }
  569. }
  570. }
  571. }
  572. }
  573. .groupCard {
  574. margin: auto;
  575. width: 720rpx;
  576. // height: 1500rpx;
  577. padding: 0 30rpx;
  578. // background: url('/static/convenienceService/cardBg.png')0 0 no-repeat;
  579. // background-size: 720rpx 1500rpx;
  580. box-shadow: 0rpx 4rpx 8rpx 0rpx #f1f1f1;
  581. border-radius: 16rpx;
  582. .group_title {
  583. display: flex;
  584. justify-content: space-between;
  585. padding: 35rpx 30rpx 20rpx 30rpx;
  586. align-items: center;
  587. border-bottom: 1rpx solid #E6E6E6;
  588. .group_title_l {
  589. font-size: 36rpx;
  590. color: #1A1A1A;
  591. font-weight: 700;
  592. }
  593. .group_title_r {
  594. font-size: 24rpx;
  595. color: #333333;
  596. }
  597. }
  598. .goodsListBox {
  599. .goods_item {
  600. &:last-child {
  601. border-bottom: none !important;
  602. }
  603. display: flex;
  604. padding: 50rpx 0 40rpx;
  605. border-bottom: 1rpx solid #E6E6E6;
  606. .goods_item_img {
  607. margin-right: 25rpx;
  608. image {
  609. width: 226rpx;
  610. height: 226rpx;
  611. }
  612. }
  613. .goods_item_data {
  614. flex: 1;
  615. .goods_item_data_title {
  616. font-size: 28rpx;
  617. min-height: 80rpx;
  618. color: #181818;
  619. overflow: hidden;
  620. text-overflow: ellipsis;
  621. display: -webkit-box;
  622. -webkit-line-clamp: 2;
  623. -webkit-box-orient: vertical;
  624. }
  625. .autotrophyCls {
  626. width: 69rpx;
  627. height: 30rpx;
  628. margin-right: 10rpx;
  629. margin-top: 10rpx;
  630. }
  631. .originalCls {
  632. width: 116rpx;
  633. height: 28rpx;
  634. margin-top: 10rpx;
  635. }
  636. .goods_item_data_box {
  637. display: flex;
  638. justify-content: space-between;
  639. align-items: center;
  640. margin-top: 10rpx;
  641. .goods_item_data_box_l {
  642. .goods_item_data_box_l_price {
  643. display: flex;
  644. align-items: flex-end;
  645. font-size: 20rpx;
  646. color: #00BF5A;
  647. text {
  648. font-size: 36rpx;
  649. font-weight: 500;
  650. display: inline-block;
  651. position: relative;
  652. top: 4rpx;
  653. }
  654. >view {
  655. font-size: 24rpx;
  656. color: #CCCCCC;
  657. margin-left: 30rpx;
  658. text-decoration: line-through
  659. }
  660. }
  661. .goods_item_data_box_l_person {
  662. font-size: 24rpx;
  663. color: #333333;
  664. text {
  665. color: #FF0000;
  666. }
  667. }
  668. }
  669. .goods_item_data_box_r {
  670. width: 138rpx;
  671. height: 63rpx;
  672. background: #FA6138;
  673. border-radius: 32rpx;
  674. font-size: 28rpx;
  675. display: flex;
  676. justify-content: center;
  677. align-items: center;
  678. color: #fff;
  679. }
  680. }
  681. }
  682. }
  683. }
  684. }
  685. .maxTab {
  686. display: flex;
  687. // justify-content: space-around;
  688. padding: 40rpx 40rpx 20rpx;
  689. >view {
  690. font-size: 36rpx;
  691. color: #1A1A1A;
  692. font-weight: 700;
  693. position: relative;
  694. &::after {
  695. display: block;
  696. content: "";
  697. width: 0;
  698. height: 4rpx;
  699. border-radius: 1rpx;
  700. position: absolute;
  701. left: 70rpx;
  702. bottom: -36rpx;
  703. transform: translateX(-50%);
  704. transition: all 0.3s;
  705. }
  706. }
  707. .active {
  708. // color: #00321E;
  709. // &::after {
  710. // width: 100%;
  711. // height: 4rpx;
  712. // border-radius: 1rpx;
  713. // background: #00321E;
  714. // }
  715. }
  716. }
  717. .titleBox {
  718. padding: 40rpx 30rpx 30rpx;
  719. font-size: 36rpx;
  720. color: #1A1A1A;
  721. font-weight: 700;
  722. }
  723. .minTab {
  724. padding: 30rpx 30rpx 30rpx;
  725. display: flex;
  726. overflow: auto;
  727. >view {
  728. color: #666666;
  729. font-weight: 28rpx;
  730. margin-right: 50rpx;
  731. padding-bottom: 15rpx;
  732. flex-shrink: 0;
  733. }
  734. >.active {
  735. font-size: 30rpx;
  736. color: #FA6138;
  737. font-weight: 700;
  738. position: relative;
  739. &::after {
  740. display: block;
  741. content: "";
  742. width: 100%;
  743. height: 4rpx;
  744. background: #FA6138;
  745. border-radius: 2rpx;
  746. position: absolute;
  747. bottom: 0%;
  748. left: 0;
  749. }
  750. }
  751. }
  752. .goodsListA {
  753. padding: 0 30rpx;
  754. display: flex;
  755. flex-wrap: wrap;
  756. .goodsListA_item {
  757. width: 336rpx;
  758. box-shadow: 0rpx 4rpx 8rpx 0rpx #f1f1f1;
  759. border-radius: 18rpx;
  760. margin-left: 18rpx;
  761. margin-bottom: 30rpx;
  762. &:nth-child(2n-1) {
  763. margin-left: 0 !important;
  764. }
  765. image {
  766. width: 336rpx;
  767. height: 336rpx;
  768. border-radius: 18rpx 18rpx 0 0;
  769. }
  770. >view {
  771. padding: 0 20rpx;
  772. }
  773. .goodsListA_item_title {
  774. font-size: 28rpx;
  775. color: #181818;
  776. overflow: hidden;
  777. text-overflow: ellipsis;
  778. display: -webkit-box;
  779. -webkit-line-clamp: 2;
  780. -webkit-box-orient: vertical;
  781. }
  782. .goodsListA_item_pirce {
  783. display: flex;
  784. align-items: flex-end;
  785. font-size: 20rpx;
  786. color: #FF6600;
  787. font-weight: 700;
  788. text {
  789. font-size: 36rpx;
  790. font-weight: 500;
  791. display: inline-block;
  792. position: relative;
  793. top: 4rpx;
  794. }
  795. >view {
  796. font-size: 24rpx;
  797. color: #CCCCCC;
  798. margin-left: 30rpx;
  799. text-decoration: line-through;
  800. font-weight: normal;
  801. }
  802. }
  803. .goodsListA_item_num {
  804. font-size: 22rpx;
  805. color: #999999;
  806. margin-top: 10rpx;
  807. padding-bottom: 20rpx;
  808. }
  809. }
  810. }
  811. .lookOther {
  812. font-size: 24rpx;
  813. color: #333333;
  814. width: 288rpx;
  815. height: 59rpx;
  816. border-radius: 8rpx;
  817. background: #F2F2F2;
  818. display: flex;
  819. align-items: center;
  820. justify-content: center;
  821. margin: auto;
  822. }
  823. .mt30 {
  824. margin-top: 30rpx !important;
  825. }
  826. .pb50 {
  827. padding-bottom: 50rpx;
  828. }
  829. .num {
  830. display: flex;
  831. align-items: center;
  832. margin-top: 46rpx;
  833. font-weight: Bold;
  834. font-size: 20rpx;
  835. color: red;
  836. }
  837. .small {
  838. color: #cccccc;
  839. font-size: 22rpx;
  840. font-weight: 500;
  841. text-decoration: line-through;
  842. margin-left: 17rpx;
  843. }
  844. .work-red {
  845. font-size: 36rpx;
  846. font-weight: Bold;
  847. margin-left: 5rpx;
  848. }
  849. </style>