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",
type: 'idNumber'
},
{
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png",
label: "扫一扫",
path: "./myHarvestQR",
type: 'scan'
},
// {
// icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png",
// label: "扫一扫",
// path: "./myHarvestQR",
// type: 'scan'
// },
],
// [
// {

View File

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

View File

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

View File

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