|
@@ -1,26 +1,26 @@
|
|
<template>
|
|
<template>
|
|
- <view>
|
|
|
|
- <view class="text-top">
|
|
|
|
- <view class="text">奖项</view>
|
|
|
|
- <view class="text">共{{total}}个</view>
|
|
|
|
- </view>
|
|
|
|
- <My_listbox ref="List" @getlist="getList" >
|
|
|
|
- <view class="list-box">
|
|
|
|
- <navigator class="item" v-for="item in list" :key="item.sa_awardmxid"
|
|
|
|
- url="">
|
|
|
|
- <view class="text">
|
|
|
|
- <view class="title u-line-2">{{ item.awardname || '--' }}</view>
|
|
|
|
- <view class="count u-line-1">
|
|
|
|
- <text style="margin-right: 118px">类型:{{ item.type || '--' }}</text>
|
|
|
|
- <text>金额:{{ CNY(item.price,'',false) || '--' }}元</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="count u-line-1">来源:{{ item.awardheadname || '--' }}</view>
|
|
|
|
- </view>
|
|
|
|
- </navigator>
|
|
|
|
|
|
+ <view>
|
|
|
|
+ <view class="text-top">
|
|
|
|
+ <view class="text">奖项</view>
|
|
|
|
+ <view class="text">共{{ total }}个</view>
|
|
|
|
+ </view>
|
|
|
|
+ <My_listbox ref="List" @getlist="getList">
|
|
|
|
+ <view class="list-box">
|
|
|
|
+ <navigator class="item" v-for="(item, index) in list" :key="item.sa_awardmxid"
|
|
|
|
+ :url="'/cloud/winningNews/detail?data=' + JSON.stringify(item)" @click="toDetail(index)">
|
|
|
|
+ <view class="text">
|
|
|
|
+ <view class="title u-line-2">{{ item.awardname || '--' }}</view>
|
|
|
|
+ <view class="count u-line-1">
|
|
|
|
+ <text style="margin-right: 118px">类型:{{ item.type || '--' }}</text>
|
|
|
|
+ <text>金额:{{ CNY(item.price, '', false) || '--' }}元</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="count u-line-1">来源:{{ item.awardheadname || '--' }}</view>
|
|
</view>
|
|
</view>
|
|
- </My_listbox>
|
|
|
|
|
|
+ </navigator>
|
|
|
|
+ </view>
|
|
|
|
+ </My_listbox>
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -28,18 +28,18 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
list: [],
|
|
list: [],
|
|
- total:0,
|
|
|
|
|
|
+ total: 0,
|
|
"content": {
|
|
"content": {
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onLoad(options){
|
|
|
|
|
|
+ onLoad(options) {
|
|
this.getList(true)
|
|
this.getList(true)
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: '我的中奖信息'
|
|
title: '我的中奖信息'
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- methods:{
|
|
|
|
|
|
+ methods: {
|
|
getList(init = false) {
|
|
getList(init = false) {
|
|
if (this.paging(this.content, init)) return;
|
|
if (this.paging(this.content, init)) return;
|
|
this.$Http.basic({
|
|
this.$Http.basic({
|
|
@@ -54,17 +54,23 @@ export default {
|
|
this.content = this.$refs.List.paging(this.content, res)
|
|
this.content = this.$refs.List.paging(this.content, res)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ toDetail(index) {
|
|
|
|
+ this.$Http.changeItem = function (item) {
|
|
|
|
+ this.$set(this.list, index, item)
|
|
|
|
+ }.bind(this)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-.text-top{
|
|
|
|
|
|
+.text-top {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
padding: 10px;
|
|
padding: 10px;
|
|
- .text{
|
|
|
|
|
|
+
|
|
|
|
+ .text {
|
|
font-family: Source Han Sans SC, Source Han Sans SC;
|
|
font-family: Source Han Sans SC, Source Han Sans SC;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
@@ -76,18 +82,20 @@ export default {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.list-box {
|
|
.list-box {
|
|
width: 100vw;
|
|
width: 100vw;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
|
- .item {
|
|
|
|
- display: flex;
|
|
|
|
- width: 100vw;
|
|
|
|
- border-radius: 5px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- margin-top: 10px;
|
|
|
|
- background: #FFFFFF;
|
|
|
|
- padding: 10px;
|
|
|
|
|
|
+ .item {
|
|
|
|
+ display: flex;
|
|
|
|
+ width: 100vw;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ padding: 10px;
|
|
|
|
+
|
|
.text {
|
|
.text {
|
|
flex: 1;
|
|
flex: 1;
|
|
font-family: Source Han Sans SC, Source Han Sans SC;
|
|
font-family: Source Han Sans SC, Source Han Sans SC;
|
|
@@ -98,6 +106,7 @@ export default {
|
|
color: #333333;
|
|
color: #333333;
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.count {
|
|
.count {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #999999;
|
|
color: #999999;
|