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 @@ + + + + + + + + + + + + + + + + + + + + + + + {{item.title}} + + + 盐都精选 + 盐都精选 + + + {{showPrice(item.price)}} + + + + 距您约602m + 立即预定 + + + + + + + 没有更多数据了 + + + + + + \ 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 @@ + + + + + + + + + + + + + + + + + + {{ info.money / 100 }} + + + {{ info.title }} + + + {{ item }} + + + + + + + 选择: + + + {{sku[productIndex].title}} + + + + + + 产品简介 + + + + + + + + + + + 收藏 + + + + + + + 客服 + + + + + + + 立即购买 + + + + + + + + + + + + + {{showPrice(sku[productIndex].money)}} + 已选择:{{sku[productIndex].title}} + + + + + 规格 + + + + + {{botItem.title}} + + + 不可购买 + + + + + + + 数量 + + + - + + {{ buyNum }} + + + + + + + + + + + + + + + + \ 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 @@ + + + + + + 邮寄配送 + + 到店自提 + + + + + + 收货地址 + + + + + + + + + + {{ contacts.name }} + {{ contacts.tel }} + + {{ contacts.province_text + contacts.city_text + contacts.district_text + contacts.detail_addr }} + + + + + + + + + + + + + + 自提点 + + {{pickupAddress.extract_name||'选择提货地址'}} + + + + + + + + + 提货人信息 + + + + + + 姓名 + + + + 手机号 + + + + + + + + + + + + + + + + {{ detail.title }} + + {{info.money/100}} + + + + {{ info.title }} + + x{{info.buyNum}} + + + + + + + 购买数量 + + + + - + + + + + + + + + 运费 + + + {{post===0?'免邮':post/100}} + + + + + 优惠券 + + 请选择 + + + -¥{{coupon.discounts/100}} + -{{coupon.percent}}% + > + + + + + 订单备注: + + + + + + + + + 合计: + {{ total() }} + 含邮费:¥{{ post / 100 }} + + 立即购买 + + + + + + + + 添加收货地址 + + + + + + {{ item.name }} + {{ item.tel }} + 默认 + + {{ item.address }} + + + + + + + + + + + + + + + 取消 + 添加收货地址 + 保存 + + + + + + + + + + + + + + + + + + + \ 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 @@ + + + + + {{item.extract_name}} + + 地址: + {{item.detail_addr}} + + + + + + + 去这里 + + + + + + 暂无自提点地址 + + + + + 确定 + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + {{info.title}} + 收藏 + + + 营业时间 {{info.times_list_info.start}}-{{info.times_list_info.end}} + + + + + + 景区地址 {{info.address}} + + + + + + + + + + + 门票预定 + + {{ item.title }} + + + {{ itemSku.title }} + + + {{ tagSku }} + + + + + 预订须知 > + + + + + + + {{showNoPriceNew(itemSku.price)}} + + + 预订 + + + + + + + + 景点简介 + + + + + + + + + + {{skuInfo.title}} + + + + + + + + + + + + + + + {{skuInfo.title}} + + + + + + 使用日期 + + + {{ShowDateDay(new Date(item.date).getDay())}} + {{item.date.slice(-5)}} + ¥{{showNoPriceNew(item.money)}} + 不可定 + + + + 更多日期 + > + + + + + 选择时段 + + + {{ item.start_time }}-{{ item.end_time }} + {{item.stock_number < 10 ? (item.stock_number === -1 ? '不可定' : item.stock_number === 0 ? '无票' : '(余票' + item.stock_number + ')') : '有票'}} + + + + + + + 合计:{{allSeldDate[seldDateIndex].money / 100 || 0}} + + + 下一步 + + + + + + + + + + + + + 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 @@ + + + + + {{ pInfo.title }} + + {{allSeldDate[seldDateIndex].date}} {{ShowDateDay(new Date(allSeldDate[seldDateIndex].date).getDay())}} + {{ timesArr[seldTimeIndex].start_time }}-{{ timesArr[seldTimeIndex].end_time }} 入园 + + + 修改 > + + + + + {{skuItem.title}} + {{skuItem.price / 100}} + + - + {{ skuItem.buyNum }} + + + + + + {{ tagSku }} | + 预订须知 > + + + + + + {{skuItem.title}} + + 123 + + 点击添加出行人信息 + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + {{item.title}} + + + {{item.address}} + + + {{showPrice(item.price)}} + + + + + 没有更多数据了 + + + + + + \ 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)"> - +