|
|
|
@ -6,10 +6,13 @@ |
|
|
|
<view class="icon_new"><image :src="item.cover_image" mode=""></image></view> |
|
|
|
<view style="flex:1;"> |
|
|
|
<view class=""><text>面值:</text>{{item.price}}</view> |
|
|
|
<view style="font-size: 12px;"><text>最高中奖金额:</text>{{item.max_awards_amount}}</view> |
|
|
|
<view style="font-size: 12px;"><text>最高中奖金额:</text>{{item.max_awards_amount | formatAmount}}</view> |
|
|
|
</view> |
|
|
|
<switch :checked="item.status==1" @change="clickSwitch($event, index)" color="#00E266" @click.stop="" /> |
|
|
|
</view> |
|
|
|
<view class="" v-if="datasList.length===0" style="color: #999;text-align: center;padding: 40rpx;"> |
|
|
|
- 暂无记录 - |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
@ -30,6 +33,16 @@ |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
formatAmount(item){ |
|
|
|
if(item>999999 && item==1000000){ |
|
|
|
return '一百万元' |
|
|
|
} |
|
|
|
if(item.split('.')[1].length>2){ |
|
|
|
return (+item).toFixed(2); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
toSet(id){ |
|
|
|
uni.navigateTo({ |
|
|
|
@ -76,7 +89,8 @@ |
|
|
|
this.getList(); |
|
|
|
}else{ |
|
|
|
uni.showToast({ |
|
|
|
title: '没有更多了' |
|
|
|
title: '没有更多了', |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|