diff --git a/common/api.js b/common/api.js index 2855811..47f4c8b 100644 --- a/common/api.js +++ b/common/api.js @@ -1,7 +1,7 @@ // appId: 正式 null | 测试 wxeb58570b5e04d147 -export const DEV = "prod"; // dev 测试 | prod 正式 +export const DEV = "dev"; // dev 测试 | prod 正式 export const VERSION = '1.0.0'; // 版本号 -export const DEVURL = 'https://hainan.lanzulive.com'; // 测试服请求地址 +export const DEVURL = 'https://yytx.eugyl.com'; // 测试服请求地址 // export const DEVURL = 'http://hainan.com'; // 测试服请求地址 export const PRODURL = 'https://yytx.eugyl.com'; // 正式服请求地址 diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue index 16ae849..fafc89b 100644 --- a/pages/goodsDetail/index.vue +++ b/pages/goodsDetail/index.vue @@ -74,7 +74,8 @@ - + + @@ -93,13 +94,13 @@ 使用时间 - 使用时间 + 使用时间 - - + + {{go_date}} @@ -151,21 +152,6 @@ - - - - - {{item.name}} - - - - 09-26 - ¥{{days.price}} - {{days.stock}} - - - - 酒店设施 @@ -469,7 +455,9 @@ total_hotel_orginalprice: 0, live_index: 0, leave_index: 0, - hotel_specid: [] + hotel_specid: [], + //uview picker + show: false, } }, components: {zwyCalendar}, @@ -487,6 +475,10 @@ } }, methods: { + change(e) { + console.log(e); + this.go_date = e.result + }, compareDate(val) { var nowTime = new Date(new Date().toLocaleDateString()).getTime(); let oldTime = new Date(new Date(val).toLocaleDateString()).getTime(); @@ -929,85 +921,8 @@ } diff --git a/uview-ui/components/u-calendar/u-calendar.vue b/uview-ui/components/u-calendar/u-calendar.vue index 6602bd0..80ed3ee 100644 --- a/uview-ui/components/u-calendar/u-calendar.vue +++ b/uview-ui/components/u-calendar/u-calendar.vue @@ -38,10 +38,13 @@ }" :style="{backgroundColor: getColor(index,1)}" v-for="(item, index) in daysArr" :key="index" @tap="dateClick(index)"> - {{ index + 1 }} + + {{ index + 1 }} + ¥788 + - {{startText}} - {{endText}} + {{month}} @@ -224,7 +227,12 @@ toolTip: { type: String, default: '选择日期' - } + }, + //每月的价钱 + monthPrice: { + type: Array, + default: [] + }, }, data() { return { @@ -251,7 +259,8 @@ isStart: true, min: null, max: null, - weekDayZh: ['日', '一', '二', '三', '四', '五', '六'] + weekDayZh: ['日', '一', '二', '三', '四', '五', '六'], + today_index: 0, }; }, computed: { @@ -270,6 +279,8 @@ }, created() { this.init() + console.log('当前规格的价格',this.monthPrice) + console.log('当前aaaa的天数',this.daysArr) }, methods: { getColor(index, type) { @@ -382,7 +393,8 @@ }, changeData() { this.days = this.getMonthDay(this.year, this.month); - this.daysArr=this.generateArray(1,this.days) + this.daysArr=this.generateArray(1,this.days); + console.log('当前天数',this.daysArr) this.weekday = this.getWeekday(this.year, this.month); this.weekdayArr=this.generateArray(1,this.weekday) this.showTitle = `${this.year}年${this.month}月`; @@ -391,6 +403,7 @@ } }, dateClick: function(day) { + this.today_index = day; day += 1; if (!this.openDisAbled(this.year, this.month, day)) { this.day = day;