maintain.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
  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. this.calculation()
  207. }
  208. },
  209. methods: {
  210. unique(arr1) {
  211. const res = new Map();
  212. return arr1.filter((a) => !res.has(a.goodsID) && res.set(a.goodsID, 1))
  213. },
  214. upMileage(){
  215. this.getData();
  216. this.$http('worldKeepCar/worldHome/updateTMemberCarByHome', {
  217. id: this.maintainCarData.id,
  218. milage: this.maintainCarData.milage?this.maintainCarData.milage:0,
  219. }, 'POST').then(res => {
  220. uni.hideLoading();
  221. console.log(res);
  222. if (res.code == 0) {
  223. var cardata = uni.getStorageSync("maintainCarData")
  224. if (cardata) {
  225. cardata.milage = this.maintainCarData.milage
  226. uni.setStorage({
  227. key: 'maintainCarData',
  228. data: cardata,
  229. success: function () {
  230. }
  231. });
  232. }
  233. }
  234. })
  235. },
  236. // milageEditconfirm(){
  237. // this.getData();
  238. // var that=this;
  239. // for(let k in this.maintainCarData){this.maintainCarData[k] = this.maintainCarData[k]==null?'':this.maintainCarData[k]}
  240. // this.$http('miniAppMyBMemberCar/updateMemberCar',this.maintainCarData,'POST').then(res => {
  241. // uni.hideLoading();
  242. // uni.setStorage({
  243. // key: 'maintainCarData',
  244. // data: that.maintainCarData,
  245. // success: function () {
  246. // /* uni.navigateBack({
  247. // delta:1
  248. // }) */
  249. // }
  250. // });
  251. // })
  252. // },
  253. leftClick(item,index){
  254. this.leftIndex=index
  255. },
  256. listcheck(item){
  257. item.planItem=!item.planItem;
  258. //var
  259. if(this.mealData[this.leftIndex].name=='小保养'){
  260. this.calculation('大保养');
  261. }else if(this.mealData[this.leftIndex].name=='大保养'){
  262. this.calculation('小保养');
  263. }else{
  264. this.calculation();
  265. }
  266. if(item.planItem){
  267. /* this.orderData.push(item) */
  268. }
  269. },
  270. goGoods(item){
  271. uni.navigateTo({
  272. url:'../module/goodsDetail?goodsId='+item.goodsID+'&type=1'+'&typeIndex=2&maintain=1'
  273. })
  274. },
  275. empty(){
  276. var that=this;
  277. uni.showModal({
  278. title: '提示',
  279. content: '确定要清空清单吗',
  280. success: function (res) {
  281. if (res.confirm) {
  282. that.orderData=[];
  283. that.mealData.forEach(item=>{
  284. item.num=0;
  285. if(item.listPackage){
  286. item.listPackage.forEach(v=>{
  287. v.planItem=false
  288. })
  289. }
  290. })
  291. console.log(that.mealData)
  292. that.calculation();
  293. that.qingdanShow=false;
  294. }
  295. }
  296. });
  297. },
  298. calculation(txt){
  299. this.isNull=true
  300. this.total=0;
  301. this.totalhj=0;
  302. this.goodsTotal=0;
  303. this.salePriceTotal=0;
  304. this.orderData=[]
  305. this.mealData.forEach(v=>{
  306. v.num=0;
  307. if(txt == v.name){
  308. console.log(v.name)
  309. if(v.listPackage){
  310. v.listPackage.forEach(i=>{
  311. i.planItem=false
  312. })
  313. }
  314. }else{
  315. if(v.listPackage){
  316. v.listPackage.forEach(i=>{
  317. if(i.planItem){
  318. var obj={
  319. listGoodsAll:[],
  320. listItem:'',
  321. id:i.id,
  322. name:i.name
  323. }
  324. if(i.listGoodsAll.length>0){
  325. i.listGoodsAll.forEach((goods,goodsIndex)=>{
  326. /* goods.forEach(sp=>{
  327. this.goodsTotal=Number(this.goodsTotal)
  328. this.goodsTotal+=sp.salePrice*sp.qty
  329. this.goodsTotal=this.goodsTotal.toFixed(2)
  330. }) */
  331. //goods[0].salePrice=1;
  332. this.goodsTotal=Number(this.goodsTotal)
  333. if(!isNaN(goods[0].salePrice)){
  334. this.goodsTotal+=goods[0].salePrice*goods[0].qty
  335. this.goodsTotal=this.goodsTotal.toFixed(2)
  336. }else{
  337. this.isNull=false
  338. }
  339. obj.listGoodsAll.push(goods[0])
  340. })
  341. }
  342. if(i.listItem.length>0){
  343. obj.listItem=i.listItem
  344. }
  345. this.orderData.push(obj)
  346. v.num++;
  347. this.total++;
  348. i.listItem.forEach(xm=>{
  349. xm.qty=1;
  350. if(!isNaN(xm.salePrice)){
  351. this.salePriceTotal=Number(this.salePriceTotal)
  352. this.salePriceTotal+=xm.salePrice
  353. this.salePriceTotal=this.salePriceTotal.toFixed(2)
  354. }else{
  355. this.isNull=false
  356. }
  357. //xm.salePrice=1;
  358. })
  359. //this.totalhj
  360. }
  361. })
  362. }
  363. }
  364. //if(v.listPackage)
  365. })
  366. this.totalhj=Number(this.goodsTotal)+Number(this.salePriceTotal)
  367. this.totalhj=this.totalhj.toFixed(2)
  368. console.log(this.orderData)
  369. },
  370. reduce(v){
  371. console.log(v)
  372. if(v.qty>1){
  373. v.qty--;
  374. this.calculation()
  375. }else if(v.del){
  376. if(v.qty>0){
  377. v.qty--;
  378. this.calculation()
  379. }
  380. }
  381. },
  382. plus(v){
  383. v.qty++;
  384. this.calculation()
  385. },
  386. getData(){
  387. uni.showLoading({
  388. title: '加载中'
  389. })
  390. var location = uni.getStorageSync("locationCity");
  391. this.$http('miniApp/tPackageMiniAppController/queryPackageList', {
  392. mileage:this.maintainCarData.milage,
  393. liyangId:this.maintainCarData.nLevelID,
  394. cityCode:location.cityCode,
  395. guidePrice:this.maintainCarData.guidePrice,
  396. },'GET').then(res => {
  397. console.log(res)
  398. uni.hideLoading();
  399. if(res.code==1){
  400. uni.showModal({
  401. title: '提示',
  402. content: res.msg,
  403. showCancel:false,
  404. success: function (res) {
  405. }
  406. });
  407. }
  408. res.data.forEach(item=>{
  409. //console.log(item)
  410. item.listPackage.forEach((list,i)=>{
  411. if(list.listGoodsAll.length>0){
  412. //console.log(list)
  413. //if(true){
  414. //if(list.listGoodsAll[i]!=list.listGoodsAll[i-1]){
  415. list.listGoodsAll.forEach((goods,index)=>{
  416. //console.log(goods[0])
  417. if(goods[0].capacity&&!goods[0].del){
  418. //console.log(Number(list.referenceDosageQty)/goods[0].capacity)
  419. if(Number(list.referenceDosageQty)/goods[0].capacity>1){
  420. console.log("添加一条")
  421. var addDta=list.listGoodsAll[index];
  422. addDta.forEach(add=>{
  423. add.del=true;
  424. })
  425. //addDta.splice(1,0)
  426. //console.log(addDta)
  427. var add=JSON.parse(JSON.stringify(addDta))
  428. list.listGoodsAll.splice(index+1, 0,add)
  429. //list.listGoodsAll.splice(1,0)
  430. //list.listGoodsAll.push(list.listGoodsAll[index])
  431. }
  432. }
  433. })
  434. //}
  435. /* }else{
  436. list.listGoodsAll.forEach((goods,index)=>{
  437. //console.log(goods[0])
  438. if(goods[0].capacity){
  439. console.log(Number(list.referenceDosageQty)/goods[0].capacity)
  440. if(Number(list.referenceDosageQty)/goods[0].capacity>1){
  441. console.log("添加一条")
  442. list.listGoodsAll.splice(index+1, 0,list.listGoodsAll[index])
  443. //list.listGoodsAll.push(list.listGoodsAll[index])
  444. }
  445. }
  446. })
  447. } */
  448. }
  449. })
  450. })
  451. this.mealData=res.data;
  452. this.mealData.splice(1,0)
  453. console.log(this.mealData)
  454. this.calculation();
  455. })
  456. },
  457. handbook(){
  458. uni.navigateTo({
  459. url:'handbook?mileage'+this.maintainCarData.milage+'&liyangId='+this.maintainCarData.nLevelID
  460. })
  461. },
  462. settlement(){
  463. if(!this.isNull){
  464. uni.showToast({
  465. title: '您选择的有未设置价格的商品,请重新选择',
  466. icon:'none',
  467. duration: 5000
  468. });
  469. return false;
  470. }
  471. console.log(this.orderData)
  472. //return false;
  473. uni.removeStorageSync('couponData');
  474. if(this.orderData.length>0){
  475. /* uni.navigateTo({
  476. url:'confirmOrder?orderData='+JSON.stringify(this.orderData)+'&currentMileage='+this.maintainCarData.milage
  477. }) */
  478. uni.navigateTo({
  479. url:'orderShop?orderData='+JSON.stringify(this.orderData)+'&currentMileage='+this.maintainCarData.milage+'&brand='+this.brand
  480. })
  481. }
  482. },
  483. replace(v,index,i,replaceIndex){
  484. //v.splice(replaceIndex, 1)
  485. console.log(v)
  486. console.log(replaceIndex)
  487. v.forEach((item,vindex)=>{
  488. if(replaceIndex==vindex){
  489. item.showr=false
  490. }else{
  491. item.showr=true
  492. }
  493. })
  494. uni.removeStorageSync('replaceData');
  495. this.replaceIndex1=index;
  496. this.replaceIndex2=i;
  497. uni.setStorage({
  498. key: 'replaceDataList',
  499. data: v,
  500. success: function () {
  501. uni.navigateTo({
  502. url:'replaceGoods'
  503. })
  504. }
  505. });
  506. },
  507. caidanClick(){
  508. this.qingdanShow=!this.qingdanShow
  509. },
  510. milageEdit(){
  511. this.maintainCarData.milage=''
  512. },
  513. carEdit(){
  514. uni.navigateTo({
  515. url:'../index/cailist?type=2'
  516. })
  517. }
  518. }
  519. }
  520. </script>
  521. <style scoped>
  522. .caidanTk{
  523. height: calc(100vh );
  524. width: 100vw;
  525. background: rgba(0,0,0,0.6);
  526. position:fixed;
  527. left: 0;
  528. top: 0;
  529. }
  530. .tkCont{
  531. height: 60vh;
  532. margin-top: calc(40vh );
  533. padding-bottom: constant(safe-area-inset-bottom);
  534. padding-bottom: env(safe-area-inset-bottom);
  535. box-sizing: content-box;
  536. }
  537. .caidanTkTop{
  538. width: 750rpx;
  539. height: 90rpx;
  540. background: #FFFFFF;
  541. border-radius: 24rpx 24rpx 0px 0px;
  542. }
  543. .caidanTkTop{
  544. display: flex;justify-content: space-between;
  545. }
  546. .topTopright{
  547. display: flex;
  548. padding-top: 29rpx;
  549. }
  550. .tkTopTitle{
  551. line-height: 90rpx;
  552. font-size: 30rpx;
  553. font-weight: 600;
  554. color: #3C3C3C;
  555. padding-left: 24rpx;
  556. }
  557. .empty{
  558. width: 86rpx;
  559. height: 42rpx;
  560. background: #EEEEEE;
  561. border-radius: 21rpx;
  562. text-align: center;
  563. color: #666666;
  564. font-size: 24rpx;
  565. line-height: 42rpx;
  566. }
  567. .close{
  568. color: #999999;
  569. font-size: 30rpx;
  570. padding-right: 30rpx;
  571. padding-left: 24rpx;
  572. }
  573. .tkMain{
  574. background: #F0F0F0;
  575. height: calc(60vh - 90rpx);
  576. }
  577. .tkMainSv{
  578. padding: 0 24rpx;
  579. width: 702rpx;
  580. height: calc(60vh - 90rpx);
  581. }
  582. .goodsItemRight{
  583. width: 520rpx;
  584. padding-left: 20rpx;
  585. display: flex;
  586. flex-direction:column;
  587. justify-content: space-between;
  588. }
  589. .goodsItemBottom{
  590. display: flex;
  591. justify-content: space-between;
  592. }
  593. .goodssalePrice{
  594. font-size: 32rpx;font-weight: 500;color: #FF4F00;
  595. }
  596. .goodsNum{
  597. font-size: 24rpx;font-weight: 400;color: #999999;
  598. }
  599. .top{
  600. background: #FF4F00;
  601. display: flex;
  602. justify-content: space-between;
  603. padding: 30rpx 25rpx;
  604. font-size: 28rpx;
  605. color: #FFFFFF;
  606. }
  607. .goodsItem{
  608. display: flex;
  609. padding: 15rpx 0;
  610. }
  611. .qingdanLine{
  612. background: #FFFFFF;
  613. margin-top: 20rpx;
  614. padding: 24rpx 20rpx;
  615. border-radius: 10rpx;
  616. }
  617. .brandLogo{
  618. width: 42rpx;
  619. height: 42rpx;
  620. padding: 0 10rpx;
  621. }
  622. .topLeft{
  623. display: flex;
  624. align-content: center;
  625. }
  626. .carName{
  627. width: 61%;
  628. }
  629. .topEdit{
  630. width: 22rpx;
  631. height: 22rpx;
  632. padding: 10rpx;
  633. }
  634. .topRight{
  635. display: flex;
  636. justify-content: flex-end;
  637. align-items: center;
  638. }
  639. .topInput{
  640. font-size: 28rpx;
  641. color: #FFFFFF;
  642. text-align: right;
  643. padding-top: 3rpx;
  644. width: 70%;
  645. }
  646. .maintainrecommend{
  647. padding: 30rpx 24rpx;
  648. display: flex;
  649. justify-content: space-between;
  650. border-bottom: 2rpx solid #EEEEEE;
  651. }
  652. .recommendTxt{
  653. color: #3C3C3C;
  654. font-size: 30rpx;
  655. font-weight: 600;
  656. }
  657. .manual{
  658. width: 119rpx;
  659. height: 40rpx;
  660. border-radius: 20rpx;
  661. border: 2rpx solid #F19D01;
  662. text-align: center;
  663. line-height: 40rpx;
  664. font-size: 22rpx;
  665. color: #F19D01;
  666. }
  667. .bottom{
  668. position: fixed;
  669. left: 0;
  670. bottom: 0;
  671. width: 100vw;
  672. height: 120rpx;
  673. background: #FFFFFF;
  674. box-shadow: 0px -2px 20px 0px rgba(153, 153, 153, 0.2);
  675. padding-bottom: constant(safe-area-inset-bottom);
  676. padding-bottom: env(safe-area-inset-bottom);
  677. box-sizing: content-box;
  678. }
  679. .main{
  680. display: flex;
  681. height: calc(100vh - 410rpx);
  682. }
  683. .mainscrollView{
  684. height: calc(100vh - 410rpx);
  685. padding-bottom: constant(safe-area-inset-bottom);
  686. padding-bottom: env(safe-area-inset-bottom);
  687. box-sizing: content-box;
  688. margin-bottom: 120rpx;
  689. }
  690. /* #ifdef MP-WEIXIN */
  691. .main{
  692. display: flex;
  693. height: calc(100vh - 310rpx);
  694. }
  695. .mainscrollView{
  696. height: calc(100vh - 310rpx);
  697. }
  698. /* #endif */
  699. .mainLeft{
  700. width: 146rpx;
  701. background: #F5F5F5;
  702. }
  703. .mainRight{
  704. width: 604rpx;
  705. }
  706. .mainLeftLine{
  707. color: #3C3C3C;
  708. padding: 30rpx 20rpx;
  709. font-size: 24rpx;
  710. text-align: center;
  711. position: relative;
  712. }
  713. .lineNum{
  714. position: absolute;
  715. background: #FF270A;
  716. width: 40rpx;
  717. height: 26rpx;
  718. text-align: center;
  719. line-height: 26rpx;
  720. font-size: 20rpx;
  721. color: #FFFFFF;
  722. border-radius: 13rpx;
  723. top: 10rpx;
  724. right: 10rpx;
  725. }
  726. .lineLeftActive{
  727. background: #FFFFFF;
  728. }
  729. .nock{
  730. width: 22rpx;
  731. height: 22rpx;
  732. border-radius: 50%;
  733. border:2px solid #AEAEAE;
  734. margin-top: 2rpx;
  735. margin-right: 10rpx;
  736. }
  737. .imgPrivacy{
  738. width: 36rpx;
  739. height: 36rpx;
  740. /* margin-top: 2rpx; */
  741. margin-right: 10rpx;
  742. }
  743. .contTopRight{
  744. display: flex;
  745. align-items: center;
  746. }
  747. .mainRightLine{
  748. padding: 20rpx 20rpx 0 20rpx;
  749. }
  750. .contTop{
  751. display: flex;
  752. justify-content: space-between;
  753. }
  754. .listPackgeName{
  755. font-size: 26rpx;
  756. font-family: PingFangSC-Regular, PingFang SC;
  757. font-weight: 600;
  758. color: #3C3C3C;
  759. }
  760. .listPackgeMs{
  761. font-size: 22rpx;
  762. font-family: PingFangSC-Regular, PingFang SC;
  763. font-weight: 400;
  764. color: #999999;
  765. padding-top: 5rpx;
  766. line-height: 30rpx;
  767. }
  768. .contZk{
  769. border-bottom: 1px solid #EEEEEE;
  770. padding-bottom: 20rpx;
  771. }
  772. .goodsImg{
  773. width: 120rpx;
  774. height: 120rpx;
  775. border-radius: 11rpx;
  776. }
  777. .goodsItemLIne{
  778. display: flex;
  779. padding-top: 20rpx;
  780. padding-bottom: 20rpx;
  781. }
  782. .goodsCont{
  783. display: flex;
  784. flex-direction:column;
  785. justify-content: space-between;
  786. padding-left: 20rpx;
  787. }
  788. .goodsContTop{
  789. display: flex;
  790. justify-content: space-between;
  791. width: 400rpx;
  792. }
  793. .goodsItemName{
  794. font-size: 26rpx;
  795. font-weight: 400;
  796. color: #3C3C3C;
  797. width: 78%;
  798. }
  799. .salePrice{
  800. font-size: 32rpx;
  801. font-weight: 500;
  802. color: #FF4F00;
  803. }
  804. .replace{
  805. width: 75rpx;
  806. height: 37rpx;
  807. border-radius: 19rpx;
  808. border: 2rpx solid #B9B9B9;
  809. text-align: center;
  810. line-height: 35rpx;
  811. color: #707070;
  812. font-size: 22rpx;
  813. }
  814. .contZkMain{
  815. padding-top: 20rpx;
  816. }
  817. .asa{
  818. width: 44rpx;
  819. height: 44rpx;
  820. line-height: 44rpx;
  821. text-align: center;
  822. background: #F4F5F7;
  823. font-size: 30rpx;
  824. }
  825. .goodsCOntBOttom{
  826. display: flex;
  827. justify-content: space-between;
  828. }
  829. .as{
  830. display: flex;
  831. }
  832. .goodsPrice{
  833. display: flex;justify-content: space-between;
  834. padding-top: 10rpx;
  835. }
  836. .goodsPriceNum{
  837. color: #F8F8F8;
  838. font-size: 28rpx;
  839. }
  840. .asNum{
  841. font-size: 24rpx;color: #333333;
  842. padding: 0 18rpx;
  843. height: 44rpx;
  844. line-height: 44rpx;
  845. background: #F4F5F7;
  846. margin-left: 1px;
  847. margin-right: 1px;
  848. }
  849. .itemNum{
  850. font-size: 24rpx;
  851. font-weight: 400;
  852. color: #999999;
  853. }
  854. .bottom{
  855. display: flex;
  856. justify-content: space-between;
  857. }
  858. .caidanImg{
  859. width: 50rpx;
  860. height: 50rpx;
  861. }
  862. .bottomLeft{
  863. display: flex;
  864. }
  865. .caidan{
  866. padding-left: 33rpx;
  867. padding-top: 35rpx;
  868. padding-right: 33rpx;
  869. position: relative;
  870. }
  871. .total{
  872. position: absolute;
  873. width: 40rpx;
  874. height: 26rpx;
  875. background: #FF270A;
  876. line-height: 26rpx;
  877. text-align: center;
  878. color: #FFFFFF;
  879. font-size: 20rpx;
  880. top: 25rpx;
  881. right: 15rpx;
  882. border-radius: 13rpx;
  883. }
  884. .heji1{
  885. font-size: 24rpx;
  886. font-weight: 500;
  887. color: #666666;
  888. }
  889. .hejiNum{
  890. font-size: 32rpx;
  891. font-family: PingFangSC-Medium, PingFang SC;
  892. font-weight: 500;
  893. color: #FF4F00;
  894. }
  895. .hejiMs{
  896. font-size: 24rpx;
  897. padding-top: 5rpx;
  898. color: #999999;
  899. }
  900. .heji{
  901. padding-top: 23rpx;
  902. }
  903. .settlement{
  904. width: 203rpx;
  905. height: 74rpx;
  906. background: #FF4F00;
  907. border-radius: 37rpx;
  908. text-align: center;
  909. line-height: 74rpx;
  910. font-size: 30rpx;
  911. font-family: PingFangSC-Medium, PingFang SC;
  912. font-weight: 500;
  913. color: #FEFFFE;
  914. margin-top: 23rpx;
  915. margin-right: 32rpx;
  916. }
  917. .nodataImg{
  918. width: 400rpx;
  919. padding-top: 100rpx;
  920. }
  921. .noTxt{
  922. font-size: 36rpx;
  923. color: #999999;
  924. padding-top: 50rpx;
  925. }
  926. .nodataBox{
  927. text-align: center;
  928. }
  929. </style>