shop.vue 25 KB

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