maintain.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  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. /*保养 1 */
  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. if(this.itemDefault.content){
  376. this.itemDefault.content=this.itemDefault.content.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
  377. }
  378. this.itemDefault.goodsnum=this.goodsnum
  379. this.itemDefault.goodsname=this.lineItem.title
  380. this.itemDefault.itemId=this.lineItem.id
  381. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  382. uni.setStorage({
  383. key: 'itemDefault',
  384. data: this.itemDefault,
  385. success: function () {
  386. uni.navigateTo({
  387. url:'maintainSubmit'
  388. })
  389. }
  390. });
  391. }else{
  392. uni.showToast({
  393. title: '请选择商品规格',
  394. icon:'none',
  395. duration: 3000
  396. });
  397. }
  398. },
  399. getRecommend(){
  400. uni.showLoading({
  401. title: '加载中'
  402. })
  403. this.isLoding=false;
  404. var maintainProjectID = this.maintainProjectID
  405. if(maintainProjectID == null || maintainProjectID == 'null'){
  406. maintainProjectID=''
  407. }
  408. this.$http('open-apply/get-recommend', {
  409. carId:this.carInfo.id,
  410. bizId:maintainProjectID
  411. }, 'GET').then(res => {
  412. uni.hideLoading();
  413. this.isLoding=true;
  414. this.list=''
  415. this.itemDefault=''
  416. this.qdNum=0
  417. this.totalPrice=0
  418. if(!res.data.data){
  419. this.list=''
  420. this.itemDefault=''
  421. this.qdNum=0
  422. this.totalPrice=0
  423. }
  424. res.data.data.forEach(item=>{
  425. item.packageItems.forEach(v=>{
  426. v.select=false
  427. })
  428. })
  429. this.list=res.data.data
  430. this.lineItem=this.list[0]
  431. this.lineItem.packageItems.forEach(d=>{
  432. if(d.isDefault==1){
  433. d.select=true
  434. this.itemDefault=d
  435. this.itemDefault.goodsname=this.lineItem.title
  436. this.totalPrice=d.money
  437. this.qdNum=1
  438. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  439. }
  440. })
  441. //this.list=this.list.concat(this.list)
  442. })
  443. },
  444. calculation(type){
  445. if(type==1){
  446. if(this.goodsnum>1){
  447. this.goodsnum--
  448. }
  449. }else{
  450. console.log("+++")
  451. this.goodsnum++
  452. }
  453. },
  454. }
  455. }
  456. </script>
  457. <style scoped lang="less">
  458. .box {
  459. width: 100vw;
  460. min-height: 100vh;
  461. background: #F4F4F4;
  462. }
  463. .tkBox{
  464. width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
  465. position: fixed;left: 0;top: 0;
  466. }
  467. .tkCont{
  468. width: 750rpx;
  469. height: 60vh;
  470. background: #EFEFEF;
  471. border-radius: 28rpx 28rpx 0rpx 0rpx;
  472. position: absolute;
  473. left: 0;bottom: 0;
  474. padding-bottom: constant(safe-area-inset-bottom);
  475. padding-bottom: env(safe-area-inset-bottom);
  476. }
  477. .top{
  478. height: 170rpx;
  479. padding: 40rpx 24rpx;
  480. }
  481. .inputBox{
  482. background: rgba(255,255,255,0.4);
  483. border-radius: 38rpx;line-height: 42rpx;
  484. border: 1px solid #FFFFFF;
  485. padding: 18rpx 30rpx;font-size: 26rpx;color: #222222;
  486. display: flex;justify-content: space-between;
  487. }
  488. .xiaIcon{
  489. width: 12rpx;height: 9rpx;margin-top: 18rpx;margin-left: 10rpx;
  490. }
  491. .ibCarIcon{
  492. height: 42rpx;width: 42rpx;
  493. }
  494. .glIcon{
  495. width: 34rpx;height: 34rpx;margin-top: 6rpx;
  496. }
  497. .ibLeft{
  498. display: flex;
  499. }
  500. .ibRight{
  501. display: flex;
  502. }
  503. .ibCarBox{
  504. display: flex;padding-left: 10rpx;
  505. }
  506. .glInput{
  507. width: 120rpx;line-height: 42rpx;height: 42rpx;
  508. padding-left: 10rpx;
  509. }
  510. .msIcon{
  511. width: 26rpx;height: 26rpx;
  512. }
  513. .msTxt{
  514. font-weight: 500;margin-left: 12rpx;
  515. font-size: 22rpx;
  516. color: #A77102;
  517. padding-top: 2rpx;
  518. }
  519. .msLine{
  520. display: flex;line-height: 28rpx;
  521. }
  522. .msBox{
  523. display: flex;justify-content: space-between;padding-top: 24rpx;
  524. padding-left: 30rpx;padding-right: 30rpx;
  525. }
  526. .spBox{
  527. background: linear-gradient( 180deg, #FFFFFF 0%, #F4F4F4 440rpx);
  528. border-radius: 23rpx;
  529. padding: 24rpx 20rpx 0 24rpx;
  530. margin-top: -50rpx;
  531. padding-bottom: constant(safe-area-inset-bottom);
  532. padding-bottom: env(safe-area-inset-bottom);
  533. }
  534. .spTop{
  535. display: flex;justify-content: space-between;line-height: 40rpx;
  536. padding-bottom: 16rpx;
  537. }
  538. .spTitle{
  539. font-weight: 500;
  540. font-size: 28rpx;
  541. color: #222222;
  542. }
  543. .spMs{
  544. font-size: 24rpx;
  545. color: #666666;
  546. }
  547. .znBox{
  548. height: 200rpx;
  549. background: #FDC856;
  550. border-radius: 21rpx;
  551. }
  552. .znCont{
  553. background: url('http://dmsimg.66km.com/marketing/be56733ed0464993b9e71d351d82062e.jpg') no-repeat;
  554. background-size: 100% 100%;
  555. height: 160rpx;
  556. border-radius: 26rpx;
  557. }
  558. .hxIcon{
  559. height: 4rpx;width: 360rpx;
  560. margin-left: 18rpx;margin-top: 20rpx;
  561. display: block;
  562. }
  563. .znMs{
  564. font-size: 24rpx;
  565. color: #FFFFFF;
  566. line-height: 33rpx;
  567. padding-left: 18rpx;padding-top: 16rpx;
  568. }
  569. .znCar{
  570. font-weight: 500;padding-left: 18rpx;
  571. font-size: 32rpx;padding-top: 24rpx;
  572. color: #8C5E24;
  573. line-height: 45rpx;
  574. }
  575. .line{
  576. background: #FFFFFF;padding: 24rpx;
  577. border-radius: 16rpx;margin-bottom: 20rpx;
  578. padding-bottom: 4rpx;position: relative;
  579. }
  580. .lineImg{
  581. width: 162rpx;
  582. height: 162rpx;
  583. border-radius: 16rpx;
  584. }
  585. .lineTop{
  586. display: flex;
  587. }
  588. .lineBox{
  589. margin-top: -52rpx;
  590. }
  591. .goodsKbox{
  592. display: flex;flex-wrap: wrap;
  593. }
  594. .goosK1 {
  595. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;
  596. border: 1rpx solid #EC0F0A;font-size: 20rpx;
  597. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  598. margin-top: 10rpx;
  599. }
  600. .goosK2{
  601. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;color: #34B084;
  602. border: 1rpx solid #34B084;font-size: 20rpx;border-radius: 6rpx;
  603. margin-right: 10rpx;margin-top: 10rpx;
  604. }
  605. .goodsName{
  606. font-weight: 500;
  607. font-size: 28rpx;
  608. color: #222222;
  609. line-height: 40rpx;
  610. }
  611. .goodsMs{
  612. font-weight: 400;padding-top: 10rpx;
  613. padding-bottom: 6rpx;
  614. font-size: 22rpx;
  615. color: #8B8B8B;
  616. line-height: 28rpx;
  617. white-space: nowrap; /* 确保文本在一行内显示 */
  618. overflow: hidden; /* 超出容器部分隐藏 */
  619. text-overflow: ellipsis;
  620. width: 480rpx;
  621. }
  622. .bfb{
  623. font-size: 20rpx;padding-top: 10rpx;
  624. color: #FFD804;
  625. line-height: 28rpx;
  626. }
  627. .lineNameBox{
  628. padding-left: 20rpx; width: 500rpx;
  629. }
  630. .tcLine{
  631. background: #FBFBFB;
  632. border-radius: 14rpx;
  633. border: 1px solid #f1f1ff;
  634. width: 316rpx;
  635. height: 138rpx;
  636. margin-bottom: 20rpx;
  637. }
  638. .tcName{
  639. font-weight: 500;
  640. font-size: 28rpx;
  641. color: #435B6E;
  642. line-height: 40rpx;
  643. padding-left: 25rpx;padding-top: 24rpx;
  644. white-space: nowrap; /* 确保文本在一行内显示 */
  645. overflow: hidden; /* 超出容器部分隐藏 */
  646. text-overflow: ellipsis;
  647. max-width: 170rpx;
  648. }
  649. .tcTitle{
  650. display: flex;
  651. }
  652. .tcprice{
  653. padding-top: 4rpx;font-size: 20rpx;
  654. color: #666666;padding-left: 25rpx;
  655. }
  656. .tcSpan2{
  657. font-size: 34rpx;
  658. color: #000000;
  659. }
  660. .tcSpan3{
  661. font-size: 20rpx;
  662. color: #999999;
  663. }
  664. .tcNameTs{
  665. padding: 0 8rpx;margin-top: 30rpx;margin-left: 10rpx;
  666. height: 25rpx;
  667. background: #FE0200;
  668. text-align: center;
  669. line-height: 26rpx;
  670. font-size: 18rpx;
  671. color: #FFFFFF;
  672. border-radius: 4rpx;
  673. }
  674. .tcBox{
  675. display: flex;justify-content: space-between;
  676. padding-top: 26rpx;flex-wrap: wrap;
  677. }
  678. .bottom{
  679. width: 100%;
  680. position: fixed;
  681. bottom: 0rpx;
  682. padding-bottom: constant(safe-area-inset-bottom);
  683. padding-bottom: env(safe-area-inset-bottom);
  684. background: #FFFFFF;
  685. z-index: 111;
  686. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  687. }
  688. .kaBox{
  689. height: 70rpx;
  690. }
  691. .bottomView{
  692. background: #FFFFFF;
  693. }
  694. .vipIcon{
  695. width: 47rpx;height: 45rpx;
  696. }
  697. .ka{
  698. display: flex;justify-content: space-between;
  699. background: #FEE0B9;
  700. padding: 12rpx 20rpx;
  701. }
  702. .kaLeft{
  703. display: flex;line-height: 45rpx;
  704. }
  705. .kaMS{
  706. font-size: 22rpx;
  707. color: #666666;padding-left: 15rpx;
  708. }
  709. .kaRight{
  710. line-height: 45rpx;font-size: 22rpx;
  711. color: #A26D4F;
  712. }
  713. .bottomBtn{
  714. width: 223rpx;
  715. height: 86rpx;
  716. background: #FCD903;
  717. border-radius: 43rpx;
  718. line-height: 86rpx;
  719. text-align: center;
  720. font-size: 32rpx;
  721. color: #110B01;
  722. }
  723. .bottomView{
  724. display: flex;justify-content: space-between;
  725. padding: 15rpx 30rpx;
  726. padding-top: 30rpx;
  727. padding-bottom: 0;
  728. }
  729. .qingdanIcon{
  730. width: 40rpx;height: 45rpx;
  731. display: block;
  732. }
  733. .bLeft{
  734. display: flex;
  735. }
  736. .bLeftImgBox{
  737. position: relative;text-align: center;padding-top: 12rpx;
  738. }
  739. .qdNum{
  740. position: absolute;
  741. width: 22rpx;
  742. height: 22rpx;
  743. background: #EC0F0A;
  744. text-align: center;line-height: 22rpx;
  745. font-size: 16rpx;
  746. color: #FFFFFF;
  747. top: 0rpx;
  748. right: -8rpx;
  749. border-radius: 50%;
  750. }
  751. .qdTxt{
  752. font-size: 20rpx;
  753. color: #666666;
  754. line-height: 28rpx;
  755. }
  756. .bottomprice{
  757. padding-left: 38rpx;
  758. font-weight: 600;
  759. font-size: 20rpx;padding-top: 24rpx;
  760. color: #EC0F0A;line-height: 45rpx;
  761. }
  762. .byh{
  763. padding-left: 38rpx;
  764. font-size: 20rpx;
  765. color: #666666;
  766. line-height: 28rpx;
  767. }
  768. .bspan4{
  769. color: #EC0F0A;
  770. }
  771. .bSpan2{
  772. font-weight: 500;
  773. font-size: 34rpx;
  774. color: #EC0F0A;
  775. line-height: 45rpx;
  776. }
  777. .goodsPrice{
  778. display: flex;
  779. }
  780. .goodsPrice1{
  781. font-size: 24rpx;
  782. font-weight: 400;
  783. color: #EC0F0A;
  784. padding-top: 14rpx;
  785. padding-right: 14rpx;
  786. }
  787. .goodsPrice2{
  788. font-size: 28rpx;
  789. font-weight: 400;
  790. color: #EC0F0A;
  791. padding-top: 12rpx;
  792. }
  793. .goodsPrice3{
  794. font-size: 28rpx;
  795. padding-top: 12rpx;
  796. font-weight: 500;
  797. color: #EC0F0A;
  798. }
  799. .goodsPrice4{
  800. font-size: 24rpx;
  801. font-weight: 400;
  802. color: #999999;
  803. padding-top: 16rpx;
  804. /* text-decoration:line-through; */
  805. padding-left: 10rpx;
  806. }
  807. .tkTop{
  808. display: flex;padding: 40rpx 24rpx;
  809. }
  810. .tkImg{
  811. width: 120rpx;
  812. height: 120rpx;
  813. background: #DDDDDD;
  814. border-radius: 6rpx;
  815. }
  816. .tkName{
  817. font-weight: 400;
  818. font-size: 24rpx;
  819. color: #222222;
  820. line-height: 33rpx;
  821. }
  822. .tkNameBox{
  823. padding-left: 24rpx;width: 515rpx;
  824. }
  825. .chahao{
  826. width: 22rpx;height: 22rpx;padding-top: 10rpx;
  827. padding-left: 80rpx;
  828. }
  829. .buyLine{
  830. display: flex;justify-content: space-between;
  831. padding: 20rpx 24rpx;font-size: 26rpx;
  832. color: #666E80;
  833. }
  834. .buyBOx{
  835. background: #FFFFFF;margin-top: 20rpx;
  836. }
  837. .buyData{
  838. color: #222222;display: flex;
  839. }
  840. .goodsGuige{
  841. width: 150rpx;
  842. height: 50rpx;line-height: 50rpx;
  843. background: #F6F6F6;
  844. border-radius: 5rpx;
  845. font-size: 24rpx;
  846. color: #222222;text-align: center;
  847. }
  848. .activeGuige{
  849. width: 146rpx;
  850. height: 46rpx;line-height: 46rpx;
  851. border: 2rpx solid #FF0035;
  852. border-radius: 5rpx;
  853. font-size: 24rpx;
  854. color: #FF0035;text-align: center;
  855. }
  856. .numJsbox{
  857. display: flex;
  858. }
  859. .buyCont{
  860. position: absolute;
  861. left: 0;
  862. bottom: 0;
  863. width: 750rpx;
  864. height: 688rpx;
  865. background: #FFFFFF;
  866. border-radius: 26rpx 26rpx 0px 0px;
  867. }
  868. .buyNumBox{
  869. padding: 30rpx;
  870. padding-top: 10rpx;
  871. padding-bottom: 70rpx;
  872. }
  873. .buyContCh{
  874. position: absolute;
  875. top: 53rpx;
  876. right: 36rpx;
  877. width: 36rpx;
  878. height: 36rpx;
  879. }
  880. .goodsnum{
  881. width: 44rpx;
  882. height: 44rpx;
  883. background: #F4F5F7;
  884. line-height: 44rpx;
  885. text-align: center;
  886. font-weight: 500;
  887. color: #333333;
  888. font-size: 24rpx;
  889. margin: 0 4rpx;
  890. border-left:1px solid #C0C0C0;
  891. border-right:1px solid #C0C0C0;
  892. }
  893. .goodsnumInput{
  894. width: 44rpx;
  895. height: 44rpx;
  896. background: #FFFFFF;
  897. line-height: 44rpx;
  898. text-align: center;
  899. font-weight: 500;
  900. color: #333333;
  901. font-size: 24rpx;
  902. }
  903. .numJj{
  904. width: 44rpx;
  905. height: 44rpx;
  906. background: #ffffff;
  907. border-radius: 0px 6rpx 6rpx 0px;
  908. text-align: center;
  909. line-height: 44rpx;
  910. font-size: 32rpx;
  911. color: #999999;
  912. }
  913. .numJsbox{
  914. border: 1px solid #C0C0C0;
  915. border-radius: 6rpx;
  916. }
  917. .tkBottomBtn{
  918. width: 661rpx;text-align: center;
  919. height: 86rpx;line-height: 86rpx;
  920. /* background: #FCD903; */
  921. border-radius: 43rpx;
  922. font-size: 32rpx;
  923. color: #110B01;
  924. }
  925. .tkBottom{
  926. width: 750rpx;
  927. height: 146rpx;
  928. background: #FFFFFF;
  929. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  930. padding-bottom: constant(safe-area-inset-bottom);
  931. padding-bottom: env(safe-area-inset-bottom);
  932. display: flex;justify-content: center;align-items: center;
  933. position: absolute;left: 0;bottom: 0;
  934. }
  935. .lineActive{
  936. border: 1px solid #FE0200;
  937. background: #FFF7F7;
  938. }
  939. .tkLine{
  940. background: #ffffff;
  941. padding: 20rpx 22rpx;
  942. padding-bottom: 30rpx;
  943. border-radius: 16rpx;
  944. }
  945. .tkDelIcon{
  946. width: 25rpx;height: 27rpx;
  947. margin: 6rpx;
  948. }
  949. .tkTitle{
  950. font-weight: 500;
  951. font-size: 30rpx;
  952. color: #222222;
  953. line-height: 42rpx;
  954. }
  955. .tkTop{
  956. justify-content: space-between;
  957. }
  958. .tkDelBox{
  959. display: flex;width: 100rpx;
  960. }
  961. .tkTop .tkDelTxt{
  962. font-weight: 500;
  963. font-size: 26rpx;
  964. color: #222222;
  965. line-height: 42rpx;
  966. padding-left: 8rpx;
  967. }
  968. .tkCBox{
  969. padding: 0 22rpx;
  970. }
  971. .tkLineTop{
  972. display: flex;justify-content: space-between;
  973. }
  974. .tklineTopTitle{
  975. font-size: 26rpx;
  976. }
  977. .tkCBox .tkDelTxt{
  978. font-weight: 400;
  979. font-size: 26rpx;
  980. color: #222222;
  981. line-height: 42rpx;
  982. padding-left: 8rpx;
  983. }
  984. .tklineCont{
  985. display: flex;
  986. padding-top: 24rpx;
  987. }
  988. .tkcount{
  989. font-weight: 400;
  990. font-size: 22rpx;
  991. color: #222222;
  992. padding-left: 22rpx;
  993. padding-top: 16rpx;
  994. }
  995. .tkCBox .goodsPrice{
  996. padding-top: 36rpx;
  997. justify-content: flex-end;
  998. }
  999. .nodataImg{
  1000. width: 176rpx;height: 180rpx;
  1001. }
  1002. .nodataTxt{
  1003. font-weight: 400;
  1004. font-size: 26rpx;
  1005. color: #999999;
  1006. line-height: 37rpx;
  1007. text-align: center;
  1008. padding-top: 10rpx;
  1009. }
  1010. .nodataBox{
  1011. padding-top: 186rpx;
  1012. background: #fff;
  1013. padding-bottom: 200rpx;
  1014. border-radius: 20rpx;
  1015. }
  1016. .byTj{
  1017. width: 70rpx;height: 70rpx;top: 0;left: 0;
  1018. position: absolute;
  1019. }
  1020. .bSpan1{
  1021. font-size: 30rpx;
  1022. }
  1023. </style>