maintain.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="topLeft">
  5. <image :src="maintainCarData.brandLogo" mode="aspectFit" class="brandLogo"></image>
  6. <view class="carName">{{maintainCarData.brand}}-{{maintainCarData.series}}</view>
  7. <image src="../../static/img/icon_edit.png" mode="" class="topEdit" @click="carEdit"></image>
  8. </view>
  9. <view class="topRight">
  10. <input type="number" v-model="maintainCarData.milage" @confirm="upMileage" value="" placeholder="请输入当前里程" class="topInput" placeholder-style="color:#ffffff;"/>
  11. <image src="../../static/img/icon_edit.png" mode="" class="topEdit" @click="milageEdit"></image>
  12. </view>
  13. </view>
  14. <!-- 保养推荐 -->
  15. <view class="maintainrecommend">
  16. <view class="recommendTxt">保养推荐</view>
  17. <view class="manual" @click="handbook()">保养手册</view>
  18. </view>
  19. <!--主体 -->
  20. <view class="main">
  21. <view class="mainLeft">
  22. <scroll-view scroll-y="true" class="mainscrollView">
  23. <view class="mainLeftLine" v-for="(item,index) in mealData" :class="{lineLeftActive:leftIndex==index}"
  24. @click="leftClick(item,index)">
  25. <span>{{item.name}}</span>
  26. <view class="lineNum" v-show="item.num!=0">{{item.num}}</view>
  27. </view>
  28. </scroll-view>
  29. </view>
  30. <view class="mainRight">
  31. <scroll-view scroll-y="true" class="mainscrollView">
  32. <view v-show="mealData[leftIndex].listPackage.length==0">
  33. <view class="nodataBox">
  34. <image src="../../static/img/nodata.png" mode="widthFix" class="nodataImg"></image>
  35. <view class="noTxt">暂无数据</view>
  36. </view>
  37. </view>
  38. <view class="mainRightLine" v-for="(item,index) in mealData[leftIndex].listPackage">
  39. <view class="contTop">
  40. <view class="contTopLeft">
  41. <view class="listPackgeName"> {{item.name}} </view>
  42. <view class="listPackgeMs">
  43. <span v-if="item.referenceDosageQty">{{item.referenceDosage}}</span>
  44. </view>
  45. </view>
  46. <view class="contTopRight" @click="listcheck(item)">
  47. <image src="../../static/img/login_icon_checked.png" mode="" class="imgPrivacy" v-show="item.planItem"></image>
  48. <image src="../../static/img/login_icon_uncheck.png" mode="" class="imgPrivacy" v-show="!item.planItem"></image>
  49. <!-- <view class="nock" v-show="!item.check"></view> -->
  50. </view>
  51. </view>
  52. <view class="contZk">
  53. <view class="contZkMain" v-show="item.planItem">
  54. <view v-for="(vf,findex) in item.listGoodsAll">
  55. <view class="goodsItemLIne" v-for="(v,i) in vf" v-if="i==0" @click="goGoods(v)">
  56. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  57. <image src="../../static/img/noimg.png" mode="" class="goodsImg sm" v-else></image>
  58. <view class="goodsCont">
  59. <view class="goodsContTop">
  60. <view class="goodsItemName">{{v.showName}}</view>
  61. <view class="replace" @click.stop="replace(vf,index,findex,i)" v-if="vf.length>1">更换</view>
  62. </view>
  63. <view class="goodsCOntBOttom">
  64. <view class="salePrice">¥{{v.salePrice?v.salePrice:'0.00'}}</view>
  65. <view class="as">
  66. <view class="asa" @click.stop="reduce(v)">-</view>
  67. <view class="asNum">{{v.qty}}</view>
  68. <view class="asa" @click.stop="plus(v)">+</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="goodsItemLIne" v-for="(v,i) in item.listItem" >
  75. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  76. <image src="../../static/img/icon_xiangmu.png" mode="" class="goodsImg sm" v-else></image>
  77. <view class="goodsCont">
  78. <view class="goodsContTop">
  79. <view class="goodsItemName">{{v.itemName}}</view>
  80. </view>
  81. <view class="goodsCOntBOttom">
  82. <view class="salePrice">¥{{v.salePrice}}</view>
  83. <view class="itemNum">x1</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </scroll-view>
  91. </view>
  92. </view>
  93. <!-- 底部 -->
  94. <view class="bottom">
  95. <view class="bottomLeft">
  96. <view class="caidan" @click="caidanClick">
  97. <image src="../../static/img/caidan.png" mode="" class="caidanImg"></image>
  98. <view class="total" v-show="total>0">{{total}}</view>
  99. </view>
  100. <view>
  101. <view class="heji"> <span class="heji1">合计</span> <span class="hejiNum">¥{{totalhj}}</span> </view>
  102. <view class="hejiMs">商品¥{{goodsTotal}}+工时费¥{{salePriceTotal}}</view>
  103. </view>
  104. </view>
  105. <view class="settlement" @click="settlement">去结算</view>
  106. </view>
  107. <view class="caidanTk" v-show="qingdanShow" @click="qingdanShow=false">
  108. <view class="tkCont">
  109. <view class="caidanTkTop">
  110. <view class="tkTopTitle">清单</view>
  111. <view class="topTopright">
  112. <view class="empty" @click.stop="empty">清空</view>
  113. <view class="close" @click="qingdanShow=false">X</view>
  114. </view>
  115. </view>
  116. <view class="tkMain" @click.stop>
  117. <scroll-view scroll-y="true" class="tkMainSv">
  118. <view class="qingdanLine" v-for="(item,index) in orderData">
  119. <view class="mainTitle">{{item.name}}</view>
  120. <view class="goodsItem" v-for="(v,i) in item.listGoodsAll">
  121. <view >
  122. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  123. <image src="../../static/img/noimg.png" mode="" class="goodsImg " v-else></image>
  124. </view>
  125. <view class="goodsItemRight" >
  126. <view class="goodsItemName">{{v.showName}}</view>
  127. <view class="goodsItemBottom">
  128. <view class="goodssalePrice">¥{{v.salePrice}}</view>
  129. <view class="goodsNum">x{{v.qty}}</view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="goodsItem" v-for="(v,i) in item.listItem">
  134. <view>
  135. <image :src="v.picUrl" mode="" class="goodsImg" v-if="v.picUrl"></image>
  136. <image src="../../static/img/icon_xiangmu.png" mode="" class="goodsImg " v-else></image>
  137. </view>
  138. <view class="goodsItemRight" >
  139. <view class="goodsItemName">{{v.itemName}}</view>
  140. <view class="goodsItemBottom">
  141. <view class="goodssalePrice">¥{{v.salePrice}}</view>
  142. <view class="goodsNum">x{{v.qty}}</view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </scroll-view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </template>
  153. <script>
  154. export default {
  155. data() {
  156. return {
  157. maintainCarData:'',
  158. shopData:'',
  159. mealData:'',
  160. leftIndex:0,
  161. total:0,
  162. qingdanShow:false,
  163. totalhj:0,
  164. goodsTotal:0,
  165. salePriceTotal:0,
  166. orderData:[],
  167. replaceIndex1:'',
  168. replaceIndex2:'',
  169. brand:'',
  170. isNull:true,
  171. }
  172. },
  173. onLoad(opt) {
  174. this.$common.isUserId()
  175. this.maintainCarData=uni.getStorageSync("maintainCarData");
  176. //console.log(this.maintainCarData)
  177. this.shopData=uni.getStorageSync("shopData");
  178. if(this.maintainCarData.milage==0){
  179. this.maintainCarData.milage='';
  180. }
  181. if (opt.brand) {
  182. this.brand = opt.brand
  183. }
  184. this.getData();
  185. },
  186. onShow() {
  187. var maintainCarData2=uni.getStorageSync("maintainCarData");
  188. if(this.maintainCarData.id!=maintainCarData2.id){
  189. this.maintainCarData=maintainCarData2;
  190. if(this.maintainCarData.milage==0){
  191. this.maintainCarData.milage='';
  192. }
  193. this.getData();
  194. }
  195. var replaceData=uni.getStorageSync("replaceData");
  196. if(replaceData){
  197. replaceData.qty=1;
  198. console.log(replaceData)
  199. this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2].unshift(replaceData)
  200. console.log(this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2])
  201. this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2]=this.unique(this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2])
  202. //this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2]=replaceData
  203. //this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2].goodsName='666'
  204. //console.log(this.mealData[this.leftIndex].listPackage[this.replaceIndex1].listGoodsAll[this.replaceIndex2])
  205. this.$forceUpdate()
  206. }
  207. },
  208. methods: {
  209. unique(arr1) {
  210. const res = new Map();
  211. return arr1.filter((a) => !res.has(a.goodsID) && res.set(a.goodsID, 1))
  212. },
  213. upMileage(){
  214. this.getData();
  215. this.$http('worldKeepCar/worldHome/updateTMemberCarByHome', {
  216. id: this.maintainCarData.id,
  217. milage: this.maintainCarData.milage?this.maintainCarData.milage:0,
  218. }, 'POST').then(res => {
  219. uni.hideLoading();
  220. console.log(res);
  221. if (res.code == 0) {
  222. var cardata = uni.getStorageSync("maintainCarData")
  223. if (cardata) {
  224. cardata.milage = this.maintainCarData.milage
  225. uni.setStorage({
  226. key: 'maintainCarData',
  227. data: cardata,
  228. success: function () {
  229. }
  230. });
  231. }
  232. }
  233. })
  234. },
  235. // milageEditconfirm(){
  236. // this.getData();
  237. // var that=this;
  238. // for(let k in this.maintainCarData){this.maintainCarData[k] = this.maintainCarData[k]==null?'':this.maintainCarData[k]}
  239. // this.$http('miniAppMyBMemberCar/updateMemberCar',this.maintainCarData,'POST').then(res => {
  240. // uni.hideLoading();
  241. // uni.setStorage({
  242. // key: 'maintainCarData',
  243. // data: that.maintainCarData,
  244. // success: function () {
  245. // /* uni.navigateBack({
  246. // delta:1
  247. // }) */
  248. // }
  249. // });
  250. // })
  251. // },
  252. leftClick(item,index){
  253. this.leftIndex=index
  254. },
  255. listcheck(item){
  256. item.planItem=!item.planItem;
  257. //var
  258. if(this.mealData[this.leftIndex].name=='小保养'){
  259. this.calculation('大保养');
  260. }else if(this.mealData[this.leftIndex].name=='大保养'){
  261. this.calculation('小保养');
  262. }else{
  263. this.calculation();
  264. }
  265. if(item.planItem){
  266. /* this.orderData.push(item) */
  267. }
  268. },
  269. goGoods(item){
  270. uni.navigateTo({
  271. url:'../module/goodsDetail?goodsId='+item.goodsID+'&type=1'+'&typeIndex=2&maintain=1'
  272. })
  273. },
  274. empty(){
  275. var that=this;
  276. uni.showModal({
  277. title: '提示',
  278. content: '确定要清空清单吗',
  279. success: function (res) {
  280. if (res.confirm) {
  281. that.orderData=[];
  282. that.mealData.forEach(item=>{
  283. item.num=0;
  284. if(item.listPackage){
  285. item.listPackage.forEach(v=>{
  286. v.planItem=false
  287. })
  288. }
  289. })
  290. console.log(that.mealData)
  291. that.calculation();
  292. that.qingdanShow=false;
  293. }
  294. }
  295. });
  296. },
  297. calculation(txt){
  298. this.isNull=true
  299. this.total=0;
  300. this.totalhj=0;
  301. this.goodsTotal=0;
  302. this.salePriceTotal=0;
  303. this.orderData=[]
  304. this.mealData.forEach(v=>{
  305. v.num=0;
  306. if(txt == v.name){
  307. console.log(v.name)
  308. if(v.listPackage){
  309. v.listPackage.forEach(i=>{
  310. i.planItem=false
  311. })
  312. }
  313. }else{
  314. if(v.listPackage){
  315. v.listPackage.forEach(i=>{
  316. if(i.planItem){
  317. var obj={
  318. listGoodsAll:[],
  319. listItem:'',
  320. id:i.id,
  321. name:i.name
  322. }
  323. if(i.listGoodsAll.length>0){
  324. i.listGoodsAll.forEach((goods,goodsIndex)=>{
  325. /* goods.forEach(sp=>{
  326. this.goodsTotal=Number(this.goodsTotal)
  327. this.goodsTotal+=sp.salePrice*sp.qty
  328. this.goodsTotal=this.goodsTotal.toFixed(2)
  329. }) */
  330. //goods[0].salePrice=1;
  331. this.goodsTotal=Number(this.goodsTotal)
  332. if(!isNaN(goods[0].salePrice)){
  333. this.goodsTotal+=goods[0].salePrice*goods[0].qty
  334. this.goodsTotal=this.goodsTotal.toFixed(2)
  335. }else{
  336. this.isNull=false
  337. }
  338. obj.listGoodsAll.push(goods[0])
  339. })
  340. }
  341. if(i.listItem.length>0){
  342. obj.listItem=i.listItem
  343. }
  344. this.orderData.push(obj)
  345. v.num++;
  346. this.total++;
  347. i.listItem.forEach(xm=>{
  348. xm.qty=1;
  349. if(!isNaN(xm.salePrice)){
  350. this.salePriceTotal=Number(this.salePriceTotal)
  351. this.salePriceTotal+=xm.salePrice
  352. this.salePriceTotal=this.salePriceTotal.toFixed(2)
  353. }else{
  354. this.isNull=false
  355. }
  356. //xm.salePrice=1;
  357. })
  358. //this.totalhj
  359. }
  360. })
  361. }
  362. }
  363. //if(v.listPackage)
  364. })
  365. this.totalhj=Number(this.goodsTotal)+Number(this.salePriceTotal)
  366. this.totalhj=this.totalhj.toFixed(2)
  367. console.log(this.orderData)
  368. },
  369. reduce(v){
  370. console.log(v)
  371. if(v.qty>1){
  372. v.qty--;
  373. this.calculation()
  374. }else if(v.del){
  375. v.qty--;
  376. this.calculation()
  377. }
  378. },
  379. plus(v){
  380. v.qty++;
  381. this.calculation()
  382. },
  383. getData(){
  384. uni.showLoading({ });
  385. var location = uni.getStorageSync("locationCity");
  386. this.$http('miniApp/tPackageMiniAppController/queryPackageList', {
  387. mileage:this.maintainCarData.milage,
  388. liyangId:this.maintainCarData.nLevelID,
  389. cityCode:location.cityCode,
  390. guidePrice:this.maintainCarData.guidePrice,
  391. },'GET').then(res => {
  392. uni.hideLoading();
  393. res.data.forEach(item=>{
  394. //console.log(item)
  395. item.listPackage.forEach((list,i)=>{
  396. if(list.listGoodsAll.length>0){
  397. //console.log(list)
  398. //if(true){
  399. //if(list.listGoodsAll[i]!=list.listGoodsAll[i-1]){
  400. list.listGoodsAll.forEach((goods,index)=>{
  401. //console.log(goods[0])
  402. if(goods[0].capacity&&!goods[0].del){
  403. //console.log(Number(list.referenceDosageQty)/goods[0].capacity)
  404. if(Number(list.referenceDosageQty)/goods[0].capacity>1){
  405. console.log("添加一条")
  406. var addDta=list.listGoodsAll[index];
  407. addDta.forEach(add=>{
  408. add.del=true;
  409. })
  410. //addDta.splice(1,0)
  411. //console.log(addDta)
  412. var add=JSON.parse(JSON.stringify(addDta))
  413. list.listGoodsAll.splice(index+1, 0,add)
  414. //list.listGoodsAll.splice(1,0)
  415. //list.listGoodsAll.push(list.listGoodsAll[index])
  416. }
  417. }
  418. })
  419. //}
  420. /* }else{
  421. list.listGoodsAll.forEach((goods,index)=>{
  422. //console.log(goods[0])
  423. if(goods[0].capacity){
  424. console.log(Number(list.referenceDosageQty)/goods[0].capacity)
  425. if(Number(list.referenceDosageQty)/goods[0].capacity>1){
  426. console.log("添加一条")
  427. list.listGoodsAll.splice(index+1, 0,list.listGoodsAll[index])
  428. //list.listGoodsAll.push(list.listGoodsAll[index])
  429. }
  430. }
  431. })
  432. } */
  433. }
  434. })
  435. })
  436. this.mealData=res.data;
  437. this.mealData.splice(1,0)
  438. console.log(this.mealData)
  439. this.calculation();
  440. })
  441. },
  442. handbook(){
  443. uni.navigateTo({
  444. url:'handbook?mileage'+this.maintainCarData.milage+'&liyangId='+this.maintainCarData.nLevelID
  445. })
  446. },
  447. settlement(){
  448. console.log(this.orderData)
  449. //return false;
  450. uni.removeStorageSync('couponData');
  451. if(this.orderData.length>0){
  452. /* uni.navigateTo({
  453. url:'confirmOrder?orderData='+JSON.stringify(this.orderData)+'&currentMileage='+this.maintainCarData.milage
  454. }) */
  455. uni.navigateTo({
  456. url:'orderShop?orderData='+JSON.stringify(this.orderData)+'&currentMileage='+this.maintainCarData.milage+'&brand='+this.brand
  457. })
  458. }
  459. },
  460. replace(v,index,i,replaceIndex){
  461. //v.splice(replaceIndex, 1)
  462. console.log(v)
  463. console.log(replaceIndex)
  464. v.forEach((item,vindex)=>{
  465. if(replaceIndex==vindex){
  466. item.showr=false
  467. }else{
  468. item.showr=true
  469. }
  470. })
  471. uni.removeStorageSync('replaceData');
  472. this.replaceIndex1=index;
  473. this.replaceIndex2=i;
  474. uni.setStorage({
  475. key: 'replaceDataList',
  476. data: v,
  477. success: function () {
  478. uni.navigateTo({
  479. url:'replaceGoods'
  480. })
  481. }
  482. });
  483. },
  484. caidanClick(){
  485. this.qingdanShow=!this.qingdanShow
  486. },
  487. milageEdit(){
  488. this.maintainCarData.milage=''
  489. },
  490. carEdit(){
  491. uni.navigateTo({
  492. url:'../index/cailist?type=2'
  493. })
  494. }
  495. }
  496. }
  497. </script>
  498. <style scoped>
  499. .caidanTk{
  500. height: calc(100vh );
  501. width: 100vw;
  502. background: rgba(0,0,0,0.6);
  503. position:fixed;
  504. left: 0;
  505. top: 0;
  506. }
  507. .tkCont{
  508. height: 60vh;
  509. margin-top: calc(40vh );
  510. padding-bottom: constant(safe-area-inset-bottom);
  511. padding-bottom: env(safe-area-inset-bottom);
  512. box-sizing: content-box;
  513. }
  514. .caidanTkTop{
  515. width: 750rpx;
  516. height: 90rpx;
  517. background: #FFFFFF;
  518. border-radius: 24rpx 24rpx 0px 0px;
  519. }
  520. .caidanTkTop{
  521. display: flex;justify-content: space-between;
  522. }
  523. .topTopright{
  524. display: flex;
  525. padding-top: 29rpx;
  526. }
  527. .tkTopTitle{
  528. line-height: 90rpx;
  529. font-size: 30rpx;
  530. font-weight: 600;
  531. color: #3C3C3C;
  532. padding-left: 24rpx;
  533. }
  534. .empty{
  535. width: 86rpx;
  536. height: 42rpx;
  537. background: #EEEEEE;
  538. border-radius: 21rpx;
  539. text-align: center;
  540. color: #666666;
  541. font-size: 24rpx;
  542. line-height: 42rpx;
  543. }
  544. .close{
  545. color: #999999;
  546. font-size: 30rpx;
  547. padding-right: 30rpx;
  548. padding-left: 24rpx;
  549. }
  550. .tkMain{
  551. background: #F0F0F0;
  552. height: calc(60vh - 90rpx);
  553. }
  554. .tkMainSv{
  555. padding: 0 24rpx;
  556. width: 702rpx;
  557. height: calc(60vh - 90rpx);
  558. }
  559. .goodsItemRight{
  560. width: 520rpx;
  561. padding-left: 20rpx;
  562. display: flex;
  563. flex-direction:column;
  564. justify-content: space-between;
  565. }
  566. .goodsItemBottom{
  567. display: flex;
  568. justify-content: space-between;
  569. }
  570. .goodssalePrice{
  571. font-size: 32rpx;font-weight: 500;color: #FF4F00;
  572. }
  573. .goodsNum{
  574. font-size: 24rpx;font-weight: 400;color: #999999;
  575. }
  576. .top{
  577. background: #FF4F00;
  578. display: flex;
  579. justify-content: space-between;
  580. padding: 30rpx 25rpx;
  581. font-size: 28rpx;
  582. color: #FFFFFF;
  583. }
  584. .goodsItem{
  585. display: flex;
  586. padding: 15rpx 0;
  587. }
  588. .qingdanLine{
  589. background: #FFFFFF;
  590. margin-top: 20rpx;
  591. padding: 24rpx 20rpx;
  592. border-radius: 10rpx;
  593. }
  594. .brandLogo{
  595. width: 42rpx;
  596. height: 42rpx;
  597. padding: 0 10rpx;
  598. }
  599. .topLeft{
  600. display: flex;
  601. align-content: center;
  602. }
  603. .carName{
  604. width: 61%;
  605. }
  606. .topEdit{
  607. width: 22rpx;
  608. height: 22rpx;
  609. padding: 10rpx;
  610. }
  611. .topRight{
  612. display: flex;
  613. justify-content: flex-end;
  614. align-items: center;
  615. }
  616. .topInput{
  617. font-size: 28rpx;
  618. color: #FFFFFF;
  619. text-align: right;
  620. padding-top: 3rpx;
  621. width: 70%;
  622. }
  623. .maintainrecommend{
  624. padding: 30rpx 24rpx;
  625. display: flex;
  626. justify-content: space-between;
  627. border-bottom: 2rpx solid #EEEEEE;
  628. }
  629. .recommendTxt{
  630. color: #3C3C3C;
  631. font-size: 30rpx;
  632. font-weight: 600;
  633. }
  634. .manual{
  635. width: 119rpx;
  636. height: 40rpx;
  637. border-radius: 20rpx;
  638. border: 2rpx solid #F19D01;
  639. text-align: center;
  640. line-height: 40rpx;
  641. font-size: 22rpx;
  642. color: #F19D01;
  643. }
  644. .bottom{
  645. position: fixed;
  646. left: 0;
  647. bottom: 0;
  648. width: 100vw;
  649. height: 120rpx;
  650. background: #FFFFFF;
  651. box-shadow: 0px -2px 20px 0px rgba(153, 153, 153, 0.2);
  652. padding-bottom: constant(safe-area-inset-bottom);
  653. padding-bottom: env(safe-area-inset-bottom);
  654. box-sizing: content-box;
  655. }
  656. .main{
  657. display: flex;
  658. height: calc(100vh - 410rpx);
  659. }
  660. .mainscrollView{
  661. height: calc(100vh - 410rpx);
  662. }
  663. /* #ifdef MP-WEIXIN */
  664. .main{
  665. display: flex;
  666. height: calc(100vh - 310rpx);
  667. }
  668. .mainscrollView{
  669. height: calc(100vh - 310rpx);
  670. }
  671. /* #endif */
  672. .mainLeft{
  673. width: 146rpx;
  674. background: #F5F5F5;
  675. }
  676. .mainRight{
  677. width: 604rpx;
  678. }
  679. .mainLeftLine{
  680. color: #3C3C3C;
  681. padding: 30rpx 20rpx;
  682. font-size: 24rpx;
  683. text-align: center;
  684. position: relative;
  685. }
  686. .lineNum{
  687. position: absolute;
  688. background: #FF270A;
  689. width: 40rpx;
  690. height: 26rpx;
  691. text-align: center;
  692. line-height: 26rpx;
  693. font-size: 20rpx;
  694. color: #FFFFFF;
  695. border-radius: 13rpx;
  696. top: 10rpx;
  697. right: 10rpx;
  698. }
  699. .lineLeftActive{
  700. background: #FFFFFF;
  701. }
  702. .nock{
  703. width: 22rpx;
  704. height: 22rpx;
  705. border-radius: 50%;
  706. border:2px solid #AEAEAE;
  707. margin-top: 2rpx;
  708. margin-right: 10rpx;
  709. }
  710. .imgPrivacy{
  711. width: 36rpx;
  712. height: 36rpx;
  713. /* margin-top: 2rpx; */
  714. margin-right: 10rpx;
  715. }
  716. .contTopRight{
  717. display: flex;
  718. align-items: center;
  719. }
  720. .mainRightLine{
  721. padding: 20rpx 20rpx 0 20rpx;
  722. }
  723. .contTop{
  724. display: flex;
  725. justify-content: space-between;
  726. }
  727. .listPackgeName{
  728. font-size: 26rpx;
  729. font-family: PingFangSC-Regular, PingFang SC;
  730. font-weight: 600;
  731. color: #3C3C3C;
  732. }
  733. .listPackgeMs{
  734. font-size: 22rpx;
  735. font-family: PingFangSC-Regular, PingFang SC;
  736. font-weight: 400;
  737. color: #999999;
  738. padding-top: 5rpx;
  739. line-height: 30rpx;
  740. }
  741. .contZk{
  742. border-bottom: 1px solid #EEEEEE;
  743. padding-bottom: 20rpx;
  744. }
  745. .goodsImg{
  746. width: 120rpx;
  747. height: 120rpx;
  748. border-radius: 11rpx;
  749. }
  750. .goodsItemLIne{
  751. display: flex;
  752. padding-top: 20rpx;
  753. padding-bottom: 20rpx;
  754. }
  755. .goodsCont{
  756. display: flex;
  757. flex-direction:column;
  758. justify-content: space-between;
  759. padding-left: 20rpx;
  760. }
  761. .goodsContTop{
  762. display: flex;
  763. justify-content: space-between;
  764. width: 400rpx;
  765. }
  766. .goodsItemName{
  767. font-size: 26rpx;
  768. font-weight: 400;
  769. color: #3C3C3C;
  770. width: 300rpx;
  771. }
  772. .salePrice{
  773. font-size: 32rpx;
  774. font-weight: 500;
  775. color: #FF4F00;
  776. }
  777. .replace{
  778. width: 75rpx;
  779. height: 37rpx;
  780. border-radius: 19rpx;
  781. border: 2rpx solid #B9B9B9;
  782. text-align: center;
  783. line-height: 35rpx;
  784. color: #707070;
  785. font-size: 22rpx;
  786. }
  787. .contZkMain{
  788. padding-top: 20rpx;
  789. }
  790. .asa{
  791. width: 44rpx;
  792. height: 44rpx;
  793. line-height: 44rpx;
  794. text-align: center;
  795. background: #F4F5F7;
  796. font-size: 30rpx;
  797. }
  798. .goodsCOntBOttom{
  799. display: flex;
  800. justify-content: space-between;
  801. }
  802. .as{
  803. display: flex;
  804. }
  805. .goodsPrice{
  806. display: flex;justify-content: space-between;
  807. padding-top: 10rpx;
  808. }
  809. .goodsPriceNum{
  810. color: #F8F8F8;
  811. font-size: 28rpx;
  812. }
  813. .asNum{
  814. font-size: 24rpx;color: #333333;
  815. padding: 0 18rpx;
  816. height: 44rpx;
  817. line-height: 44rpx;
  818. background: #F4F5F7;
  819. margin-left: 1px;
  820. margin-right: 1px;
  821. }
  822. .itemNum{
  823. font-size: 24rpx;
  824. font-weight: 400;
  825. color: #999999;
  826. }
  827. .bottom{
  828. display: flex;
  829. justify-content: space-between;
  830. }
  831. .caidanImg{
  832. width: 50rpx;
  833. height: 50rpx;
  834. }
  835. .bottomLeft{
  836. display: flex;
  837. }
  838. .caidan{
  839. padding-left: 33rpx;
  840. padding-top: 35rpx;
  841. padding-right: 33rpx;
  842. position: relative;
  843. }
  844. .total{
  845. position: absolute;
  846. width: 40rpx;
  847. height: 26rpx;
  848. background: #FF270A;
  849. line-height: 26rpx;
  850. text-align: center;
  851. color: #FFFFFF;
  852. font-size: 20rpx;
  853. top: 25rpx;
  854. right: 15rpx;
  855. border-radius: 13rpx;
  856. }
  857. .heji1{
  858. font-size: 24rpx;
  859. font-weight: 500;
  860. color: #666666;
  861. }
  862. .hejiNum{
  863. font-size: 32rpx;
  864. font-family: PingFangSC-Medium, PingFang SC;
  865. font-weight: 500;
  866. color: #FF4F00;
  867. }
  868. .hejiMs{
  869. font-size: 24rpx;
  870. padding-top: 5rpx;
  871. color: #999999;
  872. }
  873. .heji{
  874. padding-top: 23rpx;
  875. }
  876. .settlement{
  877. width: 203rpx;
  878. height: 74rpx;
  879. background: #FF4F00;
  880. border-radius: 37rpx;
  881. text-align: center;
  882. line-height: 74rpx;
  883. font-size: 30rpx;
  884. font-family: PingFangSC-Medium, PingFang SC;
  885. font-weight: 500;
  886. color: #FEFFFE;
  887. margin-top: 23rpx;
  888. margin-right: 32rpx;
  889. }
  890. .nodataImg{
  891. width: 400rpx;
  892. padding-top: 100rpx;
  893. }
  894. .noTxt{
  895. font-size: 36rpx;
  896. color: #999999;
  897. padding-top: 50rpx;
  898. }
  899. .nodataBox{
  900. text-align: center;
  901. }
  902. </style>