refund.vue 22 KB

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