maintain.vue 21 KB

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