shopDetail.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224
  1. <template>
  2. <view class="cont">
  3. <view v-if="shopdata">
  4. <view class="top" >
  5. <swiper class="swiper" :circular="true"
  6. :indicator-dots="true" indicator-active-color="#FF4F00"
  7. v-if="shopImg.length>0"
  8. >
  9. <swiper-item v-for="(item,index) in shopImg">
  10. <view class="swiper-item">
  11. <image :src="item" mode="widthFix" class="swpImg"></image>
  12. </view>
  13. </swiper-item>
  14. </swiper>
  15. <image src="../../static/img/750500.png" mode="" class="swpImg" v-else></image>
  16. <!-- <view class="Member" @click="deleteMember" v-if="shopdata.isAttention">取消关注</view>
  17. <view class="Member" @click="Member" v-if="!shopdata.isAttention">关注</view> -->
  18. </view>
  19. <!-- 店铺主体 -->
  20. <view class="shopMain">
  21. <view class="shopName">{{shopdata.shopName}}</view>
  22. <view class="pingfenBox" @click="goAppraise(shopdata.shopId)">
  23. <view class="fenshuBox" v-if="shopdata.shopScore"><span class="fenshuNum">{{shopdata.shopScore}}</span> <span class="fenshuTxt">分</span></view>
  24. <view class="fenshuBox" v-if="!shopdata.shopScore"> <span class="fenshuTxt2">暂无评分</span></view>
  25. <view class="shuxian"></view>
  26. <span class="cishu">服务次数 {{shopdata.sheetSum}}</span>
  27. <view class="shuxian"></view>
  28. <span class="cishu">评价数 {{shopdata.evaluateSum}}</span>
  29. <image src="../../static/img/jt.png" mode="" class="pingfenImg"></image>
  30. </view>
  31. <!-- 是否营业 -->
  32. <view class="business">
  33. <view class="businessTitle">营业时间:</view>
  34. <view class="businessTitme"> <span v-if="shopdata.startTime">{{shopdata.startTime}}</span> -- <span v-if="shopdata.endTime">{{shopdata.endTime}}</span> </view>
  35. </view>
  36. <!-- 品牌 -->
  37. <view class="brandsBox">
  38. <view class="brandsLine" v-if="shopdata.levelName">{{shopdata.levelName}}</view>
  39. <view v-for="(item,index) in brandsList" class="brandsLine2">{{item}}</view>
  40. </view>
  41. </view>
  42. <!-- 地图 -->
  43. <view class="mapBox">
  44. <view class="mapLeft">
  45. <view class="dingwBox"><image src="../../static/img/icon_coordinate.png" mode="" class="mapdwImg"></image>
  46. <view class="distance" v-if="shopdata.distance&&shopdata.distance!= '0.00'">距离 {{shopdata.distance}}km</view>
  47. <view class="distance" v-else>距离 --km</view>
  48. </view>
  49. <view class="mapaddress">{{shopdata.provinceName}}{{shopdata.cityName}}{{shopdata.areaName}}
  50. <span v-if="shopdata.address">{{shopdata.address}}</span>
  51. </view>
  52. </view>
  53. <view class="shopsx"></view>
  54. <view class="shopRightBox" @click="map">
  55. <view> <image src="../../static/img/icon_map.png" mode="" class="shopRightImg"></image> </view>
  56. <view class="shopRihgtTxt">地图</view>
  57. </view>
  58. <view class="shopsx"></view>
  59. <view class="shopRightBox" @click="call">
  60. <view> <image src="../../static/img/icon_phone2.png" mode="" class="shopRightImg"></image> </view>
  61. <view class="shopRihgtTxt">电话</view>
  62. </view>
  63. </view>
  64. <!-- 去保养 -->
  65. <view class="bottom">
  66. <view class="care" @click="goCare">去保养</view>
  67. </view>
  68. <!-- 车型里程 -->
  69. <!-- <view class="Cartop">
  70. <view class="CartopLeft">
  71. <image :src="maintainCarData.brandLogo" mode="" class="CarbrandLogo" @click="carEdit"></image>
  72. <view class="carName" @click="carEdit">
  73. <span v-if="maintainCarData.brand"> {{maintainCarData.brand}}</span>
  74. <span v-if="maintainCarData.series">-{{maintainCarData.series}}</span>
  75. <span v-if="!maintainCarData.brand">添加我的爱车</span>
  76. </view>
  77. <image src="../../static/img/icon_edit.png" mode="" class="CartopEdit" @click="carEdit"></image>
  78. </view>
  79. <view class="CartopRight">
  80. <input type="text" v-model="maintainCarData.milage" @confirm="getData" value="" placeholder="请输入当前里程" class="CartopInput" placeholder-style="color:#999999;"/>
  81. <view>
  82. <image src="../../static/img/icon_edit.png" mode="" class="CartopEdit" @click="milageEdit"></image>
  83. </view>
  84. </view>
  85. </view> -->
  86. <!-- 车型里程 -->
  87. <!-- 保养 -->
  88. <!-- <view class="main" style="margin-top: 20rpx;">
  89. <view class="mainLeft">
  90. <scroll-view scroll-y="true" class="mainscrollView">
  91. <view class="mainLeftLine" v-for="(item,index) in mealData" :class="{lineLeftActive:leftIndex==index}"
  92. @click="leftClick(item,index)">
  93. <span>{{item.name}}</span>
  94. <view class="lineNum" v-show="item.num!=0">{{item.num}}</view>
  95. </view>
  96. </scroll-view>
  97. </view>
  98. <view class="mainRight">
  99. <scroll-view scroll-y="true" class="mainscrollView">
  100. <view v-show="!mealData[leftIndex].listPackage||mealData[leftIndex].listPackage.length==0">
  101. <view class="nodataBox">
  102. <image src="../../static/img/nodata.png" mode="widthFix" class="nodataImg"></image>
  103. <view class="noTxt">暂无数据</view>
  104. </view>
  105. </view>
  106. <view class="mainRightLine" v-for="(item,index) in mealData[leftIndex].listPackage">
  107. <view class="contTop">
  108. <view class="contTopLeft">
  109. <view class="listPackgeName"> {{item.name}} </view>
  110. <view class="listPackgeMs">10000公里(或6个月)/次 | 机油参考用量4L</view>
  111. </view>
  112. <view class="contTopRight" @click="listcheck(item)">
  113. <image src="../../static/img/login_icon_checked.png" mode="" class="imgPrivacy" v-show="item.planItem"></image>
  114. <image src="../../static/img/login_icon_uncheck.png" mode="" class="imgPrivacy" v-show="!item.planItem"></image>
  115. </view>
  116. </view>
  117. <view class="contZk">
  118. <view class="contZkMain" v-show="item.planItem">
  119. <view v-for="(vf,findex) in item.listGoodsAll">
  120. <view class="goodsItemLIne" v-for="(v,i) in vf" v-if="i==0" @click="goGoods(v)">
  121. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  122. <image src="../../static/img/noimg.png" mode="" class="goodsImg sm" v-else></image>
  123. <view class="goodsCont">
  124. <view class="goodsContTop">
  125. <view class="goodsItemName">{{v.showName}}</view>
  126. <view class="replace" @click.stop="replace(vf,index,findex,i)" v-if="vf.length>1">更换</view>
  127. </view>
  128. <view class="goodsCOntBOttom">
  129. <view class="salePrice">¥{{v.salePrice}}</view>
  130. <view class="as">
  131. <view class="asa" @click.stop="reduce(v)">-</view>
  132. <view class="asNum">{{v.qty}}</view>
  133. <view class="asa" @click.stop="plus(v)">+</view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="goodsItemLIne" v-for="(v,i) in item.listItem">
  140. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  141. <image src="../../static/img/noimg.png" mode="" class="goodsImg sm" v-else></image>
  142. <view class="goodsCont">
  143. <view class="goodsContTop">
  144. <view class="goodsItemName">{{v.showName}}</view>
  145. </view>
  146. <view class="goodsCOntBOttom">
  147. <view class="salePrice">¥{{v.salePrice}}</view>
  148. <view class="itemNum">x1</view>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </scroll-view>
  156. </view>
  157. </view> -->
  158. <!-- 保养 -->
  159. <!-- 底部 -->
  160. <!-- <view class="bottom">
  161. <view class="bottomLeft">
  162. <view class="caidan" @click="caidanClick">
  163. <image src="../../static/img/caidan.png" mode="" class="caidanImg"></image>
  164. <view class="total" v-show="total>0">{{total}}</view>
  165. </view>
  166. <view>
  167. <view class="heji"> <span class="heji1">合计</span> <span class="hejiNum">¥{{totalhj}}</span> </view>
  168. <view class="hejiMs">商品¥{{goodsTotal}}+工时费¥{{salePriceTotal}}</view>
  169. </view>
  170. </view>
  171. <view class="settlement" @click="settlement">去结算</view>
  172. </view> -->
  173. <!-- <view class="caidanTk" v-show="qingdanShow" @click="qingdanShow=false">
  174. <view class="tkCont" @click.stop="">
  175. <view class="caidanTkTop" >
  176. <view class="tkTopTitle">清单</view>
  177. <view class="topTopright">
  178. <view class="empty" @click.stop="empty">清空</view>
  179. <view class="close" @click="qingdanShow=false">X</view>
  180. </view>
  181. </view>
  182. <view class="tkMain">
  183. <scroll-view scroll-y="true" class="tkMainSv">
  184. <view class="qingdanLine" v-for="(item,index) in orderData">
  185. <view class="mainTitle">{{item.name}}</view>
  186. <view class="goodsItem" v-for="(v,i) in item.listGoodsAll">
  187. <view>
  188. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  189. <image src="../../static/img/noimg.png" mode="" class="goodsImg " v-else></image>
  190. </view>
  191. <view class="goodsItemRight" >
  192. <view class="goodsItemName">{{v.goodsName}}</view>
  193. <view class="goodsItemBottom">
  194. <view class="goodssalePrice">¥{{v.salePrice}}</view>
  195. <view class="goodsNum">x{{v.qty}}</view>
  196. </view>
  197. </view>
  198. </view>
  199. <view class="goodsItem" v-for="(v,i) in item.listItem">
  200. <view>
  201. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  202. <image src="../../static/img/noimg.png" mode="" class="goodsImg " v-else></image>
  203. </view>
  204. <view class="goodsItemRight" >
  205. <view class="goodsItemName">{{v.itemName}}</view>
  206. <view class="goodsItemBottom">
  207. <view class="goodssalePrice">¥{{v.salePrice}}</view>
  208. <view class="goodsNum">x{{v.qty}}</view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </scroll-view>
  214. </view>
  215. </view>
  216. </view> -->
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. export default {
  222. data() {
  223. return {
  224. shopId:'',
  225. location:'',
  226. shopdata:'',
  227. shopImg:[],
  228. indicatorcolor:'rgba(255, 79, 0)',
  229. brandsList:[],
  230. maintainCarData:'',
  231. mealData:'',
  232. leftIndex:0,
  233. total:0,
  234. qingdanShow:false,
  235. totalhj:0,
  236. goodsTotal:0,
  237. salePriceTotal:0,
  238. orderData:[],
  239. replaceIndex1:'',
  240. replaceIndex2:'',
  241. }
  242. },
  243. onShow() {
  244. /* var maintainCarData2=uni.getStorageSync("maintainCarData");
  245. if(this.maintainCarData.id!=maintainCarData2.id){
  246. this.maintainCarData=maintainCarData2;
  247. if(this.maintainCarData.milage==0){
  248. this.maintainCarData.milage='';
  249. }
  250. this.getData();
  251. }
  252. var replaceData=uni.getStorageSync("replaceData");
  253. if(replaceData){
  254. replaceData.qty=1;
  255. console.log(replaceData)
  256. this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2].unshift(replaceData)
  257. console.log(this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2])
  258. this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2]=this.unique(this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2])
  259. this.$forceUpdate()
  260. } */
  261. },
  262. onLoad(opt) {
  263. // this.$common.isUserId()
  264. this.shopId=opt.id;
  265. this.location=uni.getStorageSync("locationCity");
  266. this.maintainCarData=uni.getStorageSync("maintainCarData");
  267. this.getData();
  268. /* this.addBMemberShopFootprint();
  269. this.getmainData() */
  270. },
  271. methods: {
  272. goCare(){
  273. this.$common.isUserId()
  274. uni.navigateTo({
  275. url: '../module/maintain?brand='+this.brand
  276. })
  277. },
  278. goGoods(item){
  279. uni.navigateTo({
  280. url:'../goods/goodsDetail?goodsId='+item.mGoodsID+'&type=1'+'&typeIndex=2&maintain=1'
  281. })
  282. },
  283. unique(arr1) {
  284. const res = new Map();
  285. return arr1.filter((a) => !res.has(a.goodsID) && res.set(a.goodsID, 1))
  286. },
  287. goAppraise(shopId){
  288. console.log(shopId);
  289. uni.navigateTo({
  290. url:'shopAppraise?shopId=' + shopId
  291. })
  292. },
  293. getmainData(){
  294. uni.showLoading({ });
  295. this.$http('miniApp/packageMiniAppController/queryPackageList', {
  296. mileage:this.maintainCarData.milage,
  297. liyangId:this.maintainCarData.nLevelID,
  298. shopId:this.shopId
  299. },'GET').then(res => {
  300. uni.hideLoading();
  301. this.mealData=res.data;
  302. this.calculation();
  303. })
  304. },
  305. carEdit(){
  306. uni.navigateTo({
  307. url:'../car/cailist?type=2'
  308. })
  309. },
  310. milageEdit(){
  311. this.maintainCarData.milage=''
  312. },
  313. map(){
  314. console.log("打开地图")
  315. var that=this;
  316. if(!that.shopdata.lat||!that.shopdata.lng){
  317. uni.showToast({
  318. title: '该店铺未设置定位',
  319. icon:'none',
  320. duration: 3000
  321. });
  322. }else{
  323. uni.openLocation({
  324. latitude:Number(that.shopdata.lat) ,
  325. longitude:Number( that.shopdata.lng),
  326. name:that.shopdata.shopName,
  327. address:that.shopdata.address,
  328. success: function () {
  329. console.log('success');
  330. },
  331. fail(err) {
  332. console.log(err)
  333. }
  334. });
  335. }
  336. },
  337. call(){
  338. uni.makePhoneCall({
  339. phoneNumber: this.shopdata.mobilePhone
  340. });
  341. },
  342. getData(){
  343. uni.showLoading({ });
  344. this.shopImg=[];
  345. this.$http('worldKeepCar/worldHome/queryKeepCarShopDetail', {
  346. id:this.shopId,
  347. lat:this.location.lat ? this.location.lat : '',
  348. lng:this.location.lng ? this.location.lng : '',
  349. },'GET').then(res => {
  350. uni.hideLoading();
  351. this.shopdata=res.data;
  352. if(this.shopdata.photoPath){
  353. this.shopImg.push(this.shopdata.photoPath)
  354. }
  355. this.shopImg=this.shopImg.concat(this.shopdata.imgList)
  356. console.log(this.shopImg)
  357. if(this.shopdata.brands){
  358. this.brandsList=this.shopdata.brands.split(',');
  359. }
  360. uni.setNavigationBarTitle({
  361. title: res.data.shopName
  362. })
  363. })
  364. },
  365. addBMemberShopFootprint(){
  366. this.$http('miniAppShopInfoController/addBMemberShopFootprint', {
  367. shopId:this.shopId
  368. },'POST').then(res => {
  369. })
  370. },
  371. Member(){
  372. uni.showLoading({ });
  373. this.$http('miniAppShopInfoController/addBMemberShop', {
  374. shopID:this.shopId,
  375. },'POST').then(res => {
  376. uni.hideLoading();
  377. if(res.code==0){
  378. uni.showToast({
  379. title: '关注成功',
  380. icon:'none',
  381. duration: 3000
  382. });
  383. this.shopdata.isAttention=1
  384. }else{
  385. uni.showToast({
  386. title: res.msg,
  387. icon:'none',
  388. duration: 3000
  389. });
  390. }
  391. })
  392. },
  393. deleteMember(){
  394. uni.showLoading({ });
  395. this.$http('miniAppMyBMemberCar/deleteBMemberShop', {
  396. shopId:this.shopId,
  397. },'POST').then(res => {
  398. uni.hideLoading();
  399. if(res.code==0){
  400. uni.showToast({
  401. title: '取消成功',
  402. icon:'none',
  403. duration: 3000
  404. });
  405. this.shopdata.isAttention=0
  406. }else{
  407. uni.showToast({
  408. title: res.msg,
  409. icon:'none',
  410. duration: 3000
  411. });
  412. }
  413. })
  414. },
  415. settlement(){
  416. console.log(this.orderData)
  417. var that=this;
  418. if(this.orderData.length>0){
  419. uni.setStorage({
  420. key: 'cfshopInfo',
  421. data: that.shopdata,
  422. success: function () {
  423. uni.removeStorageSync('couponData');
  424. uni.navigateTo({
  425. url:'../module/confirmOrder?orderData='+JSON.stringify(that.orderData)+'&currentMileage='+that.maintainCarData.milage+'&type=2'
  426. })
  427. }
  428. });
  429. }
  430. },
  431. replace(v,index,i,replaceIndex){
  432. console.log(v)
  433. v.forEach((item,vindex)=>{
  434. if(replaceIndex==vindex){
  435. item.showr=false
  436. }else{
  437. item.showr=true
  438. }
  439. })
  440. uni.removeStorageSync('replaceData');
  441. this.replaceIndex1=index;
  442. this.replaceIndex2=i;
  443. uni.setStorage({
  444. key: 'replaceDataList',
  445. data: v,
  446. success: function () {
  447. uni.navigateTo({
  448. url:'../module/replaceGoods'
  449. })
  450. }
  451. });
  452. },
  453. caidanClick(){
  454. this.qingdanShow=!this.qingdanShow
  455. },
  456. leftClick(item,index){
  457. this.leftIndex=index
  458. },
  459. listcheck(item){
  460. item.planItem=!item.planItem;
  461. //var
  462. this.calculation();
  463. if(item.planItem){
  464. /* this.orderData.push(item) */
  465. }
  466. },
  467. empty(){
  468. var that=this;
  469. uni.showModal({
  470. title: '提示',
  471. content: '确定要清空清单吗',
  472. success: function (res) {
  473. if (res.confirm) {
  474. that.orderData=[];
  475. that.mealData.forEach(item=>{
  476. item.num=0;
  477. if(item.listPackage){
  478. item.listPackage.forEach(v=>{
  479. v.planItem=false
  480. })
  481. }
  482. })
  483. that.calculation();
  484. that.qingdanShow=false;
  485. }
  486. }
  487. });
  488. },
  489. calculation(){
  490. this.total=0;
  491. this.totalhj=0;
  492. this.goodsTotal=0;
  493. this.salePriceTotal=0;
  494. this.orderData=[]
  495. this.mealData.forEach(v=>{
  496. v.num=0;
  497. if(v.listPackage){
  498. v.listPackage.forEach(i=>{
  499. if(i.planItem){
  500. var obj={
  501. listGoodsAll:[],
  502. listItem:'',
  503. }
  504. if(i.listGoodsAll.length>0){
  505. i.listGoodsAll.forEach((goods,goodsIndex)=>{
  506. /* goods.forEach(sp=>{
  507. this.goodsTotal=Number(this.goodsTotal)
  508. this.goodsTotal+=sp.salePrice*sp.qty
  509. this.goodsTotal=this.goodsTotal.toFixed(2)
  510. })
  511. */
  512. this.goodsTotal=Number(this.goodsTotal)
  513. this.goodsTotal+=goods[0].salePrice*goods[0].qty
  514. this.goodsTotal=this.goodsTotal.toFixed(2)
  515. obj.listGoodsAll.push(goods[0])
  516. })
  517. }
  518. if(i.listItem.length>0){
  519. obj.listItem=i.listItem
  520. }
  521. this.orderData.push(obj)
  522. v.num++;
  523. this.total++;
  524. i.listItem.forEach(xm=>{
  525. xm.qty=1;
  526. this.salePriceTotal=Number(this.salePriceTotal)
  527. this.salePriceTotal+=xm.salePrice
  528. this.salePriceTotal=this.salePriceTotal.toFixed(2)
  529. })
  530. //this.totalhj
  531. }
  532. })
  533. }
  534. //if(v.listPackage)
  535. })
  536. this.totalhj=Number(this.goodsTotal)+Number(this.salePriceTotal)
  537. this.totalhj=this.totalhj.toFixed(2)
  538. console.log(this.orderData)
  539. },
  540. reduce(v){
  541. if(v.qty>1){
  542. v.qty--;
  543. this.calculation()
  544. }
  545. },
  546. plus(v){
  547. v.qty++;
  548. this.calculation()
  549. },
  550. }
  551. }
  552. </script>
  553. <style scoped>
  554. .cont{
  555. min-height: 100vh;
  556. background:#F4F5F7 ;
  557. }
  558. /deep/.uni-swiper-wrapper .uni-swiper-dots {
  559. bottom: 60rpx;
  560. }
  561. .swiper-item{
  562. width: 100vw;
  563. height: 500rpx;
  564. }
  565. .swiper{
  566. width: 100vw;
  567. height: 500rpx;
  568. }
  569. .swpImg{
  570. width: 100vw;
  571. height: 500rpx;
  572. }
  573. .top{
  574. position: relative;
  575. }
  576. .Member{
  577. width: 140rpx;
  578. height: 42rpx;
  579. line-height: 42rpx;
  580. text-align: center;
  581. color: #FFFFFF;
  582. font-size: 24rpx;
  583. background: rgba(0,0,0,0.4);
  584. border-radius: 21rpx;
  585. position: absolute;
  586. bottom: 60rpx;
  587. right: 32rpx;
  588. }
  589. .shopMain{
  590. width: 702rpx;
  591. /* height: 368rpx; */
  592. background: #FFFFFF;
  593. border-radius: 10rpx;
  594. margin-left: 24rpx;
  595. margin-top: -50rpx;
  596. z-index: 111;
  597. position: relative;
  598. }
  599. .shopName{
  600. padding-top: 30rpx;
  601. padding-left: 20rpx;
  602. color: #333333;
  603. font-size: 32rpx;
  604. font-weight: 600;
  605. }
  606. .pingfenBox{
  607. width: 559rpx;
  608. height: 62rpx;
  609. background: rgba(255, 79, 0, 0.08);
  610. border-radius: 0rpx 15rpx 14rpx 0rpx;
  611. margin-top: 10rpx;
  612. }
  613. .pingfenImg{
  614. width: 14rpx;
  615. height: 26rpx;
  616. margin-right: 30rpx;
  617. margin-top: 20rpx;
  618. }
  619. .fenshuNum{
  620. font-size: 38rpx;
  621. font-weight: 600;
  622. color: #FF4F00;
  623. }
  624. .pingfenBox{
  625. display: flex;
  626. line-height: 62rpx;
  627. justify-content: space-between;
  628. }
  629. .fenshuTxt{
  630. font-size: 26rpx;
  631. font-weight: 600;
  632. color: #FF4F00;
  633. padding-left: 5rpx;
  634. padding-top: 2rpx;
  635. }
  636. .fenshuTxt2{
  637. font-size: 26rpx;
  638. color: #FF4F00;
  639. padding-left: 5rpx;
  640. }
  641. .cishu{
  642. font-size: 24rpx;
  643. color: #666666;
  644. }
  645. .shuxian{
  646. width: 2px;
  647. height: 30rpx;
  648. background:#E9E8E8;
  649. margin-top: 16rpx;
  650. }
  651. .fenshuBox{
  652. padding-left: 20rpx;
  653. }
  654. .business{
  655. display: flex;font-size: 26rpx;
  656. padding-left: 20rpx;padding-top: 20rpx;
  657. color: #999999;
  658. }
  659. .businessTitme{
  660. color: #666666;
  661. }
  662. .brandsBox{
  663. display: flex;
  664. padding: 20rpx;
  665. font-size: 24rpx;
  666. flex-wrap: wrap;
  667. }
  668. .brandsLine{
  669. height: 34rpx;
  670. background: linear-gradient(138deg, #FF630F 0%, #FF450F 100%);
  671. border-radius: 4rpx;
  672. line-height: 34rpx;
  673. padding: 0 8rpx;
  674. color: #FFFFFF;
  675. margin-right: 14rpx;
  676. margin-bottom: 15rpx;
  677. }
  678. .brandsLine2{
  679. border-radius: 4rpx;
  680. line-height: 30rpx;
  681. padding: 0 8rpx;
  682. color: #FF5800;
  683. height: 30rpx;
  684. border:1px solid #FF5800;
  685. margin-right: 14rpx;
  686. margin-bottom: 15rpx;
  687. }
  688. .mapBox{
  689. width: 702rpx;
  690. height: 150rpx;
  691. background: url('http://phone.66km.cn:8088/thFiles/184C909A-0A58-4E60-92F1-4AF80BF071F1.png') no-repeat;
  692. background-size: 100% 100;
  693. display: flex;
  694. margin-left: 24rpx;
  695. margin-top: 20rpx;
  696. }
  697. .mapdwImg{
  698. width: 22rpx;
  699. height: 30rpx;
  700. }
  701. .dingwBox{
  702. display: flex;
  703. }
  704. .mapLeft{
  705. padding-top: 30rpx;
  706. padding-left: 20rpx;
  707. font-size: 24rpx;
  708. width: 450rpx;
  709. }
  710. .distance{
  711. padding-left: 16rpx;
  712. color: #3C3C3C;
  713. font-weight: 600;
  714. }
  715. .mapaddress{
  716. color: #999999;padding-top: 15rpx;
  717. }
  718. .shopsx{
  719. width: 1px;
  720. height: 61rpx;
  721. background: #EEEEEE;
  722. margin-top: 30rpx;
  723. margin-left: 28rpx;
  724. }
  725. .shopRihgtTxt{
  726. color: #999999;font-size: 22rpx;
  727. }
  728. .shopRightBox{
  729. padding-top: 30rpx;
  730. padding-left: 28rpx;
  731. }
  732. .shopRightImg{
  733. width: 44rpx;height: 48rpx;
  734. }
  735. .Cartop{
  736. background: #FFFFFF;
  737. display: flex;
  738. justify-content: space-between;
  739. padding: 30rpx 25rpx;
  740. font-size: 28rpx;
  741. width: 654rpx;
  742. margin-top: 20rpx;
  743. margin-left: 24rpx;
  744. }
  745. .CarbrandLogo{
  746. width: 42rpx;
  747. height: 42rpx;
  748. }
  749. .CartopLeft{
  750. display: flex;
  751. width: 500rpx;
  752. }
  753. .carName{
  754. padding-left: 10rpx;
  755. color: #3C3C3C;
  756. padding-top: 2rpx;
  757. }
  758. .CartopEdit{
  759. width: 30rpx;
  760. height: 30rpx;
  761. padding-top: 3px;
  762. padding-left: 12rpx;
  763. padding-right: 5px;
  764. padding-bottom: 5px;
  765. }
  766. .CartopRight{
  767. display: flex;
  768. }
  769. .CartopInput{
  770. font-size: 28rpx;
  771. text-align: right;
  772. padding-top: 3rpx;
  773. }
  774. .caidanTk{
  775. height: calc(100vh - 120rpx);
  776. width: 100vw;
  777. background: rgba(0,0,0,0.6);
  778. position:fixed;
  779. left: 0;
  780. top: 0;
  781. z-index: 111;
  782. }
  783. .tkCont{
  784. height: 60vh;
  785. margin-top: calc(40vh - 120rpx);
  786. }
  787. .caidanTkTop{
  788. width: 750rpx;
  789. height: 90rpx;
  790. background: #FFFFFF;
  791. border-radius: 24rpx 24rpx 0px 0px;
  792. }
  793. .caidanTkTop{
  794. display: flex;justify-content: space-between;
  795. }
  796. .topTopright{
  797. display: flex;
  798. padding-top: 29rpx;
  799. }
  800. .tkTopTitle{
  801. line-height: 90rpx;
  802. font-size: 30rpx;
  803. font-weight: 600;
  804. color: #3C3C3C;
  805. padding-left: 24rpx;
  806. }
  807. .empty{
  808. width: 86rpx;
  809. height: 42rpx;
  810. background: #EEEEEE;
  811. border-radius: 21rpx;
  812. text-align: center;
  813. color: #666666;
  814. font-size: 24rpx;
  815. line-height: 42rpx;
  816. }
  817. .close{
  818. color: #999999;
  819. font-size: 30rpx;
  820. padding-right: 30rpx;
  821. padding-left: 24rpx;
  822. }
  823. .tkMain{
  824. background: #F0F0F0;
  825. height: calc(60vh - 90rpx);
  826. }
  827. .tkMainSv{
  828. padding: 0 24rpx;
  829. width: 702rpx;
  830. height: calc(60vh - 90rpx);
  831. }
  832. .goodsItemRight{
  833. width: 520rpx;
  834. padding-left: 20rpx;
  835. display: flex;
  836. flex-direction:column;
  837. justify-content: space-between;
  838. }
  839. .goodsItemBottom{
  840. display: flex;
  841. justify-content: space-between;
  842. }
  843. .goodssalePrice{
  844. font-size: 32rpx;font-weight: 500;color: #FF4F00;
  845. }
  846. .goodsNum{
  847. font-size: 24rpx;font-weight: 400;color: #999999;
  848. }
  849. .top{
  850. /* background: #FF4F00; */
  851. display: flex;
  852. justify-content: space-between;
  853. /* padding: 30rpx 25rpx; */
  854. font-size: 28rpx;
  855. color: #FFFFFF;
  856. }
  857. .goodsItem{
  858. display: flex;
  859. padding: 15rpx 0;
  860. }
  861. .qingdanLine{
  862. background: #FFFFFF;
  863. margin-top: 20rpx;
  864. padding: 24rpx 20rpx;
  865. border-radius: 10rpx;
  866. }
  867. .brandLogo{
  868. width: 42rpx;
  869. height: 42rpx;
  870. }
  871. .topLeft{
  872. display: flex;
  873. }
  874. .carName{
  875. padding-left: 10rpx;
  876. width: 280rpx;
  877. }
  878. .topEdit{
  879. width: 22rpx;
  880. height: 22rpx;
  881. padding-top: 5px;
  882. padding-left: 10rpx;
  883. }
  884. .topRight{
  885. display: flex;
  886. }
  887. .topInput{
  888. font-size: 28rpx;
  889. color: #FFFFFF;
  890. text-align: right;
  891. padding-top: 3rpx;
  892. }
  893. .maintainrecommend{
  894. padding: 30rpx 24rpx;
  895. display: flex;
  896. justify-content: space-between;
  897. border-bottom: 2rpx solid #EEEEEE;
  898. }
  899. .recommendTxt{
  900. color: #3C3C3C;
  901. font-size: 30rpx;
  902. font-weight: 600;
  903. }
  904. .manual{
  905. width: 119rpx;
  906. height: 40rpx;
  907. border-radius: 20rpx;
  908. border: 2rpx solid #F19D01;
  909. text-align: center;
  910. line-height: 40rpx;
  911. font-size: 22rpx;
  912. color: #F19D01;
  913. }
  914. .bottom{
  915. position: fixed;
  916. left: 0;
  917. bottom: 0;
  918. width: 100vw;
  919. height: 120rpx;
  920. background: #FFFFFF;
  921. box-shadow: 0px -2px 20px 0px rgba(153, 153, 153, 0.2);
  922. }
  923. .care{
  924. width: 690rpx;
  925. margin: 23rpx 30rpx;
  926. text-align: center;
  927. height: 74rpx;
  928. background: linear-gradient(135deg, #FD5300 0%, #FF270A 100%);
  929. border-radius: 37rpx;
  930. color: #FFFFFF;
  931. font-size: 30rpx;
  932. line-height: 74rpx;
  933. }
  934. .main{
  935. display: flex;
  936. height: calc(100vh - 410rpx);
  937. }
  938. .mainscrollView{
  939. height: calc(100vh - 410rpx);
  940. }
  941. /* #ifdef MP-WEIXIN */
  942. .main{
  943. display: flex;
  944. height: calc(100vh - 310rpx);
  945. }
  946. .mainscrollView{
  947. height: calc(100vh - 310rpx);
  948. }
  949. /* #endif */
  950. .mainLeft{
  951. width: 146rpx;
  952. background: #F5F5F5;
  953. }
  954. .mainRight{
  955. width: 604rpx;background: #FFFFFF;
  956. }
  957. .mainLeftLine{
  958. color: #3C3C3C;
  959. padding: 30rpx 20rpx;
  960. font-size: 24rpx;
  961. text-align: center;
  962. position: relative;
  963. }
  964. .lineNum{
  965. position: absolute;
  966. background: #FF270A;
  967. width: 40rpx;
  968. height: 26rpx;
  969. text-align: center;
  970. line-height: 26rpx;
  971. font-size: 20rpx;
  972. color: #FFFFFF;
  973. border-radius: 13rpx;
  974. top: 10rpx;
  975. right: 10rpx;
  976. }
  977. .lineLeftActive{
  978. background: #FFFFFF;
  979. }
  980. .nock{
  981. width: 22rpx;
  982. height: 22rpx;
  983. border-radius: 50%;
  984. border:2px solid #AEAEAE;
  985. margin-top: 2rpx;
  986. margin-right: 10rpx;
  987. }
  988. .imgPrivacy{
  989. width: 28rpx;
  990. height: 28rpx;
  991. margin-top: 2rpx;
  992. margin-right: 10rpx;
  993. }
  994. .mainRightLine{
  995. padding: 20rpx 20rpx 0 20rpx;
  996. background: #FFFFFF;
  997. }
  998. .contTop{
  999. display: flex;
  1000. justify-content: space-between;
  1001. }
  1002. .listPackgeName{
  1003. font-size: 26rpx;
  1004. font-family: PingFangSC-Regular, PingFang SC;
  1005. font-weight: 600;
  1006. color: #3C3C3C;
  1007. }
  1008. .listPackgeMs{
  1009. font-size: 22rpx;
  1010. font-family: PingFangSC-Regular, PingFang SC;
  1011. font-weight: 400;
  1012. color: #999999;
  1013. padding-top: 5rpx;
  1014. }
  1015. .contZk{
  1016. border-bottom: 1px solid #EEEEEE;
  1017. padding-bottom: 20rpx;
  1018. }
  1019. .goodsImg{
  1020. width: 120rpx;
  1021. height: 120rpx;
  1022. border-radius: 11rpx;
  1023. }
  1024. .goodsItemLIne{
  1025. display: flex;
  1026. padding-top: 20rpx;
  1027. padding-bottom: 20rpx;
  1028. }
  1029. .goodsCont{
  1030. display: flex;
  1031. flex-direction:column;
  1032. justify-content: space-between;
  1033. padding-left: 20rpx;
  1034. }
  1035. .goodsContTop{
  1036. display: flex;
  1037. justify-content: space-between;
  1038. width: 400rpx;
  1039. }
  1040. .goodsItemName{
  1041. font-size: 26rpx;
  1042. font-weight: 400;
  1043. color: #3C3C3C;
  1044. width: 300rpx;
  1045. }
  1046. .salePrice{
  1047. font-size: 32rpx;
  1048. font-weight: 500;
  1049. color: #FF4F00;
  1050. }
  1051. .replace{
  1052. width: 75rpx;
  1053. height: 37rpx;
  1054. border-radius: 19rpx;
  1055. border: 2rpx solid #B9B9B9;
  1056. text-align: center;
  1057. line-height: 35rpx;
  1058. color: #707070;
  1059. font-size: 22rpx;
  1060. }
  1061. .contZkMain{
  1062. padding-top: 20rpx;
  1063. }
  1064. .asa{
  1065. width: 44rpx;
  1066. height: 44rpx;
  1067. line-height: 44rpx;
  1068. text-align: center;
  1069. background: #F4F5F7;
  1070. font-size: 30rpx;
  1071. }
  1072. .goodsCOntBOttom{
  1073. display: flex;
  1074. justify-content: space-between;
  1075. }
  1076. .as{
  1077. display: flex;
  1078. }
  1079. .goodsPrice{
  1080. display: flex;justify-content: space-between;
  1081. padding-top: 10rpx;
  1082. }
  1083. .goodsPriceNum{
  1084. color: #F8F8F8;
  1085. font-size: 28rpx;
  1086. }
  1087. .asNum{
  1088. font-size: 24rpx;color: #333333;
  1089. padding: 0 18rpx;
  1090. line-height: 44rpx;
  1091. background: #F4F5F7;
  1092. margin-left: 1px;
  1093. margin-right: 1px;
  1094. }
  1095. .itemNum{
  1096. font-size: 24rpx;
  1097. font-weight: 400;
  1098. color: #999999;
  1099. }
  1100. .bottom{
  1101. display: flex;
  1102. justify-content: space-between;
  1103. }
  1104. .caidanImg{
  1105. width: 50rpx;
  1106. height: 50rpx;
  1107. }
  1108. .bottomLeft{
  1109. display: flex;
  1110. }
  1111. .caidan{
  1112. padding-left: 33rpx;
  1113. padding-top: 35rpx;
  1114. padding-right: 33rpx;
  1115. position: relative;
  1116. }
  1117. .total{
  1118. position: absolute;
  1119. width: 40rpx;
  1120. height: 26rpx;
  1121. background: #FF270A;
  1122. line-height: 26rpx;
  1123. text-align: center;
  1124. color: #FFFFFF;
  1125. font-size: 20rpx;
  1126. top: 25rpx;
  1127. right: 15rpx;
  1128. border-radius: 13rpx;
  1129. }
  1130. .heji1{
  1131. font-size: 24rpx;
  1132. font-weight: 500;
  1133. color: #666666;
  1134. }
  1135. .hejiNum{
  1136. font-size: 32rpx;
  1137. font-family: PingFangSC-Medium, PingFang SC;
  1138. font-weight: 500;
  1139. color: #FF4F00;
  1140. }
  1141. .hejiMs{
  1142. font-size: 24rpx;
  1143. padding-top: 5rpx;
  1144. color: #999999;
  1145. }
  1146. .heji{
  1147. padding-top: 23rpx;
  1148. }
  1149. .settlement{
  1150. width: 203rpx;
  1151. height: 74rpx;
  1152. background: #FF4F00;
  1153. border-radius: 37rpx;
  1154. text-align: center;
  1155. line-height: 74rpx;
  1156. font-size: 30rpx;
  1157. font-family: PingFangSC-Medium, PingFang SC;
  1158. font-weight: 500;
  1159. color: #FEFFFE;
  1160. margin-top: 23rpx;
  1161. margin-right: 32rpx;
  1162. }
  1163. .nodataImg{
  1164. width: 400rpx;
  1165. padding-top: 100rpx;
  1166. }
  1167. .noTxt{
  1168. font-size: 36rpx;
  1169. color: #999999;
  1170. padding-top: 50rpx;
  1171. }
  1172. .nodataBox{
  1173. text-align: center;
  1174. }
  1175. </style>