shop.vue 19 KB

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