maintain.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="topLeft">
  5. <image :src="maintainCarData.brandLogo" mode="" 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:'../car/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. }
  496. .topLeft{
  497. display: flex;
  498. justify-content: space-between;
  499. }
  500. .carName{
  501. margin-left: 10rpx;
  502. width: 80%;
  503. }
  504. .topEdit{
  505. width: 30rpx;
  506. height: 30rpx;
  507. padding-top: 3px;
  508. padding-left: 12rpx;
  509. padding-right: 5px;
  510. padding-bottom: 5px;
  511. }
  512. .topRight{
  513. display: flex;
  514. }
  515. .topInput{
  516. font-size: 28rpx;
  517. color: #FFFFFF;
  518. text-align: right;
  519. padding-top: 3rpx;
  520. }
  521. .maintainrecommend{
  522. padding: 30rpx 24rpx;
  523. display: flex;
  524. justify-content: space-between;
  525. border-bottom: 2rpx solid #EEEEEE;
  526. }
  527. .recommendTxt{
  528. color: #3C3C3C;
  529. font-size: 30rpx;
  530. font-weight: 600;
  531. }
  532. .manual{
  533. width: 119rpx;
  534. height: 40rpx;
  535. border-radius: 20rpx;
  536. border: 2rpx solid #F19D01;
  537. text-align: center;
  538. line-height: 40rpx;
  539. font-size: 22rpx;
  540. color: #F19D01;
  541. }
  542. .bottom{
  543. position: fixed;
  544. left: 0;
  545. bottom: 0;
  546. width: 100vw;
  547. height: 120rpx;
  548. background: #FFFFFF;
  549. box-shadow: 0px -2px 20px 0px rgba(153, 153, 153, 0.2);
  550. }
  551. .main{
  552. display: flex;
  553. height: calc(100vh - 410rpx);
  554. }
  555. .mainscrollView{
  556. height: calc(100vh - 410rpx);
  557. }
  558. /* #ifdef MP-WEIXIN */
  559. .main{
  560. display: flex;
  561. height: calc(100vh - 310rpx);
  562. }
  563. .mainscrollView{
  564. height: calc(100vh - 310rpx);
  565. }
  566. /* #endif */
  567. .mainLeft{
  568. width: 146rpx;
  569. background: #F5F5F5;
  570. }
  571. .mainRight{
  572. width: 604rpx;
  573. }
  574. .mainLeftLine{
  575. color: #3C3C3C;
  576. padding: 30rpx 20rpx;
  577. font-size: 24rpx;
  578. text-align: center;
  579. position: relative;
  580. }
  581. .lineNum{
  582. position: absolute;
  583. background: #FF270A;
  584. width: 40rpx;
  585. height: 26rpx;
  586. text-align: center;
  587. line-height: 26rpx;
  588. font-size: 20rpx;
  589. color: #FFFFFF;
  590. border-radius: 13rpx;
  591. top: 10rpx;
  592. right: 10rpx;
  593. }
  594. .lineLeftActive{
  595. background: #FFFFFF;
  596. }
  597. .nock{
  598. width: 22rpx;
  599. height: 22rpx;
  600. border-radius: 50%;
  601. border:2px solid #AEAEAE;
  602. margin-top: 2rpx;
  603. margin-right: 10rpx;
  604. }
  605. .imgPrivacy{
  606. width: 36rpx;
  607. height: 36rpx;
  608. /* margin-top: 2rpx; */
  609. margin-right: 10rpx;
  610. }
  611. .contTopRight{
  612. display: flex;
  613. align-items: center;
  614. }
  615. .mainRightLine{
  616. padding: 20rpx 20rpx 0 20rpx;
  617. }
  618. .contTop{
  619. display: flex;
  620. justify-content: space-between;
  621. }
  622. .listPackgeName{
  623. font-size: 26rpx;
  624. font-family: PingFangSC-Regular, PingFang SC;
  625. font-weight: 600;
  626. color: #3C3C3C;
  627. }
  628. .listPackgeMs{
  629. font-size: 22rpx;
  630. font-family: PingFangSC-Regular, PingFang SC;
  631. font-weight: 400;
  632. color: #999999;
  633. padding-top: 5rpx;
  634. }
  635. .contZk{
  636. border-bottom: 1px solid #EEEEEE;
  637. padding-bottom: 20rpx;
  638. }
  639. .goodsImg{
  640. width: 120rpx;
  641. height: 120rpx;
  642. border-radius: 11rpx;
  643. }
  644. .goodsItemLIne{
  645. display: flex;
  646. padding-top: 20rpx;
  647. padding-bottom: 20rpx;
  648. }
  649. .goodsCont{
  650. display: flex;
  651. flex-direction:column;
  652. justify-content: space-between;
  653. padding-left: 20rpx;
  654. }
  655. .goodsContTop{
  656. display: flex;
  657. justify-content: space-between;
  658. width: 400rpx;
  659. }
  660. .goodsItemName{
  661. font-size: 26rpx;
  662. font-weight: 400;
  663. color: #3C3C3C;
  664. width: 300rpx;
  665. }
  666. .salePrice{
  667. font-size: 32rpx;
  668. font-weight: 500;
  669. color: #FF4F00;
  670. }
  671. .replace{
  672. width: 75rpx;
  673. height: 37rpx;
  674. border-radius: 19rpx;
  675. border: 2rpx solid #B9B9B9;
  676. text-align: center;
  677. line-height: 35rpx;
  678. color: #707070;
  679. font-size: 22rpx;
  680. }
  681. .contZkMain{
  682. padding-top: 20rpx;
  683. }
  684. .asa{
  685. width: 44rpx;
  686. height: 44rpx;
  687. line-height: 44rpx;
  688. text-align: center;
  689. background: #F4F5F7;
  690. font-size: 30rpx;
  691. }
  692. .goodsCOntBOttom{
  693. display: flex;
  694. justify-content: space-between;
  695. }
  696. .as{
  697. display: flex;
  698. }
  699. .goodsPrice{
  700. display: flex;justify-content: space-between;
  701. padding-top: 10rpx;
  702. }
  703. .goodsPriceNum{
  704. color: #F8F8F8;
  705. font-size: 28rpx;
  706. }
  707. .asNum{
  708. font-size: 24rpx;color: #333333;
  709. padding: 0 18rpx;
  710. height: 44rpx;
  711. line-height: 44rpx;
  712. background: #F4F5F7;
  713. margin-left: 1px;
  714. margin-right: 1px;
  715. }
  716. .itemNum{
  717. font-size: 24rpx;
  718. font-weight: 400;
  719. color: #999999;
  720. }
  721. .bottom{
  722. display: flex;
  723. justify-content: space-between;
  724. }
  725. .caidanImg{
  726. width: 50rpx;
  727. height: 50rpx;
  728. }
  729. .bottomLeft{
  730. display: flex;
  731. }
  732. .caidan{
  733. padding-left: 33rpx;
  734. padding-top: 35rpx;
  735. padding-right: 33rpx;
  736. position: relative;
  737. }
  738. .total{
  739. position: absolute;
  740. width: 40rpx;
  741. height: 26rpx;
  742. background: #FF270A;
  743. line-height: 26rpx;
  744. text-align: center;
  745. color: #FFFFFF;
  746. font-size: 20rpx;
  747. top: 25rpx;
  748. right: 15rpx;
  749. border-radius: 13rpx;
  750. }
  751. .heji1{
  752. font-size: 24rpx;
  753. font-weight: 500;
  754. color: #666666;
  755. }
  756. .hejiNum{
  757. font-size: 32rpx;
  758. font-family: PingFangSC-Medium, PingFang SC;
  759. font-weight: 500;
  760. color: #FF4F00;
  761. }
  762. .hejiMs{
  763. font-size: 24rpx;
  764. padding-top: 5rpx;
  765. color: #999999;
  766. }
  767. .heji{
  768. padding-top: 23rpx;
  769. }
  770. .settlement{
  771. width: 203rpx;
  772. height: 74rpx;
  773. background: #FF4F00;
  774. border-radius: 37rpx;
  775. text-align: center;
  776. line-height: 74rpx;
  777. font-size: 30rpx;
  778. font-family: PingFangSC-Medium, PingFang SC;
  779. font-weight: 500;
  780. color: #FEFFFE;
  781. margin-top: 23rpx;
  782. margin-right: 32rpx;
  783. }
  784. .nodataImg{
  785. width: 400rpx;
  786. padding-top: 100rpx;
  787. }
  788. .noTxt{
  789. font-size: 36rpx;
  790. color: #999999;
  791. padding-top: 50rpx;
  792. }
  793. .nodataBox{
  794. text-align: center;
  795. }
  796. </style>