Commit 562830bb authored by Facius's avatar Facius

fix: app 修复 bug

parent 3e36dd56
Pipeline #6426 canceled with stages
...@@ -416,7 +416,8 @@ ...@@ -416,7 +416,8 @@
"path": "help/help-detail", "path": "help/help-detail",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false,
"navigationStyle": "custom"
} }
} }
] ]
......
...@@ -46,7 +46,9 @@ export default { ...@@ -46,7 +46,9 @@ export default {
watch: { watch: {
visible (val) { visible (val) {
this.show = val this.show = val
if (val) {
this.sealList = this.list this.sealList = this.list
}
}, },
}, },
methods: { methods: {
......
...@@ -36,8 +36,6 @@ export default { ...@@ -36,8 +36,6 @@ export default {
} }
}, },
}, },
components: {
},
data () { data () {
return { return {
visible: false, visible: false,
...@@ -62,9 +60,6 @@ export default { ...@@ -62,9 +60,6 @@ export default {
this.$emit('change', {...item}) this.$emit('change', {...item})
}, },
handleSelect () { handleSelect () {
if (this.current == 3) {
return
}
this.visible = true this.visible = true
}, },
}, },
......
<template> <template>
<view class="content-view"> <view class="content-view">
<NavbarNormal :title="title" title-bold :background="{ 'background-color': '#f6f7fa' }"/>
<view class="rich-text" v-if="info.content"> <view class="rich-text" v-if="info.content">
<view class="title">
{{info.title||""}}
</view>
<!-- <rich-text space="nbsp" :nodes="info.content"></rich-text> -->
<mp-html :content="info.content" domain="https://img-code.banshouhui.com/" :tag-style="tagStyle" lazy-load <mp-html :content="info.content" domain="https://img-code.banshouhui.com/" :tag-style="tagStyle" lazy-load
scroll-table :show-img-menu="false" @load="load" @ready="ready" @imgtap="imgtap" @linktap="linktap" /> scroll-table :show-img-menu="false" @load="load" @ready="ready" @imgtap="imgtap" @linktap="linktap" />
</view> </view>
...@@ -12,10 +9,15 @@ ...@@ -12,10 +9,15 @@
</template> </template>
<script> <script>
import NavbarNormal from '@/components/navbar-normal';
import { import {
getList getList
} from '@/api/mine/help.js'; } from '@/api/mine/help.js';
export default { export default {
components: {
NavbarNormal
},
data() { data() {
return { return {
id: null, id: null,
...@@ -28,6 +30,11 @@ ...@@ -28,6 +30,11 @@
}, },
}; };
}, },
computed: {
title() {
return this.info.title || ''
}
},
onLoad(options) { onLoad(options) {
if (options && options.id) { if (options && options.id) {
this.id = options.id; this.id = options.id;
...@@ -50,9 +57,9 @@ ...@@ -50,9 +57,9 @@
} }
} }
this.info = info this.info = info
uni.setNavigationBarTitle({ // uni.setNavigationBarTitle({
title: this.info.title // title: this.info.title
}); // });
console.log('getList', this.info); console.log('getList', this.info);
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
......
<template> <template>
<view class="seal-list"> <view class="seal-list">
<NavbarRight :title="title" /> <NavbarNormal title-bold :title="title" :background="{ 'background-color': '#f6f7fa' }"/>
<view class="seal-tips"> <view class="seal-tips">
<view class="seal-tips-icon"> <view class="seal-tips-icon">
<u-icon name="info-circle" color="#02A074" size="28"></u-icon> <u-icon name="info-circle" color="#02A074" size="28"></u-icon>
...@@ -37,14 +37,14 @@ ...@@ -37,14 +37,14 @@
</template> </template>
<script> <script>
import NavbarRight from '@/components/navbar-right'; import NavbarNormal from '@/components/navbar-normal';
import CellSeal from '@/components/cell-seal/index'; import CellSeal from '@/components/cell-seal/index';
import NoData from '@/components/no-data'; import NoData from '@/components/no-data';
import { getSealList } from '@/api/mine/shop.js'; import { getSealList } from '@/api/mine/shop.js';
export default { export default {
components: { components: {
NavbarRight, NavbarNormal,
CellSeal, CellSeal,
NoData, NoData,
}, },
......
...@@ -305,8 +305,11 @@ ...@@ -305,8 +305,11 @@
// 跳转帮助页 // 跳转帮助页
toHelp(id){ toHelp(id){
this.$u.route({ this.$u.route({
url: `pages/mine/help/help-detail?id=${id}`, url: `pages/mine/help/help-detail`,
type: 'navigateTo', type: 'navigateTo',
params: {
id: id
}
}); });
}, },
handlClickNav(index) { handlClickNav(index) {
......
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