diff --git a/components/contactAdd.vue b/components/contactAdd.vue new file mode 100644 index 0000000..f625468 --- /dev/null +++ b/components/contactAdd.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/pages.json b/pages.json index 536ef17..b5a7201 100644 --- a/pages.json +++ b/pages.json @@ -38,7 +38,13 @@ { "path": "daoyou/detail", "style": { - "navigationBarTitleText": "导游详情-app" + "navigationBarTitleText": "导游详情" + } + }, + { + "path": "daoyou/order", + "style": { + "navigationBarTitleText": "填写订单" } }, { @@ -95,9 +101,43 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "line/lineList", + "style": { + "navigationBarTitleText": "精选线路" + } + }, + { + "path": "line/detail", + "style": { + "navigationBarTitleText": "线路详情" + } + }, + { + "path": "line/order", + "style": { + "navigationBarTitleText": "填写订单" + } + }, + { + "path": "line/orders", + "style": { + "navigationBarTitleText": "填写订单" + } + }, + { + "path": "order/trades", + "style": { + "navigationBarTitleText": "全部订单" + } + }, + { + "path": "order/orderDetail", + "style": { + "navigationBarTitleText": "订单详情" + } } - - ] }], "tabBar": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 9a7ec06..8f2f107 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -11,7 +11,7 @@ - @@ -21,7 +21,7 @@ - + 探索更多 @@ -44,7 +44,7 @@ - + 探索更多 @@ -176,6 +176,12 @@ break; } }, + // 去导游 + gotoDy() { + uni.switchTab({ + url: '/pages/daoyou/index' + }) + } } } diff --git a/pages/user/user.vue b/pages/user/user.vue index c29d3f0..d1561f8 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -13,7 +13,7 @@ - + 我的订单 全部 @@ -22,7 +22,7 @@ - + {{item.text}} @@ -32,7 +32,7 @@ - + {{item.text}} @@ -74,7 +74,7 @@ { img: 'https://static.ticket.sz-trip.com/tourist/user/cxrxx.png', text: '出行人信息', - path: '' + path: '/subPackages/user/travelerList' }, { img: 'https://static.ticket.sz-trip.com/tourist/user/yhxy.png', @@ -94,6 +94,20 @@ // this.Post({}, '/api/Merchants/get_login_details').then(res => { // this.userInfo = res.data // }) + }, + methods: { + // 去订单 + goTrades(item) { + if (item) { + uni.navigateTo({ + url: "/subPackages/order/trades?type=" + item.text, + }); + } else { + uni.navigateTo({ + url: "/subPackages/order/trades", + }); + } + }, } } diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js index e0aca45..42be1a5 100644 --- a/static/js/CommonFunction.js +++ b/static/js/CommonFunction.js @@ -184,4 +184,18 @@ Date.prototype.Format = function(fmt) 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; +} + +// 根据type_id跳转详情 +Vue.prototype.gotoDetailByTypeId = (goodsId, type) => { + // 1线路 2导游 + if(type == 1) { + uni.navigateTo({ + url: '/subPackages/line/detail?id=' + goodsId + }) + }else { + uni.navigateTo({ + url: '/subPackages/daoyou/detail?id=' + goodsId + }) + } } \ No newline at end of file diff --git a/static/js/request.js b/static/js/request.js index 7a6d719..763a55a 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -10,6 +10,7 @@ Vue.prototype.NEWAPIURL = NEWAPIURL Vue.prototype.Post = (params, apiurl) => { if (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo')).token) params.token = JSON.parse(uni.getStorageSync('userInfo')).token else if (store.state.user.userInfo.token) params.token = store.state.user.userInfo.token + params.token = 'f15f0d69-53a5-4330-b327-664fba53258b' return new Promise((resolve, reject) => { uni.showLoading({ title: '加载中' diff --git a/store/modules/user.js b/store/modules/user.js index 8e2b3d1..14c7ee6 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -22,6 +22,7 @@ export default { lingoIds: [],// 语言列表 scenicIds: [], // 景区列表 + lineInfo: "", // 线路 }, // 类似 vue 里的 mothods(同步方法) mutations: { @@ -75,5 +76,9 @@ export default { changeScenicIds(state, data) { state.scenicIds = data }, + // 线路下单 + changeLineInfo(state, data){ + state.lineInfo = data + } } } diff --git a/subPackages/daoyou/detail.vue b/subPackages/daoyou/detail.vue index 823c29f..be93f9a 100644 --- a/subPackages/daoyou/detail.vue +++ b/subPackages/daoyou/detail.vue @@ -66,12 +66,12 @@ - + {{item.title}} 提前沟通讲解内容 {{item.price}} - 预订 + 预订 @@ -135,6 +135,12 @@ this.getEveryDay(this.year + '/' + this.month + '/' + 1) }, methods: { + // 预订 + order() { + uni.navigateTo({ + url: '/subPackages/daoyou/order' + }) + }, //轮播图左右滑动 swiperChange(e) { this.current = e.detail.current; @@ -481,10 +487,49 @@ .sku-box { border-radius: 13rpx; background-color: #fff; - margin-top: 28rpx; + margin-top: 100rpx; .sku-item { height: 132rpx; + padding: 0 26rpx 0 28rpx; + + &>view:first-child { + width: 375rpx; + } + + .sku-title { + font-weight: bold; + font-size: 28rpx; + color: #111111; + } + + .sku-subtitle { + font-weight: 500; + font-size: 24rpx; + color: #888888; + margin-top: 10rpx; + } + + .sku-price { + font-weight: bold; + font-size: 34rpx; + color: #DC2525; + } + .sku-price::before { + font-size: 24rpx; + content: '¥'; + } + + .sku-btn { + width: 133.33rpx; + line-height: 50.67rpx; + background-image: url('https://static.ticket.sz-trip.com/tourist/daoyou/btnBg.png'); + background-size: 100% 100%; + text-align: center; + font-weight: 500; + font-size: 31rpx; + color: #FFFFFF; + } } .sku-item:nth-child(n+2) { border-top: 1rpx solid #D8D8D8; diff --git a/subPackages/daoyou/order.vue b/subPackages/daoyou/order.vue new file mode 100644 index 0000000..8791853 --- /dev/null +++ b/subPackages/daoyou/order.vue @@ -0,0 +1,872 @@ + + + + + \ No newline at end of file diff --git a/subPackages/line/detail.vue b/subPackages/line/detail.vue new file mode 100644 index 0000000..c612c79 --- /dev/null +++ b/subPackages/line/detail.vue @@ -0,0 +1,299 @@ + + + + + \ No newline at end of file diff --git a/subPackages/line/lineList.vue b/subPackages/line/lineList.vue new file mode 100644 index 0000000..47206ae --- /dev/null +++ b/subPackages/line/lineList.vue @@ -0,0 +1,116 @@ + + + + + \ No newline at end of file diff --git a/subPackages/line/order.vue b/subPackages/line/order.vue new file mode 100644 index 0000000..635494c --- /dev/null +++ b/subPackages/line/order.vue @@ -0,0 +1,583 @@ + + + + + \ No newline at end of file diff --git a/subPackages/line/orders.vue b/subPackages/line/orders.vue new file mode 100644 index 0000000..9a11b31 --- /dev/null +++ b/subPackages/line/orders.vue @@ -0,0 +1,823 @@ + + + + + \ No newline at end of file diff --git a/subPackages/order/orderDetail.vue b/subPackages/order/orderDetail.vue new file mode 100644 index 0000000..cea267e --- /dev/null +++ b/subPackages/order/orderDetail.vue @@ -0,0 +1,1240 @@ + + + + + \ No newline at end of file diff --git a/subPackages/order/trades.vue b/subPackages/order/trades.vue new file mode 100644 index 0000000..0a2428e --- /dev/null +++ b/subPackages/order/trades.vue @@ -0,0 +1,378 @@ + + + + + \ No newline at end of file