shop.vue 19 KB

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