|
@@ -27,7 +27,7 @@
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
|
|
|
<view class="honor-box" v-for="(item,index) in honorList" :key="index" style="position: relative;">
|
|
<view class="honor-box" v-for="(item,index) in honorList" :key="index" style="position: relative;">
|
|
|
<view class="honor-name">{{item.name}}</view>
|
|
<view class="honor-name">{{item.name}}</view>
|
|
|
- <image :src="item.pic_url" mode="aspectFill" @click="showLarge(item.pic_url_resize)"></image>
|
|
|
|
|
|
|
+ <image :src="item.pic_url_resize" mode="aspectFill" @click="showLarge(item.pic_url)"></image>
|
|
|
<view style="display: flex;">
|
|
<view style="display: flex;">
|
|
|
<view class="honor-award" style="width:120rpx;">获奖人:</view>
|
|
<view class="honor-award" style="width:120rpx;">获奖人:</view>
|
|
|
<view class="honor-award">{{item.for_branch}} {{item.for_names}}</view>
|
|
<view class="honor-award">{{item.for_branch}} {{item.for_names}}</view>
|
|
@@ -67,7 +67,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="honor-box" v-for="(item,index) in myHonorList" :key="index" style="position: relative;">
|
|
<view class="honor-box" v-for="(item,index) in myHonorList" :key="index" style="position: relative;">
|
|
|
<view class="honor-name">{{item.name}}</view>
|
|
<view class="honor-name">{{item.name}}</view>
|
|
|
- <image :src="item.pic_url" mode="aspectFit" @click="showLarge(item.pic_url_resize)"></image>
|
|
|
|
|
|
|
+ <image :src="item.pic_url_resize" mode="aspectFill" @click="showLarge(item.pic_url)"></image>
|
|
|
<view style="display: flex;">
|
|
<view style="display: flex;">
|
|
|
<view class="honor-award" style="width:120rpx;">获奖人:</view>
|
|
<view class="honor-award" style="width:120rpx;">获奖人:</view>
|
|
|
<view class="honor-award">{{item.for_branch}} {{item.for_names}}</view>
|
|
<view class="honor-award">{{item.for_branch}} {{item.for_names}}</view>
|
|
@@ -134,9 +134,21 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
pageRefreshHonor(object) {
|
|
pageRefreshHonor(object) {
|
|
|
- if (object) {
|
|
|
|
|
- this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (object === 'add') {
|
|
|
|
|
+ if(this.current){
|
|
|
|
|
+ this.getMyHonor(this.dateYearSelf,this.dateMonthSelf)
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
|
|
+ }
|
|
|
|
|
+ }else if (object === 'edit'){
|
|
|
|
|
+ if(this.current){
|
|
|
|
|
+ this.getMyHonor(this.dateYearSelf,this.dateMonthSelf)
|
|
|
|
|
+ }else {
|
|
|
|
|
+ return
|
|
|
|
|
+ //this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -144,7 +156,7 @@ export default {
|
|
|
this.current = e.currentIndex
|
|
this.current = e.currentIndex
|
|
|
this.current ?
|
|
this.current ?
|
|
|
this.getMyHonor(this.dateYearSelf,this.dateMonthSelf) :
|
|
this.getMyHonor(this.dateYearSelf,this.dateMonthSelf) :
|
|
|
- false
|
|
|
|
|
|
|
+ this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
},
|
|
},
|
|
|
bindDateChange(e){
|
|
bindDateChange(e){
|
|
|
this.dateYear = e.target.value;
|
|
this.dateYear = e.target.value;
|
|
@@ -262,7 +274,11 @@ export default {
|
|
|
icon: "none",
|
|
icon: "none",
|
|
|
duration: 2500,
|
|
duration: 2500,
|
|
|
success:()=>{
|
|
success:()=>{
|
|
|
- this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
|
|
|
|
+ if(this.current){
|
|
|
|
|
+ this.getMyHonor(this.dateYearSelf,this.dateMonthSelf)
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.getHonorList(this.dateYear,this.dateMonth,this.index)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|