index.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027
  1. <template>
  2. <view class="content">
  3. <view @click="goAddress()" class="address text-bold">
  4. <view class="address_name">{{address?address:'选择地址'}}</view>
  5. <u-icon name="arrow-down" color="#333333" size="28"></u-icon>
  6. </view>
  7. <!-- #ifdef H5 -->
  8. <view class="bg-white">
  9. <!-- #endif -->
  10. <!-- #ifndef H5 -->
  11. <view class="bg-white" style="margin-top: 180rpx;">
  12. <!-- #endif -->
  13. <view class="padding-lr padding-top">
  14. <view class="flex align-center padding-left" @click="goNav('/pages/index/search/index',2)"
  15. style="border: 2rpx solid #558C83;height: 80rpx;border-radius: 60rpx;">
  16. <u-icon name="search" size="46"></u-icon>
  17. <view class="flex-sub text-gray margin-left-sm">输入商家或商品名称</view>
  18. <view class="search-btn">搜索</view>
  19. </view>
  20. </view>
  21. <view class="padding-top padding-lr">
  22. <swiper class="swiper radius" :autoplay="true" interval="2000" duration="500" :circular="true"
  23. style="width: 100%;height: 280rpx;">
  24. <swiper-item v-for="(item,index) in bannerList" :key='index' @click="goNav(item.url,1)">
  25. <image :src="item.imageUrl" class="radius" style="width: 100%;height: 280rpx;"></image>
  26. </swiper-item>
  27. </swiper>
  28. </view>
  29. <view class="padding-lr radius" v-if="XCXIsSelect == '是'">
  30. <u-grid :col="5" :border="false">
  31. <u-grid-item v-for="(item,index) in gridData" :key='index' @tap="goDetail(item)">
  32. <image :src="item.imageUrl" style="width: 92rpx;height: 92rpx;border-radius: 92rpx;">
  33. </image>
  34. <view class="grid-text margin-top-sm">{{item.name}}</view>
  35. </u-grid-item>
  36. </u-grid>
  37. </view>
  38. </view>
  39. <view class="padding-lr" @click="natiVip">
  40. <image class="radius" style="width: 100%;height: 280rpx;" src="https://mxys.chuanghai-tech.com/wmfile/20251128/aa2e9bf9a4e04b758090007ac04cea44.jpg"></image>
  41. </view>
  42. <!-- 公告 -->
  43. <!-- <view class="flex justify-between align-center bg-white padding-bottom padding-lr radius bg-white"
  44. style="width: 100%;height: 100rpx;">
  45. <image @click="ceshi" src="../../static/images/index/gonggao.png" style="width: 140rpx;height: 50rpx;" mode=""></image>
  46. <view class="flex-sub margin-left-sm" style="height:82rpx;overflow: hidden;">
  47. <uni-notice-bar single speed="25" scrollable background-color="#fff" color="#000" :text="noticeList.value" />
  48. </view>
  49. </view>
  50. <view class="flex justify-between padding-lr bg-white" v-if="XCXIsSelect == '是'">
  51. <image src="https://mxys.chuanghai-tech.com/wmfile/20250618/9eeeec20031849fe8379536ffa0f28b3.png" @click="goNav('/my/integral/index')"
  52. style="width: 338rpx;height: 180rpx;" mode=""></image>
  53. <image src="https://mxys.chuanghai-tech.com/wmfile/20250618/ddbb2b42ec9749afab93863bc078614f.png" @click="goNav('/my/task/index')"
  54. style="width: 338rpx;height: 180rpx;" mode=""></image>
  55. </view> -->
  56. <!-- <view class="padding-top padding-lr bg-white" v-if="!shopStatus == 1&&XCXIsSelect=='是'">
  57. <image src="../../static/images/index/banner.png" @click="goNav('/my/apply/index')"
  58. style="width: 100%;height: 170rpx;" mode=""></image>
  59. </view> -->
  60. <!-- 活动推荐 -->
  61. <!-- <view class="huodong flex justify-center" v-if="huodongList.length>0&&XCXIsSelect!='否'">
  62. <view class="huodong-box flex justify-center">
  63. <view class="huodong-box-c">
  64. <view class="huodong-box-c-title flex justify-between align-center">
  65. <view class="huodong-box-c-title-l flex align-center">
  66. <image src="../../static/images/index/hd.png" mode=""></image>
  67. </view>
  68. <view class="huodong-box-c-title-r">
  69. 美食速达
  70. </view>
  71. </view>
  72. <view class="huodong-box-c-list">
  73. <swiper @change="swiperChange" :indicator-dots="false" display-multiple-items="3"
  74. :circular="true" style="height: 300rpx;" :autoplay="false" previous-margin="5"
  75. :interval="300" :duration="300">
  76. <swiper-item v-for="(item,index) in huodongList"
  77. style="border-radius: 28rpx;height: 320rpx;"
  78. @click="gotohuodong(item.name,item.id,item.imageUrl,item.url)">
  79. <view class="swiper-item flex justify-center flex-wrap align-center"
  80. style="width: 200rpx;height: 240rpx;background: linear-gradient(0deg, rgba(252, 210, 2, 0.8) 0%, rgba(252, 210, 2, 1) 100%);border-radius: 28rpx;"
  81. :style="currents==index?'height:260rpx;border-radius: 28rpx;':'margin-top:14rpx;'">
  82. <view class="flex justify-center align-center"
  83. :style="currents==index?'height:200rpx':''"
  84. style="width: 190rpx;height: 180rpx;border-radius: 28rpx;margin-top: 5rpx;">
  85. <image :src="item.imageUrl"
  86. style="width: 95%;height: 95%;border-radius: 20rpx;" mode="aspectFill">
  87. </image>
  88. </view>
  89. <view class=""
  90. style="width: 100%;text-align: center;font-size: 32rpx;color: white;font-weight: bold;padding-bottom: 10rpx;">
  91. {{item.name}}
  92. </view>
  93. </view>
  94. </swiper-item>
  95. </swiper>
  96. </view>
  97. </view>
  98. </view>
  99. </view> -->
  100. <!-- 推荐商家 -->
  101. <!-- <view class="jxShop flex justify-center" v-if="jxlist.length>0&&XCXIsSelect!='否'">
  102. <view class="jxShop-box flex justify-center">
  103. <view class="jxShop-box-c">
  104. <view class="jxShop-box-c-title flex justify-between align-center">
  105. <view class="jxShop-box-c-title-l">
  106. 推荐商家
  107. </view>
  108. <view class="jxShop-box-c-title-r flex align-center" @click="gotoList()">
  109. 更多
  110. <u-icon name="arrow-right" color="#1E1F31" size="28"></u-icon>
  111. </view>
  112. </view>
  113. <view class="jxShop-box-c-list flex justify-between">
  114. <view class="jxShop-box-c-list-item"
  115. @click="goShopDet(item.shopId,item,item.shopActivityList)"
  116. v-for="(item,index) in jxlist" :key="index">
  117. <image :src="item.shopCover" mode="aspectFill"></image>
  118. <view class="jxShop-box-c-list-item-name">
  119. {{item.shopName}}
  120. </view>
  121. </view>
  122. <view class="jxShop-box-c-list-item" style="height: 0;">
  123. </view>
  124. <view class="jxShop-box-c-list-item" style="height: 0;">
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view> -->
  130. <view class="flex justify-center"
  131. style="position: relative;background-color: #ffffff;padding-top: 20rpx;padding-bottom: 20rpx;">
  132. <view style="width: 686rpx;" class="flex justify-between align-center bg-white">
  133. <view :class="current==1?'select':''" @click="confirm(1)">综合排序</view>
  134. <view :class="current==3?'select':''" @click="confirm(3)">距离优先</view>
  135. <view :class="current==4?'select':''" @click="confirm(4)">销量优先</view>
  136. <view class="flex" @click="isShow = !isShow">
  137. <view class="flex align-center" style="margin: 0 auto;">
  138. <view :class="isShow?'select':''">筛选</view>
  139. <u-icon v-if="!isShow" name="arrow-down" size="28"></u-icon>
  140. <u-icon v-if="isShow" name="arrow-up" color="#558C83" size="28"></u-icon>
  141. </view>
  142. </view>
  143. </view>
  144. <view v-if="isShow"
  145. style="position: absolute;top: 50rpx;width: 100%;z-index: 10;background: rgba(0,0,0,.5);height: 100vh;"
  146. @click="isShow =false">
  147. <view class="padding-lr bg-white">
  148. <view class="flex justify-between align-center padding-tb-sm u-border-bottom"
  149. v-for="(item,index) in options4" :key='index' @click.stop="getSelect(item)">
  150. <view class="text-df" :class="item.select?'select':''">{{item.shopTypeName}}</view>
  151. <u-icon v-if="item.select" name="checkmark" color="#558C83" size="28"></u-icon>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. <!-- 活动筛选 -->
  157. <view class="hd flex justify-center" v-if="hdlist.length>0">
  158. <view class="hd-box">
  159. <scroll-view scroll-x="true" class="scroll-view_H">
  160. <view class="hd-box-item" :style="currenthd==index?'background-color:#9ACAB9;':''"
  161. @click="searchhd(index,item.id)" v-for="(item,index) in hdlist" :key="index">
  162. {{item.title}}
  163. </view>
  164. </scroll-view>
  165. </view>
  166. </view>
  167. <view class="padding-lr">
  168. <view class="margin-tb-sm flex justify-between bg-white padding-sm radius"
  169. v-for="(item,index) in shopList" :key='index'
  170. @click="goShopDet(item.shopId,item,item.shopActivityList)">
  171. <image :src="item.shopCover[0]" class="radius" style="width: 180rpx;height: 180rpx;" mode="aspectFill"></image>
  172. <view class=" margin-left-sm" style="width: 450rpx;">
  173. <view class=" flex flex-direction justify-between">
  174. <view class="text-lg text-bold text-black">{{item.shopName}}</view>
  175. <view class="flex align-center margin-top-xs" style="width: 100%;">
  176. <!-- <u-icon name="star-fill" color="#FD6416" size="28"></u-icon> -->
  177. <text class="text-lg" style="color: #FF8205;"> {{item.shopScore?item.shopScore:0}}分</text>
  178. <text
  179. class="text-gray flex-sub margin-left-xs">销量{{item.shopSales?item.shopSales:0}}</text>
  180. <!-- <view style="font-size:20rpx;color:#707070;border: 2rpx solid #CCC6C6;border-radius: 8rpx;padding: 5rpx 8rpx;">{{item.autoSendOrder==1?'商家配送':'平台配送'}}</view> -->
  181. </view>
  182. <view class="text-gray margin-top-xs flex justify-between">
  183. <view>起送 ¥{{item.minimumDelivery}} 配送 ¥{{item.errandMoney?item.errandMoney:0}}</view>
  184. <view>
  185. <text class="text-gray margin-left-xs">{{item.errandTime}}分钟</text>
  186. <text class="text-gray margin-left-xs">{{item.distance}}</text>
  187. </view>
  188. </view>
  189. <view style="display: flex;" v-if="item.businessHours&&item.lockHours">
  190. <view class="text-gray margin-top-xs" style="background-color: #FFF5EB;color: #FF8205;border-radius: 8rpx;padding: 5rpx 16rpx;" >
  191. 营业时间:{{item.businessHours}}-{{item.lockHours}}
  192. </view>
  193. </view>
  194. <view class="flex margin-top-xs justify-between align-start" style="width: 100%;">
  195. <view class="flex flex-wrap align-center"
  196. style="width: 100%;height: 100%;overflow: hidden;">
  197. <!-- <view class="lable flex justify-center align-center" v-if="item.enableFullReductionFlag==1">
  198. 不参与配送费满减</view> -->
  199. <view class="lable flex justify-center align-center" v-if="item.enableFullReductionFlag==0&&item.exemptMinMoney">
  200. 满{{item.exemptMinMoney}}免配送费</view>
  201. <view v-for="(ite,ind) in item.shopActivityList" :key='ind' v-if="item.shopActivityList && ite.activityType!='1'">
  202. <view class="lable flex justify-center align-center" style="border-radius: 8rpx;border: 2rpx solid #F97A7A;background-color: #ffffff;color: #FF0000;box-sizing: border-box;">
  203. <text v-if="ite.activityType=='2'">时段</text>
  204. <text v-if="ite.activityType=='3'">满额</text>
  205. <text v-if="ite.activityType=='4'">全场</text>
  206. <text style="margin-left: 3px;">|</text>
  207. <text style="margin-left: 3px;">{{ite.activityName}}</text>
  208. </view>
  209. <!-- <view class="lable flex justify-center align-center"
  210. style="border-radius: 4rpx;border: 1rpx solid red;background-color: #ffffff;color: red;box-sizing: border-box;"
  211. >{{ite.activityName}}
  212. </view> -->
  213. </view>
  214. <view class="lable flex justify-center align-center" v-for="(ite,ind) in item.shopLable" :key='ind'
  215. v-if="item.shopLable">
  216. {{ite}}
  217. </view>
  218. <view class="lable flex justify-center align-center" v-if="item.couponList" style="border-radius: 8rpx;border: 1rpx solid #F97A7A;background-color: #ffffff;color: #FF0000;box-sizing: border-box;" v-for="(it,ide) in item.couponList" :key="ide">
  219. <text>优惠券</text>
  220. <text style="margin-left: 3px;">|</text>
  221. <text style="margin-left: 3px;">满{{it.minMoney}}减{{it.money}}</text>
  222. </view>
  223. <view class="lable flex justify-center align-center cook" @click.stop="goCook(item)">
  224. 明厨亮灶>
  225. </view>
  226. </view>
  227. </view>
  228. </view>
  229. <view class="flex margin-top-xs">
  230. <view v-for="(ite,ind) in item.goodsList" :key='ind'
  231. @click.stop="goDet(ite.goodsId,item.shopId)" style="width: 33%;">
  232. <image :src="ite.goodsCover" style="width: 120rpx;height: 120rpx;" class="radius"
  233. mode="">
  234. </image>
  235. <view class="u-line-1 text-df text-bold margin-top-xs">{{ite.goodsName}}</view>
  236. <view class="text-bold margin-top-xs" style="color: #FD6416;">
  237. <text class="text-sm">¥</text>
  238. {{ite.goodsMoney}}
  239. </view>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <!-- <empty v-if="!shopList.length" ></empty> -->
  246. <view class="page-box" v-if="!shopList.length">
  247. <view class="centre" v-if="XCXIsSelect == '是'">
  248. <image src="https://mxys.chuanghai-tech.com/wmfile/20250814/99c5ced85df04062a736276ba75bdd1e.png" mode=""></image>
  249. <view class="tips">暂无内容</view>
  250. </view>
  251. <view class="centre" v-else-if="XCXIsSelect == '否'">
  252. <image style="width: 345px;height: 140px;" src="https://mxys.chuanghai-tech.com/img/20240315/12fa3c96351f4f10abae1ba251d4c284.jpg" mode=""></image>
  253. </view>
  254. </view>
  255. <!-- 打样提示 -->
  256. <view v-if="hintShow" class="hintPopul" @click.stop="hintShow=false">
  257. <view class="content_">
  258. <image src="../../static/images/index/shop.png" mode="" style="width: 200rpx;height: 180rpx;">
  259. </image>
  260. <view class="text-xl text-bold">店铺打烊啦</view>
  261. <view class="hintText margin-top-sm text-gray">现在店铺已经打烊了,营业时间</view>
  262. <view class="margin-top-xs text-gray margin-bottom">{{shop.businessHours}}-{{shop.lockHours}}</view>
  263. <view class="skuBtn" @click="hintShow=false">知道了</view>
  264. </view>
  265. </view>
  266. <u-popup v-model="Authorization" mode="center" close-icon="close-circle" close-icon-pos="top-right"
  267. close-icon-color="#8f9298" close-icon-size="50">
  268. <view class="contentview">
  269. <view class="title">隐私保护指引</view>
  270. <view class="des" @click="openPrivacyContract">
  271. 在使用当前小程序服务之前,请仔细阅读<text
  272. style="color: #FF7F00;">{{privacyContractName}}</text>。如你同意{{privacyContractName}},请点击“同意”开始使用。
  273. </view>
  274. <view class="btns">
  275. <button class="item reject" @click="exitMiniProgram">拒绝</button>
  276. <button id="agree-btn" class="item agree" open-type="agreePrivacyAuthorization"
  277. @agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
  278. </view>
  279. </view>
  280. </u-popup>
  281. <!-- 新人红包 -->
  282. <view class="hongbao" v-if="waimaiHB == '是' &&HBShow">
  283. <view style="width: 62%;margin: 0 auto;position: relative;">
  284. <view @click="HBShow=false"
  285. style="position: absolute;right: -10rpx;top: -10rpx;z-index: 999;;font-size: 60rpx;font-weight: bold;">
  286. X
  287. </view>
  288. <!-- @click="takemoney()" https://mxys.chuanghai-tech.com/wmfile/20250814/f5146f4e2f1e46d28d4613260ab58c92.png-->
  289. <image :src="Tupian('/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20240520171928.jpg')" class="hb_img"></image>
  290. <!-- <image src="../../static/images/index/hb_btn.png" class="hb_btn" @click="takemoney()"></image> -->
  291. </view>
  292. </view>
  293. <!-- 联系客服悬浮按钮区域 -->
  294. <view class="serviceBtn" @click="goChat">
  295. </view>
  296. </view>
  297. </template>
  298. <script>
  299. import empty from '@/components/empty.vue'
  300. import {
  301. requestAndroidPermission,
  302. gotoAppPermissionSetting
  303. } from '@/components/permission.js'
  304. export default {
  305. components: {
  306. empty
  307. },
  308. data() {
  309. return {
  310. Authorization: false,
  311. privacyContractName: '',
  312. lookShow: false,
  313. currenthd: -1,
  314. hdlist: [],
  315. activityId: '',
  316. currents: 1,
  317. HBShow: false,
  318. isShow: false,
  319. hintShow: false,
  320. address: '暂无地址',
  321. city:'',
  322. bannerList: [{
  323. "id": 3,
  324. "createTime": "2021-12-24 17:52:27",
  325. "name": "banner3",
  326. "imageUrl": "https://diancan.xianmxkj.com/file/uploadPath/2021/12/24/0bfdbabcde9c62b42e77aecdb583033b.png",
  327. "state": 1,
  328. "classify": 1,
  329. "url": "",
  330. "sort": 3,
  331. "describess": "banner3"
  332. },
  333. {
  334. "id": 45,
  335. "createTime": "2021-12-24 17:52:27",
  336. "name": "banner",
  337. "imageUrl": "https://diancan.xianmxkj.com/file/uploadPath/2021/12/24/589d72b40a690147a48854a3b7f88953.png",
  338. "state": 1,
  339. "classify": 1,
  340. "url": "",
  341. "sort": 1,
  342. "describess": ""
  343. },
  344. ],
  345. gridData: [],
  346. page: 1,
  347. limit: 10,
  348. shopList: [],
  349. screen: '1',
  350. lng: '',
  351. lat: '',
  352. shopType: '1',
  353. shopTypeList: [{
  354. id: '0',
  355. shopTypeName: "全部"
  356. }],
  357. userId: '',
  358. src1: '../../static/images/index/xia.png',
  359. noticeList: {},
  360. show: false,
  361. typeShow: false,
  362. current: 1,
  363. sort: 1,
  364. fabuclassifyId: '',
  365. typeName: '全部',
  366. fabuclassifyName: '筛选',
  367. shopTypeId: '',
  368. value1: 0,
  369. value2: 0,
  370. value3: 0,
  371. value4: 0,
  372. options1: [{
  373. label: '综合排序',
  374. value: 1,
  375. }],
  376. options2: [{
  377. value: '3',
  378. label: "距离优先"
  379. }],
  380. options3: [{
  381. value: '4',
  382. label: "销量优先"
  383. }],
  384. options4: [{
  385. id: '',
  386. select: true,
  387. shopTypeName: "全部"
  388. }],
  389. defaultIndex: [0, 0, 0, 0],
  390. filterData: [
  391. [{
  392. label: '综合排序',
  393. value: '1',
  394. }],
  395. [{
  396. label: '距离优先',
  397. value: '3',
  398. }],
  399. [{
  400. label: '销量优先',
  401. value: '4',
  402. }],
  403. [{
  404. label: '不限性别',
  405. value: '0',
  406. },
  407. {
  408. label: '限男生',
  409. value: 1,
  410. },
  411. {
  412. label: '限女生',
  413. value: 2,
  414. }
  415. ],
  416. ],
  417. shopStatus: '',
  418. shop: {},
  419. title: '综合排序',
  420. title1: '距离优先',
  421. title2: '销量优先',
  422. title3: '筛选',
  423. XCXIsSelect: '否',
  424. arr: [],
  425. showModal: true,
  426. shopId: '',
  427. totalCount: 0,
  428. newUserFlagWm: 2,
  429. waimaiHB: '否',
  430. tuiguang: '',
  431. tuiguangImg: '',
  432. huodongList: [],
  433. jxlist: [],
  434. huoList:[],//商户参与的活动
  435. token:""
  436. }
  437. },
  438. onLoad(e) {
  439. let that = this
  440. that.token = that.$queue.getData("token")
  441. that.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  442. that.getZiZhi();
  443. that.getBannerList()
  444. that.getGridList()
  445. that.getShopType()
  446. that.getNoticeList()
  447. // that.getHuoDongList() //活动列表
  448. that.getHuoDList() //活动轮播
  449. that.gethdlist();
  450. uni.getLocation({
  451. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  452. highAccuracyExpireTime: 100,
  453. success: function(res) {
  454. that.lat = res.latitude;
  455. that.lng = res.longitude;
  456. that.defaultAddress()
  457. // that.getShopList()
  458. },
  459. fail(e) {
  460. uni.showModal({
  461. title: '温馨提示',
  462. content: '您的定位权限未开启,请开启后再来刷新操作吧!',
  463. showCancel: true,
  464. cancelText: '取消',
  465. confirmText: '确认',
  466. success: res => {
  467. if (res.confirm) {
  468. // #ifdef MP-WEIXIN
  469. uni.openSetting({ // 打开设置页
  470. success(rea) {
  471. console.log(rea.authSetting)
  472. }
  473. });
  474. // #endif
  475. // #ifdef APP-PLUS
  476. gotoAppPermissionSetting()
  477. // #endif
  478. }
  479. }
  480. });
  481. }
  482. });
  483. console.log(that.lat, that.lng, '经纬度')
  484. // #ifdef MP-WEIXIN
  485. if (e.scene) {
  486. const scene = decodeURIComponent(e.scene);
  487. let params = {}
  488. // 分割成键值对数组
  489. let pairs = scene.split('&')
  490. // 遍历并解析每个键值对
  491. pairs.forEach((pair) => {
  492. const [key, value] = pair.split('=')
  493. params[key] = value
  494. })
  495. let shopId = params.shopId
  496. let shopTypeId = params.shopTypeId
  497. if (shopId) {
  498. that.shopId = shopId
  499. }
  500. // if (!that.userId) {
  501. // uni.navigateTo({
  502. // url: '/pages/public/login'
  503. // })
  504. // return;
  505. // }
  506. setTimeout(function() {
  507. uni.navigateTo({
  508. url: '/pages/index/shop/index?shopId=' + that.shopId +'&shopTypeId=' + shopTypeId+'&lat='+this.lat+'&lng='+this.lng
  509. })
  510. }, 100)
  511. } else if (e.orderId) {
  512. uni.setStorageSync('orderId', e.orderId)
  513. // if (!that.userId) {
  514. // uni.navigateTo({
  515. // url: '/pages/public/login'
  516. // })
  517. // return;
  518. // }
  519. setTimeout(function() {
  520. uni.navigateTo({
  521. url: '/pages/index/shop/goodsList?shopId=' + e.shopId
  522. })
  523. }, 100)
  524. }
  525. try {
  526. wx.getPrivacySetting({
  527. success: res => {
  528. console.log("是否需要授权:", res.needAuthorization, "隐私协议的名称为:", res.privacyContractName)
  529. if (res.needAuthorization) {
  530. that.privacyContractName = res.privacyContractName;
  531. // this.$refs.popusAuthorization.open();
  532. that.Authorization = true;
  533. }
  534. },
  535. fail: () => {},
  536. complete: () => {},
  537. })
  538. } catch (e) {
  539. //TODO handle the exception
  540. }
  541. // #endif
  542. },
  543. onShow() {
  544. let that = this
  545. that.token = that.$queue.getData('token')
  546. that.$Request.get('/app/common/type/264').then(res => {
  547. if (res.code == 0) {
  548. // #ifdef MP-WEIXIN
  549. that.XCXIsSelect = res.data.value;
  550. that.$queue.setData('XCXIsSelect', res.data.value);
  551. that.$queue.setData('shangxianSelect', res.data.value);
  552. // #endif
  553. // #ifndef MP-WEIXIN
  554. that.$queue.setData('XCXIsSelect', '是');
  555. that.$queue.setData('shangxianSelect', '是');
  556. that.XCXIsSelect = '是'
  557. // #endif
  558. }
  559. });
  560. that.getHuoDList() //活动轮播
  561. that.gethdlist();
  562. uni.getLocation({
  563. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  564. success: function(res) {
  565. console.log(res)
  566. that.lat = res.latitude;
  567. that.lng = res.longitude;
  568. that.defaultAddress()
  569. }
  570. });
  571. that.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  572. that.lng = uni.getStorageSync('lng') ? uni.getStorageSync('lng') : that.lng
  573. that.lat = uni.getStorageSync('lat') ? uni.getStorageSync('lat') : that.lat
  574. console.log(that.userId, '我的id')
  575. // if (this.lng && this.lat) {
  576. // that.defaultAddress()
  577. // that.getjxShop(); //精选商家
  578. // }
  579. if (that.userId) {
  580. that.getUserInfo()
  581. that.$Request.getT('/app/common/type/266').then(res => { //订单取消通知
  582. // console.log(res, 963)
  583. if (res.code == 0) {
  584. if (res.data && res.data.value) {
  585. that.arr.push(res.data.value)
  586. }
  587. }
  588. })
  589. that.$Request.getT('/app/common/type/269').then(res => { //订单状态通知
  590. // console.log(res, 966)
  591. if (res.code == 0) {
  592. if (res.data && res.data.value) {
  593. that.arr.push(res.data.value)
  594. }
  595. }
  596. })
  597. // that.$Request.getT('/app/common/type/440').then(res => { //订单状态通知
  598. // // console.log(res, 999)
  599. // if (res.code == 0) {
  600. // if (res.data && res.data.value) {
  601. // that.arr.push(res.data.value)
  602. // }
  603. // }
  604. // })
  605. // that.$Request.getT('/app/common/type/441').then(res => { //订单状态通知
  606. // // console.log(res, 999)
  607. // if (res.code == 0) {
  608. // if (res.data && res.data.value) {
  609. // that.arr.push(res.data.value)
  610. // }
  611. // }
  612. // })
  613. // #ifdef MP-WEIXIN
  614. if (that.showModal) {
  615. that.openMsg()
  616. }
  617. // #endif
  618. }
  619. // this.getShopList()
  620. },
  621. onShareAppMessage(res) { //发送给朋友
  622. return {
  623. title: this.tuiguang,
  624. path: '/pages/index/index',
  625. imageUrl: this.tuiguangImg,
  626. }
  627. },
  628. onShareTimeline(res) { //分享到朋友圈
  629. return {
  630. title: this.tuiguang,
  631. path: '/pages/index/index',
  632. imageUrl: this.tuiguangImg,
  633. }
  634. },
  635. methods: {
  636. //跳转到会员页
  637. natiVip(){
  638. if (this.token) {
  639. uni.navigateTo({
  640. url:'/my/vip/shop?city='+this.city
  641. })
  642. } else {
  643. this.bindlogin()
  644. }
  645. },
  646. //测试付钱
  647. ceshi(){
  648. console.log('付钱')
  649. wx.requestPayment( {
  650. "appId": 'wx45ab46867002aa0b', //公众号ID,由商户传入
  651. "timeStamp": '1730281084', //时间戳,自1970年以来的秒数
  652. "nonceStr": '14cdaf9f6ab64c0ab4d2df3a63f2b484', //随机串
  653. "package": 'prepay_id=wx30173804948968a92217fddbd7942d0000',
  654. "signType": 'RSA', //微信签名方式:
  655. "paySign": 'QFMu/l1/WIM9QTXaalpiHSwKr6MpeNt6ixpWb/qaT2u0Dw344kknTQRWSs86T+aqSSnBuVyL+mjEchC/GkNwG489omH03fWtVWM3jEtgpzS4oEQF7F+QehyxKR/Lw11OBvQont+xmuhI7DwSVn5OKB5yEfxG57LdcFBb2x6+FGlLFvSEB0p/XqJh8aW+80tvaz1lhX677AyxU5VwP1aBIB5MivqvBWypbyfKR30qA7oM8wOq6O4baYQtXrq0z0kokhNk0aZxHTYuqqNXftcyyBGyyM6hl0LHXvlxhrbS8N/GitwgSX3KJ3Jate+V5UVNv0+vY1NNxVOzDMhNirWNMg==' //微信签名
  656. },
  657. function(res) {
  658. console.log(res,'res')
  659. if (res.err_msg == "get_brand_wcpay_request:ok") {
  660. // 使用以上方式判断前端返回,微信团队郑重提示:
  661. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  662. }else{
  663. this.chapayIf()
  664. }
  665. });
  666. },
  667. goChat() {
  668. if (this.token) {
  669. uni.navigateTo({
  670. url: '/my/setting/chat'
  671. })
  672. } else {
  673. this.bindlogin()
  674. }
  675. },
  676. bindlogin() {
  677. uni.navigateTo({
  678. url: '/pages/public/login'
  679. })
  680. },
  681. // 打开隐私协议页面
  682. openPrivacyContract() {
  683. let that = this;
  684. wx.openPrivacyContract({
  685. fail: () => {
  686. that.$queue.showToast('遇到错误无法打开!');
  687. }
  688. })
  689. },
  690. // 拒绝隐私协议
  691. exitMiniProgram() {
  692. // 直接退出小程序
  693. wx.exitMiniProgram()
  694. },
  695. // 同意隐私协议
  696. handleAgreePrivacyAuthorization() {
  697. // this.$refs.popusAuthorization.close();
  698. this.Authorization = false;
  699. let that = this;
  700. uni.getLocation({
  701. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  702. highAccuracyExpireTime: 100,
  703. success: function(res) {
  704. console.log(res)
  705. that.lat = res.latitude;
  706. that.lng = res.longitude;
  707. that.defaultAddress()
  708. // that.getShopList()
  709. },
  710. fail(e) {
  711. uni.showModal({
  712. title: '温馨提示',
  713. content: '您的定位权限未开启,请开启后再来刷新操作吧!',
  714. showCancel: true,
  715. cancelText: '取消',
  716. confirmText: '确认',
  717. success: res => {
  718. if (res.confirm) {
  719. // #ifdef MP-WEIXIN
  720. uni.openSetting({ // 打开设置页
  721. success(rea) {
  722. console.log(rea.authSetting)
  723. }
  724. });
  725. // #endif
  726. // #ifdef APP-PLUS
  727. gotoAppPermissionSetting()
  728. // #endif
  729. }
  730. }
  731. });
  732. }
  733. });
  734. },
  735. selectShow() {
  736. this.lookShow = !this.lookShow
  737. },
  738. //筛选活动
  739. searchhd(index, activityId) {
  740. if (index == this.currenthd) {
  741. this.page=1
  742. this.currenthd = -1
  743. this.activityId = '';
  744. this.shopList =[]
  745. this.getShopList()
  746. } else {
  747. console.log('eww','ll')
  748. this.page=1
  749. this.currenthd = index;
  750. this.activityId = activityId;
  751. this.shopList =[]
  752. // this.getShopList()
  753. this.huoDListSh()
  754. }
  755. },
  756. //获取所有活动
  757. gethdlist() {
  758. // this.$Request.get("/app/activityManage/getActivityList").then(res => {
  759. let data={
  760. page:1,
  761. limit:10,
  762. }
  763. this.$Request.get('/app/activity/page').then(res => {
  764. if (res.code == 0) {
  765. var total=res.totalCount
  766. let data={
  767. page:1,
  768. limit:total,
  769. }
  770. this.$Request.get('/app/activity/page').then(res => {
  771. if (res.code == 0) {
  772. res.data.list.map((item, index) => {
  773. if (item.id == 14) {
  774. res.data.list.splice(index, 1)
  775. }
  776. })
  777. this.hdlist = res.data.list
  778. }
  779. });
  780. }
  781. });
  782. },
  783. // 获取精选商家
  784. getjxShop() {
  785. let data = {
  786. activityId: 14,
  787. page: 1,
  788. limit: 4,
  789. lat: this.lat,
  790. lng: this.lng,
  791. }
  792. this.$Request.get("/app/activityManage/getShoActivityShopList", data).then(res => {
  793. if (res.code == 0) {
  794. this.jxlist = res.data.records
  795. }
  796. });
  797. },
  798. gotoList() {
  799. uni.navigateTo({
  800. url: '/running/huodong/list?activityId=14'
  801. })
  802. },
  803. gotohuodong(name,id,imageUrl, url) {
  804. uni.navigateTo({
  805. url: url + '?activityTitle=' + name+'&activityId='+id+'&imageUrl='+imageUrl
  806. })
  807. },
  808. // 获取活动轮播图
  809. getHuoDList() {
  810. let data = {
  811. classify: 12
  812. }
  813. this.$Request.get("/app/banner/selectBannerList", data).then(res => {
  814. if (res.code == 0) {
  815. let arr = []
  816. arr = res.data
  817. arr.map((item, index) => {
  818. if (item.name == '推荐商家') {
  819. arr.splice(index, 1)
  820. }
  821. })
  822. this.huodongList = arr
  823. }
  824. });
  825. },
  826. swiperChange(e) {
  827. if (this.huodongList.length - 1 == e.detail.current) {
  828. this.currents = 0
  829. } else {
  830. this.currents = e.detail.current + 1
  831. }
  832. // this.moneys = this.swiper[this.currents].mysteryBoxTypePrice
  833. // this.boxType = this.swiper[this.currents].mysteryBoxTypeId
  834. // this.getgoodsList(this.swiper[this.currents].mysteryBoxTypeId)
  835. },
  836. //活动列表
  837. getHuoDongList() {
  838. // huodongList
  839. //
  840. // this.$Request.getT('/app/activityManage/getActivityList').then(res => {
  841. let data={
  842. page:1,
  843. limit:10,
  844. }
  845. this.$Request.getT('/app/activity/page',data).then(res => {
  846. if (res.code === 0) {
  847. var total=res.totalCount
  848. let data={
  849. page:1,
  850. limit:total,
  851. }
  852. this.$Request.getT('/app/activity/page',data).then(res => {
  853. if (res.code === 0) {
  854. this.huodongList = res.data.list
  855. }
  856. });
  857. }
  858. });
  859. },
  860. // 分享文案和图片
  861. getZiZhi() {
  862. this.$Request.getT('/app/common/type/239').then(res => {
  863. if (res.code === 0) {
  864. this.tuiguang = res.data.value;
  865. }
  866. });
  867. this.$Request.getT('/app/common/type/238').then(res => {
  868. if (res.code === 0) {
  869. this.tuiguangImg = res.data.value;
  870. }
  871. });
  872. },
  873. // 红包
  874. takemoney() {
  875. this.$Request.getT('/app/userinfo/getNewUserRedPacketWm').then(res => {
  876. console.log(res.code)
  877. if (res.code == 0) {
  878. this.HBShow = false
  879. this.getUserInfo()
  880. setTimeout(function() {
  881. uni.navigateTo({
  882. url: '/my/coupon/index'
  883. })
  884. }, 100)
  885. }
  886. });
  887. },
  888. getSelect(e) {
  889. this.options4.forEach(res => {
  890. if (res.id == e.id) {
  891. res.select = true
  892. this.page = 1
  893. this.shopTypeId = e.id
  894. this.getShopList();
  895. this.isShow = false
  896. } else {
  897. res.select = false
  898. }
  899. })
  900. },
  901. // 获取用户信息
  902. getUserInfo() {
  903. this.$Request.getT('/app/user/selectUserMessage').then(res => {
  904. console.log(res)
  905. if (res.code == 0) {
  906. this.shopStatus = res.data.shopStatus
  907. this.newUserFlagWm = res.data.newUserFlagWm
  908. if (this.newUserFlagWm == 1) {
  909. this.waimaiHB = this.$queue.getData('waimaiHB');
  910. if (this.waimaiHB === '是') {
  911. this.HBShow = true
  912. }
  913. } else {
  914. this.HBShow = false
  915. }
  916. }
  917. });
  918. },
  919. // 获取公告
  920. getNoticeList() {
  921. let data = {
  922. page: 1,
  923. limit: 100
  924. }
  925. this.$Request.get("/app/common/type/432", data).then(res => {
  926. if (res.code == 0) {
  927. this.noticeList = res.data
  928. // console.log(this.noticeList,999);
  929. }
  930. });
  931. },
  932. confirm(e) {
  933. this.isShow = false
  934. this.page = 1
  935. this.current = e;
  936. this.getShopList();
  937. },
  938. // 获取轮播图
  939. getBannerList() {
  940. let data = {
  941. classify: 1
  942. }
  943. this.$Request.get("/app/banner/selectBannerList", data).then(res => {
  944. if (res.code == 0) {
  945. this.bannerList = res.data
  946. }
  947. });
  948. },
  949. // 获取轮播图
  950. getGridList() {
  951. let data = {
  952. classify: 4
  953. }
  954. this.$Request.get("/app/banner/selectBannerList", data).then(res => {
  955. if (res.code == 0) {
  956. this.gridData = res.data
  957. }
  958. });
  959. },
  960. // 商户类型
  961. getShopType() {
  962. this.$Request.getT('/app/shoptype/selectShopTypeList').then(res => {
  963. if (res.code == 0) {
  964. // this.shopTypeList = [...this.shopTypeList ,...res.data]
  965. res.data.forEach(res => {
  966. res.select = false
  967. })
  968. this.options4 = [...this.options4, ...res.data]
  969. console.log(this.options4, '+++++++++++++++++++')
  970. }
  971. })
  972. },
  973. //活动下的商户
  974. huoDListSh(){
  975. let data = {
  976. page: this.page,
  977. limit: this.limit,
  978. screen: this.current,
  979. shopTypeId: this.shopTypeId,
  980. lng: this.lng,
  981. lat: this.lat,
  982. // activityId: this.activityId,
  983. city:this.city,
  984. }
  985. this.$Request.getT('/app/goods/selectShop', data).then(res => {
  986. if (res.code == 0) {
  987. var totalCount=res.data.totalCount
  988. let data = {
  989. page: this.page,
  990. limit: totalCount,
  991. }
  992. console.log(data,this.activityId)
  993. this.$Request.getT(`/app/activity-shop/activity-shop-page/${this.activityId}`, data).then(res => {
  994. console.log(res,'hhhhhh2h')
  995. if (res.code == 0) {
  996. var huodongList=[]
  997. huodongList=res.data.list
  998. let data = {
  999. page: this.page,
  1000. limit: totalCount,
  1001. screen: this.current,
  1002. shopTypeId: this.shopTypeId,
  1003. lng: this.lng,
  1004. lat: this.lat,
  1005. // activityId: this.activityId,
  1006. city:this.city,
  1007. }
  1008. this.$Request.getT('/app/goods/selectShop', data).then(res => {
  1009. if (res.code == 0) {
  1010. this.totalCount = res.data.totalCount
  1011. res.data.list.forEach(ret => {
  1012. if (ret.distance > 1000) {
  1013. ret.distance = Number((ret.distance / 1000)).toFixed(2) + "km"
  1014. } else {
  1015. if (ret.distance == 0) {
  1016. ret.distance = "0m";
  1017. } else {
  1018. ret.distance = Number(ret.distance).toFixed(1) + "m";
  1019. }
  1020. }
  1021. ret.shopScore = ret.shopScore.toFixed(1)
  1022. ret.shopLable = ret.shopLable ? ret.shopLable.split(',') : ''
  1023. ret.shopCover = ret.shopCover ? ret.shopCover.split(',') :
  1024. 'https://mxys.chuanghai-tech.com/wmfile/20250814/fff4dc5d02ea4af881db9685f2e1e61d.png'
  1025. ret.errandTime = Math.round(ret.errandTime)
  1026. })
  1027. var shopList=[]
  1028. shopList=res.data.list
  1029. for (let i = 0; i < shopList.length; i++) {
  1030. let item1 = shopList[i];
  1031. // 内层循环遍历array2
  1032. for (let j = 0; j < huodongList.length; j++) {
  1033. let item2 = huodongList[j];
  1034. // 检查id是否相等
  1035. if (item1.shopId === item2.shopId) {
  1036. // 如果相等,将对象添加到matchedArray
  1037. this.shopList.push(item1);
  1038. // 如果只需要添加一次,则可以在这里退出内层循环
  1039. // break;
  1040. }
  1041. }
  1042. }
  1043. // for(var i=0;i<shopList.length;i++){
  1044. // let item1 = shopList[i];
  1045. // for(var j=0;j<huodongList.length;j++){
  1046. // let item2 = huodongList[j];
  1047. // console.log(shopList[i].shopId==huodongList[j].shopId,'oppoo')
  1048. // if(item1.shopId==item2.shopId){
  1049. // this.shopList.push(item1)
  1050. // console.log(this.shopList,'pp')
  1051. // // return一次就退出
  1052. // }else{
  1053. // this.shopList =[]
  1054. // }
  1055. // }
  1056. // }
  1057. }
  1058. })
  1059. }
  1060. })
  1061. }
  1062. uni.stopPullDownRefresh();
  1063. uni.hideLoading()
  1064. })
  1065. },
  1066. // 商户列表
  1067. getShopList() {
  1068. console.log(this.city,'city')
  1069. uni.setStorageSync('lng', this.lng);
  1070. uni.setStorageSync('lat', this.lat);
  1071. let data = {
  1072. page: this.page,
  1073. limit: this.limit,
  1074. screen: this.current,
  1075. shopTypeId: this.shopTypeId,
  1076. lng: this.lng,
  1077. lat: this.lat,
  1078. // activityId: this.activityId,
  1079. city:this.city,
  1080. }
  1081. console.log(data,'jjj')
  1082. this.$Request.getT('/app/goods/selectShop', data).then(res => {
  1083. console.log(res,'hhhhhh6')
  1084. if (res.code == 0) {
  1085. this.totalCount = res.data.totalCount
  1086. res.data.list.forEach(ret => {
  1087. if (ret.distance > 1000) {
  1088. ret.distance = Number((ret.distance / 1000)).toFixed(2) + "km"
  1089. } else {
  1090. if (ret.distance == 0) {
  1091. ret.distance = "0m";
  1092. } else {
  1093. ret.distance = Number(ret.distance).toFixed(1) + "m";
  1094. }
  1095. }
  1096. ret.shopScore = ret.shopScore.toFixed(2)
  1097. ret.shopLable = ret.shopLable ? ret.shopLable.split(',') : ''
  1098. ret.shopCover = ret.shopCover ? ret.shopCover.split(',') :
  1099. 'https://mxys.chuanghai-tech.com/wmfile/20250814/fff4dc5d02ea4af881db9685f2e1e61d.png'
  1100. ret.errandTime = Math.round(ret.errandTime)
  1101. })
  1102. if (this.page == 1) {
  1103. this.shopList = res.data.list
  1104. } else {
  1105. this.shopList = [...this.shopList, ...res.data.list]
  1106. }
  1107. console.log(this.shopList)
  1108. }
  1109. uni.stopPullDownRefresh();
  1110. uni.hideLoading()
  1111. })
  1112. },
  1113. goNav(url,type) {
  1114. console.log(url,'lkk')
  1115. if(url=='/my/integral/index' || url=='/my/task/index'){
  1116. uni.navigateTo({
  1117. url: '/pages/public/login'
  1118. })
  1119. return
  1120. }
  1121. // if (this.userId) {
  1122. if (uni.getStorageSync('sendMsg')) {
  1123. console.log('授权+1')
  1124. wx.requestSubscribeMessage({
  1125. tmplIds: this.arr,
  1126. success(re) {
  1127. console.log(JSON.stringify(re), 111111111111)
  1128. var datas = JSON.stringify(re);
  1129. if (datas.indexOf("accept") != -1) {
  1130. // console.log(re)
  1131. }
  1132. },
  1133. fail: (res) => {
  1134. // console.log(res)
  1135. }
  1136. })
  1137. }
  1138. if(type ==2&&url){
  1139. console.log('po','ssss')
  1140. uni.navigateTo({
  1141. url
  1142. })
  1143. }else if(type !=1&&url){
  1144. uni.navigateTo({
  1145. url:`/my/web/web?url=${url}`
  1146. })
  1147. }else{
  1148. uni.navigateTo({
  1149. url
  1150. })
  1151. }
  1152. // } else {
  1153. // uni.navigateTo({
  1154. // url: '/pages/public/login'
  1155. // })
  1156. // }
  1157. },
  1158. goShopDet(url, e,shuzu) {
  1159. if (uni.getStorageSync('sendMsg')) {
  1160. console.log('授权+1')
  1161. wx.requestSubscribeMessage({
  1162. tmplIds: this.arr,
  1163. success(re) {
  1164. console.log(JSON.stringify(re), 111111111111)
  1165. var datas = JSON.stringify(re);
  1166. if (datas.indexOf("accept") != -1) {
  1167. // console.log(re)
  1168. }
  1169. },
  1170. fail: (res) => {
  1171. // console.log(res)
  1172. }
  1173. })
  1174. }
  1175. this.shop = e
  1176. // console.log(e, '当前店铺')
  1177. let myDate = new Date();
  1178. let hours = myDate.getHours();
  1179. let minute = myDate.getMinutes();
  1180. let openTime = this.shop.businessHours.split(':')[0] //开始小时
  1181. let openTime1 = this.shop.businessHours.split(':')[1] //开始分钟
  1182. let closeTime = this.shop.lockHours.split(':')[0] //结束小时
  1183. let closeTime1 = this.shop.lockHours.split(':')[1] //结束分钟.
  1184. // console.log(hours)
  1185. // console.log(minute)
  1186. // console.log(openTime)
  1187. // console.log(openTime1)
  1188. // console.log(closeTime)
  1189. // console.log(closeTime1)
  1190. // console.log(minute >= closeTime1)
  1191. if (hours < openTime) {
  1192. this.hintShow = true
  1193. return
  1194. } else if (hours == openTime && minute < openTime1) {
  1195. this.hintShow = true
  1196. return
  1197. } else if (hours > closeTime) {
  1198. this.hintShow = true
  1199. return
  1200. } else if (hours == closeTime && minute >= closeTime1) {
  1201. this.hintShow = true
  1202. return
  1203. }
  1204. // console.log(url)
  1205. let items = encodeURIComponent(JSON.stringify(shuzu));
  1206. uni.navigateTo({
  1207. url:'/pages/index/shop/index?shopId='+url+'&huoListss='+items+'&shopTypeId='+e.shopTypeId+'&lat='+this.lat+'&lng='+this.lng
  1208. })
  1209. },
  1210. defaultAddress() {
  1211. if (uni.getStorageSync('city')) {
  1212. this.address = uni.getStorageSync('city')
  1213. this.lng = uni.getStorageSync('lng')
  1214. this.lat = uni.getStorageSync('lat')
  1215. this.page = 1
  1216. this.getShopList()
  1217. return
  1218. }
  1219. let data = {
  1220. page: 1,
  1221. limit: 1000
  1222. }
  1223. this.$Request.get('/app/address/selectAddressList', data).then(res => {
  1224. if (res.code == 0 && res.data.list.length) {
  1225. this.address = res.data.list[0].addressDetail
  1226. this.city=res.data.list[0].city
  1227. this.lng = res.data.list[0].lng
  1228. this.lat = res.data.list[0].lat
  1229. res.data.list.forEach(res => {
  1230. if (res.addressDefault) {
  1231. this.address = res.addressDetail
  1232. this.city=res.city
  1233. this.lng = res.lng
  1234. this.lat = res.lat
  1235. }
  1236. })
  1237. console.log('选择的经纬度', this.lng, this.lat)
  1238. } else {
  1239. let data = {
  1240. lat: this.lat,
  1241. lng: this.lng
  1242. }
  1243. this.$Request.get("/app/address/selectCity", data).then(res => {
  1244. if (res.code == 0) {
  1245. this.address = res.data.city
  1246. // console.log(3333333333)
  1247. // this.getShopList()
  1248. }
  1249. });
  1250. }
  1251. this.page = 1
  1252. this.getShopList()
  1253. })
  1254. },
  1255. goAddress() {
  1256. let userId = this.$queue.getData('userId');
  1257. // if (!userId) {
  1258. // uni.navigateTo({
  1259. // url: '/pages/public/login'
  1260. // })
  1261. // return
  1262. // }
  1263. uni.navigateTo({
  1264. url: '/pages/index/selectCampus'
  1265. })
  1266. },
  1267. // 查看金刚区详情
  1268. goDetail(item) {
  1269. console.log(item,'kkkk');
  1270. if (uni.getStorageSync('sendMsg')) {
  1271. console.log('授权+1',this.arr)
  1272. wx.requestSubscribeMessage({
  1273. tmplIds: this.arr,
  1274. success(re) {
  1275. console.log(JSON.stringify(re), 111111111111)
  1276. var datas = JSON.stringify(re);
  1277. if (datas.indexOf("accept") != -1) {
  1278. // console.log(re)
  1279. }
  1280. },
  1281. fail: (res) => {
  1282. // console.log(res)
  1283. }
  1284. })
  1285. }
  1286. let userId = this.$queue.getData('userId');
  1287. // if (!userId) {
  1288. // uni.navigateTo({
  1289. // url: '/pages/public/login'
  1290. // })
  1291. // return
  1292. // }
  1293. //如果是小程序跳转就是设置这个
  1294. if (item.describes) {
  1295. uni.navigateToMiniProgram({
  1296. appId: item.describes,
  1297. path: item.classifyUrl,
  1298. success: res => {
  1299. // 打开成功
  1300. console.log("打开成功", res);
  1301. },
  1302. fail: err => {
  1303. console.log(err);
  1304. }
  1305. })
  1306. return
  1307. }
  1308. if(item.url.indexOf('https:')){
  1309. uni.navigateTo({
  1310. url: item.url
  1311. });
  1312. }else{
  1313. uni.navigateTo({
  1314. url:`/my/web/web?url=${item.url}`
  1315. })
  1316. }
  1317. },
  1318. // 开启订阅消息
  1319. openMsg() {
  1320. console.log('订阅消息')
  1321. var that = this
  1322. uni.getSetting({
  1323. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1324. success(ret) {
  1325. console.log(ret.subscriptionsSetting, '------------------')
  1326. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1327. if (ret.subscriptionsSetting.itemSettings) {
  1328. uni.setStorageSync('sendMsg', true)
  1329. uni.openSetting({ // 打开设置页
  1330. success(rea) {
  1331. console.log(rea.authSetting)
  1332. }
  1333. });
  1334. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1335. console.log(99999)
  1336. uni.setStorageSync('sendMsg', false)
  1337. uni.showModal({
  1338. title: '提示',
  1339. content: '为了更好的体验,请绑定消息推送',
  1340. confirmText: '确定',
  1341. cancelText: '取消',
  1342. success: function(res) {
  1343. if (res.confirm) {
  1344. console.log(that.arr)
  1345. wx.requestSubscribeMessage({
  1346. tmplIds: that.arr,
  1347. success(re) {
  1348. console.log(JSON.stringify(re),
  1349. '++++++++++++++')
  1350. var datas = JSON.stringify(re);
  1351. if (datas.indexOf("accept") != -1) {
  1352. console.log(re)
  1353. uni.setStorageSync('sendMsg', true)
  1354. }
  1355. },
  1356. fail: (res) => {
  1357. console.log(res)
  1358. }
  1359. })
  1360. uni.setStorageSync('sendMsg', true)
  1361. console.log('确认')
  1362. that.showModal = false
  1363. } else if (res.cancel) {
  1364. console.log('取消')
  1365. uni.setStorageSync('sendMsg', false)
  1366. that.showModal = true
  1367. }
  1368. }
  1369. })
  1370. }
  1371. }
  1372. })
  1373. },
  1374. // 跳转商品详情
  1375. goDet(goodsId, shopId) {
  1376. let userId = this.$queue.getData('userId');
  1377. // if (!userId) {
  1378. // uni.navigateTo({
  1379. // url: '/pages/public/login'
  1380. // })
  1381. // return
  1382. // }
  1383. uni.navigateTo({
  1384. url: '/pages/index/shop/goodsDet?goodsId=' + goodsId + '&shopId=' + shopId + '&orderType=2'
  1385. })
  1386. },
  1387. // 跳转厨房监控页面
  1388. goCook(item){
  1389. // console.log(item.shopName);
  1390. uni.navigateTo({
  1391. url:`/running/cook/cook?shopName=${item.shopName}`
  1392. })
  1393. }
  1394. },
  1395. onReachBottom: function() {
  1396. console.log('当前长度',this.shopList.length,this.totalCount)
  1397. if (this.shopList.length < this.totalCount) {
  1398. if(this.activityId==''){
  1399. wx.showLoading({
  1400. title: '加载中...',
  1401. mask: true, // 是否显示透明蒙层,防止触摸穿透
  1402. })
  1403. this.page = this.page + 1;
  1404. this.getShopList()
  1405. }
  1406. } else {
  1407. uni.showToast({
  1408. title: '已经到底了',
  1409. icon: 'none'
  1410. })
  1411. }
  1412. },
  1413. onPullDownRefresh: function() {
  1414. if(this.activityId==''){
  1415. this.page = 1;
  1416. this.getShopList()
  1417. }
  1418. },
  1419. }
  1420. </script>
  1421. <style lang="scss" scoped>
  1422. .privacy {
  1423. position: fixed;
  1424. top: 0;
  1425. right: 0;
  1426. bottom: 0;
  1427. left: 0;
  1428. background: rgba(0, 0, 0, .5);
  1429. z-index: 9999999;
  1430. display: flex;
  1431. align-items: center;
  1432. justify-content: center;
  1433. }
  1434. .contentview {
  1435. width: 632rpx;
  1436. padding: 48rpx;
  1437. box-sizing: border-box;
  1438. background: #fff;
  1439. border-radius: 16rpx;
  1440. }
  1441. .contentview .title {
  1442. text-align: center;
  1443. color: #333;
  1444. font-weight: bold;
  1445. font-size: 32rpx;
  1446. }
  1447. .contentview .des {
  1448. font-size: 26rpx;
  1449. color: #666;
  1450. margin-top: 40rpx;
  1451. text-align: justify;
  1452. line-height: 1.6;
  1453. }
  1454. .contentview .des .link {
  1455. color: #07c160;
  1456. text-decoration: underline;
  1457. }
  1458. button::after {
  1459. border: none;
  1460. }
  1461. .btns {
  1462. margin-top: 48rpx;
  1463. display: flex;
  1464. }
  1465. .btns .item {
  1466. justify-content: space-between;
  1467. width: 244rpx;
  1468. height: 80rpx;
  1469. display: flex;
  1470. align-items: center;
  1471. justify-content: center;
  1472. border-radius: 16rpx;
  1473. box-sizing: border-box;
  1474. border: none;
  1475. }
  1476. .btns .reject {
  1477. background: #f4f4f5;
  1478. color: #909399;
  1479. }
  1480. .btns .agree {
  1481. background: #07c160;
  1482. color: #fff;
  1483. }
  1484. .hd {
  1485. width: 100%;
  1486. height: auto;
  1487. // margin-top: 20rpx;
  1488. background-color: #ffffff;
  1489. .hd-box {
  1490. width: 686rpx;
  1491. height: 100%;
  1492. // padding-top: 20rpx;
  1493. padding-bottom: 20rpx;
  1494. .scroll-view_H {
  1495. width: 100%;
  1496. white-space: nowrap;
  1497. }
  1498. .hd-box-item {
  1499. display: inline-block;
  1500. padding: 6rpx 20rpx 6rpx 20rpx;
  1501. background-color: #F7F5F6;
  1502. font-size: 24rpx;
  1503. border-radius: 16rpx;
  1504. margin-right: 10rpx;
  1505. }
  1506. }
  1507. }
  1508. .select {
  1509. padding: 6rpx 15rpx;
  1510. color: #000;
  1511. border-bottom: 6rpx solid #568D84;
  1512. }
  1513. .jxShop {
  1514. width: 100%;
  1515. height: 320rpx;
  1516. background-color: #ffffff;
  1517. .jxShop-box {
  1518. margin-top: 20rpx;
  1519. width: 686rpx;
  1520. height: 300rpx;
  1521. // background-color: #F7F5F6;
  1522. // background: linear-gradient(rgba(252,210,2,0.4) 1%,#fffdf2 100%);
  1523. // background: linear-gradient(#ffee99 1%,#fffbe5 100%);
  1524. background: #fff8d3;
  1525. border-radius: 16rpx;
  1526. .jxShop-box-c {
  1527. width: 626rpx;
  1528. height: 100%;
  1529. }
  1530. .jxShop-box-c-title {
  1531. width: 100%;
  1532. margin-top: 20rpx;
  1533. }
  1534. .jxShop-box-c-title-l {
  1535. color: #1A1A1A;
  1536. font-size: 34rpx;
  1537. font-weight: 800;
  1538. }
  1539. .jxShop-box-c-title-r {
  1540. color: #1E1F31;
  1541. font-size: 26rpx;
  1542. font-weight: 500;
  1543. }
  1544. .jxShop-box-c-list {
  1545. width: 100%;
  1546. height: 190rpx;
  1547. margin-top: 20rpx;
  1548. }
  1549. .jxShop-box-c-list-item {
  1550. width: 149rpx;
  1551. height: 100%;
  1552. background: #ffffff;
  1553. border-radius: 8px;
  1554. image {
  1555. width: 100%;
  1556. height: 114rpx;
  1557. border-radius: 8rpx 8rpx 0 0;
  1558. }
  1559. .jxShop-box-c-list-item-name {
  1560. width: 149rpx;
  1561. text-align: center;
  1562. font-size: 28rpx;
  1563. color: #1A1A1A;
  1564. font-weight: bold;
  1565. margin-top: 10rpx;
  1566. overflow: hidden;
  1567. white-space: nowrap;
  1568. text-overflow: ellipsis;
  1569. padding-left: 10rpx;
  1570. padding-right: 10rpx;
  1571. }
  1572. }
  1573. }
  1574. }
  1575. .huodong {
  1576. width: 100%;
  1577. height: 380rpx;
  1578. // margin-top: 20rpx;
  1579. background-color: #ffffff;
  1580. .huodong-box {
  1581. margin-top: 20rpx;
  1582. width: 686rpx;
  1583. height: 360rpx;
  1584. // background-color: #D4FCE2;
  1585. background-color: #fff8d3;
  1586. border-radius: 24rpx;
  1587. .huodong-box-c {
  1588. width: 646rpx;
  1589. height: 100%;
  1590. }
  1591. .huodong-box-c-title {
  1592. margin-top: 20rpx;
  1593. }
  1594. .huodong-box-c-title-l {
  1595. // color: #34CD40;
  1596. color: rgba(252, 210, 2, 1);
  1597. font-size: 44rpx;
  1598. font-weight: 600;
  1599. image {
  1600. width: 276rpx;
  1601. height: 65rpx;
  1602. }
  1603. // font-style: italic;
  1604. }
  1605. .huodong-box-c-title-r {
  1606. // background: linear-gradient(114deg, rgba(252, 210, 2, 0.2) 0%, rgba(252, 210, 2, 0.5) 50%, rgba(252, 210, 2, 1) 100%);
  1607. background-color: #FFE3C7;
  1608. border-radius: 40rpx;
  1609. color: #FF8D1A;
  1610. font-size: 26rpx;
  1611. font-weight: 600;
  1612. padding: 10rpx 20rpx;
  1613. }
  1614. .huodong-box-c-list {
  1615. width: 100%;
  1616. height: 320rpx;
  1617. margin-top: 10rpx;
  1618. }
  1619. .huodong-box-c-list-l {
  1620. width: 190rpx;
  1621. height: 250rpx;
  1622. background: linear-gradient(0deg, #34CD41 0%, #48DB19 100%);
  1623. border-radius: 24rpx;
  1624. }
  1625. .huodong-box-c-list-l-t {
  1626. width: 180rpx;
  1627. height: 240rpx;
  1628. border-radius: 24rpx;
  1629. background-color: #ffffff;
  1630. margin-top: 5rpx;
  1631. }
  1632. .huodong-box-c-list-l-t>image {
  1633. width: 160rpx;
  1634. height: 170rpx;
  1635. margin-top: 10rpx;
  1636. border-radius: 24rpx;
  1637. }
  1638. .huodong-box-c-list-l-t-b {
  1639. width: 100%;
  1640. height: 56rpx;
  1641. background-color: #E0F7F1;
  1642. color: #36CF3D;
  1643. font-size: 30rpx;
  1644. border-radius: 24rpx;
  1645. }
  1646. .huodong-box-c-list-l-t-t {
  1647. width: 100%;
  1648. text-align: center;
  1649. font-size: 36rpx;
  1650. // font-weight: bold;
  1651. font-weight: 600;
  1652. color: #ffffff;
  1653. }
  1654. .huodong-box-c-list-c {
  1655. width: 220rpx;
  1656. height: 280rpx;
  1657. background: linear-gradient(0deg, #34CD41 0%, #48DB19 100%);
  1658. border-radius: 24rpx;
  1659. }
  1660. .huodong-box-c-list-c-t {
  1661. width: 211rpx;
  1662. height: 270rpx;
  1663. border-radius: 24rpx;
  1664. background-color: #ffffff;
  1665. margin-top: 5rpx;
  1666. }
  1667. .huodong-box-c-list-c-t>image {
  1668. width: 186rpx;
  1669. height: 190rpx;
  1670. margin-top: 10rpx;
  1671. border-radius: 24rpx;
  1672. }
  1673. .huodong-box-c-list-c-b {
  1674. width: 100%;
  1675. height: 70rpx;
  1676. background-color: #E0F7F1;
  1677. color: #36CF3D;
  1678. font-size: 30rpx;
  1679. border-radius: 24rpx;
  1680. }
  1681. .huodong-box-c-list-c-t-t {
  1682. width: 100%;
  1683. text-align: center;
  1684. font-size: 36rpx;
  1685. // font-weight: bold;
  1686. font-weight: 600;
  1687. color: #ffffff;
  1688. }
  1689. }
  1690. }
  1691. .search-btn {
  1692. width: 132rpx;
  1693. height: 80rpx;
  1694. font-size: 28rpx;
  1695. text-align: center;
  1696. line-height: 80rpx;
  1697. background: linear-gradient(90.25deg, #77A69A 0%, #558C83 100%);
  1698. border-radius: 36px;
  1699. color:#fff;
  1700. }
  1701. .address {
  1702. width: 100%;
  1703. background: linear-gradient(135deg, rgba(129, 189, 179, 1) 0%, rgba(236, 246, 206, 1) 100%);
  1704. display: flex;
  1705. align-items: center;
  1706. // #ifndef H5
  1707. position: fixed;
  1708. top: 0;
  1709. height: 180rpx;
  1710. // line-height: 260rpx;
  1711. padding: 80rpx 34rpx 0rpx;
  1712. // #endif
  1713. // #ifdef H5
  1714. height: 80rpx;
  1715. line-height: 80rpx;
  1716. padding: 0 34rpx;
  1717. // #endif
  1718. font-size: 32rpx;
  1719. z-index: 999;
  1720. .address_name {
  1721. max-width: 90%;
  1722. overflow: hidden;
  1723. text-overflow: ellipsis;
  1724. white-space: nowrap;
  1725. }
  1726. }
  1727. .lable {
  1728. border: 1rpx solid #FFE6D9;
  1729. height: 40rpx;
  1730. padding: 0 14rpx;
  1731. background: #FFE6D9;
  1732. border-radius: 4rpx;
  1733. font-weight: 500;
  1734. color: #FD6416;
  1735. font-size: 20rpx;
  1736. margin-right: 10rpx;
  1737. margin-bottom: 10rpx;
  1738. }
  1739. .tabs {
  1740. margin-bottom: 20rpx;
  1741. display: flex;
  1742. justify-content: space-between;
  1743. align-items: center;
  1744. }
  1745. .tabs_name {
  1746. flex: 1;
  1747. /* display: inline-block; */
  1748. text-align: center;
  1749. margin-bottom: 30rpx 0;
  1750. position: relative;
  1751. display: flex;
  1752. /* justify-content: space-between; */
  1753. align-items: center;
  1754. }
  1755. .tabs_name view {
  1756. margin: 0 auto;
  1757. display: flex;
  1758. align-items: center;
  1759. }
  1760. .tabs_2 {
  1761. /* width: 30%; */
  1762. }
  1763. .actives {
  1764. color: #007AFF;
  1765. }
  1766. .tabsicon {
  1767. position: absolute;
  1768. top: 0;
  1769. right: 22rpx;
  1770. width: 20rpx;
  1771. height: 40rpx;
  1772. z-index: 1;
  1773. }
  1774. .tabs_icon {
  1775. width: 12rpx;
  1776. height: 8rpx;
  1777. z-index: 1;
  1778. margin-left: 10rpx;
  1779. }
  1780. .icon1 {
  1781. /* position: absolute; */
  1782. /* top: 6rpx; */
  1783. }
  1784. .icon2 {
  1785. position: absolute;
  1786. bottom: 6rpx;
  1787. }
  1788. .page-box {
  1789. // position: relative;
  1790. // z-index: 0;
  1791. // top: 70px;
  1792. }
  1793. .centre {
  1794. margin: auto;
  1795. height: 400rpx;
  1796. text-align: center;
  1797. font-size: 32rpx;
  1798. }
  1799. .centre image {
  1800. width: 387rpx;
  1801. height: 341rpx;
  1802. margin: 40rpx auto 20rpx;
  1803. }
  1804. .centre .tips {
  1805. font-size: 32rpx;
  1806. color: #2F3044;
  1807. margin: 20rpx 0 40rpx;
  1808. font-weight: 700;
  1809. }
  1810. .hintPopul {
  1811. width: 100%;
  1812. height: 100%;
  1813. position: fixed;
  1814. top: 0;
  1815. background: rgba(0, 0, 0, .4);
  1816. z-index: 999;
  1817. }
  1818. .content_ {
  1819. position: absolute;
  1820. left: 0;
  1821. right: 0;
  1822. top: 0;
  1823. bottom: 0;
  1824. margin: auto;
  1825. text-align: center;
  1826. width: 500rpx;
  1827. height: 400rpx;
  1828. border-radius: 20rpx;
  1829. background-color: #fff;
  1830. padding-top: 120rpx;
  1831. }
  1832. .content_ image {
  1833. position: absolute;
  1834. top: -50rpx;
  1835. left: 0;
  1836. right: 0;
  1837. margin: auto;
  1838. }
  1839. .hintText {
  1840. font-size: 30rpx;
  1841. }
  1842. .skuBtn {
  1843. width: 460rpx;
  1844. height: 60rpx;
  1845. line-height: 60rpx;
  1846. text-align: center;
  1847. background: #FCD202;
  1848. font-size: 28rpx;
  1849. border: 2rpx solid #FCD202;
  1850. color: #333333;
  1851. border-radius: 50rpx;
  1852. font-weight: 700;
  1853. margin: auto;
  1854. }
  1855. .hongbao {
  1856. width: 100%;
  1857. /* height: 100px; */
  1858. /* background: #007AFF; */
  1859. position: fixed;
  1860. top: 34%;
  1861. /* bottom: 50%; */
  1862. left: 0rpx;
  1863. right: 0rpx;
  1864. /* display: none; */
  1865. }
  1866. .hb_img {
  1867. width: 100%;
  1868. height: 535rpx;
  1869. }
  1870. .hb_btn {
  1871. width: 70%;
  1872. height: 72rpx;
  1873. position: absolute;
  1874. top: 315rpx;
  1875. left: 80rpx;
  1876. }
  1877. .serviceBtn{
  1878. position: fixed;
  1879. right: 52rpx;
  1880. bottom: 50rpx;
  1881. display: flex;
  1882. flex-direction: column;
  1883. align-items: center;
  1884. justify-content: center;
  1885. width: 100rpx;
  1886. height: 120rpx;
  1887. color: #fff;
  1888. font-size: 20rpx;
  1889. background-image: url(https://mxys.chuanghai-tech.com/wmfile/20260413/b645b4f41ba34128ae6b88d2fe30c813.png);
  1890. background-repeat: no-repeat;
  1891. background-size: contain;
  1892. }
  1893. .cook{
  1894. color: #2B7924;
  1895. border: none;
  1896. background-color: #F0FCE6;
  1897. }
  1898. </style>