maintain.vue 20 KB

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