分享返回按钮
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="StoreDetail">
|
<div class="StoreDetail">
|
||||||
<u-navbar back-icon-color="#000" title="门店情况" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44"></u-navbar>
|
<u-navbar back-icon-color="#000" :back-icon-name="isShare ? 'home': 'nav-back'" title="门店情况" title-color="#000" title-width="300" title-size="32"
|
||||||
|
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" @custom-back="back"></u-navbar>
|
||||||
<div class="header-info">
|
<div class="header-info">
|
||||||
<div class="flex-top">
|
<div class="flex-top">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
@@ -85,7 +86,8 @@ export default {
|
|||||||
shopEvaluateType: '',
|
shopEvaluateType: '',
|
||||||
backgroundNavbar: {
|
backgroundNavbar: {
|
||||||
background: '#fff',
|
background: '#fff',
|
||||||
}
|
},
|
||||||
|
isShare: false, //是否分享进页面
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -94,6 +96,7 @@ export default {
|
|||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
if (decodeURIComponent(query.scene)) {
|
if (decodeURIComponent(query.scene)) {
|
||||||
this.shopId = decodeURIComponent(query.scene)
|
this.shopId = decodeURIComponent(query.scene)
|
||||||
|
this.isShare = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.shopId) {
|
if (query.shopId) {
|
||||||
@@ -194,6 +197,13 @@ export default {
|
|||||||
toEvaluateForm() {
|
toEvaluateForm() {
|
||||||
uni.navigateTo({url: `./EvaluateForm?shopId=${this.shopId}`})
|
uni.navigateTo({url: `./EvaluateForm?shopId=${this.shopId}`})
|
||||||
},
|
},
|
||||||
|
back() {
|
||||||
|
if(this.isShare) {
|
||||||
|
uni.switchTab({url: '/pages/AppHome/AppHome'})
|
||||||
|
}else {
|
||||||
|
uni.navigateBack()
|
||||||
|
}
|
||||||
|
},
|
||||||
preview(imgList, index) {
|
preview(imgList, index) {
|
||||||
var list = []
|
var list = []
|
||||||
imgList.map((item) => {
|
imgList.map((item) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user