Commit 43d75e25 authored by 潘永坪's avatar 潘永坪

路径修改

parent bd4cb2c5
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
} }
} }
] ]
}, },
{ {
"root": "pages/scenic", //景区分包 "root": "pages/scenic", //景区分包
...@@ -294,31 +294,22 @@ ...@@ -294,31 +294,22 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { },
{
"path": "scenicIndex/scenicIndex", "path": "scenicIndex/scenicIndex",
"style": { "style": {
"navigationBarTitleText": "景区", "navigationBarTitleText": "景区",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path": "scenicCombiOrder/scenicCombiOrder",
"style": {
"navigationBarTitleText": "订单填写",
"enablePullDownRefresh": false
}
} }
,{ ]
"path" : "scenicOrder/scenicOrder",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path" : "scenicCombiOrder/scenicCombiOrder",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
}
]
}, },
{ {
"root": "pages/vlog", //vlogo分包 "root": "pages/vlog", //vlogo分包
...@@ -468,7 +459,7 @@ ...@@ -468,7 +459,7 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "myPhotoAlbum/myPhotoAlbum", "path": "myPhotoAlbum/myPhotoAlbum",
"style": { "style": {
...@@ -476,7 +467,7 @@ ...@@ -476,7 +467,7 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "albumOrderdetail/albumOrderdetail", "path": "albumOrderdetail/albumOrderdetail",
"style": { "style": {
...@@ -484,7 +475,7 @@ ...@@ -484,7 +475,7 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "purchasedPhotoAlbum/purchasedPhotoAlbum", "path": "purchasedPhotoAlbum/purchasedPhotoAlbum",
"style": { "style": {
...@@ -492,7 +483,7 @@ ...@@ -492,7 +483,7 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "DIYPurchase/DIYPurchase", "path": "DIYPurchase/DIYPurchase",
"style": { "style": {
...@@ -500,7 +491,7 @@ ...@@ -500,7 +491,7 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "DIYDetails/DIYDetails", "path": "DIYDetails/DIYDetails",
"style": { "style": {
......
...@@ -504,55 +504,54 @@ export default { ...@@ -504,55 +504,54 @@ export default {
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}) })
this.$request('/scenic/groupGood/getGroupProducts', data) this.$request('/scenic/groupGood/getGroupProducts', data).then(res => {
.then(res => { uni.hideLoading()
uni.hideLoading() if (res.code == '00') {
if (res.code == '00') { this.scenicList = res.data.merchantList || []
this.scenicList = res.data.merchantList || [] this.groupId = res.data.groupId || ''
this.groupId = res.data.groupId || '' this.groupChannelId = res.data.groupChannelId || ''
this.groupChannelId = res.data.groupChannelId || '' this.scenicList.forEach((item, index) => {
this.scenicList.forEach((item, index) => { //获取当前景区图片,把当前景区放在第一位
//获取当前景区图片,把当前景区放在第一位 if (item.id == this.merchantId) {
if (item.id == this.merchantId) { this.imgList = item.imgList
this.imgList = item.imgList this.scenicList.splice(index, 1)
this.scenicList.splice(index, 1) this.scenicList.unshift(item)
this.scenicList.unshift(item) item.productListCopy = item.productList
item.productListCopy = item.productList } else {
} else { item.productListCopy = item.productList.slice(0, 2)
item.productListCopy = item.productList.slice(0, 2) }
} //预订时间为当天时,当前时间大于最早预订时间显示未开售,当前时间大于最晚预订时间显示已售罄
//预订时间为当天时,当前时间大于最早预订时间显示未开售,当前时间大于最晚预订时间显示已售罄 let times = new Date().Format('hh:mm:ss')
let times = new Date().Format('hh:mm:ss') let timeNumber = parseInt(this.$commonjs.changeTime(times)) //将当前时间转化为数字
let timeNumber = parseInt(this.$commonjs.changeTime(times)) //将当前时间转化为数字 item.productList.forEach(item2 => {
item.productList.forEach(item2 => { item2.timeNumber1 = parseInt(this.$commonjs.changeTime(item2.earlyBookTime))
item2.timeNumber1 = parseInt(this.$commonjs.changeTime(item2.earlyBookTime)) item2.timeNumber2 = parseInt(this.$commonjs.changeTime(item2.bookTime))
item2.timeNumber2 = parseInt(this.$commonjs.changeTime(item2.bookTime)) if (item2.aheadBookDays == 0) {
if (item2.aheadBookDays == 0) { if (item2.status == 2) {
if (item2.status == 2) { item2.statusName = '已售罄'
} else {
if (timeNumber < item2.timeNumber1) {
item2.status = 2
item2.statusName = '未开售'
}
if (timeNumber > item2.timeNumber2) {
item2.status = 2
item2.statusName = '已售罄' item2.statusName = '已售罄'
} else {
if (timeNumber < item2.timeNumber1) {
item2.status = 2
item2.statusName = '未开售'
}
if (timeNumber > item2.timeNumber2) {
item2.status = 2
item2.statusName = '已售罄'
}
} }
} }
}) }
})
this.$nextTick(() => {
this.countSwiper()
})
} else {
uni.showToast({
title: res.message,
icon: 'none'
}) })
} })
}) this.$nextTick(() => {
this.countSwiper()
})
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
.catch(err => { .catch(err => {
uni.hideLoading() uni.hideLoading()
}) })
......
...@@ -284,7 +284,7 @@ export default { ...@@ -284,7 +284,7 @@ export default {
//---跳转索道 //---跳转索道
goSuodao(){ goSuodao(){
uni.navigateTo({ uni.navigateTo({
url:'/pages/scenic/combinationProduct/combinationProduct?merchantId=z0015605022691a5945bbe463141668c' url:'/pages/combination/distributionCombiChoose/distributionCombiChoose?merchantId=z0015605022691a5945bbe463141668c'
}) })
}, },
//---跳转联合国际 //---跳转联合国际
......
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
//---跳转产品页面 //---跳转产品页面
goProduct(merchantId){ goProduct(merchantId){
uni.navigateTo({ uni.navigateTo({
url:'/pages/scenic/combinationProduct/combinationProduct?merchantId='+merchantId url:'/pages/combination/distributionCombiChoose/distributionCombiChoose?merchantId='+merchantId
}) })
}, },
//---加载数据 //---加载数据
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment