This commit is contained in:
liuye
2024-06-27 10:23:14 +08:00
parent 04eac7ef28
commit 1b1a55028f
4 changed files with 40 additions and 8 deletions

View File

@@ -108,12 +108,12 @@ export default {
path: "./myStoreList", path: "./myStoreList",
type: 'idNumber' type: 'idNumber'
}, },
{ // {
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png", // icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png",
label: "扫一扫", // label: "扫一扫",
path: "./myHarvestQR", // path: "./myHarvestQR",
type: 'scan' // type: 'scan'
}, // },
], ],
// [ // [
// { // {

View File

@@ -16,10 +16,11 @@ export default {
name: 'AppStore', name: 'AppStore',
appName: '门店', appName: '门店',
components: {Situation, Evaluate}, components: {Situation, Evaluate},
customNavigation: true,
data() { data() {
return { return {
tabList: [{name: '门店情况'}, {name: '我要评价'}], tabList: [{name: '门店情况'}, {name: '我要评价'}],
tabIndex: 1, tabIndex: 0,
barStyle: { barStyle: {
'width': '20px', 'width': '20px',
'height': '3px', 'height': '3px',
@@ -29,6 +30,12 @@ export default {
} }
} }
}, },
onReady() {
uni.setNavigationBarColor({
frontColor: '#000000',
backgroundColor: '#ffffff'
})
},
onLoad(e) { onLoad(e) {
if(e.tabIndex) { if(e.tabIndex) {
this.tabIndex = e.tabIndex this.tabIndex = e.tabIndex

View File

@@ -85,6 +85,7 @@ import {mapState} from 'vuex'
export default { export default {
name: 'EvaluateForm', name: 'EvaluateForm',
appName: '我要评价', appName: '我要评价',
customNavigation: true,
data() { data() {
return { return {
form: { form: {
@@ -100,11 +101,23 @@ export default {
computed: { computed: {
...mapState(['user']) ...mapState(['user'])
}, },
onReady() {
uni.setNavigationBarColor({
frontColor: '#000000',
backgroundColor: '#ffffff'
})
},
onLoad(e) { onLoad(e) {
this.getTypeList() this.getTypeList()
this.shopId = e.shopId this.shopId = e.shopId
this.getShopDetail() this.getShopDetail()
}, },
onShow() {
uni.setNavigationBarColor({
frontColor: 'black',
backgroundColor: '#ffffff'
})
},
methods: { methods: {
getTypeList() { getTypeList() {
this.$loading() this.$loading()

View File

@@ -69,6 +69,7 @@
export default { export default {
name: 'StoreDetail', name: 'StoreDetail',
appName: '门店情况', appName: '门店情况',
customNavigation: true,
data() { data() {
return { return {
shopId: '', shopId: '',
@@ -84,8 +85,13 @@ export default {
pages: 2 pages: 2
} }
}, },
onReady() {
uni.setNavigationBarColor({
frontColor: '#000000',
backgroundColor: '#ffffff'
})
},
onLoad(e) { onLoad(e) {
console.log(e)
this.shopId = e.shopId this.shopId = e.shopId
this.$dict.load(['operatorType']).then(() => { this.$dict.load(['operatorType']).then(() => {
this.getDetail() this.getDetail()
@@ -96,6 +102,12 @@ export default {
this.getAssessList() this.getAssessList()
}) })
}, },
onShow() {
uni.setNavigationBarColor({
frontColor: 'black',
backgroundColor: '#ffffff'
})
},
methods: { methods: {
getDetail() { getDetail() {
this.$instance.post(`/app/appshoparchives/queryDetailById?id=${this.shopId}`).then(res => { this.$instance.post(`/app/appshoparchives/queryDetailById?id=${this.shopId}`).then(res => {