maintain.vue 24 KB

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