add
This commit is contained in:
parent
9086ccd76f
commit
edb5d70e9a
|
@ -30,3 +30,7 @@ export const getMassageCode = (data) => {
|
|||
export const setPayPassword = (data) => {
|
||||
return request.post('/user/user/set_payPassword', data);
|
||||
}
|
||||
|
||||
export const getFundList = (data) => {
|
||||
return request.get('/user/user/fundList', data);
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
<template>
|
||||
<up-sticky bgColor="#fff">
|
||||
{{mark}}
|
||||
<up-tabs :list="tabsLst" :itemStyle="{width:'33vw',paddingBottom:'20rpx'}" lineColor='#50C758' :current='mark'
|
||||
@change="tabsChange"></up-tabs>
|
||||
</up-sticky>
|
||||
<view class="content">
|
||||
<view class="li" v-for="item in 50">
|
||||
<view class="li-top">
|
||||
<text>余额宝自动转入</text>
|
||||
<text style="font-weight: bold;">-204.00</text>
|
||||
</view>
|
||||
<view class="li-top" style="margin-bottom: 0;">
|
||||
<text style="font-size: 24rpx;color: grey;">2024-10-21</text>
|
||||
<text style="font-size: 24rpx;color: grey;">余额 204.00</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
reactive
|
||||
} from "vue"
|
||||
import {
|
||||
onLoad
|
||||
} from "@dcloudio/uni-app"
|
||||
import {
|
||||
getFundList
|
||||
} from "@/api/address.js"
|
||||
|
||||
|
||||
const tabsLst = reactive([{
|
||||
name: '全部'
|
||||
},
|
||||
{
|
||||
name: '支出'
|
||||
},
|
||||
{
|
||||
name: '收入'
|
||||
},
|
||||
]);
|
||||
|
||||
const mark = ref(0)
|
||||
const tabsChange = (e) => {
|
||||
mark.value = e.index
|
||||
}
|
||||
|
||||
|
||||
onLoad((opt) => {
|
||||
console.log(opt)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content {
|
||||
background-color: white;
|
||||
width: 690rpx;
|
||||
padding: 20rpx;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
margin-top: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
|
||||
|
||||
.li {
|
||||
margin-top: 20rpx;
|
||||
border-bottom: 1px solid #EDF2FA;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
.li-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -234,9 +234,14 @@
|
|||
"navigationBarTitleText": "会员报备",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "balanceDetail/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "余额明细",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -232,7 +232,8 @@
|
|||
import {
|
||||
productLogApi,
|
||||
userInfoApi,
|
||||
getStoreInfo
|
||||
getStoreInfo,
|
||||
loginUpdateUserApi
|
||||
} from "@/api/user.js";
|
||||
import viewPopup from "@/components/viewPopup.vue"
|
||||
import goodPopup from "@/components/goodPopup.vue"
|
||||
|
@ -630,6 +631,10 @@
|
|||
userInfoApi().then(res => {
|
||||
const user = res.data;
|
||||
userStore.setUserInfo(user);
|
||||
if (!user.openid) loginUpdateUserApi({
|
||||
mobile: user.mobile
|
||||
})
|
||||
|
||||
if (user.is_staff == 1) {
|
||||
uni.reLaunch({
|
||||
url: "/multipleShop/verificationOrder/index"
|
||||
|
|
|
@ -39,7 +39,8 @@
|
|||
userLoginApi,
|
||||
userInfoApi,
|
||||
getStoreInfo,
|
||||
getloginSms
|
||||
getloginSms,
|
||||
loginUpdateUserApi
|
||||
} from "@/api/user.js";
|
||||
import {
|
||||
ref,
|
||||
|
@ -97,6 +98,9 @@
|
|||
userInfoApi().then(res => {
|
||||
const user = res.data;
|
||||
userStore.setUserInfo(user);
|
||||
if (!user.openid) loginUpdateUserApi({
|
||||
mobile: user.mobile
|
||||
})
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
}) // 存储token到本地存储中
|
||||
|
|
|
@ -43,20 +43,20 @@
|
|||
</view>
|
||||
|
||||
<view class="rest">
|
||||
<view class="rest-item">
|
||||
<view class="rest-item" @click="navgo('/pageQuota/balanceDetail/index?type=2')">
|
||||
<view class="rest-item-num">{{userInfo.now_money||"0.00"}}</view>
|
||||
<view class="rest-item-txt">余额</view>
|
||||
</view>
|
||||
<view class="rest-item">
|
||||
<view class="rest-item" @click="navgo('/pageQuota/balanceDetail/index?type=1')">
|
||||
<view class="rest-item-num">{{userInfo.purchase_funds||'0.00'}}</view>
|
||||
<view class="rest-item-txt">采购款</view>
|
||||
</view>
|
||||
<view class="rest-item">
|
||||
<view class="rest-item" @click="navgo('/pageQuota/balanceDetail/index?type=4')">
|
||||
<view class="rest-item-num">{{userInfo.return_money||'0.00'}}</view>
|
||||
<view class="rest-item-txt">返还金</view>
|
||||
</view>
|
||||
|
||||
<view class="rest-item">
|
||||
<view class="rest-item" @click="navgo('/pageQuota/balanceDetail/index?type=3')">
|
||||
<view class="rest-item-num">{{userInfo.integral ||"0.00"}}</view>
|
||||
<view class="rest-item-txt">礼品券</view>
|
||||
</view>
|
||||
|
|
Loading…
Reference in New Issue