shop.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  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. console.log("this.categoryID"+this.categoryID)
  206. if(this.topIndex){
  207. this.categoryID=shopcategoryID;
  208. }else{
  209. this.categoryID=''
  210. }
  211. this.list=[];
  212. this.page=1;
  213. this.getlistOpenGoodsPage()
  214. }
  215. }
  216. },
  217. methods: {
  218. onPageScroll(e){
  219. //console.log(e)
  220. //this.scrollTop=e.scrollTop
  221. },
  222. btnTop(){
  223. uni.pageScrollTo({
  224. scrollTop: 0,
  225. });
  226. // console.log(this.scrollTop)
  227. // this.$nextTick(function() {
  228. // this.scrollTop = 0
  229. // });
  230. },
  231. onscroll(e){
  232. //console.log(e)
  233. this.scrollTop = e.detail.scrollTop
  234. },
  235. empty(){
  236. console.log("情况")
  237. this.name='';
  238. this.inputChShow=false;
  239. this.list=[];
  240. this.page=1;
  241. this.getlistOpenGoodsPage()
  242. },
  243. decryptPhoneNumber: function(e) {
  244. console.log(e);
  245. this.code=e.detail.code
  246. this.wxPhoneLogin()
  247. this.authorizShow=false;
  248. },
  249. wxPhoneLogin(){
  250. var that=this;
  251. this.$http('miniApp2/sys/wxPhoneLogin', {
  252. appId:'wx33053a645546ec31',
  253. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243',
  254. code:this.code,
  255. openId:this.wxOpenData.openid
  256. },'POST').then(res => {
  257. var data = res.data;
  258. if(data.newCustomer){
  259. uni.showModal({
  260. title: '提示',
  261. content: data.newCustomerMsg,
  262. success: function(resTK) {
  263. }
  264. });
  265. var token=res.data.token
  266. data.loginInfo={}
  267. data.loginInfo.token=token
  268. this.$store.commit('mutationswxOpenData', data);
  269. return false;
  270. }
  271. if(data.loginInfo){
  272. this.userInfo=data.loginInfo.openUser;
  273. this.wxOpenData=data.loginInfo;
  274. this.$store.commit('mutationswxOpenData', data)
  275. this.$store.commit('mutationsuserInfo', this.userInfo)
  276. this.topIndex=1;
  277. this.list=[];
  278. this.page=1;
  279. this.getlistOpenGoodsPage()
  280. }
  281. })
  282. },
  283. xlPx(num){
  284. this.salessort=true;
  285. this.defaultpxActive=false;
  286. this.pricesort=false;
  287. this.pricesort=false;
  288. this.pricesorts=false;
  289. this.pricesortx=false;
  290. if(this.salessorts){
  291. num=2
  292. }
  293. if(num==1){
  294. this.salessorts=true;
  295. this.salessortx=false;
  296. this.orderBy='asc';
  297. }else{
  298. this.salessorts=false;
  299. this.salessortx=true;
  300. this.orderBy='desc';
  301. }
  302. this.order='SaleQty';
  303. this.list=[];
  304. this.page=1;
  305. this.getlistOpenGoodsPage()
  306. },
  307. jgpx(type){
  308. this.salessort=false;
  309. this.defaultpxActive=false;
  310. this.pricesort=true;
  311. this.salessort=false;
  312. this.salessorts=false;
  313. this.salessortx=false;
  314. if(this.pricesorts){
  315. type=2
  316. }
  317. if(type==1){
  318. this.pricesorts=true;
  319. this.pricesortx=false;
  320. this.orderBy='asc';
  321. }else{
  322. this.pricesorts=false;
  323. this.pricesortx=true;
  324. this.orderBy='desc';
  325. }
  326. this.order='SalePrice';
  327. this.list=[];
  328. this.page=1;
  329. this.getlistOpenGoodsPage()
  330. },
  331. defaultpx(){
  332. this.defaultpxActive=true;
  333. this.order='';
  334. this.orderBy='';
  335. this.salessort=false;
  336. this.salessorts=false;
  337. this.salessortx=false;
  338. this.pricesort=false;
  339. this.pricesorts=false;
  340. this.pricesortx=false;
  341. //this.topIndex=0;
  342. this.list=[];
  343. this.page=1;
  344. this.getlistOpenGoodsPage()
  345. },
  346. defImg(event){
  347. // console.log(event)
  348. /* let img = event.srcElement;
  349. img.src = this.defaultImg;
  350. img.onerror = null; //防止闪图 */
  351. },
  352. topClick(index,item){
  353. //console.log(item)
  354. this.topIndex=index;
  355. this.list=[];
  356. this.page=1;
  357. this.categoryID=item.id;
  358. this.getlistOpenGoodsPage()
  359. },
  360. ssList(){
  361. this.topIndex=0;
  362. this.list=[];
  363. this.page=1;
  364. this.getlistOpenGoodsPage()
  365. },
  366. goDetail(item){
  367. // if(!this.userInfo){
  368. // this.authorizShow=true;
  369. // }else{
  370. // }
  371. uni.navigateTo({
  372. url:'goodsDetail?id='+item.id
  373. })
  374. },
  375. getcategoryList(){
  376. this.$http('openMall/categoryList', {
  377. unionId:this.ext.unionId
  378. },'GET').then(res => {
  379. this.categoryList=res.data;
  380. var obj={
  381. id:'',
  382. name:'全部'
  383. }
  384. this.categoryList.unshift(obj);
  385. var shopcategoryID = uni.getStorageSync("shopcategoryID")
  386. if(shopcategoryID){
  387. //console.log(this.shopcategoryID)
  388. this.categoryList.forEach((item,index)=>{
  389. //console.log(item.id)
  390. if(item.id==this.shopcategoryID){
  391. this.topIndex=index
  392. }
  393. })
  394. if(this.topIndex){
  395. this.categoryID=shopcategoryID;
  396. }else{
  397. this.categoryID=''
  398. }
  399. }
  400. })
  401. },
  402. getlistOpenGoodsPage(){
  403. uni.showLoading({ title: '加载中'});
  404. console.log(this.categoryID)
  405. var that=this;
  406. this.$http('openMall/listOpenGoodsPage', {
  407. page:this.page,
  408. limit:this.limit,
  409. name:this.name,
  410. categoryID:this.categoryID,
  411. orderBy:this.order,
  412. order:this.orderBy,
  413. unionId:this.ext.unionId
  414. },'GET').then(res => {
  415. uni.hideLoading();
  416. res.data.Items.forEach(item=>{
  417. if(item.goodsDownTime){
  418. item.shengyuM=''
  419. item.shengyuD=''
  420. item.shengyuH=''
  421. //console.log(item)
  422. //that.clock(item)
  423. let _this = this
  424. let today = new Date() // 当前时间
  425. let h = today.getHours()
  426. let m = today.getMinutes()
  427. let s = today.getSeconds()
  428. let stopTime = new Date(item.goodsDownTime.replace(/-/g, '/')) // 结束时间
  429. if (Number(new Date(item.goodsDownTime).getTime()) < Number(new Date().getTime())) {
  430. this.activityEnd = true
  431. return
  432. }
  433. let stopH = stopTime.getHours()
  434. let stopM = stopTime.getMinutes()
  435. let stopS = stopTime.getSeconds()
  436. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  437. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  438. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  439. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  440. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  441. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  442. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  443. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  444. item.shengyuM=shengyuM;
  445. item.shengyuD=shengyuD;
  446. item.shengyuH=shengyuH;
  447. }
  448. })
  449. var data=res.data.Items;
  450. this.list=this.list.concat(data);
  451. console.log(this.list)
  452. })
  453. },
  454. clock(item){
  455. console.log(item)
  456. if(!item){
  457. return false;
  458. }
  459. let _this = this
  460. let today = new Date() // 当前时间
  461. let h = today.getHours()
  462. let m = today.getMinutes()
  463. let s = today.getSeconds()
  464. let stopTime = new Date(item.goodsDownTime.replace(/-/g, '/')) // 结束时间
  465. if (Number(new Date(item.goodsDownTime).getTime()) < Number(new Date().getTime())) {
  466. this.activityEnd = true
  467. return
  468. }
  469. let stopH = stopTime.getHours()
  470. let stopM = stopTime.getMinutes()
  471. let stopS = stopTime.getSeconds()
  472. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  473. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  474. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  475. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  476. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  477. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  478. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  479. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  480. this.shengyuM=shengyuM;
  481. this.shengyuD=shengyuD;
  482. this.shengyuH=shengyuH;
  483. setTimeout(_this.clock, 500)
  484. },
  485. },
  486. onReachBottom(){
  487. this.page++;
  488. this.getlistOpenGoodsPage()
  489. //console.log("shanglas")
  490. },
  491. onPullDownRefresh(){
  492. this.list=[];
  493. this.page=1;
  494. this.getlistOpenGoodsPage();
  495. setTimeout(() => {
  496. uni.stopPullDownRefresh(); // 关闭下拉刷新
  497. }, 2000);
  498. }
  499. }
  500. </script>
  501. <style scoped lang="less">
  502. .btn_top{
  503. width: 100rpx;
  504. height: 100rpx;
  505. position: fixed;
  506. right: 24rpx;
  507. bottom: 40rpx;
  508. }
  509. .timeTbox{
  510. height: 60rpx;
  511. display: flex;
  512. padding-top: 15rpx;
  513. font-size: 24rpx;
  514. font-family: PingFangSC-Regular, PingFang SC;
  515. font-weight: 400;
  516. color: #764D49;
  517. }
  518. .timeviewTxt{
  519. line-height: 41rpx;
  520. padding-top: 10rpx;
  521. }
  522. .timeDivTxt{
  523. line-height: 60rpx;
  524. padding: 0 10rpx;
  525. }
  526. .timeK{
  527. height: 41rpx;
  528. line-height: 41rpx;
  529. color: #FFFFFF;
  530. width: 41rpx;
  531. text-align: center;
  532. background: #F03B3B;
  533. border-radius: 6rpx;
  534. margin-top: 9rpx;
  535. margin-left: 10rpx;
  536. margin-right: 10rpx;
  537. }
  538. .hotGoodsLineRIghtBottom{
  539. display: flex;
  540. justify-content: space-between;
  541. width: 470rpx;
  542. }
  543. .topbox{
  544. position: fixed;
  545. width: 750rpx;
  546. top: -1rpx;
  547. left: 0;
  548. z-index: 11;
  549. }
  550. .inputCh{
  551. width:40rpx;
  552. height: 40rpx;
  553. position: absolute;
  554. right: 60rpx;
  555. top: 40rpx;
  556. z-index: 11;
  557. }
  558. .pxActive{
  559. color: #FF0000 !important;
  560. }
  561. .paixuLineTbtopIcon{
  562. width: 16rpx;
  563. height: 8rpx;
  564. display: block;
  565. padding-left: 10rpx;
  566. }
  567. .paixuLineTbtopIconx{
  568. padding-bottom:24rpx;
  569. }
  570. .paixuLineTbtopIcons{
  571. padding-top: 8rpx;
  572. }
  573. .paixuLineTbBox{
  574. display: flex;
  575. flex-direction: column;
  576. justify-content: space-between;
  577. }
  578. .box{
  579. background: #F4F5F7;
  580. min-height: 100vh;
  581. }
  582. .sstopInput{
  583. width: 626rpx;
  584. height: 72rpx;
  585. background: #F4F5F7;
  586. border-radius: 36rpx;
  587. line-height: 72rpx;
  588. font-size: 28rpx;
  589. padding-left: 76rpx;
  590. }
  591. .sstop{
  592. position: relative;
  593. padding-top: 24rpx;
  594. padding-left: 24rpx;
  595. background: #ffffff;
  596. }
  597. .sstopimg{
  598. width: 40rpx;
  599. height: 40rpx;
  600. position: absolute;
  601. left: 44rpx;
  602. top: 40rpx;
  603. }
  604. .scroll-Y{
  605. background: #ffffff;
  606. width: 750rpx;
  607. }
  608. .goodsBox{
  609. // height: calc(100vh - 280rpx);
  610. // padding-bottom: 120rpx;
  611. }
  612. .classificationBox{
  613. display: flex;
  614. padding-bottom: 12rpx;
  615. }
  616. .classificationName{
  617. white-space: nowrap;
  618. font-size: 28rpx;
  619. color: #3C3C3C;
  620. line-height: 40rpx;
  621. padding:24rpx 24rpx 8rpx 24rpx;
  622. font-weight: 400;
  623. }
  624. .classificationNameActive{
  625. font-weight: 500 !important;
  626. /* color: #FF0000 ; */
  627. }
  628. .classificationHx{
  629. width: 40rpx;
  630. height: 4rpx;
  631. // background: #FF0000;
  632. margin: 0 auto;
  633. }
  634. .paixuBox{
  635. width: 750rpx;
  636. height: 72rpx;
  637. background: #FFFFFF;
  638. margin-top: 20rpx;
  639. display: flex;
  640. justify-content: space-around;
  641. border-bottom: 1px solid #EEEEEE;
  642. }
  643. .paixuLine{
  644. line-height: 37rpx;font-size: 26rpx;color: #666666;padding-top: 18rpx;
  645. display: flex;
  646. }
  647. .hotGoodsLine{
  648. margin-top: 30rpx;
  649. padding:0rpx 20rpx;
  650. background: #FFFFFF;
  651. border-radius: 16rpx;
  652. display: flex;
  653. }
  654. .hotGoodsLineImg{
  655. width: 208rpx;
  656. height: 194rpx;
  657. border-radius: 16rpx;
  658. border: 1px solid #EEEEEE;
  659. display: block;
  660. }
  661. .goodsName{
  662. font-size: 28rpx;
  663. font-family: PingFangSC-Regular, PingFang SC;
  664. font-weight: 400;
  665. color: #333333;
  666. line-height: 40rpx;
  667. text-overflow: -o-ellipsis-lastline;
  668. overflow: hidden;
  669. text-overflow: ellipsis;
  670. display: -webkit-box;
  671. -webkit-line-clamp: 2;
  672. line-clamp: 2;
  673. -webkit-box-orient: vertical;
  674. }
  675. .hotGoodsLineRIght{
  676. padding-left: 24rpx;
  677. }
  678. .goodsPrice{
  679. display: flex;
  680. padding-top: 10rpx;
  681. }
  682. .goodsPrice1{
  683. font-size: 24rpx;
  684. font-weight: 400;
  685. color: #FF0000;
  686. padding-top: 8rpx;
  687. }
  688. .goodsPrice2{
  689. font-size: 22rpx;
  690. font-weight: 400;
  691. color: #FF0000;
  692. padding-top: 10rpx;
  693. }
  694. .goodsPrice3{
  695. font-size: 32rpx;
  696. font-weight: 500;
  697. color: #FF0000;
  698. }
  699. .goodsPrice4{
  700. font-size: 24rpx;
  701. font-weight: 400;
  702. color: #999999;
  703. padding-top: 8rpx;
  704. text-decoration:line-through;
  705. padding-left: 10rpx;
  706. }
  707. .Sold{
  708. font-weight: 400;
  709. color: #999999;
  710. font-size: 24rpx;
  711. padding-top: 20rpx;
  712. line-height: 30rpx;
  713. height: 30rpx;
  714. }
  715. .authorizBox{
  716. width: 100vw;
  717. height: 100vh;
  718. background: rgba(0, 0, 0, 0.5);
  719. position: fixed;
  720. top: 0;
  721. left: 0;
  722. }
  723. .authorizCont{
  724. margin-top: 30vh;
  725. width: 564rpx;
  726. height: 408rpx;
  727. background: #FFFFFF;
  728. border-radius: 24rpx;
  729. margin-left: 93rpx;
  730. position: relative;
  731. }
  732. .authorizCloseImg{
  733. width: 62rpx;
  734. height: 62rpx;
  735. }
  736. .sqLogoBox{
  737. width: 180rpx;
  738. height: 180rpx;
  739. background: #FFFFFF;
  740. border-radius: 90rpx;
  741. text-align: center;
  742. position: absolute;
  743. top: -50rpx;
  744. left: 192rpx;
  745. }
  746. .authorizName{
  747. color: #333333;
  748. line-height: 42rpx;
  749. font-size: 30rpx;
  750. text-align: center;
  751. padding-top: 58rpx;
  752. }
  753. .authorizMs{
  754. color: #999999;
  755. line-height: 36rpx;
  756. font-size: 26rpx;
  757. width: 452rpx;
  758. padding-top: 24rpx;
  759. text-align: center;
  760. margin-left: 56rpx;
  761. }
  762. .authorizContbutton{
  763. width: 422rpx;
  764. height: 88rpx;
  765. background: #D53533;
  766. border-radius: 44rpx;
  767. line-height: 88rpx;
  768. text-align: center;
  769. font-size:30rpx;
  770. color: #FFFFFF;
  771. margin-top: 62rpx;
  772. margin-left:71rpx;
  773. }
  774. </style>