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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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 @@
+
+
+
+
+
+ {{item.title}}
+
+
+ {{tagItem}}
+
+
+
+ {{item.money / 100}}
+ 预订
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+ {{ item }}月
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ index + 1 >= 10 ? index + 1 : '0' + (index + 1) }}
+
+
+ ¥{{ prices[months[monthIndex] + '-' + (index + 1)].m_price / 100 }}
+
+
+ 售罄
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.sku_type_info }}
+ -
+ {{ nums[index] }}
+ +
+
+
+ {{ selectDate['info'][index].money / 100 }}
+
+
+
+ 合计:
+ {{ totalPrice() / 100 }}
+ 下一步
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+ {{ product.title }}
+ 出行日期:{{ selectDate.date }}
+
+ 已选:{{ item.title }}x{{ item.num }}
+
+
+
+
+ 出行人信息
+
+
+
+ {{ skuItem.title }}
+
+
+ {{ linkmans[skuIndex][index].name }}
+ {{ linkmans[skuIndex][index].tel }}
+
+
+
+
+
+ + 添加
+
+
+
+
+
+ 联系电话:
+
+
+
+
+ 订单备注:
+
+
+
+
+
+
+
+
+
+
+ 合计:
+
+ ¥{{ priceTotal() / 100 }}
+
+
+ 去支付
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+ {{info.status_text}}
+
+
+ 订单将在{{info.close_time.slice(-8)}}自动取消
+
+
+ 系统将在1-7个工作日内原路退回您的原支付账户
+
+
+ 您的退款金额已退还到您的原支付账户
+
+
+
+
+ 还剩{{remainNum}}张未核销
+
+
+
+
+ {{item.specifications_name}}
+
+
+ 核销码:{{item.third_order_id||item.child_id}}
+
+
+
+ 已核销
+
+
+ 已失效
+
+
+
+
+
+
+
+
+
+
+
+
+ 左右滑动核销其他二维码
+
+
+
+
+
+
+
+
+
+
+
+ {{info.order_child[0].goods_title}}
+
+
+
+ 出行时间:{{info.order_child[0].use_date}}
+
+
+
+
+
+
+ {{item.specifications_name}}
+
+ ¥{{item.money / 100}}
+ x{{item.num}}
+
+
+
+
+
+
+
+ 商品总额:¥{{info.money / 100}}
+
+
+ 优惠券:-¥{{info.discounts / 100}}
+
+
+ 实付金额:¥{{info.pay_money / 100}}
+
+
+
+
+
+
+ 出行人
+
+ {{item.specifications_name}}
+
+ 姓名:{{item.contact_name}}
+
+
+ 身份证:{{item.id_number}}
+
+
+
+
+
+
+
+
+ 订单信息
+
+ 订单账号:{{info.order_id}}
+
+
+ 复制
+
+
+
+ 下单时间:{{info.create_time}}
+
+
+ 支付时间:{{info.pay_time}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{item.order_child[0].type_id == 1 ? '线路产品' : '导游服务'}}
+ 订单号:{{ item.order_id }}
+
+ {{item.status_text}}
+
+
+
+
+
+ {{item.order_name}}
+
+
+ {{sItem.specifications_name}}
+
+ ¥{{sItem.pay_money}}
+ x{{sItem.num}}
+
+
+
+ 共{{item.order_child.length}}件商品
+
+ 总价¥{{item.money / 100}}
+ 实付款{{item.pay_money / 100}}
+
+
+
+
+
+ refund(item.order_id, key)" v-if="item.status == 'PAYMENT_SUCCESSFULLY'">申请退款
+ closeOrder(item.order_id, item)" v-if="item.status == 'WAIT_PAYMENT'">关闭订单
+ 再次购买
+ 立即支付
+
+
+
+
+
+ 暂无订单
+
+
+
+
+
+
+
\ No newline at end of file