shop.vue 19 KB

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