refund.vue 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  1. <template>
  2. <view class="box">
  3. <view class="cont">
  4. <view class="itemBox flex">
  5. </image>
  6. <image class="itemIMg" src="../../static/timg/noimg.png" mode=""></image>
  7. <view class="itemRight">
  8. <view class="itemName">{{orderData.data.sheetContent}}</view>
  9. <view class="priceBox">
  10. <view class="price" v-if="type==1">¥{{sheetQRCodeList[0].itemRealMoney}}</view>
  11. <view class="price" v-if="type==2">¥{{shData.itemRealMoney}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="goodsBox">
  16. <view class="goodsline flex" v-if="type==1">
  17. <view class="goodsLeft">退款份数</view>
  18. <view class="goodRight" >
  19. <view class="numJsbox">
  20. <view class="numJj" @click="calculation(1)">-</view>
  21. <view class="goodsnum">
  22. <input @input="goodsnumBlur" type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  23. </view>
  24. <view class="numJj" @click="calculation(2)">+</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="goodsline flex" v-if="type==2">
  29. <view class="goodsLeft">退款份数</view>
  30. <view class="goodRight" style="color: #666666;">
  31. 1份
  32. </view>
  33. </view>
  34. <view class="goodsline flex" >
  35. <view class="tkPrice">
  36. <view class="tkPrice1">退款金额</view>
  37. <view class="tkPrice2">实际退款金额以到账金额为准</view>
  38. </view>
  39. <view class="tkPriceNum">¥{{totalPrice}}</view>
  40. </view>
  41. <view class="goodsline flex" >
  42. <view class="goodsLeft">退款方式</view>
  43. <view class="goodRight" style="font-size: 26rpx;font-weight: 500;color: #222222;">原路退回</view>
  44. </view>
  45. </view>
  46. <view class="goodsBox">
  47. <view class="goodsline flex" v-if="type==2">
  48. <view class="goodsLeft">商品是否已使用 <span class="xinghao">*</span></view>
  49. <view class="goodRight " >
  50. <picker @change="bindPickerChange" :value="index" :range="array">
  51. <view class="ckLine" v-if="index==''">
  52. <span>请选择</span>
  53. <image src="../../static/timg/icon_arrow_right.png" mode="" class="jtIcon"></image>
  54. </view >
  55. <view v-else class="ckLine xuanzhong" ><span>{{array[index]}}</span>
  56. <image src="../../static/img2/hjt.png" mode="" class="hjtIcon"></image>
  57. </view>
  58. </picker>
  59. </view>
  60. </view>
  61. <view class="goodsline flex" >
  62. <view class="goodsLeft">退款原因 <span class="xinghao">*</span></view>
  63. <view class="goodRight ckLine" @click="reasonS">
  64. <span v-if="!refundReasonTxt">请至少选择一项</span>
  65. <span style="color: #222222;" v-if="refundReasonTxt">{{refundReasonTxt}}</span>
  66. <image src="../../static/timg/icon_arrow_right.png" mode="" class="jtIcon"></image>
  67. </view>
  68. </view>
  69. <view class="tkSm" style="padding-top: 8rpx;">退款说明</view>
  70. <view>
  71. <textarea class="tktextarea" v-model="content" name="" placeholder="请输入退款说明" id="" cols="30" rows="10"></textarea>
  72. <view class="textareaNum">{{content.length}}/500</view>
  73. </view>
  74. <!-- 图片 -->
  75. <view class="secondView" v-if="type==2">
  76. <view class="tkSm">退款凭证</view>
  77. <view class="imgBox">
  78. <view :class="{img4:(imgindex+1)%4==0}" class="imgLine" v-for="(img,imgindex) in imgArr">
  79. <image :src="img" mode="aspectFit" class="itemImg"></image>
  80. <image src="../../static/img/icon_del_red.png" mode="aspectFit" class="delImg" @click="delimg(imgindex)">
  81. </image>
  82. </view>
  83. <view class="img4" @click="uploadImg">
  84. <image src="../../static/img/btn_pic.png" mode="" class="itemImg"></image>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="gaodu"></view>
  91. <view class="bottomBox">
  92. <view class="bottomMS">申请退款后不可取消,钱款预期1-3个自然日到账</view>
  93. <view class="bottom">
  94. <view class="bleft">
  95. <span>退款金额</span>
  96. <span style="color: #EC0F0A;padding-left: 6rpx;">¥</span>
  97. <span style="font-weight: 500;font-size: 34rpx;color: #EC0F0A;">{{totalPrice}}</span>
  98. </view>
  99. <view class="Btn commonBtn" @click="submitFn">提交</view>
  100. </view>
  101. </view>
  102. <view class="reasonBox" v-if="reasonShow">
  103. <view class="reasonCont">
  104. <view class="reasonTop">
  105. <view class="chahao"></view>
  106. <view class="tkTitle">请选择退款原因</view>
  107. <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  108. </view>
  109. <view class="reasonContLineBox">
  110. <view v-for="(item,index) in refundReasonList" class="jiekouLIne">
  111. <view class="reasonContLineTitle">{{item.reason}}</view>
  112. <view class="reasonContLine" v-for="(i,ix) in item.two" @click="ckLy(i)">
  113. <view class="reasonContLineTxt">{{i.reason}}</view>
  114. <view class="reasonContLineCk" v-if="refundReasonID!=i.id"></view>
  115. <image class="reasonContLineCkImg" src="../../static/timg/icon_checked@2x.png" mode="" v-if="refundReasonID==i.id"></image>
  116. </view>
  117. </view>
  118. </view>
  119. <view style="height: 200rpx;"></view>
  120. <view class="reasonBottom">
  121. <view class="reasonBottomBtn" @click="qdTkclose">确定</view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. </template>
  127. <script>
  128. export default {
  129. components: {
  130. },
  131. data() {
  132. return {
  133. themeColor:'',
  134. ext:'',
  135. goodsnum:1,
  136. itemDefault:'',
  137. totalPrice:'',
  138. sheetDetail:[],
  139. userInfo:'',
  140. carInfo:'',
  141. customerInfo:'',
  142. textareaNum:0,
  143. reasonShow:false,
  144. imgArr: [],
  145. array:['未使用','已使用'],
  146. index: '',
  147. orderData:'',
  148. type:'',
  149. id:'',
  150. refundReasonList:'',
  151. sheetQRCodeList:'',
  152. maxNum:0,
  153. refundReasonID:'',
  154. refundReasonTxt:'',
  155. hType:'',
  156. content:'',
  157. couponCodeArr:[],
  158. goodsType:'',
  159. couponCount:1,
  160. shData:'',
  161. couponIds:'',
  162. }
  163. },
  164. onLoad(opt) {
  165. this.ext = this.$common.getExtStoreId();
  166. this.themeColor = uni.getStorageSync("themeColor");
  167. this.orderData = uni.getStorageSync("orderData");
  168. this.type=opt.type
  169. this.id=opt.id;
  170. if(this.type==1){
  171. this.getsheetQRCode()
  172. this.sheetRefundReason()
  173. }else{
  174. this.shData=uni.getStorageSync("shData")
  175. this.totalPrice=this.shData.itemRealMoney
  176. }
  177. },
  178. onShow() {
  179. },
  180. methods: {
  181. ckLy(item){
  182. this.refundReasonID=item.id
  183. this.refundReasonTxt=item.reason
  184. },
  185. getsheetQRCode(){
  186. this.$http('openOrderManagement/sheetQRCodeList', {
  187. type:1,
  188. sheetID: this.id,
  189. }, 'GET').then(res => {
  190. this.sheetQRCodeList=res.data
  191. //this.totalPrice= this.sheetQRCodeList[0].itemRealMoney
  192. /* var Price=0
  193. this.sheetQRCodeList.forEach((item,index)=>{
  194. Price+=item.itemRealMoney
  195. })
  196. this.totalPrice= Price */
  197. this.maxNum=this.sheetQRCodeList.length
  198. this.goodsnum=this.maxNum
  199. this.couponCodeArr=[]
  200. this.couponCodeArr.push( this.sheetQRCodeList[0].id)
  201. this.queryPrice(this.goodsnum)
  202. })
  203. },
  204. sheetRefundReason(){
  205. var params={
  206. type:1
  207. }
  208. this.$http('openOrderManagement/sheetRefundReason', params,'GET').then(res => {
  209. this.refundReasonList=res.data
  210. })
  211. },
  212. sheetRefundReason2(){
  213. if(this.goodsType==1){
  214. var params={type:3}
  215. }
  216. if(this.goodsType==2){
  217. var params={type:2}
  218. }
  219. this.$http('openOrderManagement/sheetRefundReason', params,'GET').then(res => {
  220. this.refundReasonList=res.data
  221. this.reasonShow=true;
  222. })
  223. },
  224. bindPickerChange(e){
  225. console.log(e)
  226. this.index=e.detail.value
  227. if(this.index==0){
  228. this.goodsType=1
  229. }
  230. if(this.index==1){
  231. this.goodsType=2
  232. }
  233. this.refundReasonTxt=''
  234. },
  235. reasonS(){
  236. if(this.type==1){
  237. this.reasonShow=true;
  238. }else{
  239. if(this.goodsType){
  240. this.sheetRefundReason2()
  241. }else{
  242. uni.showToast({
  243. title: '请先选择是否使用',
  244. icon: 'none',
  245. duration: 3000
  246. });
  247. }
  248. }
  249. },
  250. qdTkclose(){
  251. this.reasonShow=false;
  252. },
  253. queryPrice(num){
  254. uni.showLoading({
  255. title: '加载中'
  256. })
  257. this.$http('openOrderManagement/querySheetRefundCode', {
  258. count:num,sheetID:this.id
  259. },'GET').then(res => {
  260. uni.hideLoading();
  261. if(res.code==0){
  262. this.totalPrice=res.data.total
  263. this.couponIds=res.data.couponIds
  264. }else{
  265. uni.showToast({
  266. title: res.msg,
  267. icon: 'none',
  268. duration: 3000
  269. });
  270. }
  271. })
  272. },
  273. goodsnumBlur(){
  274. if(this.goodsnum>this.maxNum){
  275. uni.showToast({
  276. title: '超过退款份数',
  277. icon: 'none',
  278. duration: 3000
  279. });
  280. this.$nextTick(() => {
  281. this.goodsnum=this.maxNum
  282. this.queryPrice(this.goodsnum)
  283. })
  284. }else
  285. if(this.goodsnum<1){
  286. uni.showToast({
  287. title: '退款份数不能小于1',
  288. icon: 'none',
  289. duration: 3000
  290. });
  291. this.$nextTick(() => {
  292. this.goodsnum=1
  293. this.queryPrice(this.goodsnum)
  294. })
  295. }
  296. else{
  297. this.queryPrice(this.goodsnum)
  298. }
  299. },
  300. calculation(type){
  301. if(type==1){
  302. if(this.goodsnum>1){
  303. this.goodsnum--
  304. this.queryPrice(this.goodsnum)
  305. var Price=0
  306. this.couponCodeArr=[]
  307. this.sheetQRCodeList.forEach((item,index)=>{
  308. if( index < this.goodsnum){
  309. Price+=item.itemRealMoney
  310. this.couponCodeArr.push(item.id)
  311. }
  312. })
  313. // this.totalPrice=Price
  314. }
  315. }else{
  316. if(this.goodsnum<this.maxNum){
  317. this.goodsnum++
  318. this.queryPrice(this.goodsnum)
  319. var Price=0
  320. this.couponCodeArr=[]
  321. this.sheetQRCodeList.forEach((item,index)=>{
  322. if( index < this.goodsnum){
  323. Price+=item.itemRealMoney
  324. this.couponCodeArr.push(item.id)
  325. }
  326. })
  327. //this.totalPrice=Price
  328. }
  329. }
  330. },
  331. addSheetRefund(){
  332. if(this.type==1){
  333. var params={
  334. hType:this.type,
  335. couponID:this.couponIds,
  336. money:this.totalPrice,
  337. refundReasonID:this.refundReasonID,
  338. sheetID:this.orderData.data.id,
  339. sheetCode:this.orderData.data.code,
  340. content:this.content,
  341. goodsType:this.goodsType,
  342. couponCount:this.goodsnum,
  343. }
  344. }
  345. if(this.type==2){
  346. var params={
  347. hType:this.type,
  348. couponID:this.shData.id,
  349. money:this.totalPrice,
  350. refundReasonID:this.refundReasonID,
  351. sheetID:this.orderData.data.id,
  352. sheetCode:this.orderData.data.code,
  353. content:this.content,
  354. goodsType:this.goodsType,
  355. couponCount:this.couponCount,
  356. imgUrl:this.imgArr.join(',')
  357. }
  358. }
  359. console.log(params)
  360. //return false
  361. uni.showLoading({
  362. title: '加载中'
  363. })
  364. this.$http('openOrderManagement/addSheetRefund', params,'POST').then(res => {
  365. uni.hideLoading();
  366. if(res.code==0){
  367. uni.navigateTo({
  368. url:'refundDetail?id='+res.data.id
  369. })
  370. }else{
  371. uni.showToast({
  372. title: res.msg,
  373. icon: 'none',
  374. duration: 3000
  375. });
  376. }
  377. })
  378. },
  379. submitFn(){
  380. if(this.refundReasonTxt==''){
  381. uni.showToast({
  382. title: '请选择退款原因',
  383. icon: 'none',
  384. duration: 3000
  385. });
  386. return false
  387. }
  388. var that=this;
  389. uni.showModal({
  390. title: '申请退款',
  391. content: '退款申请一旦提交。将不能撤销,是否确认继续退款?',
  392. confirmText:'确认',
  393. cancelText:'取消',
  394. success: function (res) {
  395. if (res.confirm) {
  396. that.addSheetRefund()
  397. // console.log('用户点击确定');
  398. /* uni.navigateTo({
  399. url:'refundDetail'
  400. }) */
  401. } else if (res.cancel) {
  402. }
  403. }
  404. });
  405. /* var params={
  406. }
  407. uni.showLoading({
  408. title: '加载中'
  409. })
  410. this.$http('openMallOrder/submitOrder', params,'POST').then(res => {
  411. uni.hideLoading();
  412. if(res.code==0){
  413. this.orderData=res.data
  414. this.unifiedPay(res.data)
  415. }else{
  416. uni.showToast({
  417. title: res.msg,
  418. icon: 'none',
  419. duration: 3000
  420. });
  421. }
  422. }) */
  423. },
  424. unifiedPay(res){
  425. this.$http('openMallOrder/unifiedPay', {
  426. sheetId:res.id
  427. },'POST').then(res => {
  428. this.isgo=true;
  429. if(res.code==0){
  430. this.requestPayment(res.data)
  431. }else{
  432. uni.showToast({
  433. title: res.msg,
  434. icon: 'none',
  435. duration: 3000
  436. });
  437. }
  438. })
  439. },
  440. uploadImg() {
  441. var that = this;
  442. var length = this.imgArr.length;
  443. var num = 5;
  444. if (length > 4) {
  445. uni.showToast({
  446. title: '最多上传5张',
  447. icon: 'none',
  448. duration: 2000,
  449. });
  450. return false;
  451. }
  452. uni.chooseImage({
  453. sourceType: ['album', 'camera'],
  454. count: num - length,
  455. sizeType:['compressed'],
  456. success: (chooseImageRes) => {
  457. const tempFilePaths = chooseImageRes.tempFilePaths;
  458. /* uni.uploadFile({
  459. url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  460. filePath: tempFilePaths[0],
  461. name: 'file',
  462. formData: {
  463. 'user': 'test'
  464. },
  465. success: (uploadFileRes) => {
  466. console.log(JSON.parse(uploadFileRes.data).data );
  467. that.imgArr=that.imgArr.concat(JSON.parse(uploadFileRes.data).data) ;
  468. }
  469. }); */
  470. tempFilePaths.forEach(v => {
  471. console.log(that.$request.baseUrl + 'tuhuUploadFile');
  472. uni.uploadFile({
  473. url: that.$request.baseUrl + 'tuhuUploadFile',
  474. filePath: v,
  475. name: 'file',
  476. formData: {
  477. 'user': 'test'
  478. },
  479. success: (uploadFileRes) => {
  480. console.log(JSON.parse(uploadFileRes.data).data);
  481. that.imgArr = that.imgArr.concat(JSON.parse(
  482. uploadFileRes.data).data);
  483. console.log('imgArr--',that.imgArr);
  484. }
  485. });
  486. })
  487. /* that.$http('accompany/SuperCheckSheet/uploadFile', tempFilePaths[0], 'POST').then(res => {
  488. }) */
  489. }
  490. });
  491. },
  492. delimg(index) {
  493. this.imgArr.splice(index, 1)
  494. },
  495. requestPayment(res){
  496. var payInfo=res;
  497. //console.log(payInfo)
  498. //console.log(String(Date.now()))
  499. var that=this;
  500. uni.requestPayment({
  501. provider: 'wxpay',
  502. //timeStamp: String(Date.now()),
  503. timeStamp: payInfo.timeStamp,
  504. nonceStr: payInfo.nonceStr,
  505. package:payInfo.package,
  506. signType: payInfo.signType,
  507. paySign: payInfo.paySign,
  508. appid:payInfo.appId,
  509. success: function (res) {
  510. console.log('success:' + JSON.stringify(res));
  511. uni.showToast({
  512. title: '支付成功',
  513. icon:'none',
  514. duration: 2000
  515. });
  516. uni.navigateTo({
  517. url:'paySuccess?type=1&orderType=1'
  518. })
  519. },
  520. fail: function (err) {
  521. console.log(err)
  522. uni.showToast({
  523. title: '支付失败',
  524. icon:'none',
  525. duration: 2000
  526. });
  527. uni.navigateTo({
  528. url:'paySuccess?type=2&orderType=1'
  529. })
  530. }
  531. });
  532. },
  533. }
  534. }
  535. </script>
  536. <style scoped lang="less">
  537. .box {
  538. width: 100vw;
  539. min-height: 100vh;
  540. background: #F4F4F4;
  541. }
  542. .reasonTop{
  543. display: flex;justify-content: space-between;
  544. padding: 32rpx 42rpx;
  545. }
  546. .chahao{
  547. width: 21rpx;height: 21rpx;
  548. padding-top: 10rpx;
  549. padding-left: 10rpx;
  550. padding-right: 10rpx;
  551. padding-bottom: 10rpx;
  552. }
  553. .tkTitle{
  554. font-weight: 500;
  555. font-size: 28rpx;
  556. color: #222222;
  557. line-height: 40rpx;
  558. }
  559. .reasonBox{
  560. position: fixed;
  561. left: 0;
  562. top: 0;
  563. height: 100vh;
  564. width: 750rpx;
  565. background: rgba(0, 0, 0, 0.5);
  566. z-index: 11;
  567. }
  568. .reasonCont{
  569. height: 70vh;
  570. width: 750rpx;
  571. background: #FFFFFF;
  572. border-radius: 28rpx 28rpx 0rpx 0rpx;
  573. position: absolute;
  574. left: 0;
  575. bottom: 0;
  576. }
  577. .reasonContLine{
  578. display: flex;justify-content: space-between;
  579. padding: 20rpx 0;
  580. }
  581. .reasonContLineTitle{
  582. font-weight: 500;
  583. font-size: 28rpx;
  584. color: #222222;
  585. padding-bottom: 15rpx;
  586. }
  587. .reasonContLineTxt{
  588. font-weight: 400;
  589. font-size: 28rpx;
  590. color: #222222;
  591. line-height: 40rpx;
  592. }
  593. .reasonContLineCk{
  594. width: 28rpx;
  595. height: 28rpx;
  596. border: 2rpx solid #9A9A9A;
  597. border-radius: 16rpx;
  598. margin-top: 6rpx;
  599. }
  600. .reasonContLineCkImg{
  601. width: 32rpx;margin-top: 6rpx;
  602. height: 32rpx;
  603. }
  604. .reasonContLineBox{
  605. padding: 0 33rpx;
  606. height: calc(70vh - 270rpx);
  607. overflow-y: scroll;
  608. }
  609. .ckLine{
  610. display: flex;color: #9A9A9A;
  611. font-size: 26rpx;
  612. }
  613. .xinghao{
  614. color: #EC0F0A;
  615. }
  616. .jtIcon{
  617. width: 12rpx;height: 20rpx;
  618. margin-top: 8rpx;
  619. margin-left: 10rpx;
  620. }
  621. .hjtIcon{
  622. width: 10rpx;height: 20rpx;
  623. margin-top: 8rpx;
  624. margin-left: 10rpx;
  625. }
  626. .tkPrice1{
  627. font-size: 26rpx;
  628. color: #222222;
  629. }
  630. .tkPrice2{
  631. font-size: 24rpx;
  632. color: #9A9A9A;
  633. padding-top: 8rpx;
  634. }
  635. .tkPriceNum{
  636. font-size: 26rpx;
  637. color: #EC0F0A;
  638. line-height: 50rpx;
  639. }
  640. .textareaNum{
  641. padding-bottom: 18rpx;
  642. }
  643. .tkSm{
  644. font-size: 28rpx;
  645. color: #222222;
  646. padding-top: 18rpx;
  647. }
  648. .tktextarea{
  649. font-size: 28rpx;
  650. background: #F7F7F7;
  651. border-radius: 14rpx;
  652. margin-top: 20rpx;
  653. width: 610rpx;padding: 24rpx;
  654. margin-bottom: 10rpx;
  655. line-height: 40rpx;
  656. }
  657. .textareaNum{
  658. font-size: 24rpx;
  659. color: #9A9A9A;
  660. display: flex;justify-content: flex-end;
  661. }
  662. .cont{
  663. padding: 20rpx 24rpx;
  664. }
  665. .itemBox{
  666. background: #FFFFFF;
  667. border-radius: 16rpx;padding: 24rpx;
  668. }
  669. .itemIMg{
  670. width: 128rpx;
  671. height: 128rpx;border-radius: 10rpx;
  672. }
  673. .flex{
  674. display: flex;
  675. }
  676. .itemRight{
  677. width: 450rpx;padding-left: 24rpx;
  678. }
  679. .itemName{
  680. font-weight: 500;
  681. font-size: 28rpx;
  682. color: #222222;
  683. line-height: 40rpx;
  684. }
  685. .buyType{
  686. padding: 0 8rpx;text-align: center;
  687. height: 32rpx;line-height: 34rpx;
  688. border-radius: 5rpx;
  689. border: 1px solid #FF0035;font-size: 22rpx;
  690. color: #FF0035;
  691. margin-top: 10rpx;
  692. }
  693. .priceBox{
  694. display: flex;justify-content: space-between;padding-top: 40rpx;
  695. }
  696. .price{
  697. font-size: 28rpx;
  698. color: #222222;
  699. line-height: 50rpx;
  700. }
  701. .itemNum{
  702. font-size: 34rpx;line-height: 50rpx;
  703. color: #686868;
  704. }
  705. .itemnotes{
  706. font-size: 24rpx;padding-top: 12rpx;
  707. color: #FFC107;
  708. }
  709. .mealBox{
  710. background: #FFFFFF;
  711. padding: 20rpx 24rpx;
  712. margin-top: 20rpx;
  713. font-size: 26rpx;
  714. color: #666666;
  715. border-radius: 16rpx;
  716. }
  717. .fwlcTitle{
  718. color: #333333;font-size: 30rpx;font-weight: 500;
  719. padding-bottom: 20rpx;
  720. }
  721. .mealTop{
  722. display: flex;
  723. justify-content: space-between;
  724. height: 72rpx;
  725. line-height: 72rpx;
  726. font-weight: 500;
  727. font-size: 26rpx;
  728. color: #222222;
  729. font-size: 26rpx;
  730. padding: 0 20rpx;
  731. }
  732. .mealNum{
  733. text-align: center;
  734. width: 120rpx;
  735. }
  736. .mealexpire{
  737. text-align: center; width: 120rpx;
  738. }
  739. .mealName{
  740. width: 460rpx;
  741. }
  742. .mealTop2{
  743. display: flex;
  744. justify-content: space-between;
  745. height: 72rpx;
  746. line-height: 72rpx;
  747. font-weight: 500;
  748. font-size: 26rpx;
  749. color: #222222;
  750. font-size: 26rpx;
  751. padding: 0 20rpx;
  752. background: #FFF6DB;
  753. }
  754. .mealXj{
  755. background: #FFFCF3;
  756. }
  757. .xjLine{
  758. display: flex;
  759. font-weight: 500;
  760. font-size: 26rpx;
  761. color: #222222;
  762. padding: 20rpx 20rpx;
  763. }
  764. .xjyd{
  765. width: 8rpx;
  766. height: 8rpx;
  767. background: #FABF1B;
  768. border-radius: 50rpx;
  769. margin-top: 12rpx;
  770. margin-right: 10rpx;
  771. }
  772. .mealMs{
  773. background: #FFFFFF;
  774. padding: 20rpx;
  775. font-weight: 400;
  776. font-size: 24rpx;
  777. color: #9A9A9A;
  778. line-height: 38rpx;
  779. }
  780. .goodsBox{
  781. padding:18rpx 24rpx;font-size: 28rpx;
  782. color: #222222;background: #FFFFFF;margin-top: 20rpx;
  783. border-radius: 16rpx;
  784. }
  785. .goodsline{
  786. justify-content: space-between;
  787. padding: 18rpx 0;
  788. }
  789. .bottom{
  790. display: flex;
  791. justify-content: space-between;
  792. width: 100%;
  793. padding:30rpx 0 10rpx 0;
  794. }
  795. .reasonBottom{
  796. position: absolute;
  797. left: 0;bottom: 0;
  798. padding: 30rpx 0;
  799. padding-bottom: constant(safe-area-inset-bottom);
  800. padding-bottom: env(safe-area-inset-bottom);
  801. width: 100%;
  802. background: #FFFFFF;
  803. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153, 153, 153, 0.2);
  804. }
  805. .reasonBottomBtn{
  806. width: 661rpx;
  807. height: 86rpx;
  808. background: #EC0F0A;
  809. border-radius: 43rpx;
  810. line-height: 86rpx;
  811. text-align: center;
  812. font-size: 32rpx;
  813. color: #FFFFFF;
  814. margin: 0 auto;
  815. }
  816. .bottomBox{
  817. position: fixed;
  818. left: 0;bottom: 0;
  819. padding-bottom: constant(safe-area-inset-bottom);
  820. padding-bottom: env(safe-area-inset-bottom);
  821. width: 100%;
  822. background: #FFFFFF;
  823. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153, 153, 153, 0.2);
  824. }
  825. .bottomMS{
  826. font-size: 24rpx;
  827. color: #706F77;
  828. padding-top: 20rpx;padding-left: 32rpx;
  829. }
  830. .bleft{
  831. font-weight: 500;
  832. font-size: 26rpx;
  833. color: #222222;
  834. line-height: 86rpx;
  835. padding-left: 32rpx;
  836. }
  837. .Btn{
  838. width: 467rpx;
  839. height: 86rpx;text-align: center;
  840. line-height: 86rpx;
  841. background: #FCD903;
  842. border-radius: 43rpx;
  843. font-size: 32rpx;
  844. color: #110B01;
  845. margin-right: 36rpx;
  846. }
  847. .mealBox img{
  848. width: 100%;
  849. }
  850. .mealBox image{
  851. width: 100%;
  852. }
  853. .numJsbox{
  854. display: flex;overflow: hidden;
  855. }
  856. .buyCont{
  857. position: absolute;
  858. left: 0;
  859. bottom: 0;
  860. width: 750rpx;
  861. height: 688rpx;
  862. background: #FFFFFF;
  863. border-radius: 26rpx 26rpx 0px 0px;
  864. }
  865. .buyNumBox{
  866. padding: 30rpx;
  867. padding-top: 10rpx;
  868. padding-bottom: 70rpx;
  869. }
  870. .buyContCh{
  871. position: absolute;
  872. top: 53rpx;
  873. right: 36rpx;
  874. width: 36rpx;
  875. height: 36rpx;
  876. }
  877. .goodsnum{
  878. width: 44rpx;
  879. height: 44rpx;
  880. background: #F4F5F7;
  881. line-height: 44rpx;
  882. text-align: center;
  883. font-weight: 500;
  884. color: #333333;
  885. font-size: 24rpx;
  886. margin: 0 4rpx;
  887. border-left:1px solid #dddddd;
  888. border-right:1px solid #dddddd;
  889. }
  890. .goodsnumInput{
  891. width: 44rpx;
  892. height: 44rpx;
  893. background: #FFFFFF;
  894. line-height: 44rpx;
  895. text-align: center;
  896. font-weight: 500;
  897. color: #333333;
  898. font-size: 24rpx;
  899. }
  900. .numJj{
  901. width: 44rpx;
  902. height: 44rpx;
  903. background: #ffffff;
  904. border-radius: 0px 6rpx 6rpx 0px;
  905. text-align: center;
  906. line-height: 44rpx;
  907. font-size: 32rpx;
  908. color: #999999;
  909. }
  910. .numJsbox{
  911. border: 1px solid #dddddd;
  912. border-radius: 6rpx;
  913. }
  914. .imgBox {
  915. display: flex;
  916. flex-wrap: wrap;
  917. padding-top: 15rpx;
  918. }
  919. .imgLine {
  920. position: relative;
  921. margin-right: 20.6rpx;
  922. }
  923. .img4{
  924. margin-right: 0rpx;
  925. }
  926. .itemImg {
  927. width: 150rpx;
  928. height: 150rpx;
  929. margin-bottom: 20rpx;
  930. }
  931. .delImg {
  932. width: 32rpx;
  933. height: 32rpx;
  934. position: absolute;
  935. right: 0rpx;
  936. top: 0rpx;
  937. }
  938. .gaodu{
  939. height: 200rpx;
  940. padding-bottom: constant(safe-area-inset-bottom);
  941. padding-bottom: env(safe-area-inset-bottom);
  942. }
  943. .jiekouLIne{
  944. padding-bottom: 36rpx;
  945. }
  946. .xuanzhong{
  947. color: #222222;
  948. }
  949. </style>