diff --git a/compoents/addressAdd.vue b/compoents/addressAdd.vue new file mode 100644 index 0000000..dd80ecb --- /dev/null +++ b/compoents/addressAdd.vue @@ -0,0 +1,383 @@ + + + + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..922878f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "ydui-district": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/ydui-district/-/ydui-district-1.1.0.tgz", + "integrity": "sha512-MBhvfaR5Gkn6MUmEnrH1A7IFB5igALuDgtIF+gz3dRwNwW9+KOmih7z+xZFfGluMsEbWaT7C3lWOckYsLZQnFg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..e314e1f --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "ydui-district": "^1.1.0" + } +} diff --git a/pages.json b/pages.json index 9e1f013..0737010 100644 --- a/pages.json +++ b/pages.json @@ -56,6 +56,24 @@ "navigationStyle": "custom" } }, + { + "path": "techan/detail", + "style": { + "navigationBarTitleText": "文创特产详情" + } + }, + { + "path": "techan/order", + "style": { + "navigationBarTitleText": "订单填写" + } + }, + { + "path": "techan/selfPickUpPoint", + "style": { + "navigationBarTitleText": "选择自提点" + } + }, { "path": "line/lineList", "style": { @@ -87,6 +105,32 @@ "style": { "navigationBarTitleText": "常用信息" } + }, + { + "path": "ticketBooking/ticketBooking", + "style": { + "navigationBarTitleText": "门票预订", + "navigationStyle": "custom" + } + }, + { + "path": "ticketBooking/detail", + "style": { + "navigationBarTitleText": "景区详情" + } + }, + { + "path": "ticketBooking/order", + "style": { + "navigationBarTitleText": "门票预订" + } + }, + { + "path": "hotelHomestay/hotelHomestay", + "style": { + "navigationBarTitleText": "酒店民宿", + "navigationStyle": "custom" + } } ] }], diff --git a/pages/index/index.vue b/pages/index/index.vue index cb44463..3cedde0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -161,12 +161,12 @@ { img: 'https://static.ticket.sz-trip.com/yandu/images/index/jdmp.png', text: '景区门票', - path: '' + path: '/subPackages/ticketBooking/ticketBooking' }, { img: 'https://static.ticket.sz-trip.com/yandu/images/index/jdmp.png', text: '酒店民宿', - path: '' + path: '/subPackages/hotelHomestay/hotelHomestay' }, { img: 'https://static.ticket.sz-trip.com/yandu/images/index/jdmp.png', diff --git a/static/css/base.css b/static/css/base.css index 8b5ab4a..39ffd6f 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -107,4 +107,38 @@ view { bottom: 26rpx; width: 67rpx; height: 67rpx; +} + +.flex{ + display: flex; +} +.flex-shrink-0{ + flex-shrink: 0; +} +.flex-1{ + flex: 1; +} +.flex-wrap{ + flex-wrap: wrap; +} +.w-full{ + width: 100%; +} +.w-1rpx{ + width: 1rpx; +} +.h-1rpx{ + height: 1rpx; +} +.relative{ + position: relative; +} +.absolute{ + position: absolute; +} +.flex-items-center{ + align-items: center; +} +.no-scrollbar::-webkit-scrollbar{ + display: none; } \ No newline at end of file diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js index ee9d838..1c51388 100644 --- a/static/js/CommonFunction.js +++ b/static/js/CommonFunction.js @@ -145,4 +145,53 @@ Vue.prototype.clickPhone = (phone) => { uni.makePhoneCall({ phoneNumber:phone }) +} + +//周几 +Vue.prototype.ShowDateDay = day => { + let stateTxt = ""; + switch (day) { + case 0: + stateTxt = '周日' + break; + case 1: + stateTxt = '周一' + break; + case 2: + stateTxt = '周二' + break; + case 3: + stateTxt = '周三' + break; + case 4: + stateTxt = '周四' + break; + case 5: + stateTxt = '周五' + break; + case 6: + stateTxt = '周六' + break; + } + return stateTxt +} + +Date.prototype.Format = function(fmt) +{ //author: meizz + var o = { + "Y+" : this.getFullYear(), //月份 + "M+" : this.getMonth()+1, //月份 + "d+" : this.getDate(), //日 + "h+" : this.getHours(), //小时 + "m+" : this.getMinutes(), //分 + "s+" : this.getSeconds(), //秒 + "q+" : Math.floor((this.getMonth()+3)/3), //季度 + "S" : this.getMilliseconds() //毫秒 + }; + if(/(y+)/.test(fmt)) + fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); + for(var k in o) + if(new RegExp("("+ k +")").test(fmt)) + fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length))); + return fmt; } \ No newline at end of file diff --git a/subPackages/hotelHomestay/hotelHomestay.vue b/subPackages/hotelHomestay/hotelHomestay.vue new file mode 100644 index 0000000..41959d1 --- /dev/null +++ b/subPackages/hotelHomestay/hotelHomestay.vue @@ -0,0 +1,273 @@ + + + + + \ No newline at end of file diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue new file mode 100644 index 0000000..17e504b --- /dev/null +++ b/subPackages/techan/detail.vue @@ -0,0 +1,753 @@ + + + + + \ No newline at end of file diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue new file mode 100644 index 0000000..23c0d04 --- /dev/null +++ b/subPackages/techan/order.vue @@ -0,0 +1,1274 @@ + + + + + \ No newline at end of file diff --git a/subPackages/techan/selfPickUpPoint.vue b/subPackages/techan/selfPickUpPoint.vue new file mode 100644 index 0000000..e3784ef --- /dev/null +++ b/subPackages/techan/selfPickUpPoint.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/subPackages/techan/techanList.vue b/subPackages/techan/techanList.vue index 46f2a29..1bb0560 100644 --- a/subPackages/techan/techanList.vue +++ b/subPackages/techan/techanList.vue @@ -48,7 +48,7 @@ }, goDetail(item) { uni.navigateTo({ - url: '/subPackages/feiyi/feiyiDetails?id=' + item.id + url: '/subPackages/techan/detail?id=' + item.id }) } }, diff --git a/subPackages/ticketBooking/detail.vue b/subPackages/ticketBooking/detail.vue new file mode 100644 index 0000000..85c9c86 --- /dev/null +++ b/subPackages/ticketBooking/detail.vue @@ -0,0 +1,715 @@ + + + + + diff --git a/subPackages/ticketBooking/order.vue b/subPackages/ticketBooking/order.vue new file mode 100644 index 0000000..1e7f058 --- /dev/null +++ b/subPackages/ticketBooking/order.vue @@ -0,0 +1,349 @@ + + + + + diff --git a/subPackages/ticketBooking/ticketBooking.vue b/subPackages/ticketBooking/ticketBooking.vue new file mode 100644 index 0000000..5095551 --- /dev/null +++ b/subPackages/ticketBooking/ticketBooking.vue @@ -0,0 +1,191 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue index a54135e..4f3817d 100644 --- a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue +++ b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue @@ -9,7 +9,7 @@ }" @click="choiceDate(weeks)"> - +