shop.vue 21 KB

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