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