maintain.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. <template>
  2. <view class="box">
  3. <view class="top" :style="{background:'#'+themeColor}">
  4. <view class="inputBox">
  5. <view class="ibLeft" @click="goCkcar">
  6. <image class="ibCarIcon" v-if="carInfo.brandLogo" :src="carInfo.brandLogo" mode=""></image>
  7. <image class="ibCarIcon" v-else src="../../static/timg/nocar.png" mode=""></image>
  8. <view class="ibCarBox">
  9. <view class="ibCar">{{carInfo.brand?carInfo.brand:''}}&nbsp;{{carInfo.series?carInfo.series:''}}</view>
  10. <image src="../../static/img2/xia.png" mode="" class="xiaIcon"></image>
  11. </view>
  12. </view>
  13. <view class="ibRight">
  14. <image src="http://dmsphoto.66km.com.cn/thFiles/403AC6C5-CD4B-4D7A-B0D6-BA997D0AB9CE.png" mode="" class="glIcon"></image>
  15. <view class="glInput" v-if="milage">{{milage}}km</view>
  16. <view class="glInput" v-else>暂无填写</view>
  17. <!-- <input type="text" v-else placeholder="暂无填写" class="glInput"/> -->
  18. <image src="../../static/img2/xia.png" mode="" class="xiaIcon"></image>
  19. </view>
  20. </view>
  21. <view class="msBox">
  22. <view class="msLine">
  23. <image class="msIcon" src="../../static/img2/zp.png" mode=""></image>
  24. <view class="msTxt">正品保障</view>
  25. </view>
  26. <view class="msLine">
  27. <image class="msIcon" src="../../static/img2/jp.png" mode=""></image>
  28. <view class="msTxt">精准适配</view>
  29. </view>
  30. <view class="msLine">
  31. <image class="msIcon" src="../../static/img2/shwy.png" mode=""></image>
  32. <view class="msTxt">售后无忧</view>
  33. </view>
  34. <view class="msLine">
  35. <image class="msIcon" src="../../static/img2/zyfw.png" mode=""></image>
  36. <view class="msTxt">专业服务</view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 适配推荐 -->
  41. <view class="spBox">
  42. <view class="spTop">
  43. <view class="spTitle">适配推荐</view>
  44. <view class="spMs">
  45. <span @click="historySpend">保养记录</span>
  46. <span style="padding: 0 10rpx;"> | </span>
  47. <span @click="information">保养手册</span>
  48. </view>
  49. </view>
  50. <view class="znBox">
  51. <view class="znCont">
  52. <view class="znCar">智能推荐-{{carInfo.brand?carInfo.brand:''}}&nbsp;{{carInfo.series?carInfo.series:''}}</view>
  53. <view>
  54. <image class="hxIcon" src="../../static/img2/hx.png" mode=""></image>
  55. </view>
  56. <view class="znMs">超期不保养,会影响汽车性能!</view>
  57. </view>
  58. </view>
  59. <!-- 套餐-->
  60. <view class="lineBox">
  61. <view class="line"
  62. @click="goItem(item)" v-for="(item,index) in list">
  63. <view class="lineTop">
  64. <image src="http://dmsphoto.66km.com.cn/thFiles/F4CEDFE9-CF9F-41C5-B2BC-0EE00D9EA455.png" mode="" v-if="item.showType.indexOf(1)!=-1" class="byTj"></image>
  65. <image class="lineImg" v-if="item.mainImgUrl" :src="item.mainImgUrl" mode=""></image>
  66. <image class="lineImg" v-else src="../../static/timg/noimg.png" mode=""></image>
  67. <view class="lineNameBox">
  68. <view class="goodsName">{{item.title}}</view>
  69. <view class="goodsMs">{{item.showContent}}</view>
  70. <view class="goodsKbox">
  71. <view class="goosK1" v-if="item.showOilType">{{item.showOilType}}</view>
  72. <view class="goosK2" v-if="item.showOilLevel">机油等级 | {{item.showOilLevel}}</view>
  73. <view class="goosK2" v-if="item.showFit">适配粘度 | {{item.showFit}}</view>
  74. </view>
  75. <!-- <view class="bfb">有91.4%的车主选择本商品</view> -->
  76. </view>
  77. </view>
  78. <view class="tcBox">
  79. <view class="tcLine" :class="{lineActive:v.select}"
  80. @click.stop="selectItem(v,item)" v-for="(v,i) in item.packageItems">
  81. <view class="tcTitle">
  82. <view class="tcName">{{v.title}}</view>
  83. <view class="tcNameTs" v-if="v.count>1&&v.isDefault==1">{{v.count}}次更划算</view>
  84. </view>
  85. <view class="tcprice">
  86. <span class="tcSpan1">¥</span>
  87. <span class="tcSpan2">{{v.price}}</span>
  88. <span class="tcSpan3">/次</span>
  89. <span class="tcSpan3" style="padding-left: 10rpx;">{{v.count}}次¥{{v.money}}</span>
  90. <!-- <span class="tcSpan3" style="padding-left: 10rpx;">2次</span>
  91. <span class="tcSpan1">¥588</span> -->
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <view style="height: 220rpx;"></view>
  98. </view>
  99. <view class="bottom">
  100. <!-- <view class="kaBox">
  101. <view class="ka">
  102. <view class="kaLeft">
  103. <image class="vipIcon" src="../../static/img2/vip.png" mode=""></image>
  104. <view class="kaMS">开通权益卡 可享受更多优惠服务</view>
  105. </view>
  106. <view class="kaRight">去开卡></view>
  107. </view>
  108. </view> -->
  109. <view class="bottomView">
  110. <view class="bLeft" @click="qingdan">
  111. <view class="bLeftImgBox">
  112. <image class="qingdanIcon" src="../../static/img2/qingdan.png" mode=""></image>
  113. <view class="qdTxt">清单</view>
  114. <view class="qdNum" v-if="qdNum">{{qdNum}}</view>
  115. </view>
  116. <view>
  117. <view class="bottomprice">
  118. <span class="bSpan1">¥</span>
  119. <span class="bSpan2">{{totalPrice}}</span>
  120. </view>
  121. <!-- <view class="byh">
  122. <span class="bspan3">已优惠</span>
  123. <span class="bspan4"> ¥0</span>
  124. </view> -->
  125. </view>
  126. </view>
  127. <view class="bottomBtn commonBtn" @click="goSubmit">立即购买</view>
  128. </view>
  129. </view>
  130. <!-- 提交订单弹框-->
  131. <view class="tkBox" v-if="tkShow">
  132. <view class="tkCont">
  133. <view class="tkTop">
  134. <view class="tkDelBox" @click="clearAll">
  135. <image v-if="itemDefault" src="../../static/img2/shanchu.png" mode="" class="tkDelIcon"></image>
  136. <view v-if="itemDefault" class="tkDelTxt">清空</view>
  137. </view>
  138. <view class="tkTitle">清单</view>
  139. <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  140. </view>
  141. <view class="tkCBox">
  142. <view class="tkLine" v-if="itemDefault">
  143. <view class="tkLineTop">
  144. <view class="tklineTopTitle">套餐卡</view>
  145. <view class="tkDelBox" @click="delitemDefault">
  146. <image src="../../static/img2/shanchu.png" mode="" class="tkDelIcon"></image>
  147. <view class="tkDelTxt">删除</view>
  148. </view>
  149. </view>
  150. <view class="tklineCont">
  151. <image class="tkImg" v-if="itemDefault.mainImgUrl" :src="itemDefault.mainImgUrl" mode=""></image>
  152. <image class="tkImg" v-else src="../../static/timg/noimg.png" mode=""></image>
  153. <view class="tkNameBox">
  154. <view class="tkName">{{itemDefault.goodsname}}</view>
  155. <view class="goodsPrice">
  156. <view class="goodsPrice4" >¥{{itemDefault.money}}/</view>
  157. <view class="goodsPrice2">¥</view>
  158. <view class="goodsPrice3">{{itemDefault.price}}</view>
  159. <view class="tkcount">{{itemDefault.count}}次</view>
  160. <!-- <view class="goodsPrice4" >原价:¥{{itemDefault.crossedPrice}}</view> -->
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <view v-if="!itemDefault" class="nodataBox">
  166. <view style="text-align: center;">
  167. <image class="nodataImg" src="http://dmsphoto.66km.com.cn/thFiles/FB1CBE1D-D56F-4921-AEB9-6364E7AC96BE.png" mode=""></image>
  168. </view>
  169. <view class="nodataTxt">暂无添加商品</view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <!-- 提交订单弹框-->
  175. </view>
  176. </template>
  177. <script>
  178. export default {
  179. components: {
  180. },
  181. data() {
  182. return {
  183. themeColor:'',
  184. ext:'',
  185. goodsnum:1,
  186. tkShow:false,
  187. carInfo:'',
  188. list:[],
  189. totalPrice:0,
  190. itemDefault:'',
  191. lineItem:'',
  192. maintainProjectID:'',
  193. qdNum:1,
  194. milage:'',
  195. multiArray: [
  196. ['亚洲', '欧洲'],
  197. ['中国', '日本'],
  198. ['公里']
  199. ],
  200. }
  201. },
  202. onLoad(opt) {
  203. this.ext = this.$common.getExtStoreId();
  204. this.themeColor = uni.getStorageSync("themeColor");
  205. uni.setNavigationBarColor({
  206. frontColor: "#000000",
  207. backgroundColor: '#' + this.themeColor
  208. })
  209. this.carInfo=this.$store.state.carInfo;
  210. this.milage=this.carInfo.milage
  211. this.maintainProjectID=opt.maintainProjectID
  212. if(this.carInfo){
  213. this.getRecommend()
  214. }else{
  215. uni.showModal({
  216. title: '提示',
  217. content: '请先选择车辆',
  218. showCancel:false,
  219. success: function (res) {
  220. if (res.confirm) {
  221. uni.navigateTo({
  222. url:'../user/addCar/cailist?type=5'
  223. })
  224. }
  225. }
  226. });
  227. }
  228. },
  229. onShow() {
  230. var car =uni.getStorageSync("byCar")
  231. if(car){
  232. this.carInfo=car;
  233. this.milage=this.carInfo.milage
  234. this.getRecommend()
  235. }
  236. },
  237. methods: {
  238. information(){
  239. console.log('车辆信息--',this.carInfo);
  240. uni.navigateTo({
  241. url:'../index/handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  242. })
  243. },
  244. historySpend(){
  245. uni.navigateTo({
  246. url:'../user/historySpend'
  247. })
  248. },
  249. qingdan(){
  250. this.tkShow=true;
  251. },
  252. qdTkclose(){
  253. this.tkShow=false
  254. },
  255. clearAll(){
  256. var that=this
  257. uni.showModal({
  258. title: '提示',
  259. content: '确定清空吗?',
  260. success: function(resTK) {
  261. if (resTK.confirm) {
  262. that.list.forEach(item=>{
  263. item.packageItems.forEach(v=>{
  264. v.select=false
  265. })
  266. })
  267. that.itemDefault=''
  268. that.qdNum=0
  269. that.totalPrice=0
  270. }
  271. }
  272. });
  273. },
  274. delitemDefault(){
  275. var that=this
  276. uni.showModal({
  277. title: '提示',
  278. content: '确定删除吗?',
  279. success: function(resTK) {
  280. if (resTK.confirm) {
  281. that.list.forEach(item=>{
  282. item.packageItems.forEach(v=>{
  283. v.select=false
  284. })
  285. })
  286. that.itemDefault=''
  287. that.qdNum=0
  288. that.totalPrice=0
  289. }
  290. }
  291. });
  292. },
  293. selectItem(v,item){
  294. this.list.forEach(item=>{
  295. item.packageItems.forEach(v=>{
  296. v.select=false
  297. })
  298. })
  299. v.select=true
  300. this.totalPrice=v.money
  301. this.itemDefault=v
  302. this.lineItem=item
  303. this.qdNum=1
  304. this.itemDefault.goodsname=this.lineItem.title
  305. this.itemDefault.itemId=this.lineItem.id
  306. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  307. },
  308. goCkcar(){
  309. uni.navigateTo({
  310. url:'../user/addCar/cailist?type=5'
  311. })
  312. },
  313. goItem(item){
  314. uni.removeStorageSync('byCar');
  315. uni.navigateTo({
  316. url:'maintainItem?maintainId='+item.id+'&isRecommend='+item.isRecommend
  317. })
  318. },
  319. goSubmit(){
  320. if(this.itemDefault){
  321. this.itemDefault.goodsnum=this.goodsnum
  322. this.itemDefault.goodsname=this.lineItem.title
  323. this.itemDefault.itemId=this.lineItem.id
  324. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  325. uni.setStorage({
  326. key: 'itemDefault',
  327. data: this.itemDefault,
  328. success: function () {
  329. uni.navigateTo({
  330. url:'maintainSubmit'
  331. })
  332. }
  333. });
  334. }else{
  335. uni.showToast({
  336. title: '请选择商品规格',
  337. icon:'none',
  338. duration: 3000
  339. });
  340. }
  341. },
  342. getRecommend(){
  343. uni.showLoading({
  344. title: '加载中'
  345. })
  346. this.$http('open-apply/get-recommend', {
  347. carId:this.carInfo.id,
  348. bizId:this.maintainProjectID
  349. }, 'GET').then(res => {
  350. uni.hideLoading();
  351. if(!res.data.data){
  352. this.list=''
  353. this.itemDefault=''
  354. this.qdNum=0
  355. this.totalPrice=0
  356. }
  357. res.data.data.forEach(item=>{
  358. item.packageItems.forEach(v=>{
  359. v.select=false
  360. })
  361. })
  362. this.list=res.data.data
  363. this.lineItem=this.list[0]
  364. this.lineItem.packageItems.forEach(d=>{
  365. if(d.isDefault==1){
  366. d.select=true
  367. this.itemDefault=d
  368. this.itemDefault.goodsname=this.lineItem.title
  369. this.totalPrice=d.money
  370. this.qdNum=1
  371. }
  372. })
  373. //this.list=this.list.concat(this.list)
  374. })
  375. },
  376. calculation(type){
  377. if(type==1){
  378. if(this.goodsnum>1){
  379. this.goodsnum--
  380. }
  381. }else{
  382. console.log("+++")
  383. this.goodsnum++
  384. }
  385. },
  386. }
  387. }
  388. </script>
  389. <style scoped lang="less">
  390. .box {
  391. width: 100vw;
  392. min-height: 100vh;
  393. background: #F4F4F4;
  394. }
  395. .tkBox{
  396. width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
  397. position: fixed;left: 0;top: 0;
  398. }
  399. .tkCont{
  400. width: 750rpx;
  401. height: 60vh;
  402. background: #EFEFEF;
  403. border-radius: 28rpx 28rpx 0rpx 0rpx;
  404. position: absolute;
  405. left: 0;bottom: 0;
  406. padding-bottom: constant(safe-area-inset-bottom);
  407. padding-bottom: env(safe-area-inset-bottom);
  408. }
  409. .top{
  410. height: 170rpx;
  411. padding: 40rpx 24rpx;
  412. }
  413. .inputBox{
  414. background: rgba(255,255,255,0.4);
  415. border-radius: 38rpx;line-height: 42rpx;
  416. border: 1px solid #FFFFFF;
  417. padding: 18rpx 30rpx;font-size: 26rpx;color: #222222;
  418. display: flex;justify-content: space-between;
  419. }
  420. .xiaIcon{
  421. width: 12rpx;height: 9rpx;margin-top: 18rpx;margin-left: 10rpx;
  422. }
  423. .ibCarIcon{
  424. height: 42rpx;width: 42rpx;
  425. }
  426. .glIcon{
  427. width: 34rpx;height: 34rpx;margin-top: 6rpx;
  428. }
  429. .ibLeft{
  430. display: flex;
  431. }
  432. .ibRight{
  433. display: flex;
  434. }
  435. .ibCarBox{
  436. display: flex;padding-left: 10rpx;
  437. }
  438. .glInput{
  439. width: 120rpx;line-height: 42rpx;height: 42rpx;
  440. padding-left: 10rpx;
  441. }
  442. .msIcon{
  443. width: 26rpx;height: 26rpx;
  444. }
  445. .msTxt{
  446. font-weight: 500;margin-left: 12rpx;
  447. font-size: 22rpx;
  448. color: #A77102;
  449. padding-top: 2rpx;
  450. }
  451. .msLine{
  452. display: flex;line-height: 28rpx;
  453. }
  454. .msBox{
  455. display: flex;justify-content: space-between;padding-top: 24rpx;
  456. padding-left: 30rpx;padding-right: 30rpx;
  457. }
  458. .spBox{
  459. background: linear-gradient( 180deg, #FFFFFF 0%, #F4F4F4 440rpx);
  460. border-radius: 23rpx;
  461. padding: 24rpx 20rpx 0 24rpx;
  462. margin-top: -50rpx;
  463. padding-bottom: constant(safe-area-inset-bottom);
  464. padding-bottom: env(safe-area-inset-bottom);
  465. }
  466. .spTop{
  467. display: flex;justify-content: space-between;line-height: 40rpx;
  468. padding-bottom: 16rpx;
  469. }
  470. .spTitle{
  471. font-weight: 500;
  472. font-size: 28rpx;
  473. color: #222222;
  474. }
  475. .spMs{
  476. font-size: 24rpx;
  477. color: #666666;
  478. }
  479. .znBox{
  480. height: 200rpx;
  481. background: #FDC856;
  482. border-radius: 21rpx;
  483. }
  484. .znCont{
  485. background: url('http://dmsimg.66km.com/marketing/be56733ed0464993b9e71d351d82062e.jpg') no-repeat;
  486. background-size: 100% 100%;
  487. height: 160rpx;
  488. border-radius: 26rpx;
  489. }
  490. .hxIcon{
  491. height: 4rpx;width: 360rpx;
  492. margin-left: 18rpx;margin-top: 20rpx;
  493. display: block;
  494. }
  495. .znMs{
  496. font-size: 24rpx;
  497. color: #FFFFFF;
  498. line-height: 33rpx;
  499. padding-left: 18rpx;padding-top: 16rpx;
  500. }
  501. .znCar{
  502. font-weight: 500;padding-left: 18rpx;
  503. font-size: 32rpx;padding-top: 24rpx;
  504. color: #8C5E24;
  505. line-height: 45rpx;
  506. }
  507. .line{
  508. background: #FFFFFF;padding: 24rpx;
  509. border-radius: 16rpx;margin-bottom: 20rpx;
  510. padding-bottom: 4rpx;position: relative;
  511. }
  512. .lineImg{
  513. width: 162rpx;
  514. height: 162rpx;
  515. border-radius: 16rpx;
  516. }
  517. .lineTop{
  518. display: flex;
  519. }
  520. .lineBox{
  521. margin-top: -52rpx;
  522. }
  523. .goodsKbox{
  524. display: flex;flex-wrap: wrap;
  525. }
  526. .goosK1 {
  527. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;
  528. border: 1rpx solid #EC0F0A;font-size: 20rpx;
  529. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  530. margin-top: 10rpx;
  531. }
  532. .goosK2{
  533. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;color: #34B084;
  534. border: 1rpx solid #34B084;font-size: 20rpx;border-radius: 6rpx;
  535. margin-right: 10rpx;margin-top: 10rpx;
  536. }
  537. .goodsName{
  538. font-weight: 500;
  539. font-size: 28rpx;
  540. color: #222222;
  541. line-height: 40rpx;
  542. }
  543. .goodsMs{
  544. font-weight: 400;padding-top: 10rpx;
  545. padding-bottom: 6rpx;
  546. font-size: 22rpx;
  547. color: #8B8B8B;
  548. line-height: 28rpx;
  549. white-space: nowrap; /* 确保文本在一行内显示 */
  550. overflow: hidden; /* 超出容器部分隐藏 */
  551. text-overflow: ellipsis;
  552. width: 480rpx;
  553. }
  554. .bfb{
  555. font-size: 20rpx;padding-top: 10rpx;
  556. color: #FFD804;
  557. line-height: 28rpx;
  558. }
  559. .lineNameBox{
  560. padding-left: 20rpx; width: 500rpx;
  561. }
  562. .tcLine{
  563. background: #FBFBFB;
  564. border-radius: 14rpx;
  565. border: 1px solid #f1f1ff;
  566. width: 316rpx;
  567. height: 138rpx;
  568. margin-bottom: 20rpx;
  569. }
  570. .tcName{
  571. font-weight: 500;
  572. font-size: 28rpx;
  573. color: #435B6E;
  574. line-height: 40rpx;
  575. padding-left: 25rpx;padding-top: 24rpx;
  576. white-space: nowrap; /* 确保文本在一行内显示 */
  577. overflow: hidden; /* 超出容器部分隐藏 */
  578. text-overflow: ellipsis;
  579. max-width: 170rpx;
  580. }
  581. .tcTitle{
  582. display: flex;
  583. }
  584. .tcprice{
  585. padding-top: 4rpx;font-size: 20rpx;
  586. color: #666666;padding-left: 25rpx;
  587. }
  588. .tcSpan2{
  589. font-size: 34rpx;
  590. color: #000000;
  591. }
  592. .tcSpan3{
  593. font-size: 20rpx;
  594. color: #999999;
  595. }
  596. .tcNameTs{
  597. padding: 0 8rpx;margin-top: 30rpx;margin-left: 10rpx;
  598. height: 25rpx;
  599. background: #FE0200;
  600. text-align: center;
  601. line-height: 26rpx;
  602. font-size: 18rpx;
  603. color: #FFFFFF;
  604. border-radius: 4rpx;
  605. }
  606. .tcBox{
  607. display: flex;justify-content: space-between;
  608. padding-top: 26rpx;flex-wrap: wrap;
  609. }
  610. .bottom{
  611. width: 100%;
  612. position: fixed;
  613. bottom: 0rpx;
  614. padding-bottom: constant(safe-area-inset-bottom);
  615. padding-bottom: env(safe-area-inset-bottom);
  616. background: #FFFFFF;
  617. z-index: 111;
  618. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  619. }
  620. .kaBox{
  621. height: 70rpx;
  622. }
  623. .bottomView{
  624. background: #FFFFFF;
  625. }
  626. .vipIcon{
  627. width: 47rpx;height: 45rpx;
  628. }
  629. .ka{
  630. display: flex;justify-content: space-between;
  631. background: #FEE0B9;
  632. padding: 12rpx 20rpx;
  633. }
  634. .kaLeft{
  635. display: flex;line-height: 45rpx;
  636. }
  637. .kaMS{
  638. font-size: 22rpx;
  639. color: #666666;padding-left: 15rpx;
  640. }
  641. .kaRight{
  642. line-height: 45rpx;font-size: 22rpx;
  643. color: #A26D4F;
  644. }
  645. .bottomBtn{
  646. width: 223rpx;
  647. height: 86rpx;
  648. background: #FCD903;
  649. border-radius: 43rpx;
  650. line-height: 86rpx;
  651. text-align: center;
  652. font-size: 32rpx;
  653. color: #110B01;
  654. }
  655. .bottomView{
  656. display: flex;justify-content: space-between;
  657. padding: 15rpx 30rpx;
  658. padding-top: 30rpx;
  659. padding-bottom: 0;
  660. }
  661. .qingdanIcon{
  662. width: 40rpx;height: 45rpx;
  663. display: block;
  664. }
  665. .bLeft{
  666. display: flex;
  667. }
  668. .bLeftImgBox{
  669. position: relative;text-align: center;padding-top: 12rpx;
  670. }
  671. .qdNum{
  672. position: absolute;
  673. width: 22rpx;
  674. height: 22rpx;
  675. background: #EC0F0A;
  676. text-align: center;line-height: 22rpx;
  677. font-size: 16rpx;
  678. color: #FFFFFF;
  679. top: 0rpx;
  680. right: -8rpx;
  681. border-radius: 50%;
  682. }
  683. .qdTxt{
  684. font-size: 20rpx;
  685. color: #666666;
  686. line-height: 28rpx;
  687. }
  688. .bottomprice{
  689. padding-left: 38rpx;
  690. font-weight: 600;
  691. font-size: 20rpx;padding-top: 24rpx;
  692. color: #EC0F0A;line-height: 45rpx;
  693. }
  694. .byh{
  695. padding-left: 38rpx;
  696. font-size: 20rpx;
  697. color: #666666;
  698. line-height: 28rpx;
  699. }
  700. .bspan4{
  701. color: #EC0F0A;
  702. }
  703. .bSpan2{
  704. font-weight: 500;
  705. font-size: 34rpx;
  706. color: #EC0F0A;
  707. line-height: 45rpx;
  708. }
  709. .goodsPrice{
  710. display: flex;
  711. }
  712. .goodsPrice1{
  713. font-size: 24rpx;
  714. font-weight: 400;
  715. color: #EC0F0A;
  716. padding-top: 14rpx;
  717. padding-right: 14rpx;
  718. }
  719. .goodsPrice2{
  720. font-size: 28rpx;
  721. font-weight: 400;
  722. color: #EC0F0A;
  723. padding-top: 12rpx;
  724. }
  725. .goodsPrice3{
  726. font-size: 28rpx;
  727. padding-top: 12rpx;
  728. font-weight: 500;
  729. color: #EC0F0A;
  730. }
  731. .goodsPrice4{
  732. font-size: 24rpx;
  733. font-weight: 400;
  734. color: #999999;
  735. padding-top: 16rpx;
  736. /* text-decoration:line-through; */
  737. padding-left: 10rpx;
  738. }
  739. .tkTop{
  740. display: flex;padding: 40rpx 24rpx;
  741. }
  742. .tkImg{
  743. width: 120rpx;
  744. height: 120rpx;
  745. background: #DDDDDD;
  746. border-radius: 6rpx;
  747. }
  748. .tkName{
  749. font-weight: 400;
  750. font-size: 24rpx;
  751. color: #222222;
  752. line-height: 33rpx;
  753. }
  754. .tkNameBox{
  755. padding-left: 24rpx;width: 515rpx;
  756. }
  757. .chahao{
  758. width: 22rpx;height: 22rpx;padding-top: 10rpx;
  759. padding-left: 80rpx;
  760. }
  761. .buyLine{
  762. display: flex;justify-content: space-between;
  763. padding: 20rpx 24rpx;font-size: 26rpx;
  764. color: #666E80;
  765. }
  766. .buyBOx{
  767. background: #FFFFFF;margin-top: 20rpx;
  768. }
  769. .buyData{
  770. color: #222222;display: flex;
  771. }
  772. .goodsGuige{
  773. width: 150rpx;
  774. height: 50rpx;line-height: 50rpx;
  775. background: #F6F6F6;
  776. border-radius: 5rpx;
  777. font-size: 24rpx;
  778. color: #222222;text-align: center;
  779. }
  780. .activeGuige{
  781. width: 146rpx;
  782. height: 46rpx;line-height: 46rpx;
  783. border: 2rpx solid #FF0035;
  784. border-radius: 5rpx;
  785. font-size: 24rpx;
  786. color: #FF0035;text-align: center;
  787. }
  788. .numJsbox{
  789. display: flex;
  790. }
  791. .buyCont{
  792. position: absolute;
  793. left: 0;
  794. bottom: 0;
  795. width: 750rpx;
  796. height: 688rpx;
  797. background: #FFFFFF;
  798. border-radius: 26rpx 26rpx 0px 0px;
  799. }
  800. .buyNumBox{
  801. padding: 30rpx;
  802. padding-top: 10rpx;
  803. padding-bottom: 70rpx;
  804. }
  805. .buyContCh{
  806. position: absolute;
  807. top: 53rpx;
  808. right: 36rpx;
  809. width: 36rpx;
  810. height: 36rpx;
  811. }
  812. .goodsnum{
  813. width: 44rpx;
  814. height: 44rpx;
  815. background: #F4F5F7;
  816. line-height: 44rpx;
  817. text-align: center;
  818. font-weight: 500;
  819. color: #333333;
  820. font-size: 24rpx;
  821. margin: 0 4rpx;
  822. border-left:1px solid #C0C0C0;
  823. border-right:1px solid #C0C0C0;
  824. }
  825. .goodsnumInput{
  826. width: 44rpx;
  827. height: 44rpx;
  828. background: #FFFFFF;
  829. line-height: 44rpx;
  830. text-align: center;
  831. font-weight: 500;
  832. color: #333333;
  833. font-size: 24rpx;
  834. }
  835. .numJj{
  836. width: 44rpx;
  837. height: 44rpx;
  838. background: #ffffff;
  839. border-radius: 0px 6rpx 6rpx 0px;
  840. text-align: center;
  841. line-height: 44rpx;
  842. font-size: 32rpx;
  843. color: #999999;
  844. }
  845. .numJsbox{
  846. border: 1px solid #C0C0C0;
  847. border-radius: 6rpx;
  848. }
  849. .tkBottomBtn{
  850. width: 661rpx;text-align: center;
  851. height: 86rpx;line-height: 86rpx;
  852. /* background: #FCD903; */
  853. border-radius: 43rpx;
  854. font-size: 32rpx;
  855. color: #110B01;
  856. }
  857. .tkBottom{
  858. width: 750rpx;
  859. height: 146rpx;
  860. background: #FFFFFF;
  861. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  862. padding-bottom: constant(safe-area-inset-bottom);
  863. padding-bottom: env(safe-area-inset-bottom);
  864. display: flex;justify-content: center;align-items: center;
  865. position: absolute;left: 0;bottom: 0;
  866. }
  867. .lineActive{
  868. border: 1px solid #FE0200;
  869. background: #FFF7F7;
  870. }
  871. .tkLine{
  872. background: #ffffff;
  873. padding: 20rpx 22rpx;
  874. padding-bottom: 30rpx;
  875. border-radius: 16rpx;
  876. }
  877. .tkDelIcon{
  878. width: 25rpx;height: 27rpx;
  879. margin: 6rpx;
  880. }
  881. .tkTitle{
  882. font-weight: 500;
  883. font-size: 30rpx;
  884. color: #222222;
  885. line-height: 42rpx;
  886. }
  887. .tkTop{
  888. justify-content: space-between;
  889. }
  890. .tkDelBox{
  891. display: flex;width: 100rpx;
  892. }
  893. .tkTop .tkDelTxt{
  894. font-weight: 500;
  895. font-size: 26rpx;
  896. color: #222222;
  897. line-height: 42rpx;
  898. padding-left: 8rpx;
  899. }
  900. .tkCBox{
  901. padding: 0 22rpx;
  902. }
  903. .tkLineTop{
  904. display: flex;justify-content: space-between;
  905. }
  906. .tklineTopTitle{
  907. font-size: 26rpx;
  908. }
  909. .tkCBox .tkDelTxt{
  910. font-weight: 400;
  911. font-size: 26rpx;
  912. color: #222222;
  913. line-height: 42rpx;
  914. padding-left: 8rpx;
  915. }
  916. .tklineCont{
  917. display: flex;
  918. padding-top: 24rpx;
  919. }
  920. .tkcount{
  921. font-weight: 400;
  922. font-size: 22rpx;
  923. color: #222222;
  924. padding-left: 22rpx;
  925. padding-top: 16rpx;
  926. }
  927. .tkCBox .goodsPrice{
  928. padding-top: 36rpx;
  929. justify-content: flex-end;
  930. }
  931. .nodataImg{
  932. width: 176rpx;height: 180rpx;
  933. }
  934. .nodataTxt{
  935. font-weight: 400;
  936. font-size: 26rpx;
  937. color: #999999;
  938. line-height: 37rpx;
  939. text-align: center;
  940. padding-top: 10rpx;
  941. }
  942. .nodataBox{
  943. padding-top: 186rpx;
  944. background: #fff;
  945. padding-bottom: 200rpx;
  946. border-radius: 20rpx;
  947. }
  948. .byTj{
  949. width: 70rpx;height: 70rpx;top: 0;left: 0;
  950. position: absolute;
  951. }
  952. .bSpan1{
  953. font-size: 30rpx;
  954. }
  955. </style>