shopList.vue 22 KB

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