更改分享链接首页返回
This commit is contained in:
+9
-9
@@ -97,11 +97,11 @@ export default {
|
|||||||
},
|
},
|
||||||
locationTo(nav) {
|
locationTo(nav) {
|
||||||
// nav.type: 0外部链接,1日行一善商品,2添砖加瓦类商品,3通用商品,4功德箱,5进展动态
|
// nav.type: 0外部链接,1日行一善商品,2添砖加瓦类商品,3通用商品,4功德箱,5进展动态
|
||||||
if(nav.type === 6){
|
if(nav.icon_type === 6){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'goods-light-detail',
|
name: 'goods-light-detail',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
goods_id: nav.goods_id,
|
goods_id: nav.goods_id,
|
||||||
}
|
}
|
||||||
@@ -109,12 +109,12 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 0){
|
if(nav.icon_type === 0){
|
||||||
window.location.href = nav.url;
|
window.location.href = nav.url;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 5){
|
if(nav.icon_type === 5){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'buddha-detail',
|
name: 'buddha-detail',
|
||||||
query: { id: nav.dynamic_id }
|
query: { id: nav.dynamic_id }
|
||||||
@@ -122,29 +122,29 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 4){
|
if(nav.icon_type === 4){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'merit-box'
|
name: 'merit-box'
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 3){
|
if(nav.icon_type === 3){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'goods-detail',
|
name: 'goods-detail',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
goods_id: nav.goods_id ,
|
goods_id: nav.goods_id ,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 1 || nav.type === 2){
|
if(nav.icon_type === 1 || nav.icon_type === 2){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'everyday-donation',
|
name: 'everyday-donation',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
goods_id: nav.goods_id ,
|
goods_id: nav.goods_id ,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -153,12 +153,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
locationTo(nav) {
|
locationTo(nav) {
|
||||||
|
|
||||||
// nav.type: 0外部链接,1日行一善商品,2添砖加瓦类商品,3通用商品,4功德箱,5进展动态
|
// nav.type: 0外部链接,1日行一善商品,2添砖加瓦类商品,3通用商品,4功德箱,5进展动态
|
||||||
if(nav.type === 6){
|
if(nav.icon_type === 6){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'goods-light-detail',
|
name: 'goods-light-detail',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
goods_id: nav.goods_id,
|
goods_id: nav.goods_id,
|
||||||
}
|
}
|
||||||
@@ -166,12 +167,12 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 0){
|
if(nav.icon_type === 0){
|
||||||
window.location.href = nav.url;
|
window.location.href = nav.url;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 5){
|
if(nav.icon_type === 5){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'buddha-detail',
|
name: 'buddha-detail',
|
||||||
query: { id: nav.dynamic_id }
|
query: { id: nav.dynamic_id }
|
||||||
@@ -179,30 +180,29 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 4){
|
if(nav.icon_type === 4){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'merit-box',
|
name: 'merit-box'
|
||||||
query: { temple_id : nav.temple_id }
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 3){
|
if(nav.icon_type === 3){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'goods-detail',
|
name: 'goods-detail',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
goods_id: nav.goods_id ,
|
goods_id: nav.goods_id ,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nav.type === 1 || nav.type === 2){
|
if(nav.icon_type === 1 || nav.icon_type === 2){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'everyday-donation',
|
name: 'everyday-donation',
|
||||||
query: {
|
query: {
|
||||||
goods_type: nav.type,
|
goods_type: nav.goods_type,
|
||||||
goods_id: nav.goods_id ,
|
goods_id: nav.goods_id ,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user