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 5adcd98..b5a7201 100644 --- a/pages.json +++ b/pages.json @@ -101,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 cfcf420..d1561f8 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -13,7 +13,7 @@ - + 我的订单 全部 @@ -22,7 +22,7 @@ - + {{item.text}} @@ -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/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/order.vue b/subPackages/daoyou/order.vue index 4295c9c..8791853 100644 --- a/subPackages/daoyou/order.vue +++ b/subPackages/daoyou/order.vue @@ -21,10 +21,20 @@ - {{skuInfo.is_card ? '需填'+buyNum+'位出行人' : '无需填写出行人'}} + {{skuInfo.is_card ? (skuInfo.sku_model.is_real_name ? '需填'+buyNum+'位出行人' : '需填1位出行人') : '无需填写出行人'}} + + + + + {{item.name}} + + + 更多> + + @@ -36,10 +46,11 @@ 手机号 {{ item.tel }} {{ item.title }} {{ item.id_number }} - + - + 出行人{{index + 1}} 点击填写1位出行人信息 @@ -51,28 +62,267 @@ + +
+ + + 合计:200 + + + 阅读并同意《xxx协议》 + + + 去支付 +
+ + + + + + + 取消 + 确定 + + + + 添加出行人 + + + + + {{item.name}} + + + 手机号 {{ item.tel }} + 默认 + + 身份证 {{ item.id_number}} + + + + + + + + + + + + + + 取消 + 保存 + + + + + + + + + + + + + + + + xxxx协议 + + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协 + + + + + 同意本条款 + + +
+ + \ 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