shop.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <template>
  2. <view class="box">
  3. <view class="topbox">
  4. <view class="sstop">
  5. <image src="../../static/timg/icon_search@2x.png" mode="" class="sstopimg"></image>
  6. <input type="text" v-model="name" placeholder="请输入商品名称" class="sstopInput" @confirm="ssList">
  7. <image src="../../static/img/icon_close.png" mode="" @click="empty" v-if="inputChShow" class="inputCh"></image>
  8. </view>
  9. <scroll-view scroll-x="true" class="scroll-Y" >
  10. <view class="classificationBox">
  11. <view class="classification" v-for="(item,index) in categoryList" @click="topClick(index,item)">
  12. <view class="classificationName classificationNameActive" v-if="topIndex==index" :style="{color:'#'+themeColor}">{{item.name}}</view>
  13. <view class="classificationName" v-else >{{item.name}}</view>
  14. <view class="classificationHx" :style="{background:'#'+themeColor}" v-if="topIndex==index"></view>
  15. </view>
  16. </view>
  17. </scroll-view>
  18. </view>
  19. <view style="height: 180rpx;"></view>
  20. <view class="paixuBox">
  21. <view class="paixuLine" @click="defaultpx" :class="{pxActive:defaultpxActive}">
  22. 默认排序
  23. </view>
  24. <view class="paixuLine" @click="xlPx(1)">
  25. <view :class="{pxActive:salessort}">销量</view>
  26. <view class="paixuLineTbBox">
  27. <view class="paixuLineTbtop" >
  28. <image v-if="salessorts" src="../../static/timg/icon_arrow_up_pre@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIcons"></image>
  29. <image v-else src="../../static/timg/icon_arrow_up_def@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIcons"></image>
  30. </view>
  31. <view class="paixuLineTbtop">
  32. <image v-if="salessortx" src="../../static/timg/icon_arrow_pre@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIconx"></image>
  33. <image v-else src="../../static/timg/icon_arrow_def@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIconx"></image>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="paixuLine" @click="jgpx(1)">
  38. <view :class="{pxActive:pricesort}">价格</view>
  39. <view class="paixuLineTbBox">
  40. <view class="paixuLineTbtop" >
  41. <image v-if="pricesorts" src="../../static/timg/icon_arrow_up_pre@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIcons"></image>
  42. <image v-else src="../../static/timg/icon_arrow_up_def@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIcons"></image>
  43. </view>
  44. <view class="paixuLineTbtop">
  45. <image v-if="pricesortx" src="../../static/timg/icon_arrow_pre@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIconx"></image>
  46. <image v-else src="../../static/timg/icon_arrow_def@2x.png" mode="" class="paixuLineTbtopIcon paixuLineTbtopIconx"></image>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <scroll-view scroll-y="true" class="scroll-Y goodsSw goodsBox" :scroll-top="scrollTop" @scroll="onscroll" >
  52. <view style="padding-bottom: 30rpx;"><!-- class="goodsBox" -->
  53. <view class="hotGoodsLine" v-for="(item,index) in list" @click="goDetail(item)">
  54. <view>
  55. <image :src="item.url" v-if="item.url" mode="" @error="defImg()" class="hotGoodsLineImg"></image>
  56. <image v-else src="../../static/timg/noimg.png" mode="" class="hotGoodsLineImg"></image>
  57. </view>
  58. <view class="hotGoodsLineRIght">
  59. <view class="goodsName">{{item.name}}</view>
  60. <view class="timeTbox" v-if="item.goodsDownTime">
  61. <view class="timeK" style="margin-left: 0;">{{item.shengyuD}}</view>
  62. <view class="timeviewTxt" > 天</view>
  63. <view class="timeK">{{item.shengyuH}}</view>
  64. <view class="timeviewTxt"> 时</view>
  65. <view class="timeK">{{item.shengyuM}}</view>
  66. <view class="timeviewTxt" > 分 &nbsp;后结束抢购</view>
  67. </view>
  68. <view class="hotGoodsLineRIghtBottom">
  69. <view class="goodsPrice">
  70. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  71. <view class="goodsPrice2" >¥</view><!-- :style="{color:'#'+themeColor}" -->
  72. <view class="goodsPrice3" >{{item.salePrice?item.salePrice:item.scribingPrice}}
  73. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  74. </view>
  75. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice">
  76. <span v-if="item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</span>
  77. </view>
  78. </view>
  79. <view class="Sold" >
  80. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  81. 已售 {{item.saleQty>0?item.saleQty:0}}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <nodata v-if="list.length==0"></nodata>
  88. </view>
  89. </scroll-view>
  90. <!-- 手机号授权 -->
  91. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  92. <view class="authorizCont" @click.stop="">
  93. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  94. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  95. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  96. </view>
  97. <view style="text-align: center;padding-top: 56rpx;">
  98. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  99. </view>
  100. </view>
  101. <img src="../../static/timg/btn_top@2x.png" alt="" class="btn_top" @click="btnTop">
  102. </view>
  103. </template>
  104. <script>
  105. import nodata from '../../components/nodata/nodata.vue'
  106. export default {
  107. components: {
  108. nodata
  109. },
  110. data() {
  111. return {
  112. userInfo:'',
  113. salessort:false,
  114. salessorts:false,
  115. salessortx:false,
  116. pricesort:false,
  117. pricesorts:false,
  118. pricesortx:false,
  119. topIndex:0,
  120. categoryList:'',
  121. page:1,
  122. limit:10,
  123. name:'',
  124. categoryID:'',
  125. order:'',
  126. orderBy:'',
  127. list:[],
  128. defaultImg: require("../../static/timg/noimg.png"),
  129. defaultpxActive:false,
  130. authorizShow:false,
  131. code:'',
  132. wxOpenData:'',
  133. shopcategoryID:'',
  134. inputChShow:false,
  135. ext:'',
  136. scrollTop:0,
  137. themeColor:'',
  138. }
  139. },
  140. watch:{
  141. name(val){
  142. console.log(val)
  143. if(val){
  144. this.inputChShow=true
  145. }
  146. },
  147. },
  148. onLoad(opt) {
  149. console.log(getApp().globalData.shopcategoryID)
  150. //this.userInfo = uni.getStorageSync("userInfo");
  151. this.shopcategoryID=getApp().globalData.shopcategoryID;
  152. if(this.shopcategoryID){
  153. this.categoryID=this.shopcategoryID
  154. }
  155. this.userInfo=this.$store.state.userInfo;
  156. this.wxOpenData=this.$store.state.wxOpenData;
  157. this.themeColor = uni.getStorageSync("themeColor");
  158. if(this.themeColor){
  159. if(this.themeColor=='6F2BE8'){
  160. var backgroundImage='/static/tabimg/shop6F2BE8.png'
  161. }
  162. if(this.themeColor=='1677FF'){
  163. var backgroundImage='/static/tabimg/shop1677FF.png'
  164. }
  165. if(this.themeColor=='FF4F00'){
  166. var backgroundImage='/static/tabimg/shopFF4F00.png'
  167. }
  168. if(this.themeColor=='D53533'){
  169. var backgroundImage='/static/tabimg/shop1.png'
  170. }
  171. uni.setTabBarStyle({
  172. // color: '#FF0000',
  173. selectedColor: '#'+this.themeColor,
  174. })
  175. uni.setTabBarItem({
  176. index: 1,
  177. text: '商城',
  178. selectedIconPath: backgroundImage
  179. })
  180. }
  181. this.ext=this.$common.getExtStoreId();
  182. this.getcategoryList();
  183. this.getlistOpenGoodsPage();
  184. /* uni.getLocation({
  185. type: 'gcj02',
  186. success: function(res) {
  187. console.log(res)
  188. },
  189. fail(err) {
  190. console.log(err)
  191. }
  192. }); */
  193. },
  194. onShow() {
  195. var shopcategoryID = uni.getStorageSync("shopcategoryID")
  196. if(shopcategoryID){
  197. uni.removeStorageSync('shopcategoryID');
  198. if(this.categoryList){
  199. this.categoryList.forEach((item,index)=>{
  200. //console.log(item.id)
  201. if(item.id==shopcategoryID){
  202. this.topIndex=index
  203. }
  204. })
  205. this.categoryID=shopcategoryID;
  206. this.list=[];
  207. this.page=1;
  208. this.getlistOpenGoodsPage()
  209. }
  210. }
  211. },
  212. methods: {
  213. onPageScroll(e){
  214. //console.log(e)
  215. //this.scrollTop=e.scrollTop
  216. },
  217. btnTop(){
  218. uni.pageScrollTo({
  219. scrollTop: 0,
  220. });
  221. // console.log(this.scrollTop)
  222. // this.$nextTick(function() {
  223. // this.scrollTop = 0
  224. // });
  225. },
  226. onscroll(e){
  227. //console.log(e)
  228. this.scrollTop = e.detail.scrollTop
  229. },
  230. empty(){
  231. console.log("情况")
  232. this.name='';
  233. this.inputChShow=false;
  234. this.list=[];
  235. this.page=1;
  236. this.getlistOpenGoodsPage()
  237. },
  238. decryptPhoneNumber: function(e) {
  239. console.log(e);
  240. this.code=e.detail.code
  241. this.wxPhoneLogin()
  242. this.authorizShow=false;
  243. },
  244. wxPhoneLogin(){
  245. var that=this;
  246. this.$http('miniApp2/sys/wxPhoneLogin', {
  247. appId:'wx33053a645546ec31',
  248. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243',
  249. code:this.code,
  250. openId:this.wxOpenData.openid
  251. },'POST').then(res => {
  252. var data = res.data;
  253. if(data.loginInfo){
  254. this.userInfo=data.loginInfo.openUser;
  255. this.wxOpenData=data.loginInfo;
  256. this.$store.commit('mutationswxOpenData', data.loginInfo)
  257. this.$store.commit('mutationsuserInfo', this.userInfo)
  258. this.topIndex=1;
  259. this.list=[];
  260. this.page=1;
  261. this.getlistOpenGoodsPage()
  262. }
  263. })
  264. },
  265. xlPx(num){
  266. this.salessort=true;
  267. this.defaultpxActive=false;
  268. this.pricesort=false;
  269. this.pricesort=false;
  270. this.pricesorts=false;
  271. this.pricesortx=false;
  272. if(this.salessorts){
  273. num=2
  274. }
  275. if(num==1){
  276. this.salessorts=true;
  277. this.salessortx=false;
  278. this.orderBy='asc';
  279. }else{
  280. this.salessorts=false;
  281. this.salessortx=true;
  282. this.orderBy='desc';
  283. }
  284. this.order='SaleQty';
  285. this.list=[];
  286. this.page=1;
  287. this.getlistOpenGoodsPage()
  288. },
  289. jgpx(type){
  290. this.salessort=false;
  291. this.defaultpxActive=false;
  292. this.pricesort=true;
  293. this.salessort=false;
  294. this.salessorts=false;
  295. this.salessortx=false;
  296. if(this.pricesorts){
  297. type=2
  298. }
  299. if(type==1){
  300. this.pricesorts=true;
  301. this.pricesortx=false;
  302. this.orderBy='asc';
  303. }else{
  304. this.pricesorts=false;
  305. this.pricesortx=true;
  306. this.orderBy='desc';
  307. }
  308. this.order='SalePrice';
  309. this.list=[];
  310. this.page=1;
  311. this.getlistOpenGoodsPage()
  312. },
  313. defaultpx(){
  314. this.defaultpxActive=true;
  315. this.order='';
  316. this.orderBy='';
  317. this.salessort=false;
  318. this.salessorts=false;
  319. this.salessortx=false;
  320. this.pricesort=false;
  321. this.pricesorts=false;
  322. this.pricesortx=false;
  323. //this.topIndex=0;
  324. this.list=[];
  325. this.page=1;
  326. this.getlistOpenGoodsPage()
  327. },
  328. defImg(event){
  329. // console.log(event)
  330. /* let img = event.srcElement;
  331. img.src = this.defaultImg;
  332. img.onerror = null; //防止闪图 */
  333. },
  334. topClick(index,item){
  335. this.topIndex=index;
  336. this.list=[];
  337. this.page=1;
  338. this.categoryID=item.id;
  339. this.getlistOpenGoodsPage()
  340. },
  341. ssList(){
  342. this.topIndex=0;
  343. this.list=[];
  344. this.page=1;
  345. this.getlistOpenGoodsPage()
  346. },
  347. goDetail(item){
  348. // if(!this.userInfo){
  349. // this.authorizShow=true;
  350. // }else{
  351. // }
  352. uni.navigateTo({
  353. url:'goodsDetail?id='+item.id
  354. })
  355. },
  356. getcategoryList(){
  357. this.$http('openMall/categoryList', {
  358. unionId:this.ext.unionId
  359. },'GET').then(res => {
  360. this.categoryList=res.data;
  361. var obj={
  362. id:'',
  363. name:'全部'
  364. }
  365. this.categoryList.unshift(obj);
  366. if(this.shopcategoryID){
  367. //console.log(this.shopcategoryID)
  368. this.categoryList.forEach((item,index)=>{
  369. //console.log(item.id)
  370. if(item.id==this.shopcategoryID){
  371. this.topIndex=index
  372. }
  373. })
  374. }
  375. })
  376. },
  377. getlistOpenGoodsPage(){
  378. uni.showLoading({ title: '加载中'});
  379. var that=this;
  380. this.$http('openMall/listOpenGoodsPage', {
  381. page:this.page,
  382. limit:this.limit,
  383. name:this.name,
  384. categoryID:this.categoryID,
  385. orderBy:this.order,
  386. order:this.orderBy,
  387. unionId:this.ext.unionId
  388. },'GET').then(res => {
  389. uni.hideLoading();
  390. res.data.Items.forEach(item=>{
  391. if(item.goodsDownTime){
  392. item.shengyuM=''
  393. item.shengyuD=''
  394. item.shengyuH=''
  395. //console.log(item)
  396. //that.clock(item)
  397. let _this = this
  398. let today = new Date() // 当前时间
  399. let h = today.getHours()
  400. let m = today.getMinutes()
  401. let s = today.getSeconds()
  402. let stopTime = new Date(item.goodsDownTime.replace(/-/g, '/')) // 结束时间
  403. if (Number(new Date(item.goodsDownTime).getTime()) < Number(new Date().getTime())) {
  404. this.activityEnd = true
  405. return
  406. }
  407. let stopH = stopTime.getHours()
  408. let stopM = stopTime.getMinutes()
  409. let stopS = stopTime.getSeconds()
  410. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  411. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  412. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  413. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  414. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  415. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  416. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  417. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  418. item.shengyuM=shengyuM;
  419. item.shengyuD=shengyuD;
  420. item.shengyuH=shengyuH;
  421. }
  422. })
  423. var data=res.data.Items;
  424. this.list=this.list.concat(data);
  425. console.log(this.list)
  426. })
  427. },
  428. clock(item){
  429. console.log(item)
  430. if(!item){
  431. return false;
  432. }
  433. let _this = this
  434. let today = new Date() // 当前时间
  435. let h = today.getHours()
  436. let m = today.getMinutes()
  437. let s = today.getSeconds()
  438. let stopTime = new Date(item.goodsDownTime.replace(/-/g, '/')) // 结束时间
  439. if (Number(new Date(item.goodsDownTime).getTime()) < Number(new Date().getTime())) {
  440. this.activityEnd = true
  441. return
  442. }
  443. let stopH = stopTime.getHours()
  444. let stopM = stopTime.getMinutes()
  445. let stopS = stopTime.getSeconds()
  446. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  447. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  448. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  449. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  450. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  451. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  452. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  453. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  454. this.shengyuM=shengyuM;
  455. this.shengyuD=shengyuD;
  456. this.shengyuH=shengyuH;
  457. setTimeout(_this.clock, 500)
  458. },
  459. },
  460. onReachBottom(){
  461. this.page++;
  462. this.getlistOpenGoodsPage()
  463. //console.log("shanglas")
  464. },
  465. onPullDownRefresh(){
  466. this.list=[];
  467. this.page=1;
  468. this.getlistOpenGoodsPage();
  469. setTimeout(() => {
  470. uni.stopPullDownRefresh(); // 关闭下拉刷新
  471. }, 2000);
  472. }
  473. }
  474. </script>
  475. <style scoped lang="less">
  476. .btn_top{
  477. width: 100rpx;
  478. height: 100rpx;
  479. position: fixed;
  480. right: 24rpx;
  481. bottom: 60rpx;
  482. }
  483. .timeTbox{
  484. height: 60rpx;
  485. display: flex;
  486. padding-top: 15rpx;
  487. font-size: 24rpx;
  488. font-family: PingFangSC-Regular, PingFang SC;
  489. font-weight: 400;
  490. color: #764D49;
  491. }
  492. .timeviewTxt{
  493. line-height: 41rpx;
  494. padding-top: 10rpx;
  495. }
  496. .timeDivTxt{
  497. line-height: 60rpx;
  498. padding: 0 10rpx;
  499. }
  500. .timeK{
  501. height: 41rpx;
  502. line-height: 41rpx;
  503. color: #FFFFFF;
  504. width: 41rpx;
  505. text-align: center;
  506. background: #F03B3B;
  507. border-radius: 6rpx;
  508. margin-top: 9rpx;
  509. margin-left: 10rpx;
  510. margin-right: 10rpx;
  511. }
  512. .hotGoodsLineRIghtBottom{
  513. display: flex;
  514. justify-content: space-between;
  515. width: 470rpx;
  516. }
  517. .topbox{
  518. position: fixed;
  519. width: 750rpx;
  520. top: -1rpx;
  521. left: 0;
  522. z-index: 11;
  523. }
  524. .inputCh{
  525. width:40rpx;
  526. height: 40rpx;
  527. position: absolute;
  528. right: 40rpx;
  529. top: 40rpx;
  530. z-index: 11;
  531. }
  532. .pxActive{
  533. color: #FF0000 !important;
  534. }
  535. .paixuLineTbtopIcon{
  536. width: 16rpx;
  537. height: 8rpx;
  538. display: block;
  539. padding-left: 10rpx;
  540. }
  541. .paixuLineTbtopIconx{
  542. padding-bottom:24rpx;
  543. }
  544. .paixuLineTbtopIcons{
  545. padding-top: 8rpx;
  546. }
  547. .paixuLineTbBox{
  548. display: flex;
  549. flex-direction: column;
  550. justify-content: space-between;
  551. }
  552. .box{
  553. background: #F4F5F7;
  554. min-height: 100vh;
  555. }
  556. .sstopInput{
  557. width: 626rpx;
  558. height: 72rpx;
  559. background: #F4F5F7;
  560. border-radius: 36rpx;
  561. line-height: 72rpx;
  562. font-size: 28rpx;
  563. padding-left: 76rpx;
  564. }
  565. .sstop{
  566. position: relative;
  567. padding-top: 24rpx;
  568. padding-left: 24rpx;
  569. background: #ffffff;
  570. }
  571. .sstopimg{
  572. width: 40rpx;
  573. height: 40rpx;
  574. position: absolute;
  575. left: 44rpx;
  576. top: 40rpx;
  577. }
  578. .scroll-Y{
  579. background: #ffffff;
  580. width: 750rpx;
  581. }
  582. .goodsBox{
  583. // height: calc(100vh - 280rpx);
  584. // padding-bottom: 120rpx;
  585. }
  586. .classificationBox{
  587. display: flex;
  588. padding-bottom: 12rpx;
  589. }
  590. .classificationName{
  591. white-space: nowrap;
  592. font-size: 28rpx;
  593. color: #3C3C3C;
  594. line-height: 40rpx;
  595. padding:24rpx 24rpx 8rpx 24rpx;
  596. font-weight: 400;
  597. }
  598. .classificationNameActive{
  599. font-weight: 500 !important;
  600. /* color: #FF0000 ; */
  601. }
  602. .classificationHx{
  603. width: 40rpx;
  604. height: 4rpx;
  605. // background: #FF0000;
  606. margin: 0 auto;
  607. }
  608. .paixuBox{
  609. width: 750rpx;
  610. height: 72rpx;
  611. background: #FFFFFF;
  612. margin-top: 20rpx;
  613. display: flex;
  614. justify-content: space-around;
  615. border-bottom: 1px solid #EEEEEE;
  616. }
  617. .paixuLine{
  618. line-height: 37rpx;font-size: 26rpx;color: #666666;padding-top: 18rpx;
  619. display: flex;
  620. }
  621. .hotGoodsLine{
  622. margin-top: 30rpx;
  623. padding:0rpx 20rpx;
  624. background: #FFFFFF;
  625. border-radius: 16rpx;
  626. display: flex;
  627. }
  628. .hotGoodsLineImg{
  629. width: 208rpx;
  630. height: 194rpx;
  631. border-radius: 16rpx;
  632. border: 1px solid #EEEEEE;
  633. display: block;
  634. }
  635. .goodsName{
  636. font-size: 28rpx;
  637. font-family: PingFangSC-Regular, PingFang SC;
  638. font-weight: 400;
  639. color: #333333;
  640. line-height: 40rpx;
  641. text-overflow: -o-ellipsis-lastline;
  642. overflow: hidden;
  643. text-overflow: ellipsis;
  644. display: -webkit-box;
  645. -webkit-line-clamp: 2;
  646. line-clamp: 2;
  647. -webkit-box-orient: vertical;
  648. }
  649. .hotGoodsLineRIght{
  650. padding-left: 24rpx;
  651. }
  652. .goodsPrice{
  653. display: flex;
  654. padding-top: 10rpx;
  655. }
  656. .goodsPrice1{
  657. font-size: 24rpx;
  658. font-weight: 400;
  659. color: #FF0000;
  660. padding-top: 8rpx;
  661. }
  662. .goodsPrice2{
  663. font-size: 22rpx;
  664. font-weight: 400;
  665. color: #FF0000;
  666. padding-top: 10rpx;
  667. }
  668. .goodsPrice3{
  669. font-size: 32rpx;
  670. font-weight: 500;
  671. color: #FF0000;
  672. }
  673. .goodsPrice4{
  674. font-size: 24rpx;
  675. font-weight: 400;
  676. color: #999999;
  677. padding-top: 8rpx;
  678. text-decoration:line-through;
  679. padding-left: 10rpx;
  680. }
  681. .Sold{
  682. font-weight: 400;
  683. color: #999999;
  684. font-size: 24rpx;
  685. padding-top: 20rpx;
  686. line-height: 30rpx;
  687. height: 30rpx;
  688. }
  689. .authorizBox{
  690. width: 100vw;
  691. height: 100vh;
  692. background: rgba(0, 0, 0, 0.5);
  693. position: fixed;
  694. top: 0;
  695. left: 0;
  696. }
  697. .authorizCont{
  698. margin-top: 30vh;
  699. width: 564rpx;
  700. height: 408rpx;
  701. background: #FFFFFF;
  702. border-radius: 24rpx;
  703. margin-left: 93rpx;
  704. position: relative;
  705. }
  706. .authorizCloseImg{
  707. width: 62rpx;
  708. height: 62rpx;
  709. }
  710. .sqLogoBox{
  711. width: 180rpx;
  712. height: 180rpx;
  713. background: #FFFFFF;
  714. border-radius: 90rpx;
  715. text-align: center;
  716. position: absolute;
  717. top: -50rpx;
  718. left: 192rpx;
  719. }
  720. .authorizName{
  721. color: #333333;
  722. line-height: 42rpx;
  723. font-size: 30rpx;
  724. text-align: center;
  725. padding-top: 58rpx;
  726. }
  727. .authorizMs{
  728. color: #999999;
  729. line-height: 36rpx;
  730. font-size: 26rpx;
  731. width: 452rpx;
  732. padding-top: 24rpx;
  733. text-align: center;
  734. margin-left: 56rpx;
  735. }
  736. .authorizContbutton{
  737. width: 422rpx;
  738. height: 88rpx;
  739. background: #D53533;
  740. border-radius: 44rpx;
  741. line-height: 88rpx;
  742. text-align: center;
  743. font-size:30rpx;
  744. color: #FFFFFF;
  745. margin-top: 62rpx;
  746. margin-left:71rpx;
  747. }
  748. </style>