maintain.vue 19 KB

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