积分超市调整
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="supermarket">
|
<div class="supermarket">
|
||||||
<div class="fixed-top title" @click="$linkTo(`./system?areaName=${areaName}`)"
|
<div class="fixed-top title" @click="$linkTo(`./system?areaName=${areaName}`)">{{ areaName }}信用好超市管理制度,点击查看 >>
|
||||||
v-if="propAreaId == '341021104000'">{{ areaName }}信用好超市管理制度,点击查看 >>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-list" v-if="numList.length"
|
<div class="goods-list" v-if="numList.length"
|
||||||
:style="propAreaId == '341021104000' ? 'padding-top:80rpx' : 'padding-top: 0;'">
|
:style="propAreaId == '341021104000' ? 'padding-top:80rpx' : 'padding-top: 0;'">
|
||||||
@@ -66,7 +65,6 @@ export default {
|
|||||||
numList: [],
|
numList: [],
|
||||||
numIndex: 0,
|
numIndex: 0,
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
areaId: '',
|
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
areaName: '',
|
areaName: '',
|
||||||
propAreaId: ''
|
propAreaId: ''
|
||||||
@@ -110,10 +108,6 @@ export default {
|
|||||||
uni.$on('update', () => {
|
uni.$on('update', () => {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
if (uni.getStorageSync('areaId')) {
|
|
||||||
this.areaId = uni.getStorageSync('areaId')
|
|
||||||
}
|
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
},
|
},
|
||||||
@@ -122,12 +116,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.$instance.post(`/admin/area/queryAreaByAreaid?id=${this.areaId}`, null, {}).then(res => {
|
this.$instance.post(`/admin/area/queryAreaByAreaid?id=${this.user?.areaId}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res?.data) {
|
||||||
if (res.data) {
|
this.areaName = res.data.name
|
||||||
this.areaName = res.data.name
|
this.getList()
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -171,7 +163,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getList() {
|
getList() {
|
||||||
this.$instance.post(`/app/appvillagerintegralmerchandise/listByIntegral?areaId=${this.areaId}`, null, {}).then(res => {
|
this.$instance.post(`/app/appvillagerintegralmerchandise/listByIntegral`, null, {
|
||||||
|
params: {areaId: this.user?.areaId}
|
||||||
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.numList = Object.keys(res.data).map(item => {
|
this.numList = Object.keys(res.data).map(item => {
|
||||||
|
|||||||
Reference in New Issue
Block a user