shopList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <template>
  2. <view class="box">
  3. <!-- <view class="sstop">
  4. <image src="../../static/timg/icon_search@2x.png" mode="" class="sstopimg"></image>
  5. <input type="text" v-model="shopName" placeholder="请输入门店名称、门店地址" class="sstopInput" @confirm="getqueryShopList2">
  6. <image src="../../static/img/icon_close.png" mode="" @click="empty" v-if="inputChShow" class="inputCh"></image>
  7. </view>
  8. <view class="regionBox">
  9. <view class="regionLine" @click="gocity">
  10. <view class="regionTxt">{{cityName}}</view>
  11. <image src="../../static/timg/icon_arrow_def@2x.png" mode="" class="jtbelow"></image>
  12. </view>
  13. <view class="regionSx"></view>
  14. <view class="regionLine" @click="quCilck">
  15. <view class="regionTxt">{{areaName}}</view>
  16. <image src="../../static/timg/icon_arrow_def@2x.png" mode="" class="jtbelow"></image>
  17. </view>
  18. </view> -->
  19. <view class="newTop">
  20. <view class="newTopSSbox">
  21. <view class="newTopSSLeft" @click="gocity">
  22. <view class="newregionTxt">{{cityName}}</view>
  23. <image src="../../static/img2/xia.png" mode="" class="newTopXia"></image>
  24. </view>
  25. <view class="newTopSSRight">
  26. <image class="newSImg" src="../../static/img2/ss.png" mode=""></image>
  27. <input type="text" v-model="shopName" placeholder="门店名称、地址" class="sstopInput" @confirm="getqueryShopList2">
  28. </view>
  29. </view>
  30. </view>
  31. <view style="height: 135rpx;"></view>
  32. <view class="shopline" v-for="(item,index) in queryShopList">
  33. <view class="newdistance" v-if="item.distance&&item.distance!= '0.00'">
  34. <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
  35. <view style="padding-top: 6rpx;"><span >{{item.distance}}km</span></view>
  36. </view>
  37. <view class="shoplineLeft">
  38. <image :src="item.photoPath" mode="" class="shopImg" v-if="item.photoPath"></image>
  39. <image :src="item.photoPath2" mode="" class="shopImg" v-else-if="item.photoPath2"></image>
  40. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  41. </view>
  42. <view class="shopright">
  43. <view style="display: flex;justify-content: space-between;">
  44. <view style="width: 410rpx;">
  45. <view class="shopTop">
  46. <view class="shopName">{{item.shopName}}</view>
  47. </view>
  48. <view class="brandsBg" v-if="item.brands">
  49. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="shopTime">
  54. 营业时间: <span v-if="item.startTime">{{item.startTime}}</span> - <span
  55. v-if="item.endTime">{{item.endTime}}</span> </view>
  56. <view class="shopBottomLeft">
  57. <span class="shopaddress"
  58. v-if="item.address">{{item.address}}</span>
  59. </view>
  60. <view class="shopdhBox">
  61. <view class="shopcall" style="" @click.stop="goDetail(item)">
  62. <image class="shopcallIcon" src="../../static/img2/yueyue.png" mode=""></image>
  63. <view class="shopcallTxt">预约</view>
  64. </view>
  65. <view class="shopcall" @click.stop="goMap(item)">
  66. <image class="shopcallIcon" src="../../static/img2/dhjt.png" mode=""></image>
  67. <view class="shopcallTxt">导航</view>
  68. </view>
  69. <view class="shopcall" @click.stop="makePhoneCall(item.mobilePhone)">
  70. <image class="shopcallIcon" src="../../static/img2/call.png" mode=""></image>
  71. <view class="shopcallTxt">电话</view>
  72. </view>
  73. <!-- <view class="shopcall" >
  74. <image class="shopcallIcon" src="../../static/img2/wx.png" mode=""></image>
  75. <view class="shopcallTxt">店长微信</view>
  76. </view> -->
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 上拉 加载更多 -->
  81. <view class="noMore" v-if="noMoreShow && (queryShopList.length!=0)">没有更多数据</view>
  82. <!-- 无数据空白页 -->
  83. <nodata v-if="queryShopList.length==0&&loading"></nodata>
  84. <uni-popup ref="popup" type="right" :mask-click="true">
  85. <view class="popup-content">
  86. <scroll-view class="brandList" scroll-y="true">
  87. <!-- :class="{areaActvie:item.area==areaName}" -->
  88. <view v-for="item in areaList" class="areaListLine"
  89. @click="checkarea(item)">
  90. <span >{{item.area}}</span>
  91. <image v-if="item.code==area" class="areaCkIcon" src="http://dmsphoto.66km.com.cn/thFiles/0A1DADEA-1807-4ABC-B391-ECC8B1882DA4.png" mode=""></image>
  92. </view>
  93. </scroll-view>
  94. </view>
  95. </uni-popup>
  96. <!-- 手机号授权 -->
  97. <view class="authorizBox" v-if="authorizShow" @click="authorizShowno">
  98. <view class="authorizCont" @click.stop="">
  99. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  100. <view class="authorizMs">未注册的手机号登录后将自动创建会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  101. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  102. </view>
  103. <view style="text-align: center;padding-top: 56rpx;">
  104. <image src="../../static/timg/icon_guanbi@2x.png" @click="authorizShowno" mode="" class="authorizCloseImg"></image>
  105. </view>
  106. </view>
  107. <!-- <view>lng:{{location.lng}}</view>
  108. <view>lat:{{location.lat}}</view> -->
  109. </view>
  110. </template>
  111. <script>
  112. import nodata from '../../components/nodata/nodata.vue'
  113. export default {
  114. components: {
  115. nodata,
  116. },
  117. data() {
  118. return {
  119. location: {
  120. lng: '',
  121. lat: '',
  122. },
  123. queryShopList: '',
  124. noMoreShow: false,
  125. regionName:'',
  126. twoRegionName:'',
  127. cityName:'城市',
  128. area:'',
  129. cityCode:'',
  130. areaList:'',
  131. index:'',
  132. areaName:'区域',
  133. loading:false,
  134. ext:'',
  135. authorizShow:false,
  136. wxOpenData:'',
  137. userInfo: '',
  138. shopName:'',
  139. inputChShow:false,
  140. }
  141. },
  142. watch:{
  143. shopName(val){
  144. console.log(val)
  145. if(val){
  146. this.inputChShow=true
  147. }
  148. },
  149. },
  150. onLoad() {
  151. var that = this;
  152. uni.removeStorageSync('selectCity');
  153. this.userInfo = this.$store.state.userInfo;
  154. this.ext=this.$common.getExtStoreId();
  155. if(this.userInfo){
  156. this.themeColor = uni.getStorageSync("themeColor");
  157. this.wxOpenData=this.$store.state.wxOpenData;
  158. this.init()
  159. }else{
  160. this.$common.automaticlogin().then(val => {
  161. this.themeColor = uni.getStorageSync("themeColor");
  162. this.userInfo=this.$store.state.userInfo;
  163. this.wxOpenData=this.$store.state.wxOpenData;
  164. this.init()
  165. if(!this.userInfo){
  166. uni.hideLoading();
  167. this.authorizShow=true
  168. }
  169. })
  170. }
  171. // that.getqueryShopList();
  172. },
  173. onShow() {
  174. const selectCity = uni.getStorageSync('selectCity');
  175. //console.log("onShow")
  176. //console.log(selectCity)
  177. if(selectCity){
  178. this.cityName=selectCity.city
  179. this.cityCode=selectCity.code
  180. this.areaName='区域'
  181. this.area=''
  182. this.shopName=''
  183. this.getAreaList()
  184. this.getqueryShopList() //获取门店列表
  185. }
  186. },
  187. methods: {
  188. empty(){
  189. this.shopName='';
  190. this.inputChShow=false;
  191. this.queryShopList=[];
  192. this.page=1;
  193. this.getqueryShopList()
  194. },
  195. authorizShowno(){
  196. this.authorizShow=false
  197. },
  198. decryptPhoneNumber: function(e) {
  199. console.log(e);
  200. this.code=e.detail.code
  201. this.wxPhoneLogin()
  202. this.authorizShow=false;
  203. },
  204. wxPhoneLogin(){
  205. var that=this;
  206. this.$http('miniApp2/sys/wxPhoneLogin', {
  207. appId:this.ext.appId,
  208. unionId:this.ext.unionId,
  209. code:this.code,
  210. openId:this.wxOpenData.openid
  211. },'POST').then(res => {
  212. var data = res.data;
  213. if(data.loginInfo){
  214. this.userInfo=data.loginInfo.openUser;
  215. this.wxOpenData=data.loginInfo;
  216. this.$store.commit('mutationswxOpenData', data)
  217. this.$store.commit('mutationsuserInfo', this.userInfo)
  218. this.init()
  219. }
  220. })
  221. },
  222. init(){
  223. var that = this;
  224. uni.showLoading({
  225. title: '加载中'
  226. })
  227. uni.authorize({
  228. scope: 'scope.userLocation',
  229. success() {
  230. uni.getLocation({
  231. type: 'gcj02',
  232. success: function(res) {
  233. console.log(res)
  234. that.location.lat = res.latitude
  235. that.location.lng = res.longitude
  236. that.getAdress();
  237. //that.getqueryShopList() //获取全部门店列表
  238. },
  239. fail(err) {
  240. console.log("定位失败")
  241. that.getqueryShopList();
  242. }
  243. });
  244. },
  245. fail: (err) => {
  246. console.log(err)
  247. that.getqueryShopList();
  248. }})
  249. },
  250. quCilck(){
  251. console.log(this.cityName)
  252. if(this.cityName){
  253. this.$refs.popup.open("right")
  254. //this.popupShow=true;
  255. if(this.areaList.length==0){
  256. /* uni.showToast({
  257. title: '当前城市下无区域,请切换城市查看',
  258. icon: 'none',
  259. duration: 4000
  260. }); */
  261. uni.showModal({
  262. title: '提示',
  263. content: '当前城市下无区域,请切换城市查看',
  264. success: function(res) {
  265. if (res.confirm) {
  266. // 执行确认后的操作
  267. uni.navigateTo({
  268. url:'/pages/subPack/chooseCity?type=1'
  269. })
  270. }
  271. else {
  272. // 执行取消后的操作
  273. }
  274. }
  275. })
  276. }
  277. }else{
  278. uni.showModal({
  279. title: '提示',
  280. content: '当前城市暂无门店,请切换城市查看',
  281. success: function(res) {
  282. if (res.confirm) {
  283. // 执行确认后的操作
  284. uni.navigateTo({
  285. url:'/pages/subPack/chooseCity?type=1'
  286. })
  287. }
  288. else {
  289. // 执行取消后的操作
  290. }
  291. }
  292. })
  293. }
  294. },
  295. gocity(){
  296. uni.navigateTo({
  297. url:'/pages/subPack/chooseCity?type=1'
  298. })
  299. },
  300. checkarea(item){
  301. this.shopName=''
  302. if(this.area==item.code){
  303. this.areaName='区域'
  304. this.area=''
  305. this.getqueryShopList() //获取门店列表
  306. }else{
  307. this.areaName=item.area
  308. this.area=item.code
  309. this.getqueryShopList() //获取门店列表
  310. }
  311. this.$refs.popup.close()
  312. },
  313. bindPickerChange(e){
  314. //console.log(e)
  315. this.areaName=this.areaList[e.detail.value].area
  316. this.area=this.areaList[e.detail.value].code
  317. this.getqueryShopList() //获取门店列表
  318. },
  319. cancelHandling(){
  320. this.areaName='区域'
  321. this.area=''
  322. this.getqueryShopList() //获取门店列表
  323. },
  324. makePhoneCall(num){
  325. uni.makePhoneCall({
  326. phoneNumber:num
  327. });
  328. },
  329. goMap(item){
  330. var that = this;
  331. if (!item.lat || !item.lng) {
  332. uni.showToast({
  333. title: '该店铺未设置定位',
  334. icon: 'none',
  335. duration: 3000
  336. });
  337. } else {
  338. uni.openLocation({
  339. latitude: Number(item.lat),
  340. longitude: Number(item.lng),
  341. name: item.shopName,
  342. address: item.provinceName + item.cityName + item.areaName +
  343. item.address,
  344. success: function() {
  345. console.log('success');
  346. },
  347. fail(err) {
  348. console.log(err)
  349. }
  350. });
  351. }
  352. },
  353. getAdress(){
  354. var that=this;
  355. var location = this.location.lng + ',' + this.location.lat
  356. console.log('location'+location)
  357. //location='117.29249484592015,39.026727973090274'
  358. uni.request({
  359. url: 'https://restapi.amap.com/v3/geocode/regeo',
  360. data: {
  361. key: '389a059efa3f499d9145eb84b1c3248d',
  362. location: location,
  363. },
  364. dataType: "json",
  365. success: (res) => {
  366. console.log('定位城市', res);
  367. if(res.data.regeocode){
  368. console.log("城市名称")
  369. console.log(res.data.regeocode.addressComponent.city)
  370. // console.log(res.data.pois[0].cityname)
  371. if(res.data.regeocode.addressComponent.city.length!=0){
  372. var cityname = res.data.regeocode.addressComponent.city;
  373. }else{
  374. var cityname = res.data.regeocode.addressComponent.province;
  375. }
  376. var cityCode = res.data.regeocode.addressComponent.adcode
  377. cityCode = cityCode.slice(0, -2)
  378. cityCode = cityCode + '00'
  379. this.cityName = cityname
  380. this.cityCode = cityCode
  381. that.getqueryShopList() //获取全部门店列表
  382. that.getAreaList()
  383. }else{
  384. console.log("接口获取失败")
  385. uni.hideLoading();
  386. }
  387. }
  388. });
  389. },
  390. getAreaList(){
  391. this.$http('opencarOwnerHome/shop-area-list', {
  392. city:this.cityCode
  393. }, 'GET').then(res => {
  394. this.areaList=res.data
  395. })
  396. },
  397. getqueryShopList2(){
  398. uni.showLoading({
  399. title: '加载中'
  400. })
  401. this.loading=false;
  402. this.$http('opencarOwnerHome/queryShopInfoList', {
  403. lat: this.location.lat ? this.location.lat : '',
  404. lng: this.location.lng ? this.location.lng : '',
  405. city:'',
  406. area:'',
  407. shopName:this.shopName
  408. }, 'GET').then(res => {
  409. uni.hideLoading();
  410. this.queryShopList = res.data.shop;
  411. this.loading=true;
  412. //console.log('list+=', this.queryShopList);
  413. if(this.queryShopList.length==0){
  414. /* uni.showToast({
  415. title: '当前城市暂无门店,请切换城市查看',
  416. icon: 'none',
  417. duration: 4000
  418. }); */
  419. uni.showModal({
  420. title: '提示',
  421. content: '当前城市暂无门店,请切换城市查看',
  422. success: function(res) {
  423. if (res.confirm) {
  424. // 执行确认后的操作
  425. uni.navigateTo({
  426. url:'/pages/subPack/chooseCity?type=1'
  427. })
  428. }
  429. else {
  430. // 执行取消后的操作
  431. }
  432. }
  433. })
  434. }
  435. })
  436. },
  437. getqueryShopList() {
  438. uni.showLoading({
  439. title: '加载中'
  440. })
  441. this.loading=false;
  442. this.$http('opencarOwnerHome/queryShopInfoList', {
  443. lat: this.location.lat ? this.location.lat : '',
  444. lng: this.location.lng ? this.location.lng : '',
  445. city:this.cityCode,
  446. area:this.area,
  447. shopName:this.shopName
  448. }, 'GET').then(res => {
  449. uni.hideLoading();
  450. this.queryShopList = res.data.shop;
  451. this.loading=true;
  452. //console.log('list+=', this.queryShopList);
  453. if(this.queryShopList.length==0){
  454. /* uni.showToast({
  455. title: '当前城市暂无门店,请切换城市查看',
  456. icon: 'none',
  457. duration: 4000
  458. }); */
  459. uni.showModal({
  460. title: '提示',
  461. content: '当前城市暂无门店,请切换城市查看',
  462. success: function(res) {
  463. if (res.confirm) {
  464. // 执行确认后的操作
  465. uni.navigateTo({
  466. url:'/pages/subPack/chooseCity?type=1'
  467. })
  468. }
  469. else {
  470. // 执行取消后的操作
  471. }
  472. }
  473. })
  474. }
  475. })
  476. },
  477. goDetail(item) {
  478. // uni.navigateTo({
  479. // url: '../shop/shopDetail?id=' + item.shopId
  480. // })
  481. if (this.userInfo) {
  482. uni.navigateTo({
  483. url:'onlineBooking?naShopId='+item.shopId+'&naUnionId='+item.unionId
  484. })
  485. } else {
  486. this.authorizShow = true;
  487. return false;
  488. }
  489. }
  490. },
  491. // 下拉刷新
  492. onPullDownRefresh() {
  493. this.getqueryShopList()
  494. setTimeout(function() {
  495. uni.stopPullDownRefresh();
  496. }, 1000);
  497. },
  498. }
  499. </script>
  500. <style scoped>
  501. .newTop{
  502. width: 702rpx;
  503. height: 70rpx;
  504. background: #FFFFFF;
  505. padding: 24rpx;
  506. position: fixed;
  507. top: 0;left: 0;z-index: 11;
  508. }
  509. .newTopSSbox{
  510. height: 50rpx;
  511. border-radius: 15rpx;
  512. border: 2rpx solid #FCD903;
  513. padding: 10rpx 0;
  514. display: flex;
  515. }
  516. .newTopXia{
  517. width: 12rpx;height: 8rpx;margin-top: 20rpx;margin-left: 10rpx;
  518. }
  519. .newTopSSLeft{
  520. width: 190rpx;
  521. display: flex;
  522. border-right: 1px solid #EEEEEE;
  523. justify-content: center;
  524. }
  525. .newSImg{
  526. width: 28rpx;height: 28rpx;
  527. margin-left: 30rpx;margin-top: 10rpx;
  528. }
  529. .sstopInput{
  530. width: 400rpx;
  531. height: 50rpx;
  532. line-height: 50rpx;
  533. font-size: 26rpx;
  534. padding-left: 16rpx;
  535. }
  536. .newTopSSRight{
  537. display: flex;
  538. }
  539. .newregionTxt{
  540. font-size: 26rpx;
  541. color: #333333;
  542. line-height: 50rpx;
  543. white-space: nowrap; /* 禁止换行 */
  544. overflow: hidden; /* 隐藏溢出内容 */
  545. text-overflow: ellipsis; /* 添加省略号 */
  546. max-width: 150rpx;
  547. }
  548. .dhImg{
  549. width: 35rpx;height: 35rpx;border-radius: 6rpx;
  550. }
  551. .newdistance{
  552. position: absolute;top: 22rpx;right: 18rpx;
  553. text-align: center;
  554. font-size: 22rpx;
  555. color: #666666;
  556. }
  557. .areaCkIcon{
  558. width: 38rpx;height: 28rpx;
  559. }
  560. .popup-content{
  561. width: 590rpx;
  562. background: #FFFFFF;
  563. height: 100vh;
  564. }
  565. .brandList{
  566. height:99vh;
  567. }
  568. .areaListLine{
  569. padding:30rpx 24rpx;
  570. color: #666666;
  571. font-size: 28rpx;
  572. border-bottom: 1px solid #eaeaea;
  573. display: flex;
  574. justify-content: space-between;
  575. line-height: 28rpx;
  576. }
  577. .areaActvie{
  578. background: #F19D01;
  579. color: #FFFFFF;
  580. }
  581. .jtbelow{
  582. width: 14rpx;height: 7rpx;
  583. margin-left: 10rpx;margin-top: 10rpx;
  584. }
  585. .regionSx{
  586. width: 2rpx;height: 33rpx;background:#EEEEEE;
  587. }
  588. .regionLine{
  589. display: flex;justify-content: center;font-size: 26rpx;
  590. width: 370rpx;line-height: 33rpx;color: #3C3C3C;
  591. }
  592. .regionBox{
  593. display: flex;
  594. justify-content: center;
  595. background: #FFFFFF;
  596. padding: 20rpx 0;
  597. margin-bottom: 20rpx;
  598. position: fixed;
  599. width: 100vw;
  600. top: 118rpx;left: 0;
  601. }
  602. .box {
  603. min-height: 100vh;
  604. background-color: #F4F5F7;
  605. padding-bottom: 60rpx;
  606. }
  607. .shopdhBox{
  608. display: flex;padding-top: 20rpx;
  609. justify-content: space-between;
  610. }
  611. .shopcall{
  612. display: flex;
  613. }
  614. .shopcallIcon{
  615. width: 26rpx;height: 26rpx;margin-top: 2rpx;
  616. }
  617. .shopcallTxt{
  618. font-size: 24rpx;
  619. color: #222222;
  620. line-height: 33rpx;padding-left: 8rpx;
  621. }
  622. .yuyuBtnBox{
  623. display: flex;
  624. font-size: 24rpx;
  625. color: #FF8113;
  626. align-items: center;
  627. justify-items: center;
  628. /* border-left: 1px solid #EEEEEE;
  629. padding-left: 20rpx; */
  630. }
  631. .shopline {
  632. margin: 0rpx 24rpx 20rpx;
  633. padding: 24rpx 20rpx;
  634. background-color: #FFFFFF;
  635. border-radius: 20rpx;
  636. display: flex;
  637. position: relative;
  638. }
  639. .nodataImg {
  640. width: 400rpx;
  641. padding-top: 100rpx;
  642. }
  643. .noTxt {
  644. font-size: 36rpx;
  645. color: #999999;
  646. padding-top: 50rpx;
  647. }
  648. .nodataBox {
  649. text-align: center;
  650. }
  651. .shopImg {
  652. width: 160rpx;
  653. height: 160rpx;
  654. border-radius: 10rpx;
  655. }
  656. .shopBox {
  657. padding-top: 30rpx;
  658. display: flex;
  659. }
  660. .flex {
  661. display: flex;
  662. justify-content: space-between;
  663. }
  664. .shopCont {
  665. padding-left: 22rpx;
  666. width: 520rpx;
  667. }
  668. .span1 {
  669. color: #FF4F00;
  670. font-size: 36rpx;
  671. }
  672. .span2 {
  673. color: #FF4F00;
  674. font-size: 22rpx;
  675. }
  676. .span3 {
  677. color: #333333;
  678. font-size: 22rpx;
  679. padding-left: 22rpx;
  680. }
  681. .shopBq {
  682. color: #FF4F00;
  683. font-size: 22rpx;
  684. border-radius: 4rpx;
  685. border: 1px solid #FF4F00;
  686. line-height: 30rpx;
  687. height: 30rpx;
  688. padding: 0rpx 5rpx;
  689. margin-top: 10rpx;
  690. }
  691. .brandsBg {
  692. display: flex;
  693. align-items: center;
  694. padding: 10rpx 0rpx;
  695. flex-wrap: wrap;
  696. height: 34rpx;
  697. /* 隐藏文字显示 ...不换行 */
  698. overflow: hidden;
  699. text-overflow: ellipsis;
  700. white-space: nowrap;
  701. }
  702. .brands {
  703. border-radius: 4rpx;
  704. padding: 0 5rpx;
  705. color: #F19D01;
  706. height: 28rpx;
  707. border: 1px solid #F19D01;
  708. font-size: 22rpx;
  709. line-height: 30rpx;
  710. margin: 5rpx 10rpx 5rpx 0rpx;
  711. }
  712. .timeBg {
  713. display: flex;
  714. }
  715. .shopTime {
  716. color: #666666;
  717. font-size: 26rpx;
  718. padding-top: 4rpx;
  719. }
  720. .addressBox {
  721. color: #666666;
  722. font-size: 22rpx;
  723. }
  724. .shopNameSearchInput {
  725. width: 500rpx;
  726. }
  727. .colorCS {
  728. color: #FF4F00;
  729. }
  730. .shopbox {
  731. padding: 0 16rpx;
  732. }
  733. .shopCallImg {
  734. width: 38rpx;
  735. height: 46rpx;
  736. }
  737. .shopTop {
  738. display: flex;
  739. justify-content: space-between;
  740. }
  741. .shopright {
  742. padding-left: 28rpx;
  743. width: 500rpx;
  744. }
  745. .shopName {
  746. font-size: 32rpx;
  747. font-weight: bold;
  748. color: #222222;
  749. line-height: 40rpx;
  750. width: 450rpx;
  751. white-space: nowrap;
  752. overflow: hidden;
  753. text-overflow: ellipsis;
  754. }
  755. .shopScore1 {
  756. font-size: 36rpx;
  757. font-weight: bold;
  758. color: #FF4F00;
  759. height: 50rpx;
  760. line-height: 50rpx;
  761. }
  762. .shopScore11 {
  763. font-size: 22rpx;
  764. color: #FF4F00;
  765. margin-right: 14rpx;
  766. }
  767. .shopScore2 {
  768. font-size: 22rpx;
  769. color: #666666;
  770. margin-right: 14rpx;
  771. padding: 8rpx 0;
  772. }
  773. .shopScore3 {
  774. font-size: 22rpx;
  775. color: #333333;
  776. padding-left: 20rpx;
  777. }
  778. .Btn {
  779. width: 104rpx;
  780. height: 56rpx;
  781. background: #FF2400 linear-gradient(135deg, #FD5300 0%, #FF270A 100%);
  782. border-radius: 6rpx;
  783. font-size: 26rpx;
  784. text-align: center;
  785. color: #FFFFFF;
  786. line-height: 56rpx;
  787. }
  788. .shopBottom {
  789. display: flex;
  790. }
  791. .shopBottomLeft {
  792. font-size: 25rpx;
  793. color: #666666;
  794. line-height: 30rpx;
  795. padding-top: 8rpx;
  796. display: flex;
  797. justify-content: space-between;
  798. padding-right: 10rpx;
  799. }
  800. .shopaddress {
  801. width: 400rpx;
  802. /* 隐藏文字显示 ...不换行 */
  803. overflow: hidden;
  804. text-overflow: ellipsis;
  805. white-space: nowrap;
  806. color: #999999;
  807. }
  808. .noMore {
  809. text-align: center;
  810. line-height: 50rpx;
  811. color: #999999;
  812. font-size: 28rpx;
  813. }
  814. .authorizBox{
  815. width: 100vw;
  816. height: 100vh;
  817. background: rgba(0, 0, 0, 0.5);
  818. position: fixed;
  819. top: 0;
  820. left: 0;
  821. }
  822. .authorizCont{
  823. margin-top: 30vh;
  824. width: 564rpx;
  825. height: 408rpx;
  826. background: #FFFFFF;
  827. border-radius: 24rpx;
  828. margin-left: 93rpx;
  829. position: relative;
  830. }
  831. .authorizCloseImg{
  832. width: 62rpx;
  833. height: 62rpx;
  834. }
  835. .sqLogoBox{
  836. width: 180rpx;
  837. height: 180rpx;
  838. background: #FFFFFF;
  839. border-radius: 90rpx;
  840. text-align: center;
  841. position: absolute;
  842. top: -50rpx;
  843. left: 192rpx;
  844. }
  845. .authorizName{
  846. color: #333333;
  847. line-height: 42rpx;
  848. font-size: 30rpx;
  849. text-align: center;
  850. padding-top: 58rpx;
  851. }
  852. .authorizMs{
  853. color: #999999;
  854. line-height: 36rpx;
  855. font-size: 26rpx;
  856. width: 452rpx;
  857. padding-top: 24rpx;
  858. text-align: center;
  859. margin-left: 56rpx;
  860. }
  861. .authorizContbutton{
  862. width: 422rpx;
  863. height: 88rpx;
  864. background: #EC0F0A;
  865. border-radius: 44rpx;
  866. line-height: 88rpx;
  867. text-align: center;
  868. font-size:30rpx;
  869. color: #FFFFFF;
  870. margin-top: 62rpx;
  871. margin-left:71rpx;
  872. }
  873. .sstop{
  874. position: fixed;
  875. padding-top: 24rpx;
  876. padding-left: 24rpx;
  877. background: #ffffff;
  878. width: 100vw;
  879. top: 0rpx;
  880. left: 0;
  881. padding-bottom: 20rpx;
  882. }
  883. .sstopimg{
  884. width: 40rpx;
  885. height: 40rpx;
  886. position: absolute;
  887. left: 44rpx;
  888. top: 40rpx;
  889. }
  890. .inputCh{
  891. width:40rpx;
  892. height: 40rpx;
  893. position: absolute;
  894. right: 60rpx;
  895. top: 40rpx;
  896. z-index: 11;
  897. }
  898. </style>