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 @@
+
+
+
+ xxx大师级导游讲解xxx大师级导游讲解xxx大 师级导游讲解
+ 出行日期:2024年9月17日
+ 已选:上午场 09:30-12:00
+
+
+
+
+
+ 出行人数 请如实填写,必填
+
+
+ {{buyNum}}
+
+
+
+ 注:若超过最大出行人数,请预约多名导游
+
+
+
+
+ {{skuInfo.is_card ? (skuInfo.sku_model.is_real_name ? '需填'+buyNum+'位出行人' : '需填1位出行人') : '无需填写出行人'}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+ 更多>
+
+
+
+
+
+
+ 出行人{{index + 1}}
+
+
+ {{ item.name }}
+ 手机号 {{ item.tel }}
+ {{ item.title }} {{ item.id_number }}
+
+
+
+
+
+
+ 出行人{{index + 1}} 点击填写1位出行人信息
+
+
+
+
+ 联系电话
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xxxx协议
+
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+ 协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协
+
+
+
+
+ 同意本条款
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{info.low_money / 100}}
+ 参团价
+
+ {{info.title}}
+ {{info.subtitle}}
+
+
+ {{item}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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