maintain.vue 24 KB

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