分享返回按钮
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<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="flex-top">
|
||||
<div class="left">
|
||||
@@ -85,7 +86,8 @@ export default {
|
||||
shopEvaluateType: '',
|
||||
backgroundNavbar: {
|
||||
background: '#fff',
|
||||
}
|
||||
},
|
||||
isShare: false, //是否分享进页面
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -94,6 +96,7 @@ export default {
|
||||
onLoad(query) {
|
||||
if (decodeURIComponent(query.scene)) {
|
||||
this.shopId = decodeURIComponent(query.scene)
|
||||
this.isShare = true
|
||||
}
|
||||
|
||||
if (query.shopId) {
|
||||
@@ -194,6 +197,13 @@ export default {
|
||||
toEvaluateForm() {
|
||||
uni.navigateTo({url: `./EvaluateForm?shopId=${this.shopId}`})
|
||||
},
|
||||
back() {
|
||||
if(this.isShare) {
|
||||
uni.switchTab({url: '/pages/AppHome/AppHome'})
|
||||
}else {
|
||||
uni.navigateBack()
|
||||
}
|
||||
},
|
||||
preview(imgList, index) {
|
||||
var list = []
|
||||
imgList.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user