From 692860faaeb1807197a91759b13babe375a2cc7d Mon Sep 17 00:00:00 2001 From: chenkainan Date: Tue, 3 Dec 2024 16:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 8 +- pages/user/user.vue | 4 +- static/js/request.js | 1 + subPackages/daoyou/detail.vue | 51 ++++++- subPackages/daoyou/order.vue | 275 ++++++++++++++++++++++++++++++++++ 5 files changed, 333 insertions(+), 6 deletions(-) create mode 100644 subPackages/daoyou/order.vue diff --git a/pages.json b/pages.json index ce61180..d584bec 100644 --- a/pages.json +++ b/pages.json @@ -38,7 +38,13 @@ { "path": "daoyou/detail", "style": { - "navigationBarTitleText": "导游详情-app" + "navigationBarTitleText": "导游详情" + } + }, + { + "path": "daoyou/order", + "style": { + "navigationBarTitleText": "填写订单" } } ] diff --git a/pages/user/user.vue b/pages/user/user.vue index 4980566..d490d45 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -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', 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/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..4295c9c --- /dev/null +++ b/subPackages/daoyou/order.vue @@ -0,0 +1,275 @@ + + + + + \ No newline at end of file