index.vue 55 KB

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