refund.vue 22 KB

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