|
@@ -13,12 +13,15 @@
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
<view class="list-scroll-view">
|
|
<view class="list-scroll-view">
|
|
<view class="list" v-for="(item, index) in list" :key="index">
|
|
<view class="list" v-for="(item, index) in list" :key="index">
|
|
- <view class="other">
|
|
|
|
- <view class="other_1">返现金额: <text class="money">{{item.money}}</text></view>
|
|
|
|
- <view class="other_1">推荐人: <text>{{item.inviter}}</text></view>
|
|
|
|
- <view class="other_1">返现时间: <text>{{item.time}}</text></view>
|
|
|
|
- <view class="other_1">来源: <text>{{item.zhSource}}</text></view>
|
|
|
|
- <view class="other_1">状态: <text>{{item.zhStatus}}</text></view>
|
|
|
|
|
|
+ <view class="other" @tap="toDetail(item)">
|
|
|
|
+ <view class="other_1">
|
|
|
|
+ <view class="source">{{item.zhSource}}</view>
|
|
|
|
+ <view class="time">{{item.time}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="other_2">
|
|
|
|
+ <view class="money">{{item.money}}</view>
|
|
|
|
+ <text class="iconfont icon-jiantouyou"></text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="is_bottom" v-if="is_bottom">
|
|
<view class="is_bottom" v-if="is_bottom">
|
|
@@ -44,8 +47,6 @@
|
|
skip: 0,
|
|
skip: 0,
|
|
limit: 6,
|
|
limit: 6,
|
|
page: 0,
|
|
page: 0,
|
|
- // 状态
|
|
|
|
- statusList: [],
|
|
|
|
// 来源
|
|
// 来源
|
|
sourceList: [],
|
|
sourceList: [],
|
|
// 数据是否触底
|
|
// 数据是否触底
|
|
@@ -53,7 +54,7 @@
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- onLoad: async function(e) {
|
|
|
|
|
|
+ onShow: async function(e) {
|
|
const that = this;
|
|
const that = this;
|
|
that.searchConfig();
|
|
that.searchConfig();
|
|
await that.searchOther();
|
|
await that.searchOther();
|
|
@@ -104,8 +105,6 @@
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
let list = [...that.list, ...res.data];
|
|
let list = [...that.list, ...res.data];
|
|
for (let val of list) {
|
|
for (let val of list) {
|
|
- let status = that.statusList.find(i => i.value == val.status)
|
|
|
|
- if (status) val.zhStatus = status.label;
|
|
|
|
let source = that.sourceList.find(i => i.value == val.source)
|
|
let source = that.sourceList.find(i => i.value == val.source)
|
|
if (source) val.zhSource = source.label;
|
|
if (source) val.zhSource = source.label;
|
|
}
|
|
}
|
|
@@ -122,12 +121,6 @@
|
|
async searchOther() {
|
|
async searchOther() {
|
|
const that = this;
|
|
const that = this;
|
|
let res;
|
|
let res;
|
|
- res = await that.$api(`/dictData`, 'GET', {
|
|
|
|
- code: "cashBack_status"
|
|
|
|
- });
|
|
|
|
- if (res.errcode == '0') {
|
|
|
|
- that.$set(that, `statusList`, res.data)
|
|
|
|
- }
|
|
|
|
res = await that.$api(`/dictData`, 'GET', {
|
|
res = await that.$api(`/dictData`, 'GET', {
|
|
code: "cashBack_source"
|
|
code: "cashBack_source"
|
|
});
|
|
});
|
|
@@ -168,7 +161,15 @@
|
|
that.$set(that, `skip`, 0)
|
|
that.$set(that, `skip`, 0)
|
|
that.$set(that, `limit`, 6)
|
|
that.$set(that, `limit`, 6)
|
|
that.$set(that, `page`, 0)
|
|
that.$set(that, `page`, 0)
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 明细
|
|
|
|
+ toDetail(item) {
|
|
|
|
+ const that = this;
|
|
|
|
+ that.clearPage();
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pagesMy/assets/info?id=${item._id}`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
onPullDownRefresh: async function() {
|
|
onPullDownRefresh: async function() {
|
|
const that = this;
|
|
const that = this;
|
|
@@ -219,24 +220,40 @@
|
|
|
|
|
|
.list {
|
|
.list {
|
|
width: 92vw;
|
|
width: 92vw;
|
|
- border: 0.5vw solid var(--f1Color);
|
|
|
|
- margin: 2vw 2vw 0 1.5vw;
|
|
|
|
|
|
+ border-bottom: 0.5vw solid var(--f1Color);
|
|
|
|
+ margin: 2vw 2vw 0 2vw;
|
|
padding: 2vw;
|
|
padding: 2vw;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
|
|
|
.other {
|
|
.other {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
.other_1 {
|
|
.other_1 {
|
|
font-size: var(--font16Size);
|
|
font-size: var(--font16Size);
|
|
margin: 0 0 1vw 0;
|
|
margin: 0 0 1vw 0;
|
|
|
|
|
|
|
|
+ .time {
|
|
|
|
+ margin: 1vw 0 0 0;
|
|
|
|
+ color: var(--f85Color);
|
|
|
|
+ font-size: var(--font12Size);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .other_2 {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ width: 10vw;
|
|
|
|
+
|
|
.money {
|
|
.money {
|
|
- color: #ff0000;
|
|
|
|
|
|
+ font-size: var(--font18Size);
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ margin: 0 1vw;
|
|
}
|
|
}
|
|
|
|
|
|
- text {
|
|
|
|
- margin: 0 0 0 2vw;
|
|
|
|
- color: var(--f85Color);
|
|
|
|
- font-size: var(--font14Size);
|
|
|
|
|
|
+ .iconfont {
|
|
|
|
+ font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|