Commit e3b84638 by 李伟康

修改页面组件

1 parent 688bf832
......@@ -5,6 +5,15 @@ Component({
*/
properties: {
tabList: Array,
defaultIndex: {
type: Number,
value: -1,
observer(n) {
this.setData({
tabIndex: n
})
}
}
},
/**
......
......@@ -1511,8 +1511,9 @@ Component({
},
// 查看更多违规记录
goPage() {
let {violationStatus} = this.data
wx.navigateTo({
url: '/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1',
url: `/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1&tabValue=${violationStatus}`,
})
wx.$track.setTrackData(0, 'see_more')
},
......
......@@ -629,6 +629,7 @@ swiper{
background: transparent;
}
.empty-box{
padding-top: var(--fontSize14);
display: flex;
flex-flow: column;
justify-content: center;
......
......@@ -80,11 +80,11 @@
}
.color-2{
color: #FF6053;
font-weight: 700;
font-weight: 700 !important;
}
.color-1{
color: #7F80FE;
font-weight: 700;
font-weight: 700 !important;
}
.appeal-btn {
display: none;
......
......@@ -160,8 +160,10 @@ Page({
let {typeLists} = this.data
this.setData({
record: options,
typeLists:options.hideScore ? typeLists.splice(0,1) : typeLists
typeLists:options.hideScore ? typeLists.splice(0,1) : typeLists,
showViolationBtn: options.hideScore && options.violationStatus == 1
}, () => {
console.log('000')
this.setAudio()
})
}
......@@ -193,6 +195,7 @@ Page({
wx.$util.getViewInfo('.reception-wrap', ({
height
}) => {
console.log(1)
this.setData({
receptionWrapHeight: `${height * 2}rpx`
})
......
......@@ -10,7 +10,11 @@
</view>
<view class="reception-nav">
<view class="reception-types">
<view class="type {{activeIndex==index?'active':''}}" wx:for="{{typeLists}}" data-index="{{index}}" bind:tap="changeType">{{item}}<text class="avg" wx:if="{{activeIndex==index&&avgDefence!==''}}" wx:key="index">{{avgDefence}}分</text></view>
<block wx:for="{{typeLists}}" wx:key="index">
<view class="type {{activeIndex==index?'active':''}}" data-index="{{index}}" bind:tap="changeType">{{item}}
<text class="avg" wx:if="{{activeIndex==index&&avgDefence!==''}}" >{{avgDefence}}分</text>
</view>
</block>
</view>
<view class="reception-operate">
<gl-image class="img share" webp src="/equity/share-icon.png" bind:tap="share" />
......@@ -31,4 +35,7 @@
<quality id="quality" wx:if="{{activeIndex==1}}" batchId="{{record.batchId}}"></quality>
<attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack>
</block>
</view>
\ No newline at end of file
</view>
<block wx:if="{{showViolationBtn}}">
去确认
</block>
\ No newline at end of file
......@@ -25,6 +25,7 @@ Page({
loaded: false,
track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
tabIndex: 0,
recordTabList: [{
text: '疑似违规',
value: 1
......@@ -45,8 +46,14 @@ Page({
*/
onLoad(options) {
if (options.hideScore) {
let {
recordTabList
} = this.data,
tabIndex = recordTabList.findIndex(e => e.value == options.tabValue) || 0
this.setData({
hideScore: true
hideScore: true,
tabIndex,
violationStatus: options.tabValue
})
}
let userInfo = wx.$util.getUserInfo() || {}
......
......@@ -24,7 +24,7 @@
</view>
<block wx:if="{{hideScore}}">
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick"></record-tab>
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick" defaultIndex="{{tabIndex}}"></record-tab>
</view>
</block>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize168));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!