goodsDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  1. <template>
  2. <view class="box">
  3. <view class="spwBox">
  4. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  5. <swiper-item v-for="(item,index) in info.ImgList">
  6. <view class="swiper-item">
  7. <img mode="aspectFit" :src="item.url" alt="" class="swiper-itemImg" v-if="item.bizType==1">
  8. <video :src="item.url" v-if="item.bizType==2" show-fullscreen-btn controls style="width: 100%;height: 100%;"></video>
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. </view>
  13. <view class="shopCont">
  14. <view class="shopCtop">
  15. <view class="goodsPrice">
  16. <view class="goodsPrice1" v-if="info.saleLabel">{{info.saleLabel}}</view>
  17. <view class="goodsPrice2">¥</view>
  18. <view class="goodsPrice3">{{info.salePrice?info.salePrice:info.scribingPrice}}
  19. <span v-if="info.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  20. </view>
  21. <view class="goodsPrice4" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  22. </view>
  23. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">已售 {{info.saleQty}}</view>
  24. </view>
  25. <view class="goodsName">{{info.name}}</view>
  26. <view class="goodsMd" v-if="info.sellingPoint">{{info.sellingPoint}}</view>
  27. </view>
  28. <view class="modeBox">
  29. <view class="modeline">
  30. <view class="modelineLeft">配送方式</view>
  31. <view class="modeLineRight">{{info.distributionType==1?'到店取货':'到店使用'}}</view>
  32. </view>
  33. <view class="modeline" v-if="info.oneQty">
  34. <view class="modelineLeft">限购数量</view>
  35. <view class="modeLineRight" >{{info.oneQty}}</view>
  36. </view>
  37. <view class="modeline" v-if="info.afterService">
  38. <view class="modelineLeft">售后服务</view>
  39. <view class="modeLineRight">{{info.afterService}}</view>
  40. </view>
  41. </view>
  42. <!-- 服务流程 -->
  43. <view class="fuwuliucBox" v-if="info.showLabel&&info.showLabel.indexOf('4')!=-1">
  44. <view class="fwlcTitle">服务流程</view>
  45. <view class="fwlcxian">
  46. <view class="fwlcyuan"></view>
  47. <view class="fwHx"></view>
  48. <view class="fwlcyuan"></view>
  49. <view class="fwHx"></view>
  50. <view class="fwlcyuan"></view>
  51. <view class="fwHx"></view>
  52. <view class="fwlcyuan"></view>
  53. </view>
  54. <view class="fwTxt">
  55. <view class="fwTxtline">选择商品</view>
  56. <view class="fwTxtline">选择门店</view>
  57. <view class="fwTxtline">在线支付</view>
  58. <view class="fwTxtline">到店服务</view>
  59. </view>
  60. </view>
  61. <!-- 套餐内容 -->
  62. <view class="mealBox" v-if="info.bizType==3">
  63. <view class="fwlcTitle">套餐内容</view>
  64. <view class="mealLine" v-if="info.itemPackTimesDetails">
  65. <view class="mealTop">
  66. <view class="mealName">项目名称</view>
  67. <view class="mealTopRight">
  68. <view>数量</view>
  69. <view style="padding-left: 60rpx;">有效期</view>
  70. </view>
  71. </view>
  72. <view class="itemlinebOX">
  73. <view class="itemline" v-for="(item,index) in info.itemPackTimesDetails">
  74. <view class="itemname">{{item.flowName}}</view>
  75. <view>{{item.flowQty}}</view>
  76. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  77. <view class="expireNumber" v-else>永久</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="mealLine" v-if="info.goodsPackTimesDetails">
  82. <view class="mealTop">
  83. <view class="mealName">商品名称</view>
  84. <view class="mealTopRight">
  85. <view>数量</view>
  86. <view style="padding-left: 60rpx;">有效期</view>
  87. </view>
  88. </view>
  89. <view class="itemlinebOX">
  90. <view class="itemline" v-for="(item,index) in info.goodsPackTimesDetails">
  91. <view class="itemname">{{item.flowName}}</view>
  92. <view>{{item.flowQty}}</view>
  93. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  94. <view class="expireNumber" v-else>永久</view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 商品详情 -->
  100. <view class="goodsDetail" v-if="info.details">
  101. <view class="goodsDetailTitle">商品详情</view>
  102. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  103. <rich-text :nodes="info.details" style="background: #fff;"></rich-text>
  104. </view>
  105. <view style="height: 120rpx;padding-bottom: env(safe-area-inset-bottom)"></view>
  106. <view class="bottomHz">
  107. <view class="timeTbox" v-if="!activityEnd">
  108. <view class="timeK">{{shengyuD}}</view>
  109. <view class="timeviewTxt" > 天</view>
  110. <view class="timeK">{{shengyuH}}</view>
  111. <view class="timeviewTxt"> 时</view>
  112. <view class="timeK">{{shengyuM}}</view>
  113. <view class="timeviewTxt" > 分 &nbsp;&nbsp; 后结束抢购</view>
  114. </view>
  115. <view class="timeTbox" v-if="activityEnd"></view>
  116. <view class="bottomBox">
  117. <view class="bottomImgBox" @click="goINdex">
  118. <image src="../../static/timg/home.png" mode="" class="bottomImg"></image>
  119. <view class="bottomTxt">首页</view>
  120. </view>
  121. <!-- <view class="bottomImgBox" style="margin-left: 20rpx;" @click="sharewx">
  122. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  123. <view class="bottomTxt">分享</view>
  124. </view> -->
  125. <button open-type="share" class="bottomImgBox shareBtn" >
  126. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  127. <view class="bottomTxt">分享</view>
  128. </button>
  129. <view class="bottomBtn" @click="ljbuy">立即购买</view>
  130. </view>
  131. </view>
  132. <!-- 立即购买 -->
  133. <view class="buyBox" v-if="buyShow" @click="buyShow=false">
  134. <view class="buyCont" @click.stop="">
  135. <image src="../../static/timg/chahao.png" mode="" class="buyContCh" @click="buyShow=false"></image>
  136. <view class="goodsBox">
  137. <view class="hotGoodsLine" >
  138. <view>
  139. <image :src="info.ImgList[0].url" mode="" v-if="info.ImgList.length>0" class="hotGoodsLineImg"></image>
  140. <image src="../../static/timg/noimg.png" class="hotGoodsLineImg" v-else></image>
  141. </view>
  142. <view class="hotGoodsLineRIght">
  143. <view class="goodsName2">{{info.name}}</view>
  144. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">
  145. 已售 {{info.saleQty}}</view>
  146. <view class="goodsPrice">
  147. <view class="goodsPrice11" v-if="info.saleLabel">{{info.saleLabel}}</view>
  148. <view class="goodsPrice22">¥</view>
  149. <view class="goodsPrice33">{{info.salePrice?info.salePrice:info.scribingPrice}}
  150. <span v-if="info.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  151. </view>
  152. <view class="goodsPrice44" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="buyNumBox">
  158. <view class="bugNUm">
  159. <view class="bugNUmLeft">
  160. <view class="buySl">数量</view>
  161. <view class="buyXg" v-if="info.oneQty">限购{{info.oneQty}}件</view>
  162. </view>
  163. <view class="numJsbox">
  164. <view class="numJj" @click="calculation(1)">-</view>
  165. <view class="goodsnum">
  166. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  167. </view>
  168. <view class="numJj" @click="calculation(2)">+</view>
  169. </view>
  170. </view>
  171. <view class="buySHop" @click="ckShop">
  172. <view>服务门店</view>
  173. <view class="buyShopRight" >
  174. <view v-if="shopInfo.shopId">{{shopInfo.shopName}}</view>
  175. <view v-else>请选择</view>
  176. <image src="../../static/timg/icon_arrow_right.png" mode="" class="buyShopRightJt"></image>
  177. </view>
  178. </view>
  179. </view>
  180. <view class="buybtnBox">
  181. <view class="buyBtn" @click="goBuy">立即购买</view>
  182. </view>
  183. </view>
  184. </view>
  185. <!-- 手机号授权 -->
  186. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  187. <view class="authorizCont" @click.stop="">
  188. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  189. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  190. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  191. </view>
  192. <view style="text-align: center;padding-top: 56rpx;">
  193. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  194. </view>
  195. </view>
  196. <!-- <view :style="{color:colorX}">asdfas</view> -->
  197. </view>
  198. </template>
  199. <script>
  200. export default {
  201. components: {
  202. },
  203. data() {
  204. return {
  205. userInfo:'',
  206. goodsnum:1,
  207. buyShow:false,
  208. id:'',
  209. info:'',
  210. shopInfo:{
  211. shopName:'',
  212. shopId:''
  213. },
  214. authorizShow:false,
  215. code:'',
  216. wxOpenData:'',
  217. ext:'',
  218. categoryIds:'',
  219. thenShow:false,
  220. activityEnd:true,
  221. shengyuD:1,
  222. shengyuH:12,
  223. shengyuM:21,
  224. }
  225. },
  226. onLoad(opt) {
  227. this.id=opt.id;
  228. //this.userInfo = uni.getStorageSync("userInfo");
  229. this.userInfo=this.$store.state.userInfo;
  230. this.ext=this.$common.getExtStoreId();
  231. if(this.userInfo){
  232. this.wxOpenData=this.$store.state.wxOpenData;
  233. this.openGoodsDetailById();
  234. }else{
  235. this.$common.automaticlogin().then(val => {
  236. this.userInfo=this.$store.state.userInfo;
  237. this.wxOpenData=this.$store.state.wxOpenData;
  238. this.openGoodsDetailById();
  239. console.log(this.userInfo)
  240. })
  241. }
  242. },
  243. onShow() {
  244. this.shopInfo=this.$store.state.ckshopInfo;
  245. //console.log(this.shopInfo)
  246. },
  247. onPullDownRefresh(){
  248. this.openGoodsDetailById();
  249. setTimeout(() => {
  250. uni.stopPullDownRefresh(); // 关闭下拉刷新
  251. }, 2000);
  252. },
  253. methods: {
  254. sharewx(){
  255. },
  256. ckShop(){
  257. uni.navigateTo({
  258. url:'ckshopList?goodsId='+this.id
  259. })
  260. },
  261. openGoodsDetailById(){
  262. this.$http('openMall/openGoodsDetailById', {
  263. id:this.id,
  264. GoodsID:this.id,
  265. },'GET').then(res => {
  266. this.info=res.data;
  267. if(this.info.details){
  268. this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  269. }
  270. this.shopInfo='';
  271. this.$store.commit('mutationsckshopInfo', '')
  272. this.szShop()
  273. if(this.info.goodsDownTime){
  274. this.activityEnd=false;
  275. this.clock()
  276. }
  277. })
  278. },
  279. clock(){
  280. let _this = this
  281. let today = new Date() // 当前时间
  282. let h = today.getHours()
  283. let m = today.getMinutes()
  284. let s = today.getSeconds()
  285. let stopTime = new Date(_this.info.goodsDownTime.replace(/-/g, '/')) // 结束时间
  286. if (Number(new Date(_this.info.goodsDownTime).getTime()) < Number(new Date().getTime())) {
  287. this.activityEnd = true
  288. return
  289. }
  290. let stopH = stopTime.getHours()
  291. let stopM = stopTime.getMinutes()
  292. let stopS = stopTime.getSeconds()
  293. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  294. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  295. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  296. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  297. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  298. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  299. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  300. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  301. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  302. // setTimeout("clock()",500);
  303. this.shengyuM=shengyuM;
  304. this.shengyuD=shengyuD;
  305. this.shengyuH=shengyuH;
  306. setTimeout(_this.clock, 500)
  307. },
  308. ljbuy(){
  309. if(!this.userInfo){
  310. this.authorizShow=true
  311. }else{
  312. this.buyShow=true
  313. }
  314. },
  315. szShop(){
  316. if(this.userInfo){
  317. this.$http('openMall/openStoreList', {
  318. goodsId:this.id,
  319. // lat: '',
  320. // lng: '',
  321. }, 'GET').then(res => {
  322. var queryShopList = res.data
  323. //console.log('list+=', this.queryShopList);
  324. queryShopList.forEach(item=>{
  325. if(item.shopId==this.info.shopId){
  326. var item={
  327. shopId:this.info.shopId,
  328. shopName:this.info.shopName
  329. }
  330. this.shopInfo=item
  331. this.$store.commit('mutationsckshopInfo', item)
  332. }
  333. })
  334. })
  335. }
  336. },
  337. goINdex(){
  338. uni.switchTab({
  339. url:'../index/index'
  340. })
  341. },
  342. goBuy(){
  343. if(!this.shopInfo.shopId){
  344. uni.showToast({
  345. title: '请选择服务门店',
  346. icon: 'none',
  347. duration: 3000
  348. });
  349. return false;
  350. }
  351. var that=this;
  352. uni.setStorage({
  353. key: 'goodsDetail',
  354. data: that.info,
  355. success: function () {
  356. uni.navigateTo({
  357. url:'confirm?itemQty='+that.goodsnum+'&shopID='+that.shopInfo.shopId+'&shopName='+that.shopInfo.shopName
  358. })
  359. }
  360. });
  361. },
  362. calculation(type){
  363. if(type==1){
  364. if(this.goodsnum>1){
  365. this.goodsnum--
  366. }
  367. }else{
  368. console.log("+++")
  369. if(this.info.oneQty!=null){
  370. if(this.info.oneQty>this.goodsnum){
  371. this.goodsnum++
  372. }
  373. }else{
  374. this.goodsnum++
  375. }
  376. }
  377. },
  378. decryptPhoneNumber: function(e) {
  379. console.log(e);
  380. this.code=e.detail.code
  381. this.wxPhoneLogin()
  382. this.authorizShow=false;
  383. },
  384. wxPhoneLogin(){
  385. var that=this;
  386. this.$http('miniApp2/sys/wxPhoneLogin', {
  387. appId:this.ext.appId,
  388. unionId:this.ext.unionId,
  389. code:this.code,
  390. openId:this.wxOpenData.openid
  391. },'POST').then(res => {
  392. var data = res.data;
  393. if(data.loginInfo){
  394. this.userInfo=data.loginInfo.openUser;
  395. this.wxOpenData=data.loginInfo;
  396. this.$store.commit('mutationswxOpenData', data.loginInfo)
  397. this.$store.commit('mutationsuserInfo', this.userInfo)
  398. this.szShop()
  399. }
  400. })
  401. },
  402. },
  403. onShareAppMessage(res) {
  404. var img='';
  405. if(this.info.ImgList.length>0){
  406. img=this.info.ImgList[0].url
  407. }
  408. return {
  409. title: this.info.name,
  410. imageUrl:img,
  411. path: 'pages/shop/goodsDetail?id=' + this.id,
  412. success(res){
  413. uni.showToast({
  414. title:'分享成功'
  415. })
  416. },
  417. fail(res){
  418. uni.showToast({
  419. title:'分享失败',
  420. icon:'none',
  421. duration: 3000
  422. })
  423. }
  424. }
  425. },
  426. }
  427. </script>
  428. <style scoped lang="less">
  429. .timeTbox{
  430. width: 750rpx;
  431. height: 60rpx;
  432. background:#FFF5F0;
  433. border-radius: 24rpx 24rpx 0px 0px;
  434. border: 1px solid #EFE1D5;
  435. display: flex;
  436. justify-content: center;
  437. font-size: 24rpx;
  438. font-family: PingFangSC-Regular, PingFang SC;
  439. font-weight: 400;
  440. color: #764D49;
  441. }
  442. .timeviewTxt{
  443. line-height: 41rpx;
  444. padding-top: 10rpx;
  445. }
  446. .timeDivTxt{
  447. line-height: 60rpx;
  448. padding: 0 10rpx;
  449. }
  450. .timeK{
  451. height: 41rpx;
  452. line-height: 41rpx;
  453. color: #FFFFFF;
  454. width: 41rpx;
  455. text-align: center;
  456. background: #F03B3B;
  457. border-radius: 6rpx;
  458. margin-top: 9rpx;
  459. margin-left: 15rpx;
  460. margin-right: 15rpx;
  461. }
  462. .bottomHz{
  463. width: 750rpx;
  464. height: 180rpx;
  465. position: fixed;left: 0;
  466. bottom: 0;
  467. padding-bottom: env(safe-area-inset-bottom);
  468. background: #FFFFFF;
  469. border-radius: 24rpx 24rpx 0px 0px;
  470. }
  471. .box{
  472. background: #F4F5F7;
  473. min-height: 100vh;
  474. }
  475. .buySHop{
  476. display: flex;
  477. justify-content: space-between;
  478. font-size:28rpx ;
  479. color: #666666;
  480. padding-top: 30rpx;
  481. }
  482. .buybtnBox{
  483. width: 750rpx;
  484. height: 120rpx;
  485. background: #FFFFFF;
  486. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  487. padding-top: 20rpx;
  488. }
  489. .buyBox{
  490. width: 750rpx;
  491. height: 100vh;
  492. position: fixed;
  493. left: 0;
  494. top: 0;
  495. background: rgba(0,0,0,0.5);
  496. }
  497. .buyBtn{
  498. width: 690rpx;
  499. height: 74rpx;
  500. background: #D53533;
  501. border-radius: 37rpx;
  502. text-align: center;
  503. line-height: 74rpx;
  504. color: #FFFFFF;
  505. font-size: 30rpx;
  506. margin-left: 30rpx;
  507. }
  508. .buyShopRightJt{
  509. width: 12rpx;
  510. height: 20rpx;
  511. margin-top: 8rpx;
  512. margin-left: 10rpx;
  513. }
  514. .buyShopRight{
  515. display: flex;
  516. }
  517. .bugNUm{
  518. border-top: 1px solid #EEEEEE;
  519. border-Bottom: 1px solid #EEEEEE;
  520. padding: 28rpx 0;
  521. display: flex;
  522. justify-content: space-between;
  523. }
  524. .buyXg{
  525. width: 110rpx;
  526. height: 36rpx;
  527. border-radius: 4rpx;
  528. border: 1px solid #F19D01;
  529. text-align: center;
  530. line-height: 36rpx;
  531. color: #F19D01;
  532. font-size: 24rpx;
  533. }
  534. .numJj{
  535. width: 44rpx;
  536. height: 44rpx;
  537. background: #F4F5F7;
  538. border-radius: 0px 6rpx 6rpx 0px;
  539. text-align: center;
  540. line-height: 44rpx;
  541. font-size: 32rpx;
  542. color: #999999;
  543. }
  544. .bugNUmLeft{
  545. display: flex;
  546. }
  547. .buySl{
  548. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  549. }
  550. .goodsnum{
  551. width: 88rpx;
  552. height: 44rpx;
  553. background: #F4F5F7;
  554. line-height: 44rpx;
  555. text-align: center;
  556. font-weight: 500;
  557. color: #333333;
  558. font-size: 24rpx;
  559. margin: 0 4rpx;
  560. }
  561. .goodsnumInput{
  562. width: 88rpx;
  563. height: 44rpx;
  564. background: #F4F5F7;
  565. line-height: 44rpx;
  566. text-align: center;
  567. font-weight: 500;
  568. color: #333333;
  569. font-size: 24rpx;
  570. }
  571. .numJsbox{
  572. display: flex;
  573. }
  574. .buyCont{
  575. position: absolute;
  576. left: 0;
  577. bottom: 0;
  578. width: 750rpx;
  579. height: 688rpx;
  580. background: #FFFFFF;
  581. border-radius: 26rpx 26rpx 0px 0px;
  582. }
  583. .buyNumBox{
  584. padding: 30rpx;
  585. padding-top: 10rpx;
  586. padding-bottom: 70rpx;
  587. }
  588. .buyContCh{
  589. position: absolute;
  590. top: 53rpx;
  591. right: 36rpx;
  592. width: 36rpx;
  593. height: 36rpx;
  594. }
  595. .hotGoodsLine{
  596. margin-top: 30rpx;
  597. padding: 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. }
  608. .goodsName2{
  609. font-size: 28rpx;
  610. font-family: PingFangSC-Regular, PingFang SC;
  611. font-weight: 400;
  612. color: #333333;
  613. line-height: 40rpx;
  614. text-overflow: -o-ellipsis-lastline;
  615. overflow: hidden;
  616. text-overflow: ellipsis;
  617. display: -webkit-box;
  618. -webkit-line-clamp: 2;
  619. line-clamp: 2;
  620. -webkit-box-orient: vertical;
  621. min-height: 80rpx;
  622. width: 370rpx;
  623. }
  624. .hotGoodsLineRIght{
  625. padding-left: 24rpx;
  626. }
  627. .goodsPrice{
  628. display: flex;
  629. padding-top: 10rpx;
  630. }
  631. .goodsPrice11{
  632. font-size: 24rpx;
  633. font-weight: 400;
  634. color: #FF0000;
  635. padding-top: 8rpx;
  636. padding-right: 10rpx;
  637. }
  638. .goodsPrice22{
  639. font-size: 22rpx;
  640. font-weight: 400;
  641. color: #FF0000;
  642. padding-top: 8rpx;
  643. }
  644. .goodsPrice33{
  645. font-size: 32rpx;
  646. font-weight: 500;
  647. color: #FF0000;
  648. }
  649. .goodsPrice44{
  650. font-size: 24rpx;
  651. font-weight: 400;
  652. color: #999999;
  653. padding-top: 8rpx;
  654. padding-left: 5rpx;
  655. text-decoration:line-through;
  656. }
  657. .bottomBox{
  658. width: 750px;
  659. height: 120rpx;
  660. background: #FFFFFF;
  661. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  662. display: flex;
  663. }
  664. .bottomTxt{
  665. color: #666666;font-size: 22rpx;
  666. }
  667. .bottomImg{
  668. width: 48rpx;height: 48rpx;
  669. }
  670. .bottomImgBox{
  671. text-align: center;
  672. padding-top: 20rpx;
  673. padding-left: 40rpx;
  674. }
  675. .shareBtn{
  676. width: 100rpx;
  677. background: #FFFFFF;
  678. }
  679. button::after{
  680. border: none;
  681. }
  682. button{
  683. position: relative;
  684. display: block;
  685. margin-left: 0;
  686. margin-right: 0;
  687. padding-left: 0px;
  688. padding-right: 0px;
  689. box-sizing: border-box;
  690. // font-size: 18px;
  691. text-align: center;
  692. text-decoration: none;
  693. // line-height: 1;
  694. line-height: 1.35;
  695. // border-radius: 5px;
  696. -webkit-tap-highlight-color: transparent;
  697. overflow: hidden;
  698. color: #000000;
  699. background-color: #fff;
  700. height: 100%;
  701. }
  702. .bottomBtn{
  703. width: 450rpx;
  704. height: 74rpx;
  705. background: #D53533;
  706. border-radius: 37rpx;
  707. line-height: 74rpx;
  708. text-align: center;
  709. color: #FFFFFF;
  710. font-size: 30rpx;
  711. margin-top: 23rpx;
  712. margin-left: 70rpx;
  713. }
  714. .goodsDetailTitle{
  715. color: #333333;
  716. font-size: 30rpx;
  717. font-weight: 500;
  718. background: #FFFFFF;
  719. padding: 20rpx 24rpx;
  720. }
  721. .goodsDetail{
  722. margin-top: 20rpx;
  723. padding-bottom: 30rpx;
  724. background: #FFFFFF;
  725. }
  726. .goodsDetail img{
  727. width: 750rpx;
  728. }
  729. .goodsDetail image{
  730. width: 750rpx;
  731. }
  732. .mealBox{
  733. background: #FFFFFF;
  734. padding: 20rpx 24rpx;
  735. margin-top: 20rpx;
  736. }
  737. .mealTopRight{
  738. display: flex;
  739. }
  740. .mealLine{
  741. margin-top: 20rpx;
  742. }
  743. .itemname{
  744. width: 441rpx;
  745. text-overflow: -o-ellipsis-lastline;
  746. overflow: hidden;
  747. text-overflow: ellipsis;
  748. display: -webkit-box;
  749. -webkit-line-clamp: 2;
  750. line-clamp: 2;
  751. -webkit-box-orient: vertical;
  752. }
  753. .itemline{
  754. display: flex;
  755. padding: 10rpx 20rpx;
  756. justify-content: space-between;
  757. line-height: 37rpx;
  758. font-size: 26rpx;
  759. color: #333333;
  760. }
  761. .itemlinebOX{
  762. border-radius: 0px 0px 10px 10px;
  763. border: 2Rpx solid #EEEEEE;
  764. padding: 10rpx 0;
  765. }
  766. .mealTop{
  767. display: flex;
  768. justify-content: space-between;
  769. height: 72rpx;
  770. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  771. border-radius: 10rpx 10rpx 0px 0px;
  772. line-height: 72rpx;
  773. color: #333333;
  774. font-size: 26rpx;
  775. padding: 0 20rpx;
  776. }
  777. .fwlcTitle{
  778. color: #333333;font-size: 30rpx;font-weight: 500;
  779. }
  780. .fuwuliucBox{
  781. background: #FFFFFF;
  782. padding: 20rpx 24rpx;
  783. margin-top: 20rpx;
  784. }
  785. .fwlcxian{
  786. padding:30rpx 42rpx 10rpx 42rpx ;
  787. display: flex;
  788. }
  789. .fwlcyuan{
  790. width: 16rpx;
  791. height: 16rpx;
  792. background: #FF0000;
  793. border-radius: 50%;
  794. }
  795. .fwHx{
  796. height: 4rpx;
  797. background: #FF0000;
  798. width: 186rpx;
  799. margin-top: 7rpx;
  800. }
  801. .fwTxt{
  802. display: flex;
  803. justify-content: space-between;
  804. }
  805. .fwTxtline{
  806. color: #333333;
  807. line-height: 37px;
  808. font-size: 26rpx;
  809. }
  810. .swiper{
  811. width: 750rpx;
  812. height: 700rpx;
  813. background: #FFFFFF;
  814. border-bottom: 1px solid #EEEEEE;
  815. }
  816. .swiper-item{
  817. width: 750rpx;
  818. height: 700rpx;
  819. }
  820. .swiper-itemImg{
  821. width: 750rpx;
  822. height: 700rpx;
  823. }
  824. .shopCtop{
  825. display: flex;
  826. padding: 20rpx 24rpx;
  827. justify-content: space-between;
  828. background: #FFFFFF;
  829. }
  830. .goodsPrice{
  831. display: flex;
  832. }
  833. .goodsPrice1{
  834. font-size: 24rpx;
  835. font-weight: 400;
  836. color: #FF0000;
  837. padding-top: 14rpx;
  838. padding-right: 14rpx;
  839. }
  840. .goodsPrice2{
  841. font-size: 28rpx;
  842. font-weight: 400;
  843. color: #FF0000;
  844. padding-top: 10rpx;
  845. }
  846. .goodsPrice3{
  847. font-size: 40rpx;
  848. font-weight: 500;
  849. color: #FF0000;
  850. }
  851. .goodsPrice4{
  852. font-size: 24rpx;
  853. font-weight: 400;
  854. color: #999999;
  855. padding-top: 14rpx;
  856. text-decoration:line-through;
  857. padding-left: 10rpx;
  858. }
  859. .Sold{
  860. font-weight: 400;
  861. color: #999999;
  862. font-size: 24rpx;
  863. padding-top: 18rpx;
  864. }
  865. .goodsName{
  866. font-size: 30rpx;
  867. line-height: 42rpx;
  868. font-weight: 500;
  869. color: #333333;
  870. padding: 20rpx 24rpx;
  871. padding-top: 0;
  872. padding-bottom: 16rpx;
  873. }
  874. .goodsMd{
  875. font-weight: 400;
  876. color: #999999;
  877. font-size: 26rpx;
  878. padding: 0 24rpx;
  879. padding-bottom: 20rpx;
  880. }
  881. .shopCont{
  882. background: #FFFFFF;
  883. }
  884. .modeBox{
  885. margin-top:20rpx ;
  886. padding: 5rpx 0;
  887. background: #FFFFFF;
  888. }
  889. .modeline{
  890. display: flex;
  891. padding: 15rpx 24rpx;
  892. }
  893. .modelineLeft{
  894. color: #999999;
  895. font-size: 26rpx;
  896. width: 150rpx;
  897. }
  898. .modeLineRight{
  899. color: #333333;
  900. font-size: 26rpx;
  901. width: 550rpx;
  902. }
  903. .expireNumber{
  904. width: 110rpx;
  905. text-align: right;
  906. }
  907. .authorizBox{
  908. width: 100vw;
  909. height: 100vh;
  910. background: rgba(0, 0, 0, 0.5);
  911. position: fixed;
  912. top: 0;
  913. left: 0;
  914. }
  915. .authorizCont{
  916. margin-top: 30vh;
  917. width: 564rpx;
  918. height: 408rpx;
  919. background: #FFFFFF;
  920. border-radius: 24rpx;
  921. margin-left: 93rpx;
  922. position: relative;
  923. }
  924. .authorizCloseImg{
  925. width: 62rpx;
  926. height: 62rpx;
  927. }
  928. .sqLogoBox{
  929. width: 180rpx;
  930. height: 180rpx;
  931. background: #FFFFFF;
  932. border-radius: 90rpx;
  933. text-align: center;
  934. position: absolute;
  935. top: -50rpx;
  936. left: 192rpx;
  937. }
  938. .authorizName{
  939. color: #333333;
  940. line-height: 42rpx;
  941. font-size: 30rpx;
  942. text-align: center;
  943. padding-top: 58rpx;
  944. }
  945. .authorizMs{
  946. color: #999999;
  947. line-height: 36rpx;
  948. font-size: 26rpx;
  949. width: 452rpx;
  950. padding-top: 24rpx;
  951. text-align: center;
  952. margin-left: 56rpx;
  953. }
  954. .authorizContbutton{
  955. width: 422rpx;
  956. height: 88rpx;
  957. background: #D53533;
  958. border-radius: 44rpx;
  959. line-height: 88rpx;
  960. text-align: center;
  961. font-size:30rpx;
  962. color: #FFFFFF;
  963. margin-top: 62rpx;
  964. margin-left:71rpx;
  965. }
  966. </style>