|
|
@@ -200,25 +200,21 @@
|
|
|
|
|
|
<uni-popup ref="errorPriceRef" background-color="#fff" type="center" :animation="false">
|
|
|
<view class="error-price-content">
|
|
|
- <view
|
|
|
- class="price-row"
|
|
|
- v-for="(errItem, errIndex) in errorPirceList"
|
|
|
- :key="errIndex"
|
|
|
- >
|
|
|
+ <view class="price-row" v-for="(errItem, errIndex) in errorPirceList" :key="errIndex">
|
|
|
<view class="name-cell">{{ errItem.name }}</view>
|
|
|
- <view class="price-cell">
|
|
|
+ <view class="price-cell" @click.stop="goErrorItem(errItem.name+'a')">
|
|
|
<text v-if="errItem.a">A级 ¥{{ errItem.a ? parseFloat(errItem.a) : 0 }}</text>
|
|
|
<text v-else class="no-data">A级 -</text>
|
|
|
</view>
|
|
|
- <view class="price-cell">
|
|
|
+ <view class="price-cell" @click.stop="goErrorItem(errItem.name+'b')">
|
|
|
<text v-if="errItem.b">B级 ¥{{ errItem.b ? parseFloat(errItem.b) : 0 }}</text>
|
|
|
<text v-else class="no-data">B级 -</text>
|
|
|
</view>
|
|
|
- <view class="price-cell">
|
|
|
+ <view class="price-cell" @click.stop="goErrorItem(errItem.name+'c')">
|
|
|
<text v-if="errItem.c">C级 ¥{{ errItem.c ? parseFloat(errItem.c) : 0 }}</text>
|
|
|
<text v-else class="no-data">C级 -</text>
|
|
|
</view>
|
|
|
- <view class="price-cell">
|
|
|
+ <view class="price-cell" @click.stop="goErrorItem(errItem.name+'d')">
|
|
|
<text v-if="errItem.d">D级 ¥{{ errItem.d ? parseFloat(errItem.d) : 0 }}</text>
|
|
|
<text v-else class="no-data">D级 -</text>
|
|
|
</view>
|
|
|
@@ -305,6 +301,7 @@ export default {
|
|
|
//登录状态 0未登录 1登录
|
|
|
loginStyle :0,
|
|
|
errorPirceList:[],
|
|
|
+ errorMap:[],
|
|
|
lookMoney:0,
|
|
|
notifyNum:0,
|
|
|
currentDeadline:'',
|
|
|
@@ -646,7 +643,8 @@ export default {
|
|
|
getErrorPrice().then(res=>{
|
|
|
let that = this
|
|
|
if(res.code == 1){
|
|
|
- that.errorPirceList = res.data.list
|
|
|
+ that.errorPirceList = res.data.list?res.data.list:[]
|
|
|
+ that.errorMap = res.data.map?res.data.map:[]
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -657,6 +655,12 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ goErrorItem(key){
|
|
|
+ let id = this.errorMap[key]||0
|
|
|
+ if(Number(id)>0){
|
|
|
+ this.$util.pageTo({ url: "/admin/item/detail?id="+id})
|
|
|
+ }
|
|
|
+ },
|
|
|
setIndex(){
|
|
|
// #ifdef MP-WEIXIN
|
|
|
this.isMini = 1
|