merge
This commit is contained in:
@@ -9,9 +9,11 @@
|
|||||||
import { request } from '../index'
|
import { request } from '../index'
|
||||||
|
|
||||||
// dt账户
|
// dt账户
|
||||||
const dt = () =>{
|
const dt = (data) =>{
|
||||||
|
console.log(data)
|
||||||
return request({
|
return request({
|
||||||
url: "user/account/dt_logs"
|
url: "user/account/dt_logs",
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "共力团队"
|
"navigationBarTitleText": "共力团队"
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/store/shop/shopDetail",
|
"path": "pages/store/shop/shopDetail",
|
||||||
|
|||||||
@@ -18,11 +18,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="vertical pages-empty">
|
<view class="vertical pages-empty">
|
||||||
<u-empty
|
<u-empty icon="http://cdn.uviewui.com/uview/empty/list.png" textColor="#999" text="暂无账户记录">
|
||||||
icon="http://cdn.uviewui.com/uview/empty/list.png"
|
|
||||||
textColor="#999"
|
|
||||||
text="暂无账户记录"
|
|
||||||
>
|
|
||||||
</u-empty>
|
</u-empty>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
@@ -30,24 +26,43 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { dt } from '@/apis/interfaces/account.js'
|
import {
|
||||||
|
dt
|
||||||
|
} from '@/apis/interfaces/account.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
score: '0.00',
|
score: '0.00',
|
||||||
logs: [],
|
logs: [],
|
||||||
pages: {}
|
page: 1,
|
||||||
|
has_more: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getDt()
|
this.getDt()
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.has_more) {
|
||||||
|
this.page = this.page + 1;
|
||||||
|
this.getDt()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
|
this.getDt();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDt() {
|
getDt() {
|
||||||
dt().then(res => {
|
dt({
|
||||||
this.score = res.score
|
page: this.page
|
||||||
this.logs = res.lists.data
|
}).then(res => {
|
||||||
this.page = res.lists.page
|
if (this.page == 1) {
|
||||||
|
this.logs = [];
|
||||||
|
}
|
||||||
|
this.score = res.score;
|
||||||
|
this.logs = this.logs.concat(res.lists.data);
|
||||||
|
this.has_more = res.lists.page.has_more;
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -57,11 +72,15 @@
|
|||||||
},
|
},
|
||||||
// 转账
|
// 转账
|
||||||
onTransfer(name) {
|
onTransfer(name) {
|
||||||
this.$Router.push({name})
|
this.$Router.push({
|
||||||
|
name
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
this.$Router.push({name: 'AccountRecharge'})
|
this.$Router.push({
|
||||||
|
name: 'AccountRecharge'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -70,9 +89,11 @@
|
|||||||
.pages-empty {
|
.pages-empty {
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
background: $window-color;
|
background: $window-color;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
.dt-header {
|
.dt-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -80,13 +101,16 @@
|
|||||||
background: $main-color;
|
background: $main-color;
|
||||||
padding: $padding*3 $padding $padding*2;
|
padding: $padding*3 $padding $padding*2;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.dt-header-number {
|
.dt-header-number {
|
||||||
width: calc(100% - 330rpx);
|
width: calc(100% - 330rpx);
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: rgba(255, 255, 255, .9);
|
color: rgba(255, 255, 255, .9);
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
@extend .nowrap;
|
@extend .nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 60rpx;
|
font-size: 60rpx;
|
||||||
@@ -95,6 +119,7 @@
|
|||||||
@extend .nowrap;
|
@extend .nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.transfer[size="mini"] {
|
.transfer[size="mini"] {
|
||||||
width: 150rpx;
|
width: 150rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
@@ -105,11 +130,13 @@
|
|||||||
color: $main-color;
|
color: $main-color;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 账户记录
|
// 账户记录
|
||||||
.logs-title {
|
.logs-title {
|
||||||
padding: 0 $padding;
|
padding: 0 $padding;
|
||||||
@@ -118,6 +145,7 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logs-item {
|
.logs-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: white;
|
background: white;
|
||||||
@@ -126,16 +154,19 @@
|
|||||||
padding-right: 240rpx;
|
padding-right: 240rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0 $margin ($margin - 10);
|
margin: 0 $margin ($margin - 10);
|
||||||
|
|
||||||
.logs-item-title {
|
.logs-item-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logs-item-time {
|
.logs-item-time {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logs-item-price {
|
.logs-item-price {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: $padding;
|
right: $padding;
|
||||||
@@ -145,9 +176,11 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@extend .nowrap;
|
@extend .nowrap;
|
||||||
|
|
||||||
&.add {
|
&.add {
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.remove {
|
&.remove {
|
||||||
color: $text-price;
|
color: $text-price;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,6 +159,7 @@
|
|||||||
getInfo() {
|
getInfo() {
|
||||||
if (this.$store.state.token === '') return;
|
if (this.$store.state.token === '') return;
|
||||||
info().then(res => {
|
info().then(res => {
|
||||||
|
console.log(res);
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: res.nickname
|
title: res.nickname
|
||||||
});
|
});
|
||||||
|
|||||||
6
unpackage/dist/dev/app-plus/app-service.js
vendored
6
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
7187
unpackage/dist/dev/app-plus/app-view.js
vendored
7187
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user