index.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  1. <template>
  2. <view v-if="XCXIsSelect=='是'">
  3. <view>
  4. <view class="food_all">
  5. <!-- banner -->
  6. <swiper class="swiper" :autoplay="true" interval="2000" duration="500" :circular="true"
  7. style="width: 100%;height: 300rpx;">
  8. <swiper-item v-for="(item,index) in shopDet.shopBanner" :key='index'>
  9. <image :src="item" mode="scaleToFill" style="width: 100%;"></image>
  10. </swiper-item>
  11. </swiper>
  12. <view class="shop padding">
  13. <view class="flex justify-between">
  14. <view style="width: 500rpx;">
  15. <view class="text-xl text-bold u-line-1">{{shopDet.shopName}}
  16. </view>
  17. <view class="flex align-center margin-top-xs">
  18. <view style="color: #FD6416;font-weight: bold;font-size: 30rpx;">
  19. <u-icon name="star-fill" color="#FD6416" size="28"></u-icon>
  20. {{shopDet.shopScore?shopDet.shopScore:0}}
  21. </view>
  22. <view class="margin-left-xs text-gray">销量 {{shopDet.shopSales?shopDet.shopSales:0}}
  23. </view>
  24. <view class="margin-left-xs text-gray" v-if="shopDet.errandTime">
  25. 约{{shopDet.errandTime}}分钟
  26. </view>
  27. <view class="margin-left-xs text-gray" v-if="shopDet.minimumDelivery">
  28. {{shopDet.minimumDelivery}}元起送</view>
  29. </view>
  30. <view class="flex align-center margin-top-xs">
  31. <!-- <view style="color: #FCD202;margin-right: 8rpx;">{{shopDet.autoSendOrder==1?'商家配送':'平台配送'}}</view> -->
  32. <view style="margin-right: 8rpx;">{{shopDet.autoSendOrder==1?'商家配送:':'平台配送:'}}</view>
  33. <view class="text-gray" style="margin-right: 8rpx;">
  34. 配送费{{shopDet.errandMoney?shopDet.errandMoney:0}}元</view>
  35. <view class="lable text-gray" v-if="shopDet.exemptMinMoney">
  36. 满{{shopDet.exemptMinMoney}}元免配送费</view>
  37. </view>
  38. </view>
  39. <view>
  40. <image :src="shopDet.shopCover" class="radius"
  41. style="width: 110rpx;height: 110rpx;margin-top: 30rpx;">
  42. </image>
  43. </view>
  44. </view>
  45. <view class="flex align-center margin-top-xs" v-if="shopDet.shopNotice">
  46. <text style="width: 14%;">公告:</text>
  47. <u-notice-bar color="#AAAAAA" :speed="100" border-radius="30" padding="0rpx 0rpx"
  48. bg-color="#f5f5f5" style="width: 86%;" type="none" mode="horizontal" :volume-icon="false"
  49. :list="shopDet.shopNotice.split(',')"></u-notice-bar>
  50. </view>
  51. <view class="margin-top-xs" style="width: 100%;height: 40rpx;" v-if="couponList.length>0">
  52. <scroll-view scroll-x="true" class="scroll-view_H">
  53. <view class="coupon-item flex align-center" v-for="(item,index) in couponList" :key="index"
  54. @click="coupons=true">
  55. <view>¥</view>
  56. <view class="" style="font-weight: bold;font-size: 24rpx;margin-right: 10rpx;">
  57. {{item.money}}
  58. </view>
  59. <view style="margin-right: 20rpx;">满{{item.minMoney}}可用</view>
  60. <view style="font-weight: bold;">领</view>
  61. </view>
  62. <!-- <view class="flex align-center" style="width: 100%;height: 100%;">
  63. </view> -->
  64. </scroll-view>
  65. </view>
  66. </view>
  67. <!-- 食品 -->
  68. <view class="food">
  69. <!-- 店名地址 -->
  70. <view class="food_address">
  71. <view class="flex flex-sub bg justify-between padding-right-xl">
  72. <view @click="switchTab(1)" :class="current==1? 'select':''" class="tabBtn">
  73. <view class="title">全部商品</view>
  74. <view :class="current==1? 'active1':''"></view>
  75. </view>
  76. <view @click="switchTab(2)" :class="current==2? 'select':''" class="tabBtn">
  77. <view class="title">评价</view>
  78. <view :class="current==2? 'active1':''"></view>
  79. </view>
  80. <view @click="switchTab(3)" :class="current==3? 'select':''" class="tabBtn">
  81. <view class="title">商家</view>
  82. <view :class="current==3? 'active1':''"></view>
  83. </view>
  84. </view>
  85. <!-- <view class="flex Switch">
  86. <view @click="tabSwidth(1)" :class="orderType==1?'selSwitch':''">自取</view>
  87. <view @click="tabSwidth(2)" :class="orderType==2?'selSwitch':''">外卖</view>
  88. </view> -->
  89. <view>
  90. <!-- #ifdef MP-WEIXIN -->
  91. <image @click="goPindan()" src="../../../static/images/index/pindan.png"
  92. style="width: 160rpx;height: 64rpx;" mode=""></image>
  93. <!-- #endif -->
  94. </view>
  95. </view>
  96. <view class="VerticalBox" v-if="current==1">
  97. <scroll-view class="VerticalNav nav bg-gray" scroll-y scroll-with-animation
  98. :scroll-top="verticalNavTop" style="height:calc(100vh - 590upx)">
  99. <view style="font-size: 28upx;" class="cu-item text-lg"
  100. :class="index==tabCur?'cur':'text-gray'" v-for="(item,index) in dataList" :key="index"
  101. @tap="TabSelect" :data-id="index">
  102. {{item.classifyName}}
  103. </view>
  104. </scroll-view>
  105. <scroll-view class="VerticalMain" scroll-y scroll-with-animation
  106. style="height:calc(100vh - 590rpx)" :scroll-into-view="'main-'+mainCur"
  107. @scroll="VerticalMain">
  108. <view class="bg-white padding-sm margin-bottom-sm" v-for="(item,index) in dataList"
  109. v-if="item.goodsList.length" :key="index" :id="'main-'+index">
  110. <view class="flex justify-between padding-bottom-sm" @click="goDet(ite.goodsId)"
  111. v-for="(ite,ind) in item.goodsList" :key='ind'>
  112. <image :src="ite.goodsCover" mode=""
  113. style="width: 184rpx;height: 184rpx;border-radius: 10rpx;"></image>
  114. <view
  115. class="flex-sub margin-left-sm padding-tb-xs flex flex-direction justify-between">
  116. <view class="text-black text-lg text-bold" style="font-size: 30upx;">
  117. {{ite.goodsName}}
  118. </view>
  119. <view class="text-gray">
  120. 已售 {{ite.sales?ite.sales:0}}
  121. </view>
  122. <view class="text-gray text-sm u-line-2"
  123. style="overflow: hidden;line-clamp: 2;-webkit-line-clamp: 2;width: 100%;">
  124. {{ite.goodsDescribe?ite.goodsDescribe:''}}
  125. </view>
  126. <view class="flex justify-between">
  127. <view class="text-sm text-red">
  128. ¥ <text class="text-lg">{{ite.goodsMoney}}</text>
  129. </view>
  130. <image @click.stop="selSku(ite)" src="../../../static/images/index/add.png"
  131. mode="" style="width: 40rpx;height: 40rpx"></image>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </scroll-view>
  137. <empty v-if="!dataList.length"></empty>
  138. </view>
  139. <view class="" v-if="current==2">
  140. <view class="flex margin-lr padding-tb-sm u-border-bottom" v-if="shopDet.shopScore">
  141. <view class="flex padding-right">
  142. <view class="text-sl" style="color: #FD6416;">{{shopDet.shopScore}}</view>
  143. <view class="flex flex-direction justify-around margin-left-sm">
  144. <view>商家评分</view>
  145. <view class="flex">
  146. <u-icon v-for="ite in shopDet.shopScore1" :key='ite' color="#FCD202"
  147. name="star-fill"></u-icon>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="flex-sub flex justify-around u-border-left padding-left">
  152. <view class="flex flex-direction justify-around text-center">
  153. <view>好评</view>
  154. <view>{{EvaluateData.goodReputation?EvaluateData.goodReputation:0}}</view>
  155. </view>
  156. <view class="flex flex-direction justify-around text-center">
  157. <view>中评</view>
  158. <view>{{EvaluateData.mediumReview?EvaluateData.mediumReview:0}}</view>
  159. </view>
  160. <view class="flex flex-direction justify-around text-center">
  161. <view>差评</view>
  162. <view>{{EvaluateData.negativeComment?EvaluateData.negativeComment:0}}</view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="padding-tb-sm margin-lr">
  167. <u-button hover-class='none' @click="sel(0)" type="primary" shape="circle" size="mini"
  168. :plain="false" :custom-style="count==0?customStyle:customStyle1">全部评论</u-button>
  169. <u-button hover-class='none' @click="sel(1)" type="primary" shape="circle" size="mini"
  170. :plain="false" :custom-style="count==1?customStyle:customStyle1">
  171. 好评({{EvaluateData.goodReputation?EvaluateData.goodReputation:0}})</u-button>
  172. <u-button hover-class='none' @click="sel(2)" type="primary" shape="circle" size="mini"
  173. :plain="false" :custom-style="count==2?customStyle:customStyle1">
  174. 中评({{EvaluateData.mediumReview?EvaluateData.mediumReview:0}})</u-button>
  175. <u-button hover-class='none' @click="sel(3)" type="primary" shape="circle" size="mini"
  176. :plain="false" :custom-style="count==3?customStyle:customStyle1">
  177. 差评({{EvaluateData.negativeComment?EvaluateData.negativeComment:0}})</u-button>
  178. </view>
  179. <view class="padding-tb-sm margin-lr u-border-bottom" v-for="(item, index) in EvaluateList"
  180. :key='index'>
  181. <view class="flex justify-between align-center">
  182. <view class="flex align-center">
  183. <u-avatar :src="item.avatar" size="65"></u-avatar>
  184. <view class=" margin-left-sm" style="line-height: 46upx;">
  185. {{item.userName?item.userName:'匿名'}}
  186. </view>
  187. <view class="flex margin-left-sm">
  188. <u-icon v-for="ite in item.score" :key='ite' color="#FCD202" name="star-fill">
  189. </u-icon>
  190. </view>
  191. </view>
  192. <view>{{item.createTime}}</view>
  193. </view>
  194. <view class="margin-top-sm">{{item.evaluateMessage}}</view>
  195. <view class="pinglunImg" v-if="item.pictures!=undefined && item.pictures">
  196. <view class="pinglunImg-box flex justify-between flex-wrap">
  197. <image style="margin-bottom: 20rpx;"
  198. @click="yuanlan(item.pictures==undefined?[]:item.pictures.split(','),index2)"
  199. v-for="(item2,index2) in item.pictures==undefined?[]:item.pictures.split(',')"
  200. :src="item2" mode=""></image>
  201. <image style="margin-bottom: 20rpx;width: 160rpx;height: 0;" src="" mode=""></image>
  202. <image style="margin-bottom: 20rpx;width: 160rpx;height: 0;" src="" mode=""></image>
  203. </view>
  204. </view>
  205. <view class="margin-top-sm" v-if="item.shopReplyMessage">
  206. <view class="flex align-center">
  207. <view class=" flex align-center text-df" style="color: #999999;">
  208. <view class="text-df">商家回复:</view>{{item.shopReplyMessage}}
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <empty v-if="!EvaluateList.length"></empty>
  214. </view>
  215. <view class="margin-lr padding-bottom" v-if="current==3">
  216. <view class="flex align-center margin-top-sm">
  217. <view class="flex-sub">
  218. <view class="text-black text-lg text-bold">{{shopDet.shopName}}</view>
  219. <view class="margin-top-sm" @click="goMap">
  220. <u-icon name="map" size="28"></u-icon> {{shopDet.detailedAddress}}
  221. </view>
  222. </view>
  223. <image @click="call(shopDet.phone)" src="../../../static/images/index/phone.png"
  224. class="radius" style="width: 38rpx;height: 49rpx;">
  225. </image>
  226. </view>
  227. <image :src="shopDet.shopCover" class="radius margin-top-sm"
  228. style="width: 140rpx;height: 140rpx;">
  229. </image>
  230. <view class="text-black text-lg text-bold margin-top-xs">商家信息</view>
  231. <view class="text-black margin-top-xs text-df">
  232. 营业时间:{{shopDet.businessHours}}-{{shopDet.lockHours}}</view>
  233. <view class="text-black margin-top-xs text-df">商家品类:{{shopDet.shopTypeName}}</view>
  234. <view class="text-black margin-top-xs text-df">配送范围:{{shopDet.distributionDistance}}以内</view>
  235. <view class="text-black margin-top-xs text-df" v-if="shopDet.shopNotice">公告:{{shopDet.shopNotice}}</view>
  236. <view class="text-black margin-top-xs text-df" v-else>公告:店铺开业啦!</view>
  237. </view>
  238. </view>
  239. <!-- 结算 -->
  240. <view class="settlement" @click="isPopupShow" v-if="current==1">
  241. <view class="settlement_img">
  242. <image src="../../../static/images/index/diancan.png" mode=""></image>
  243. <view class="settlement_hot">{{goodsNum}}</view>
  244. </view>
  245. <view class="settlement_le">
  246. <text>¥</text>{{totalPrice}}
  247. <text v-if="shopDet.minimumDelivery"
  248. style="margin-left: 10rpx;">{{shopDet.minimumDelivery}}元起送</text>
  249. </view>
  250. <view v-if="totalPrice>=shopDet.minimumDelivery" class="settlement_ri" @click.stop="goConfirm()">去结算
  251. </view>
  252. <view v-else class="settlement_ri1">去结算</view>
  253. </view>
  254. <!-- 购物车弹窗 -->
  255. <u-popup v-model="popupShow" mode="bottom" border-radius="20">
  256. <view class="padding">
  257. <view class="flex justify-between align-center margin-bottom-sm">
  258. <view class="text-bold text-black text-df">已选餐品</view>
  259. <view class="flex align-center">
  260. <image src="../../../static/images/index/delete.png" style="width: 28rpx;height: 31rpx;"
  261. mode=""></image>
  262. <text class="margin-left-xs" @click="empty">清空购物车</text>
  263. </view>
  264. </view>
  265. <scroll-view scroll-y='true' class="popup">
  266. <view v-for="(item,ind) in goodsList.orderGoodsList[0]" :key='ind'>
  267. <view class="flex align-center margin-tb-sm">
  268. <image :src="item.goodsPicture[0]"
  269. style="width: 96rpx;height: 96rpx;border-radius: 10rpx;">
  270. </image>
  271. <view class="margin-left-sm">
  272. <view>{{item.goodsName}}</view>
  273. <view v-if="item.skuMessage">{{item.skuMessage}}</view>
  274. </view>
  275. </view>
  276. <view class="flex justify-between align-center">
  277. <view class="text-bold text-sm">¥<text class="text-lg">{{item.goodsPrice}}</text>
  278. </view>
  279. <view class="flex align-center justify-between">
  280. <view @click.stop="noAdd(item,ind)">
  281. <image src="../../../static/images/index/jian.png"
  282. style="width: 54rpx;height: 54rpx;"></image>
  283. </view>
  284. <view class="text-center margin-lr-xs">{{item.goodsNum}}</view>
  285. <view @click.stop="add(item,ind)">
  286. <image src="../../../static/images/index/add.png"
  287. style="width: 50rpx;height: 50rpx;"></image>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </scroll-view>
  293. </view>
  294. <view class="settlement1 margin-top-lg">
  295. <view class="settlement_img">
  296. <image src="../../../static/images/index/diancan.png" mode=""></image>
  297. <view class="settlement_hot">{{goodsNum}}</view>
  298. </view>
  299. <view class="settlement_le">
  300. <text>¥</text>{{totalPrice}}
  301. <text v-if="shopDet.minimumDelivery"
  302. style="margin-left: 10rpx;">{{shopDet.minimumDelivery}}元起送</text>
  303. </view>
  304. <view v-if="totalPrice>=shopDet.minimumDelivery" class="settlement_ri"
  305. @click.stop="goConfirm()">去结算</view>
  306. <view v-else class="settlement_ri1">去结算</view>
  307. </view>
  308. </u-popup>
  309. <!-- 选择规格弹窗 -->
  310. <u-popup v-model="skuShow" mode="center" :closeable='true' border-radius="20">
  311. <view style="width: 700rpx;">
  312. <view class="text-center text-lg text-bold padding-tb">{{goodsDet.goodsName}}</view>
  313. <view class="margin-top-sm padding-lr" v-for="(item,index) in attrList" :key="index">
  314. <view class="text-bold text-black">{{item.value}}</view>
  315. <view class="flex margin-tb-sm flex-wrap">
  316. <view v-for="(ite, ind) in item.detail" :key="ind" @click="skuSel(ite,index,ind)"
  317. class="margin-bottom-sm">
  318. <view class="skuBtn"
  319. :class="item.goodsId == index && item.attrId == ind?'active': ''">
  320. {{ite.name}}
  321. </view>
  322. </view>
  323. </view>
  324. </view>
  325. <view class="flex justify-between padding-lr padding-top">
  326. <view>
  327. <view class="text-xl text-bold text-black"><text class="text-sm">¥</text>{{price}}
  328. </view>
  329. <view class="detail_describe_text2">{{checkString}}</view>
  330. </view>
  331. <u-number-box v-model="value" :min="1" @change="valChange"></u-number-box>
  332. </view>
  333. <view class="detail_account_bottom padding">
  334. <view class="detail_account_bottom_le" @click="payment()">立即购买</view>
  335. <view class="detail_account_bottom_ri" @click="orderSel(2)">加入购物车</view>
  336. </view>
  337. </view>
  338. </u-popup>
  339. <!-- 优惠券弹窗 -->
  340. <!-- coupons -->
  341. <u-popup v-model="coupons" height="520rpx" mode="bottom" :closeable="true">
  342. <view class="yhq flex justify-center align-center">
  343. <view class="yhq-box">
  344. <view class="yhq-box-title">
  345. 优惠券
  346. </view>
  347. <view class="yhq-box-list">
  348. <scroll-view scroll-y="true" style="width: 100%;height: 100%;padding-bottom: 20rpx;">
  349. <view class="yhq-box-list-item flex justify-center align-center"
  350. v-for="(item,index) in couponList" :key="index">
  351. <view class="yhq-box-list-item-c flex justify-between align-center">
  352. <view class="yhq-box-list-item-c-l flex align-center">
  353. <image
  354. :src="item.couponPicture?item.couponPicture:'../../../static/logo.png'"
  355. style="width: 80rpx;height: 80rpx;border-radius: 20rpx;" mode="">
  356. </image>
  357. <view class="" style="margin-left: 20rpx;">
  358. <view class="">
  359. <text
  360. style="color: red;margin-right: 10rpx;">¥{{item.money}}</text>
  361. <text style="font-weight: bold;margin-right: 10rpx;">优惠券</text>
  362. (满{{item.minMoney}}元可用)
  363. </view>
  364. <view class="" style="font-size: 20rpx;color: gray;">
  365. 领取后{{item.endDate}}天内有效
  366. </view>
  367. </view>
  368. </view>
  369. <view class="yhq-box-list-item-c-r" style="color: red;"
  370. @click="lingqv(item.couponId)">
  371. 领取
  372. </view>
  373. </view>
  374. </view>
  375. </scroll-view>
  376. </view>
  377. </view>
  378. </view>
  379. </u-popup>
  380. </view>
  381. <view class="hintPopul" v-if="shopDet&&shopDet.putawayFlag==1">
  382. <view class="content_">
  383. <image src="../../../static/images/index/shop.png" style="width: 200rpx;height: 180rpx;">
  384. </image>
  385. <view class="text-xl text-bold">店铺打烊啦</view>
  386. <view class="hintText margin-top-sm text-gray">现在店铺已经打烊了,营业时间</view>
  387. <view class="margin-top-xs text-gray margin-bottom">{{shopDet.businessHours}}-{{shopDet.lockHours}}
  388. </view>
  389. <view class="Btns" @click="goBack()">知道了</view>
  390. </view>
  391. </view>
  392. </view>
  393. </view>
  394. </template>
  395. <script>
  396. import empty from '@/components/empty.vue'
  397. export default {
  398. components: {
  399. empty
  400. },
  401. data() {
  402. return {
  403. maskCustomStyle: {
  404. background: 'rgba(0,0,0,0.1)'
  405. },
  406. hdStyle: {
  407. background: '#F5F5F5',
  408. },
  409. customStyle: {
  410. color: '#333333',
  411. background: '#FCD202',
  412. marginRight: '20rpx',
  413. border: 0
  414. },
  415. customStyle1: {
  416. color: '#333333',
  417. background: '#F2F2F2',
  418. marginRight: '20rpx',
  419. border: 0
  420. },
  421. current: 1,
  422. loading: false, // 是否显示骨架屏组件
  423. tabCur: 0,
  424. mainCur: 0,
  425. verticalNavTop: 0,
  426. load: true,
  427. dataList: [],
  428. shopDet: {},
  429. shopList: [],
  430. city: '西安',
  431. lat: '',
  432. lng: '',
  433. shopName: '',
  434. page: 1,
  435. limit: 10,
  436. evaluatePage: 1,
  437. evaluateLimit: 10,
  438. show: true,
  439. totalPrice: 0,
  440. goodsNum: 0,
  441. goodsList: {
  442. orderGoodsList: [
  443. []
  444. ]
  445. },
  446. popupShow: false,
  447. skuShow: false,
  448. userId: '',
  449. hintShow: true, //
  450. shouquan: 0,
  451. orderType: 2,
  452. value: 1,
  453. goodsDet: {},
  454. skuId: '',
  455. skuMessage: '',
  456. skuList: [],
  457. attrList: [],
  458. checkString: '',
  459. checkStateList: [],
  460. CheckattrValue: false,
  461. price: 0,
  462. echoSkuList: [],
  463. echoSku: [],
  464. isEchoSku: {},
  465. shopId: '',
  466. lng: '',
  467. lat: '',
  468. commentList: [],
  469. EvaluateList: [],
  470. EvaluateData: {},
  471. grade: '',
  472. count: 0,
  473. orderId: '',
  474. isTrue: false,
  475. XCXIsSelect: '否',
  476. couponList: [], //优惠券列表
  477. coupons: false,
  478. }
  479. },
  480. onLoad(option) {
  481. this.XCXIsSelect = this.$queue.getData('XCXIsSelect');
  482. if (this.XCXIsSelect == '否') {
  483. // this.getGuize()
  484. uni.setNavigationBarTitle({
  485. title: '隐私政策'
  486. });
  487. } else {
  488. uni.setNavigationBarTitle({
  489. title: '店铺详情'
  490. });
  491. }
  492. let that = this
  493. that.shopId = option.shopId
  494. uni.showLoading({
  495. title: '加载中'
  496. })
  497. // #ifndef H5
  498. uni.getLocation({
  499. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  500. success: function(res) {
  501. console.log(res, '经纬度')
  502. that.lat = res.latitude;
  503. that.lng = res.longitude;
  504. }
  505. });
  506. that.getData()
  507. // #endif
  508. // #ifdef H5
  509. uni.getLocation({
  510. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  511. success: function(res) {
  512. console.log(res, '经纬度')
  513. that.lat = res.latitude;
  514. that.lng = res.longitude;
  515. that.getData()
  516. }
  517. });
  518. that.getData()
  519. // #endif
  520. that.orderId = uni.getStorageSync('orderId') ? uni.getStorageSync('orderId') : ''
  521. },
  522. onHide() {
  523. uni.removeStorageSync('types')
  524. },
  525. onShow() {
  526. this.orderId = uni.getStorageSync('orderId') ? uni.getStorageSync('orderId') : ''
  527. if (this.orderId) {
  528. this.getOrderDetail();
  529. }
  530. this.userId = uni.getStorageSync('userId')
  531. this.getOrderList()
  532. this.getcouponList()
  533. },
  534. onShareAppMessage(res) { //发送给朋友
  535. return {
  536. title: this.shopDet.shopName,
  537. path: '/pages/index/index?shopId=' + this.shopDet.shopId,
  538. imageUrl: this.shopDet.shopCover,
  539. }
  540. },
  541. onShareTimeline(res) { //分享到朋友圈
  542. return {
  543. title: this.shopDet.shopName,
  544. path: '/pages/index/index?shopId=' + this.shopDet.shopId,
  545. imageUrl: this.shopDet.shopCover,
  546. }
  547. },
  548. methods: {
  549. //领取优惠券
  550. lingqv(couponId, needIntegral) {
  551. let that = this
  552. let data = {
  553. couponId: couponId,
  554. }
  555. that.$Request.postT("/app/coupon/buyCoupon", data).then(res => {
  556. if (res.code == 0) {
  557. uni.showToast({
  558. title: '领取成功'
  559. })
  560. that.coupons = false
  561. } else {
  562. uni.showToast({
  563. title: res.msg,
  564. icon: 'none'
  565. })
  566. }
  567. });
  568. },
  569. //获取商家优惠券
  570. getcouponList() {
  571. // couponList
  572. let data = {
  573. shopId: this.shopId,
  574. }
  575. this.$Request.get("/app/coupon/seleteAllCoupon", data).then(res => {
  576. if (res.code == 0 && res.data) {
  577. this.couponList = res.data
  578. }
  579. });
  580. },
  581. // 预览图片
  582. yuanlan(arr, index) {
  583. uni.previewImage({
  584. urls: arr,
  585. current: index
  586. })
  587. },
  588. goBack() {
  589. uni.navigateBack({
  590. })
  591. },
  592. goNav(url) {
  593. uni.navigateTo({
  594. url
  595. })
  596. },
  597. switchTab(e) {
  598. // this.page = 1
  599. this.current = e
  600. if (this.current == 1) {
  601. this.getData()
  602. } else if (this.current == 2) {
  603. this.evaluatePage = 1;
  604. this.getEvaluateList()
  605. } else if (this.current == 3) {
  606. }
  607. },
  608. sel(e) {
  609. this.grade = e
  610. this.count = e
  611. this.evaluatePage = 1
  612. this.getEvaluateList()
  613. },
  614. // 获取评论列表
  615. getEvaluateList() {
  616. let data = {
  617. shopId: this.shopId,
  618. page: this.evaluatePage,
  619. limit: this.evaluateLimit,
  620. grade: this.grade
  621. }
  622. this.$Request.get("/app/goods/selectEvaluateByShopId", data).then(res => {
  623. if (res.code == 0 && res.data) {
  624. this.EvaluateData = res.data
  625. if (this.evaluatePage == 1) {
  626. this.EvaluateList = res.data.pageUtils.list
  627. } else {
  628. this.EvaluateList = [...this.EvaluateList, ...res.data.pageUtils.list]
  629. }
  630. }
  631. });
  632. },
  633. // 获取店铺信息
  634. getData() {
  635. let data = {
  636. shopId: this.shopId,
  637. lng: this.lng,
  638. lat: this.lat
  639. }
  640. this.$Request.get("/app/goods/selectGoodsList", data).then(res => {
  641. if (res.code == 0 && res.data) {
  642. this.dataList = res.data.list
  643. this.shopDet = res.data.goodsShop
  644. for (var i = 0; i < this.dataList.length; i++) {
  645. this.dataList[i].id = i
  646. }
  647. this.shopDet.shopScore1 = Math.floor(this.shopDet.shopScore)
  648. this.shopDet.errandTime = Math.round(this.shopDet.errandTime)
  649. if (this.shopDet.shopBanner) {
  650. this.shopDet.shopBanner = this.shopDet.shopBanner.split(',')
  651. }
  652. this.shopDet.shopScore = this.shopDet.shopScore.toFixed(2)
  653. if (this.shopDet.distributionDistance < 1000) {
  654. this.shopDet.distributionDistance = '<1000m'
  655. } else {
  656. this.shopDet.distributionDistance = Number(this.shopDet.distributionDistance / 1000) +
  657. 'km'
  658. }
  659. uni.setNavigationBarTitle({
  660. title: this.shopDet.shopName
  661. })
  662. }
  663. uni.hideLoading()
  664. });
  665. },
  666. getEchoOrder() {
  667. let data = {
  668. shopId: this.shopId,
  669. goodsId: this.goodsDet.goodsId
  670. }
  671. this.$Request.get("/app/order/echoOrder", data).then(res => {
  672. if (res.code == 0 && res.data.length) {
  673. this.echoSkuList = res.data
  674. if (res.data[0].skuMessage) {
  675. this.echoSku = res.data[0].skuMessage.split(',')
  676. }
  677. }
  678. });
  679. },
  680. // 弹窗展示商品详情
  681. selSku(item) {
  682. console.log(item)
  683. this.checkStateList = []
  684. this.checkString = ''
  685. this.attrList = [];
  686. this.skuId = '';
  687. this.skuMessage = '';
  688. this.$Request.get("/app/goods/selectGoodsById?goodsId=" + item.goodsId).then(res => {
  689. uni.hideLoading()
  690. if (res.code == 0) {
  691. this.goodsDet = res.data
  692. if (this.goodsDet.goodsLabel) {
  693. this.goodsDet.goodsLabel = this.goodsDet.goodsLabel.split(',')
  694. }
  695. if (this.goodsDet.goodsPicture) {
  696. this.goodsDet.goodsPicture = this.goodsDet.goodsPicture.split(',')
  697. }
  698. this.price = this.goodsDet.goodsMoney
  699. this.skuList = this.goodsDet.sku
  700. this.getEchoOrder()
  701. if (!this.skuList.length) {
  702. let that = this
  703. setTimeout(function() {
  704. that.orderSel(2)
  705. }, 500)
  706. } else {
  707. if (this.goodsDet.attr.length) {
  708. this.attrList = this.goodsDet.attr[0] ? this.goodsDet.attr[0].attrValue : []
  709. } else {
  710. this.skuId = this.goodsDet.sku[0].id
  711. }
  712. this.attrList.forEach(res => {
  713. let data = {
  714. name: ''
  715. }
  716. this.checkStateList.push(data);
  717. let detail = [];
  718. console.log(res.detail)
  719. if (res.detail.length > 0) {
  720. res.detail.split(',').forEach(d => {
  721. let data = {
  722. name: '',
  723. state: ''
  724. }
  725. data.name = d;
  726. detail.push(data);
  727. });
  728. res.detail = detail;
  729. }
  730. })
  731. this.skuShow = true
  732. }
  733. }
  734. });
  735. },
  736. // 选择规格
  737. skuSel(item, index, ind) {
  738. console.log(item, index, ind)
  739. this.attrList[index].goodsId = index
  740. this.attrList[index].attrId = ind
  741. this.checkStateList[index].name = item.name;
  742. this.checkString = '';
  743. this.checkStateList.forEach(d => {
  744. if (d.name) {
  745. if (this.checkString) {
  746. this.checkString = this.checkString + ',' + d.name;
  747. } else {
  748. this.checkString = d.name;
  749. }
  750. }
  751. });
  752. console.log(this.skuList)
  753. for (var i = 0; i < this.skuList.length; i++) {
  754. let d = this.skuList[i];
  755. if (d.detailJson == this.checkString) {
  756. console.log(d.detailJson, this.checkString)
  757. // if (d.stock > 0) {
  758. this.skuId = d.id
  759. this.skuMessage = d.detailJson
  760. this.price = d.skuPrice
  761. this.CheckattrValue = true;
  762. // } else {
  763. // this.$queue.showToast('库存不足请选择其他规格')
  764. // }
  765. break
  766. } else {
  767. this.CheckattrValue = false;
  768. }
  769. }
  770. },
  771. valChange(e) {
  772. console.log('当前值为: ' + e.value)
  773. this.value = e.value
  774. },
  775. // 立即购买
  776. payment() {
  777. if (!this.userId) {
  778. uni.navigateTo({
  779. url: '/pages/public/login'
  780. })
  781. return
  782. }
  783. if (this.attrList.length) {
  784. if (this.checkString == '' || !this.CheckattrValue) {
  785. this.$queue.showToast('请选择正确的商品规格');
  786. return;
  787. }
  788. }
  789. let data = {
  790. goodsId: this.goodsDet.goodsId,
  791. skuMessage: this.skuMessage,
  792. skuId: this.skuId,
  793. num: this.value,
  794. orderType: this.orderType,
  795. shopId: this.shopId,
  796. }
  797. this.$Request.post("/app/order/buyGoods", data).then(res => {
  798. if (res.code == 0) {
  799. this.skuShow = false
  800. uni.navigateTo({
  801. url: '/pages/index/shop/payOrder?orderId=' + res.data + '&orderType=' + this
  802. .orderType
  803. })
  804. } else {
  805. this.$queue.showToast(res.msg);
  806. }
  807. })
  808. },
  809. // 加入购物车
  810. orderSel(e) {
  811. if (!this.userId) {
  812. uni.navigateTo({
  813. url: '/pages/public/login'
  814. })
  815. return
  816. }
  817. if (this.attrList.length) {
  818. if (this.checkString == '' || !this.CheckattrValue) {
  819. this.$queue.showToast('请选择正确的商品规格');
  820. return;
  821. }
  822. }
  823. // if (this.echoSku.length) {
  824. // this.echoSkuList.forEach(res => {
  825. // if (res.skuMessage == this.skuMessage) {
  826. // this.isEchoSku = res
  827. // }
  828. // })
  829. // if (JSON.stringify(this.isEchoSku) != "{}") {
  830. // let data = {
  831. // orderGoodsId: this.isEchoSku.id,
  832. // type: 1,
  833. // num: this.value,
  834. // shopId: this.shopId,
  835. // }
  836. // this.$Request.get("/app/order/updateGoodsNum", data).then(res => {
  837. // if (res.code == 0) {
  838. // // setTimeout(function() {
  839. // this.$queue.showToast('添加成功');
  840. // this.skuShow = false
  841. // this.getOrderList()
  842. // // },1000)
  843. // } else {
  844. // this.$queue.showToast(res.msg);
  845. // }
  846. // });
  847. // return
  848. // }
  849. // }
  850. let data = {
  851. goodsId: this.goodsDet.goodsId,
  852. skuMessage: this.skuMessage,
  853. skuId: this.skuId,
  854. num: this.value,
  855. shopId: this.shopId,
  856. }
  857. let url = ''
  858. if (this.types == 1) {
  859. url = '/app/order/joinOrder'
  860. } else {
  861. url = '/app/order/insertOrder'
  862. }
  863. this.$Request.post('/app/order/insertOrder', data).then(res => {
  864. if (res.code == 0) {
  865. this.$queue.showToast('添加成功');
  866. this.skuShow = false
  867. this.getOrderList()
  868. } else {
  869. this.$queue.showToast(res.msg);
  870. }
  871. })
  872. },
  873. // 切换外卖/自提
  874. tabSwidth(e) {
  875. this.orderType = e
  876. this.getOrderList()
  877. },
  878. // 展示购物车弹窗
  879. isPopupShow() {
  880. console.log(this.goodsList, '677')
  881. if (this.goodsList && this.goodsList.orderGoodsList && this.goodsList.orderGoodsList[0].length > 0) {
  882. this.popupShow = true
  883. } else {
  884. uni.showToast({
  885. title: '请先添加商品',
  886. icon: "none"
  887. })
  888. }
  889. },
  890. // 添加数量
  891. add(item, index) {
  892. // this.count++;
  893. console.log(item, index)
  894. this.goodsList.orderGoodsList[0][index].goodsNum++
  895. let data = {
  896. orderGoodsId: this.goodsList.orderGoodsList[0][index].id,
  897. type: 1,
  898. num: 1,
  899. shopId: this.shopId
  900. }
  901. this.$Request.get("/app/order/updateGoodsNum", data).then(res => {
  902. if (res.code == 0) {
  903. this.getOrderList()
  904. } else {
  905. this.$queue.showToast(res.msg);
  906. this.goodsList.orderGoodsList[0][index].goodsNum--
  907. }
  908. });
  909. },
  910. // 减少数量
  911. noAdd(item, index) {
  912. console.log(item, index)
  913. this.goodsList.orderGoodsList[0][index].goodsNum--
  914. // this.count--;
  915. let data = {
  916. orderGoodsId: this.goodsList.orderGoodsList[0][index].id,
  917. type: 2,
  918. num: 1,
  919. shopId: this.shopId
  920. }
  921. this.$Request.get("/app/order/updateGoodsNum", data).then(res => {
  922. if (res.code == 0) {
  923. this.getOrderList()
  924. }
  925. });
  926. },
  927. // 清空购物车
  928. empty() {
  929. let data = {
  930. shopId: this.shopId,
  931. }
  932. this.$Request.post("/app/order/emptyShoppingTrolley", data).then(res => {
  933. if (res.code == 0) {
  934. this.totalPrice = 0
  935. this.goodsNum = 0
  936. this.goodsList = {
  937. orderGoodsList: [
  938. []
  939. ]
  940. }
  941. this.echoSkuList = []
  942. this.echoSku = []
  943. this.getOrderList()
  944. this.popupShow = false
  945. this.getEchoOrder()
  946. }
  947. });
  948. },
  949. // 获取购物车商品列表
  950. getOrderList() {
  951. let data = {
  952. shopId: this.shopId,
  953. page: 1,
  954. limit: 1000,
  955. status: 1,
  956. // orderType: this.orderType
  957. }
  958. this.$Request.get("/app/order/selectAllOrderList", data).then(res => {
  959. if (res.code == 0 && res.data.pageUtils.list.length) {
  960. this.goodsList = res.data.pageUtils.list[0]
  961. if (this.goodsList && this.goodsList.orderGoodsList && this.goodsList.orderGoodsList[0]) {
  962. this.totalPrice = res.data.money
  963. this.goodsNum = 0
  964. this.goodsList.orderGoodsList[0].forEach(res => {
  965. if (res.goodsPicture) {
  966. res.goodsPicture = res.goodsPicture.split(',')
  967. }
  968. this.goodsNum += res.goodsNum
  969. })
  970. if (!this.goodsList.orderGoodsList[0].length) {
  971. this.popupShow = false
  972. }
  973. }
  974. }
  975. uni.hideLoading()
  976. });
  977. },
  978. // 跳转商品详情
  979. goDet(id) {
  980. uni.navigateTo({
  981. url: '/pages/index/shop/goodsDet?goodsId=' + id + '&shopId=' + this.shopId + '&orderType=' +
  982. this.orderType
  983. })
  984. },
  985. // 去结算
  986. goConfirm() {
  987. if (!this.userId) {
  988. uni.navigateTo({
  989. url: '/pages/public/login'
  990. })
  991. return
  992. }
  993. console.log(this.goodsList)
  994. if (this.goodsList && this.goodsList.orderGoodsList[0].length > 0) {
  995. uni.navigateTo({
  996. url: '/pages/index/shop/confirmOrder?shopId=' + this.shopId + '&orderType=' + this
  997. .orderType
  998. })
  999. } else {
  1000. uni.showToast({
  1001. title: '请先添加商品',
  1002. icon: "none"
  1003. })
  1004. }
  1005. },
  1006. TabSelect(e) {
  1007. console.log(e.currentTarget.dataset.id)
  1008. this.tabCur = e.currentTarget.dataset.id;
  1009. this.mainCur = e.currentTarget.dataset.id;
  1010. this.verticalNavTop = (e.currentTarget.dataset.id - 1) * 50
  1011. },
  1012. VerticalMain(e) {
  1013. let that = this;
  1014. let tabHeight = 0;
  1015. if (this.load) {
  1016. for (let i = 0; i < this.dataList.length; i++) {
  1017. let view = uni.createSelectorQuery().select("#main-" + this.dataList[i].id);
  1018. view.fields({
  1019. size: true
  1020. }, data => {
  1021. console.log(data, 'data 828')
  1022. this.dataList[i].top = tabHeight;
  1023. tabHeight = tabHeight + data.height;
  1024. this.dataList[i].bottom = tabHeight;
  1025. }).exec();
  1026. }
  1027. this.load = false
  1028. }
  1029. let scrollTop = e.detail.scrollTop;
  1030. // console.log(scrollTop,'111')
  1031. for (let i = 0; i < this.dataList.length; i++) {
  1032. if (scrollTop > this.dataList[i].top && scrollTop < this.dataList[i].bottom) {
  1033. this.verticalNavTop = (this.dataList[i].id - 1) * 50
  1034. this.tabCur = this.dataList[i].id
  1035. console.log(scrollTop) //不能删除
  1036. return false
  1037. }
  1038. }
  1039. },
  1040. // 打电话
  1041. call(e) {
  1042. uni.makePhoneCall({
  1043. phoneNumber: e
  1044. });
  1045. },
  1046. // 点击调起地图查看位置
  1047. goMap() {
  1048. //查看位置需要传经纬度才能执行
  1049. let that = this
  1050. uni.authorize({
  1051. scope: 'scope.userLocation',
  1052. success(res) {
  1053. uni.openLocation({
  1054. latitude: that.shopDet.shopLat,
  1055. longitude: that.shopDet.shopLng,
  1056. success: function() {}
  1057. });
  1058. },
  1059. fail(err) {
  1060. }
  1061. })
  1062. },
  1063. getOrderDetail() {
  1064. this.$Request.getT('/app/order/selectOrderById?orderId=' + this.orderId).then(res => {
  1065. if (res.code == 0 && res.data) {
  1066. if (res.data.isPay && res.data.isPay == 1) {
  1067. uni.removeStorageSync('orderId')
  1068. }
  1069. }
  1070. });
  1071. },
  1072. goPindan() {
  1073. if (!this.userId) {
  1074. uni.navigateTo({
  1075. url: '/pages/public/login'
  1076. })
  1077. return
  1078. }
  1079. if (uni.getStorageSync('orderId')) {
  1080. uni.navigateTo({
  1081. url: '/pages/index/shop/pindanDet?shopId=' + this.shopId + '&orderId=' + uni
  1082. .getStorageSync('orderId')
  1083. })
  1084. } else {
  1085. let data = {
  1086. shopId: this.shopId,
  1087. }
  1088. this.$Request.post("/app/order/shareTheBill", data).then(res => {
  1089. if (res.code == 0) {
  1090. uni.navigateTo({
  1091. url: '/pages/index/shop/pindanDet?shopId=' + this.shopId + '&orderId=' +
  1092. res.data
  1093. })
  1094. }
  1095. });
  1096. }
  1097. }
  1098. },
  1099. onReachBottom: function() {
  1100. if (this.current == 2) {
  1101. this.evaluatePage = this.evaluatePage + 1;
  1102. this.getEvaluateList()
  1103. }
  1104. },
  1105. }
  1106. </script>
  1107. <style scoped lang="scss">
  1108. page {
  1109. background-color: #FFFFFF;
  1110. }
  1111. .yhq {
  1112. width: 100%;
  1113. height: 520rpx;
  1114. background-color: #F5F5F5;
  1115. overflow-y: hidden;
  1116. .yhq-box {
  1117. width: 686rpx;
  1118. height: 500rpx;
  1119. // background-color: red;
  1120. .yhq-box-title {
  1121. width: 100%;
  1122. text-align: center;
  1123. font-weight: bold;
  1124. }
  1125. .yhq-box-list {
  1126. width: 100%;
  1127. height: auto;
  1128. height: 460rpx;
  1129. margin-top: 30rpx;
  1130. .yhq-box-list-item {
  1131. width: 100%;
  1132. height: 120rpx;
  1133. border-radius: 24rpx;
  1134. background-color: #FFFFFF;
  1135. margin-bottom: 20rpx;
  1136. }
  1137. .yhq-box-list-item-c {
  1138. width: 646rpx;
  1139. height: 100%;
  1140. }
  1141. }
  1142. }
  1143. }
  1144. .scroll-view_H {
  1145. width: 100%;
  1146. white-space: nowrap;
  1147. }
  1148. .coupon-item {
  1149. display: inline-block;
  1150. height: 46rpx;
  1151. margin-right: 20rpx;
  1152. border: 1px solid red;
  1153. border-radius: 10rpx;
  1154. padding: 0rpx 10rpx 0rpx 10rpx;
  1155. font-size: 20rpx;
  1156. color: red;
  1157. line-height: 44rpx;
  1158. view {
  1159. display: inline-block;
  1160. }
  1161. }
  1162. .pinglunImg {
  1163. width: 100%;
  1164. margin-top: 10rpx;
  1165. }
  1166. .pinglunImg-box {
  1167. width: 100%;
  1168. image {
  1169. // margin-left: 10rpx;
  1170. width: 160upx;
  1171. height: 160upx;
  1172. border-radius: 10rpx;
  1173. }
  1174. }
  1175. .hintPopul {
  1176. width: 100%;
  1177. height: 100vh;
  1178. position: fixed;
  1179. top: 0;
  1180. background: rgba(0, 0, 0, .4);
  1181. z-index: 999;
  1182. }
  1183. .content_ {
  1184. position: absolute;
  1185. left: 0;
  1186. right: 0;
  1187. top: 0;
  1188. bottom: 0;
  1189. margin: auto;
  1190. text-align: center;
  1191. width: 500rpx;
  1192. height: 400rpx;
  1193. border-radius: 20rpx;
  1194. background-color: #fff;
  1195. padding-top: 120rpx;
  1196. }
  1197. .content_ image {
  1198. position: absolute;
  1199. top: -50rpx;
  1200. left: 0;
  1201. right: 0;
  1202. margin: auto;
  1203. }
  1204. .hintText {
  1205. font-size: 30rpx;
  1206. }
  1207. .Btns {
  1208. width: 460rpx;
  1209. height: 60rpx;
  1210. line-height: 60rpx;
  1211. text-align: center;
  1212. background: #FCD202;
  1213. font-size: 28rpx;
  1214. border: 2rpx solid #FCD202;
  1215. color: #333333;
  1216. border-radius: 50rpx;
  1217. font-weight: 700;
  1218. margin: auto;
  1219. }
  1220. .bg1 {
  1221. background: #FFFFFF;
  1222. }
  1223. .sticky-tabs {
  1224. z-index: 990;
  1225. position: sticky;
  1226. top: var(--window-top);
  1227. // background-color: #fff;
  1228. }
  1229. /* // 使用mescroll-uni,则top为0 */
  1230. .mescroll-uni,
  1231. /deep/.mescroll-uni {
  1232. .sticky-tabs {
  1233. top: 0;
  1234. }
  1235. }
  1236. .shop {
  1237. position: absolute;
  1238. top: 80rpx;
  1239. left: 0;
  1240. right: 0;
  1241. width: 686rpx;
  1242. margin: auto;
  1243. background: #FFFFFF;
  1244. border-radius: 20rpx;
  1245. box-shadow: 0 0 20rpx #CCCCCC;
  1246. }
  1247. .skuBtn {
  1248. padding: 10rpx 30rpx;
  1249. border-radius: 10rpx;
  1250. text-align: center;
  1251. margin: 10rpx 20rpx;
  1252. font-size: 28rpx;
  1253. color: #333333;
  1254. border: 2px solid #F2F2F2;
  1255. }
  1256. .active {
  1257. background: rgba(252, 210, 2, 0.2) !important;
  1258. border: 2px solid #FCD202 !important;
  1259. opacity: 0.6;
  1260. }
  1261. .active1 {
  1262. /* width: 82rpx; */
  1263. height: 16rpx;
  1264. background: #FCD202;
  1265. position: relative;
  1266. top: -10rpx;
  1267. z-index: 9;
  1268. }
  1269. .popup {
  1270. /* height: 500rpx; */
  1271. max-height: 500rpx;
  1272. /* overflow-y: auto; */
  1273. }
  1274. .tabBtn {
  1275. /* background-color: #f6f6fa; */
  1276. height: 60rpx;
  1277. line-height: 60rpx;
  1278. color: #999999;
  1279. font-size: 38rpx;
  1280. }
  1281. .Switch {
  1282. width: 164rpx;
  1283. height: 62rpx;
  1284. color: #FFFFFF;
  1285. background: #FCD202;
  1286. border-radius: 30rpx;
  1287. display: flex;
  1288. align-items: center;
  1289. padding: 2rpx;
  1290. }
  1291. .Switch>view {
  1292. /* flex: 1; */
  1293. width: 80rpx;
  1294. text-align: center;
  1295. line-height: 62rpx;
  1296. height: 58rpx;
  1297. }
  1298. .selSwitch {
  1299. color: #333333;
  1300. background: #FFFFFF;
  1301. border-radius: 30rpx;
  1302. }
  1303. .hintPopul {
  1304. width: 100%;
  1305. height: 100vh;
  1306. position: absolute;
  1307. top: 0;
  1308. background: rgba(0, 0, 0, .4);
  1309. }
  1310. .content {
  1311. position: absolute;
  1312. left: 0;
  1313. right: 0;
  1314. top: 0;
  1315. bottom: 0;
  1316. margin: auto;
  1317. text-align: center;
  1318. width: 500rpx;
  1319. height: 400rpx;
  1320. border-radius: 20rpx;
  1321. background-color: #fff;
  1322. padding-top: 120rpx;
  1323. }
  1324. .content image {
  1325. position: absolute;
  1326. top: -50rpx;
  1327. left: 0;
  1328. right: 0;
  1329. margin: auto;
  1330. }
  1331. .hintText {
  1332. font-size: 30rpx;
  1333. }
  1334. .VerticalNav.nav {
  1335. width: 200upx;
  1336. white-space: initial;
  1337. }
  1338. .VerticalNav.nav .cu-item {
  1339. width: 100%;
  1340. text-align: center;
  1341. background-color: #f1f1f1;
  1342. margin: 0;
  1343. border: none;
  1344. height: 50px;
  1345. position: relative;
  1346. }
  1347. .VerticalNav.nav .cu-item.cur {
  1348. background-color: #fff;
  1349. }
  1350. .VerticalBox {
  1351. display: flex;
  1352. }
  1353. .VerticalMain {
  1354. background-color: #f1f1f1;
  1355. flex: 1;
  1356. }
  1357. .detail_describe_text2 {
  1358. font-weight: 500;
  1359. margin-top: 2%;
  1360. color: #999999;
  1361. }
  1362. .detail_account_bottom {
  1363. margin-top: 20rpx;
  1364. width: 100%;
  1365. display: flex;
  1366. justify-content: space-between;
  1367. /* margin: 4% 0 3%; */
  1368. }
  1369. .detail_account_bottom_le {
  1370. width: 47.5%;
  1371. /* margin-right: 5%; */
  1372. border-radius: 44rpx;
  1373. text-align: center;
  1374. line-height: 2.8;
  1375. border: 2rpx solid #FCD202;
  1376. }
  1377. .detail_account_bottom_ri {
  1378. width: 47.5%;
  1379. border-radius: 44rpx;
  1380. text-align: center;
  1381. line-height: 2.8;
  1382. background-color: #FCD202;
  1383. }
  1384. .food_all {
  1385. position: relative;
  1386. }
  1387. .text-through {
  1388. text-decoration: line-through
  1389. }
  1390. /* 食物 */
  1391. .food {
  1392. width: 100%;
  1393. overflow: hidden;
  1394. // position: absolute;
  1395. // top: 350rpx;
  1396. // background-color: #FFFFFF;
  1397. border-top-left-radius: 18rpx;
  1398. border-top-right-radius: 18rpx;
  1399. }
  1400. .food_address {
  1401. // margin: 3% 3% 0 3%;
  1402. // margin: 3%;
  1403. display: flex;
  1404. justify-content: space-between;
  1405. align-items: center;
  1406. margin-top: 100rpx;
  1407. background-color: #FFFFFF;
  1408. // padding-bottom: 3%;
  1409. padding: 3%;
  1410. }
  1411. .food_address_le {
  1412. width: 75%;
  1413. }
  1414. .food_address_le_top {
  1415. display: flex;
  1416. align-items: center;
  1417. justify-content: space-between;
  1418. }
  1419. .food_address_le_top_le {
  1420. width: 40rpx;
  1421. height: 37rpx;
  1422. }
  1423. .food_address_le_top_le image {
  1424. width: 40rpx;
  1425. height: 37rpx;
  1426. }
  1427. .food_address_le_top_ce {
  1428. line-height: 1.6;
  1429. font-size: 38rpx;
  1430. font-weight: 600;
  1431. color: #333333;
  1432. }
  1433. .food_address_le_top_ce_ri {
  1434. width: 14rpx;
  1435. /* margin: 1% 0 0 2%; */
  1436. height: 24rpx;
  1437. margin-left: 2%;
  1438. }
  1439. .food_address_le_top_ce_ri image {
  1440. width: 14rpx;
  1441. height: 24rpx;
  1442. }
  1443. .food_address_text {
  1444. font-weight: 500;
  1445. font-size: 24rpx;
  1446. color: #999999;
  1447. }
  1448. .food_address_ri {
  1449. width: 24%;
  1450. height: 55rpx;
  1451. display: flex;
  1452. padding: 0.5% 1%;
  1453. background-color: #FCD202;
  1454. border-radius: 31rpx;
  1455. color: #FFFFFF;
  1456. }
  1457. .food_address_ri_sty {
  1458. flex: 1;
  1459. text-align: center;
  1460. padding-top: 4%;
  1461. font-size: 24rpx;
  1462. }
  1463. .food_address_ri_sty_active {
  1464. width: 100%;
  1465. overflow: hidden;
  1466. background-color: #FFFFFF;
  1467. border-radius: 31rpx;
  1468. color: #333333;
  1469. text-align: center;
  1470. }
  1471. /* 结算 */
  1472. .settlement {
  1473. width: 94%;
  1474. background-color: #000000;
  1475. line-height: 3.4;
  1476. border-radius: 49rpx;
  1477. position: fixed;
  1478. bottom: 10rpx;
  1479. left: 3%;
  1480. display: flex;
  1481. justify-content: space-between;
  1482. }
  1483. .settlement1 {
  1484. width: 94%;
  1485. background-color: #000000;
  1486. line-height: 2.8;
  1487. border-radius: 49rpx;
  1488. position: relative;
  1489. /* bottom: 10rpx; */
  1490. left: 0;
  1491. right: 0;
  1492. /* left: 3%; */
  1493. display: flex;
  1494. justify-content: space-between;
  1495. margin: 20rpx auto;
  1496. }
  1497. .settlement_le {
  1498. width: 48%;
  1499. padding-left: 18%;
  1500. color: #FFFFFF;
  1501. font-size: 30rpx;
  1502. }
  1503. .settlement_le text {
  1504. font-size: 22rpx;
  1505. }
  1506. .settlement_ri {
  1507. width: 35%;
  1508. background-color: #FCD202;
  1509. font-family: PingFang SC;
  1510. font-weight: 800;
  1511. color: #333333;
  1512. text-align: center;
  1513. border-top-right-radius: 49rpx;
  1514. border-bottom-right-radius: 49rpx;
  1515. }
  1516. .settlement_ri1 {
  1517. width: 35%;
  1518. background-color: #333333;
  1519. font-family: PingFang SC;
  1520. font-weight: 800;
  1521. color: #999999;
  1522. text-align: center;
  1523. border-top-right-radius: 49rpx;
  1524. border-bottom-right-radius: 49rpx;
  1525. }
  1526. .settlement_img {
  1527. width: 91rpx;
  1528. height: 96rpx;
  1529. position: absolute;
  1530. // bottom: 30rpx;
  1531. left: 5%;
  1532. }
  1533. .settlement_img image {
  1534. width: 74rpx;
  1535. height: 81rpx;
  1536. }
  1537. .settlement_hot {
  1538. width: 35rpx;
  1539. height: 35rpx;
  1540. line-height: 35rpx;
  1541. text-align: center;
  1542. border-radius: 50%;
  1543. position: absolute;
  1544. top: -10rpx;
  1545. right: 0;
  1546. background-color: #FF130A;
  1547. color: #FFFFFF;
  1548. font-size: 20rpx;
  1549. font-weight: bold;
  1550. color: #FFFFFF;
  1551. }
  1552. .select_all {
  1553. width: 100%;
  1554. position: relative;
  1555. }
  1556. /* 餐厅 */
  1557. .select {
  1558. color: #000000;
  1559. font-weight: bold;
  1560. background-color: #fff;
  1561. z-index: 10;
  1562. }
  1563. .select_line {
  1564. width: 15%;
  1565. height: 6rpx;
  1566. margin: 0 auto 4%;
  1567. background: #E6E6E6;
  1568. border-radius: 4rpx;
  1569. }
  1570. .select_search {
  1571. width: 100%;
  1572. margin: 2% 0;
  1573. display: flex;
  1574. align-items: center;
  1575. }
  1576. .select_search_le {
  1577. /* width: 10%; */
  1578. font-size: 30rpx;
  1579. line-height: 2.5;
  1580. margin-right: 1%;
  1581. }
  1582. .select_search_ce {
  1583. /* width: 5%; */
  1584. /* margin-top: 1%; */
  1585. margin-right: 20rpx;
  1586. margin-left: 6rpx;
  1587. /* margin: 0 20rpx; */
  1588. width: 20rpx;
  1589. height: 10rpx;
  1590. }
  1591. .select_search_ri {
  1592. /* width: 84%; */
  1593. height: 72rpx;
  1594. flex: 1;
  1595. display: flex;
  1596. }
  1597. .select_search_ri input {
  1598. flex: 1;
  1599. /* width: 100%; */
  1600. height: 72rpx;
  1601. background: #F5F5F5;
  1602. color: #999999;
  1603. border-radius: 36rpx;
  1604. text-decoration: 42rpx;
  1605. text-align: center;
  1606. }
  1607. /* 附近 */
  1608. .nearby {
  1609. width: 100%;
  1610. position: relative;
  1611. }
  1612. .nearby_text {
  1613. width: 18%;
  1614. font-size: 30rpx;
  1615. font-weight: 800;
  1616. color: #333333;
  1617. text-align: center;
  1618. border-bottom: 16rpx solid #FCD202;
  1619. /* line-height: 20rpx; */
  1620. margin-top: 10rpx;
  1621. }
  1622. .nearby_address_active {
  1623. border: 2rpx solid #FCD202;
  1624. width: 100%;
  1625. padding: 3%;
  1626. margin-top: 3%;
  1627. border-radius: 10upx;
  1628. display: flex;
  1629. }
  1630. .nearby_address {
  1631. width: 100%;
  1632. padding: 3%;
  1633. margin-top: 3%;
  1634. border-radius: 10upx;
  1635. display: flex;
  1636. }
  1637. .nearby_address_le {
  1638. flex: 1;
  1639. }
  1640. .nearby_address_ri {
  1641. line-height: 2.5;
  1642. text-align: right;
  1643. /* flex: 1; */
  1644. }
  1645. .nearby_text2 {
  1646. /* line-height: 1.5; */
  1647. display: flex;
  1648. justify-content: space-between;
  1649. align-items: center;
  1650. }
  1651. .nearby_text2_ {
  1652. font-size: 30rpx;
  1653. font-weight: 800;
  1654. color: #333333;
  1655. }
  1656. .nearby_text3 {
  1657. font-size: 24rpx;
  1658. font-weight: 500;
  1659. color: #999999;
  1660. margin-top: 2%;
  1661. }
  1662. /* 添加地址 */
  1663. .goorder {
  1664. width: 100%;
  1665. padding: 2% 3%;
  1666. position: fixed;
  1667. bottom: 0;
  1668. background-color: #FFFFFF;
  1669. border-top: 1rpx solid #999999;
  1670. }
  1671. .goorder_but {
  1672. width: 100%;
  1673. line-height: 2.5;
  1674. text-align: center;
  1675. background: #FCD202;
  1676. border-radius: 36rpx;
  1677. }
  1678. </style>