createOrder.vue 20 KB

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