createOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. <template>
  2. <view class="page" :style="{'height':(h)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar :title="!dataForm.id?'新增订单':!orderStatus?'编辑订单':'办理入住'" :showIcon="true"></c-nav-bar>
  4. <view class="box box1">
  5. <view class="tit">预订信息</view>
  6. <u-cell-group :border="false" customStyle="margin:0 -30rpx">
  7. <u-cell>
  8. <text>*</text>
  9. <text slot="icon" class="label">姓名</text>
  10. <view slot="title" class="title">
  11. <u--input border="none" class="input" inputAlign="right" placeholderStyle="font-size:26rpx"
  12. placeholder="请输入姓名" v-model="dataForm.guestName"></u--input>
  13. </view>
  14. </u-cell>
  15. <u-cell>
  16. <text slot="icon" class="label">手机号码</text>
  17. <view slot="title" class="title">
  18. <u--input border="none" class="input" inputAlign="right" placeholderStyle="font-size:26rpx"
  19. placeholder="请输入手机号码" v-model="dataForm.guestPhone"></u--input>
  20. </view>
  21. </u-cell>
  22. <u-cell :isLink="true" @click="showLaiyuan=true">
  23. <text slot="icon" class="label">订单来源</text>
  24. <view slot="title" class="title">
  25. {{dataForm.guestSourceName||''}}
  26. </view>
  27. </u-cell>
  28. </u-cell-group>
  29. </view>
  30. <view class="box">
  31. <view class="tit tit2">入住登记<u-icon @click="goStayCheck()" name="plus-circle" label="添加入住人"
  32. labelColor="#1372FF" labelSize="24" color="1372FF" size="30"></u-icon></view>
  33. <view class="perItem" v-for="(item,index) in dataForm.detailFormList[0].checkInPersonList">
  34. <text>{{item.checkInName}}</text>
  35. <text style="margin-left: 40px;">{{item.idCard}}</text>
  36. <u-icon name="close-circle-fill" color="#ddd" size="30" @click="delPer(index)"></u-icon>
  37. </view>
  38. </view>
  39. <view class="box box1">
  40. <view class="tit">房间信息</view>
  41. <view class="dateBetween">
  42. <view class="start" v-if="dataForm.arriveDate">
  43. <text>入住日期</text>
  44. <text class="txt">{{dataForm.arriveDate.substring(5,10)}}</text>
  45. </view>
  46. <view class="dateNum">共{{dataForm.num}}晚</view>
  47. <view class="end" v-if="dataForm.leaveDate">
  48. <text>离店日期</text>
  49. <text @click="showPick()" class="txt">{{dataForm.leaveDate.substring(5,10)}}</text>
  50. <u-datetime-picker :show="leaveDateShow" mode="date" ref="picker"
  51. @cancel="leaveDateShow=false"
  52. @confirm="credentialsConfirmtime" :defaultIndex="credentialsDefaulttime"></u-datetime-picker>
  53. </view>
  54. </view>
  55. <u-cell-group :border="false" customStyle="margin:0 -30rpx">
  56. <!-- <u-cell>
  57. <text slot="icon" class="label">入住日期</text>
  58. <view slot="title" class="title">
  59. {{dataForm.arriveDate}}
  60. </view>
  61. </u-cell>
  62. <u-cell>
  63. <text slot="icon" class="label">离店日期</text>
  64. <view slot="title" class="title">
  65. {{dataForm.leaveDate}}
  66. </view>
  67. </u-cell> -->
  68. <!-- <u-cell>
  69. <text slot="icon" class="label">共几晚</text>
  70. <view slot="title" class="title">
  71. {{dataForm.num}}
  72. </view>
  73. </u-cell> -->
  74. <u-cell isLink="true" @click="checkInTypeShow=true">
  75. <text slot="icon" class="label">入住类型</text>
  76. <view slot="title" class="title">
  77. {{dataForm.detailFormList[0].checkInTypeName}}
  78. </view>
  79. </u-cell>
  80. <u-cell>
  81. <text slot="icon" class="label">房间类型</text>
  82. <view slot="title" class="title">
  83. {{dataForm.houseBaseName}}
  84. </view>
  85. </u-cell>
  86. <u-cell>
  87. <text slot="icon" class="label">房间号</text>
  88. <view slot="title" class="title">
  89. {{dataForm.detailFormList[0].roomNumber}}
  90. </view>
  91. </u-cell>
  92. <u-cell>
  93. <text slot="icon" class="label">房价</text>
  94. <view slot="title" class="title">
  95. {{dataForm.detailFormList[0].roomAmount}}
  96. </view>
  97. </u-cell>
  98. <u-cell>
  99. <text slot="icon" class="label">备注</text>
  100. <view slot="title" class="title">
  101. <u--input border="none" class="input" inputAlign="right" placeholderStyle="font-size:26rpx"
  102. type="textarea" placeholder="请输入" v-model="dataForm.remarks" height="200"></u--input>
  103. </view>
  104. </u-cell>
  105. </u-cell-group>
  106. </view>
  107. <view class="box">
  108. <view class="tit tit2"><text>消费信息</text> <u-icon @click="addBreast()" name="plus-circle" label="添加消费"
  109. labelColor="#1372FF" labelSize="24" color="1372FF" size="30"></u-icon></view>
  110. <u-swipe-action>
  111. <u-swipe-action-item :show="item.show" :index="index" class=""
  112. v-for="(item, index) in dataForm.detailFormList[0].breakfastData" :key="index" @click="click(index)"
  113. :options="options">
  114. <view class="goodsInfo item">
  115. <view class="title-wrap">
  116. <text class="title u-line-2">{{item.breakfastName}}/{{item.num}}/{{item.price}}</text>
  117. </view>
  118. </view>
  119. </u-swipe-action-item>
  120. <u-swipe-action-item :show="item.show" :index="index2" class=""
  121. v-for="(item, index2) in dataForm.detailFormList[0].otherData" :key="index2" @click="click2(index2)"
  122. :options="options">
  123. <view class="goodsInfo item">
  124. <view class="title-wrap">
  125. <text class="title u-line-2">{{item.projectName}}/{{item.num}}/{{item.defaultPrice}}</text>
  126. </view>
  127. </view>
  128. </u-swipe-action-item>
  129. </u-swipe-action>
  130. </view>
  131. <view class="box">
  132. <view class="tit tit2"><text>收款信息</text> <u-icon @click="addpay()" name="plus-circle" label="添加收款"
  133. labelColor="#1372FF" labelSize="24" color="1372FF" size="30"></u-icon></view>
  134. <u-swipe-action>
  135. <u-swipe-action-item :show="item.show" :index="index" class=""
  136. v-for="(item, index) in dataForm.flowRecord" :key="index" @click="click3(index)" :options="options">
  137. <view class="goodsInfo item">
  138. <view class="title-wrap">
  139. <text
  140. class="title u-line-2">{{item.flowTypeName}}/{{item.payTypeName}}/{{item.amount}}</text>
  141. </view>
  142. </view>
  143. </u-swipe-action-item>
  144. </u-swipe-action>
  145. </view>
  146. <view class="footer">
  147. <view class="total"><text>订单金额:</text><text>¥{{totalMOney}}</text></view>
  148. <view class="btns">
  149. {{today}}
  150. <text @click="confirmOrder(2)" v-if="today==1">直接入住</text>
  151. <text @click="confirmOrder(1)">提交</text>
  152. </view>
  153. </view>
  154. <u-picker :itemHeight="88" :immediateChange="true" :show="showLaiyuan" :columns="laiyuan" title="来源选择"
  155. keyName="guestSource" :defaultIndex="passengerDefault" @cancel="showLaiyuan=false;"
  156. @confirm="passengerConfirm"></u-picker>
  157. <u-picker :itemHeight="88" :immediateChange="true" :show="checkInTypeShow" :columns="checkInType" title="入住类型选择"
  158. keyName="label" :defaultIndex="passengerDefault2" @cancel="checkInTypeShow=false;"
  159. @confirm="passengerConfirm2"></u-picker>
  160. </view>
  161. </template>
  162. <script>
  163. export default {
  164. data() {
  165. return {
  166. credentialsDefaulttime:[10,1,0],
  167. titleStyle: {
  168. fontSize: '34rpx',
  169. fontWeight: "bold",
  170. },
  171. showLaiyuan: false,
  172. checkInTypeShow: false,
  173. passengerDefault: [0],
  174. passengerDefault2: [0],
  175. leaveDateShow: false,
  176. options: [{
  177. text: '删除',
  178. style: {
  179. backgroundColor: '#dd524d'
  180. }
  181. }],
  182. orderStatus: '',
  183. totalMOney: 0, //订单总金额
  184. dataForm: {
  185. arriveDate: "",
  186. detailFormList: [{
  187. breakfastAmount: 0,
  188. checkInPersonList: [],
  189. checkInType: 0,
  190. checkInTypeName: '',
  191. id:0,
  192. otherAmount: 0,
  193. roomAmount: 0,
  194. roomIds: "",
  195. breakfastData: [],
  196. otherData: [],
  197. roomNumber: "",
  198. }],
  199. flowRecord: [],
  200. guestName: "",
  201. guestPhone: "",
  202. guestSourceId: null,
  203. guestSourceName: null,
  204. homestayId: uni.getStorageSync('homestayId'),
  205. houseBaseId: 0,
  206. houseBaseName: '',
  207. leaveDate: "",
  208. num: 0,
  209. orderStatus: null,
  210. remarks: "",
  211. },
  212. checkInType: [
  213. [{
  214. label: '正常入住',
  215. val: 1
  216. }, {
  217. label: '自用房',
  218. val: 2
  219. },
  220. {
  221. label: '免费入住',
  222. val: 3
  223. }
  224. ]
  225. ],
  226. roomId: '',
  227. laiyuan: [
  228. []
  229. ],
  230. currentDate: '',
  231. today: ''
  232. }
  233. },
  234. onReady() {
  235. // 微信小程序需要用此写法
  236. },
  237. onLoad(opt) {
  238. this.getLaiyuan();
  239. if (opt.roomId) {
  240. this.roomId = opt.roomId.split(',');
  241. }
  242. if (opt.id) { //编辑
  243. if (opt.orderStatus) {
  244. this.orderStatus = opt.orderStatus;
  245. }
  246. console.log(this.orderStatus)
  247. this.dataForm.id = opt.id;
  248. this.getInfo2()
  249. } else {
  250. //新增获取简单信息
  251. this.getInfo();
  252. }
  253. // 当前日期
  254. this.getleftData();
  255. let myDate = new Date();
  256. let year = myDate.getFullYear();
  257. let mon = myDate.getMonth() + 1;
  258. let day = myDate.getDate();
  259. mon = mon > 9 ? mon : '0' + mon;
  260. day = day > 9 ? day : '0' + day;
  261. this.currentDate = year + '-' + mon + '-' + day;
  262. },
  263. methods: {
  264. showPick(){
  265. this.leaveDateShow=true;
  266. this.$refs.picker.innerValue=new Date().getTime()
  267. },
  268. //i计算天数
  269. getDaysBetween(dateString1,dateString2){
  270. var startDate =Date.parse(dateString1);
  271. var endDate =Date.parse(dateString2);
  272. if (startDate>endDate){
  273. return 0;
  274. }
  275. if (startDate==endDate){
  276. return 1;
  277. }
  278. var days=(endDate - startDate)/(1*24*60*60*1000);
  279. this.dataForm.num=days;
  280. //return days;
  281. },
  282. credentialsConfirmtime(e) {
  283. // 创建一个Date对象并传入时间戳
  284. const date = new Date(e.value);
  285. // 使用Date对象的方法获取年、月、日、小时、分钟和秒
  286. const year = date.getFullYear();
  287. const month = ('0' + (date.getMonth() + 1)).slice(-2);
  288. const day = ('0' + date.getDate()).slice(-2);
  289. // 格式化时间
  290. const formattedTime = `${year}-${month}-${day}`;
  291. this.dataForm.leaveDate = formattedTime;
  292. this.getDaysBetween(this.dataForm.arriveDate,this.dataForm.leaveDate);
  293. this.leaveDateShow = false;
  294. },
  295. compareDate(data) {
  296. if (
  297. new Date(data).getTime() < new Date(this.currentDate).getTime()
  298. ) {
  299. this.today = -1;
  300. //v.push("-1"); //有时间小于今天
  301. }
  302. if (
  303. new Date(newval[i]).getTime() == new Date(this.currentDate).getTime()
  304. ) {
  305. this.today = 1;
  306. v.push("1"); //有时间等于今天
  307. }
  308. if (
  309. new Date(newval[i]).getTime() > new Date(this.currentDate).getTime()
  310. ) {
  311. this.today = 2;
  312. //v.push("2"); //有时间大于今天
  313. }
  314. },
  315. //添加入住人
  316. goStayCheck() {
  317. let list = JSON.stringify(this.dataForm);
  318. uni.navigateTo({
  319. url: '/pages/house/stayCheck?orderInfo=' + list,
  320. events: {
  321. addSuccess: data => {
  322. this.dataForm.detailFormList[0].checkInPersonList = data.data || [];
  323. console.log(this.dataForm.detailFormList[0].checkInPersonList)
  324. }
  325. },
  326. })
  327. },
  328. //添加早餐
  329. addBreast() {
  330. let list = JSON.stringify(this.dataForm.detailFormList[0].breakfastData);
  331. let list2 = JSON.stringify(this.dataForm.detailFormList[0].otherData)
  332. uni.navigateTo({
  333. url: '/pages/house/breast?list1=' + list + '&list2=' + list2,
  334. events: {
  335. addSuccess: data => {
  336. this.dataForm.detailFormList[0].breakfastData = data.data1.filter((item) => item
  337. .num && item
  338. .num != 0);
  339. this.dataForm.detailFormList[0].otherData = data.data2.filter((item) => item.num &&
  340. item.num !=
  341. 0);
  342. this.totalMOney = this.dataForm.detailFormList[0].roomAmount;
  343. this.dataForm.detailFormList[0].breakfastAmount = 0;
  344. this.dataForm.detailFormList[0].otherAmount = 0;
  345. for (let i = 0; i < this.dataForm.detailFormList[0].breakfastData.length; i++) {
  346. this.totalMOney += parseFloat(this.dataForm.detailFormList[0].breakfastData[i]
  347. .price) * this.dataForm.detailFormList[0].breakfastData[i].num;
  348. this.dataForm.detailFormList[0].breakfastAmount += parseFloat(this.dataForm
  349. .detailFormList[0].breakfastData[i]
  350. .price) * this.dataForm.detailFormList[0].breakfastData[i].num;
  351. }
  352. for (let i = 0; i < this.dataForm.detailFormList[0].otherData.length; i++) {
  353. this.totalMOney += parseFloat(this.dataForm.detailFormList[0].otherData[i]
  354. .defaultPrice) * this.dataForm.detailFormList[0].otherData[i].num;
  355. this.dataForm.detailFormList[0].otherAmount += parseFloat(this.dataForm
  356. .detailFormList[0].otherData[i]
  357. .defaultPrice) * this.dataForm.detailFormList[0].otherData[i].num;
  358. }
  359. }
  360. }
  361. })
  362. },
  363. //添加收款
  364. addpay() {
  365. uni.navigateTo({
  366. url: '/pages/house/payAdd?money=' + this.totalMOney + '&list=' +
  367. JSON.stringify(this.dataForm.flowRecord),
  368. events: {
  369. addSuccess: data => {
  370. if (data.data.amount != 0) {
  371. this.dataForm.flowRecord = this.dataForm.flowRecord || [];
  372. this.dataForm.flowRecord.push(data.data)
  373. // if(data.data.flowType==1){ //收款
  374. // this.totalMOney+=parseFloat(data.data.amount);
  375. // }else{
  376. // this.totalMOney=parseFloat(data.data.amount);
  377. // }
  378. }
  379. }
  380. }
  381. })
  382. },
  383. delPer(index) {
  384. this.dataForm.detailFormList[0].checkInPersonList.splice(index, 1)
  385. },
  386. confirmOrder(orderStatus) {
  387. if(!this.dataForm.guestName){
  388. this.$showToast('请输入姓名');
  389. return
  390. }
  391. if(!this.dataForm.guestPhone){
  392. this.$showToast('请输入手机号');
  393. return
  394. }
  395. if(!this.dataForm.guestSourceName){
  396. this.$showToast('请选择来源');
  397. return
  398. }
  399. if(!this.dataForm.detailFormList[0].checkInPersonList||this.dataForm.detailFormList[0].checkInPersonList.length==0){
  400. this.$showToast('请添加入住人');
  401. return
  402. }
  403. //orderStatus//预约入住 1,直接入住2
  404. if (orderStatus) {
  405. this.dataForm.orderStatus = orderStatus;
  406. }
  407. let url = '';
  408. if (this.dataForm.id) {
  409. url = '/merchant/hotel/order/updOrder'
  410. if (this.orderStatus) {
  411. this.dataForm.orderStatus = this.orderStatus;
  412. }
  413. } else {
  414. url = '/merchant/hotel/order/placeOrder'
  415. }
  416. this.$api.post(url, this.dataForm).then(res => {
  417. if (res.data.code == 0) {
  418. this.$showToast('操作成功');
  419. setTimeout(() => {
  420. uni.reLaunch({
  421. url: '/pagesMy/orderList/orderList'
  422. })
  423. }, 1500)
  424. }
  425. })
  426. },
  427. click(index) {
  428. this.dataForm.detailFormList[0].breakfastAmount -= this.dataForm.detailFormList[0].breakfastData[index]
  429. .price * this.dataForm.detailFormList[0].breakfastData[index].num;
  430. this.totalMOney -= this.dataForm.detailFormList[0].breakfastData[index].price * this.dataForm
  431. .detailFormList[0].breakfastData[index].num;
  432. this.dataForm.detailFormList[0].breakfastData.splice(index, 1);
  433. },
  434. click2(index) {
  435. this.dataForm.detailFormList[0].otherAmount -= this.dataForm.detailFormList[0].otherData[index]
  436. .defaultPrice * this.dataForm.detailFormList[0].otherData[index].num;
  437. this.totalMOney -= this.dataForm.detailFormList[0].otherData[index].defaultPrice * this.dataForm
  438. .detailFormList[0].otherData[index].num;
  439. this.dataForm.detailFormList[0].otherData.splice(index, 1);
  440. },
  441. click3(index) {
  442. this.dataForm.flowRecord.splice(index, 1);
  443. },
  444. getLaiyuan() {
  445. this.$api.get("/merchant/hotel/room/state/getSourceDownBox", {
  446. homestayId: this.dataForm.homestayId,
  447. })
  448. .then((res) => {
  449. if (res.data.code == 0) {
  450. this.laiyuan = [res.data.data];
  451. }
  452. });
  453. },
  454. getInfo2() { //详情信息
  455. this.$api.get('/merchant/hotel/order/getOrderDetail/' + this.dataForm.id).then(res => {
  456. console.log(res)
  457. if (res.data.code == 0) {
  458. this.dataForm = {
  459. ...this.dataForm,
  460. ...res.data.data,
  461. };
  462. this.totalMOney = this.dataForm.orderAmount;
  463. this.compareDate(this.dataForm.arriveDate)
  464. }
  465. })
  466. },
  467. // 房型列表
  468. getInfo() {
  469. this.$api.post('/merchant/hotel/order/getRoomInfoList', this.roomId).then(res => {
  470. console.log(res)
  471. if (res.data.code == 0) {
  472. this.dataForm.detailFormList[0].roomIds = res.data.data.roomIds;
  473. this.dataForm.detailFormList[0].roomNumber = res.data.data.roomNumber;
  474. this.dataForm.detailFormList[0].checkInType = res.data.data.checkInType;
  475. this.dataForm.detailFormList[0].checkInTypeName = this.checkInType[0].filter((item => item
  476. .val == res.data.data.checkInType))[0].label;
  477. this.dataForm.detailFormList[0].roomAmount = res.data.data.roomAmount;
  478. this.dataForm.arriveDate = res.data.data.arriveDate;
  479. this.dataForm.leaveDate = res.data.data.leaveDate;
  480. this.dataForm.houseBaseId = res.data.data.houseBaseId;
  481. this.dataForm.houseBaseName = res.data.data.houseBaseName;
  482. this.dataForm.num = res.data.data.num;
  483. this.totalMOney = res.data.data.roomAmount;
  484. }
  485. })
  486. },
  487. // 来源
  488. passengerConfirm(e) {
  489. this.dataForm.guestSourceId = e.value[0].id;
  490. this.dataForm.guestSourceName = e.value[0].guestSource;
  491. this.showLaiyuan = false;
  492. },
  493. //入住类型
  494. passengerConfirm2() {
  495. this.dataForm.detailFormList[0].checkInType = e.value[0].val;
  496. this.dataForm.detailFormList[0].checkInTypeName = e.value[0].guestSource;
  497. this.checkInTypeShow = false;
  498. }
  499. }
  500. }
  501. </script>
  502. <style>
  503. .u-swipe-action-item__right__button__wrapper__text {
  504. font-size: 28rpx !important;
  505. }
  506. </style>
  507. <style lang="scss" scoped>
  508. .u-swipe-action-item__right__button__wrapper {
  509. height: 36px
  510. }
  511. .u-swipe-action-item__right__button__wrapper__text {
  512. font-size: 28rpx;
  513. }
  514. .footer {
  515. position: fixed;
  516. bottom: 0;
  517. width: 100%;
  518. background-color: #fff;
  519. left: 0;
  520. z-index: 99;
  521. padding: 30rpx;
  522. box-sizing: border-box;
  523. .total {
  524. text {
  525. color: #1372FF;
  526. font-size: 32rpx;
  527. &:first-child {
  528. color: #333;
  529. }
  530. }
  531. }
  532. .btns {
  533. display: flex;
  534. justify-content: space-between;
  535. margin-top: 30rpx;
  536. text {
  537. display: inline-block;
  538. width: 48%;
  539. height: 96rpx;
  540. line-height: 96rpx;
  541. text-align: center;
  542. font-size: 34rpx;
  543. border-radius: 48rpx;
  544. border: 1rpx solid #D1D1D1;
  545. color: #999;
  546. flex: 1;
  547. &:last-child {
  548. background-color: #1372FF;
  549. color: #fff;
  550. }
  551. }
  552. }
  553. }
  554. .u-cell__body {
  555. padding: 0 !important;
  556. }
  557. .page {
  558. background: #F3F4F4;
  559. padding-bottom: 260rpx;
  560. box-sizing: border-box;
  561. overflow-y: auto;
  562. overflow-x: auto;
  563. }
  564. .box {
  565. background-color: #fff;
  566. margin: 20rpx auto 0;
  567. border-radius: 10rpx;
  568. width: 96%;
  569. padding: 0 30rpx 30rpx;
  570. box-sizing: border-box;
  571. .label {
  572. color: #333;
  573. font-size: 30rpx;
  574. }
  575. &.box1 {
  576. padding: 0 30rpx;
  577. .title {
  578. text-align: right;
  579. }
  580. }
  581. .title {
  582. color: #999;
  583. }
  584. }
  585. .tit,
  586. .tit2 {
  587. font-size: 32rpx;
  588. font-weight: bold;
  589. padding-top: 30rpx;
  590. color: #333;
  591. margin-bottom: 10rpx;
  592. }
  593. .tit2 {
  594. display: flex;
  595. justify-content: space-between;
  596. align-items: center;
  597. }
  598. .goodsInfo.item {
  599. padding: 20rpx 0;
  600. text {
  601. font-size: 30rpx;
  602. }
  603. }
  604. .perItem {
  605. display: flex;
  606. align-items: center;
  607. padding: 26rpx 0;
  608. border-bottom: 1rpx solid #E1E1E1;
  609. &:last-child{
  610. border: 0;
  611. }
  612. text {
  613. font-size: 30rpx;
  614. color: #333;
  615. &:nth-of-type(2) {
  616. flex: 1;
  617. margin: 0 10rpx;
  618. }
  619. }
  620. }
  621. .dateBetween {
  622. display: flex;
  623. justify-content: space-between;
  624. align-items: center;
  625. padding: 20rpx 0 30rpx;
  626. border-bottom: 1rpx solid #E1E1E1;
  627. .start,
  628. .end {
  629. text-align: center;
  630. display: flex;
  631. flex-direction: column;
  632. justify-content: center;
  633. text {
  634. &.txt {
  635. font-size: 40rpx;
  636. font-weight: bold;
  637. margin-top: 20rpx;
  638. }
  639. }
  640. }
  641. .dateNum {
  642. text-align: center;
  643. border-radius: 30rpx;
  644. display: inline-block;
  645. width: 120rpx;
  646. height: 50rpx;
  647. line-height: 50rpx;
  648. font-size: 30rpx;
  649. color: #333;
  650. background-color: #F9FAFC;
  651. }
  652. }
  653. </style>