| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | <template>	<app-layout>		<view class="container dir-top-wrap cross-center">			<view class="price-box dir-top-wrap cross-center ">				<view class="title">账户剩余金额</view>				<view class="price">¥{{overage}}</view>				<view class="desc">微信线下打款</view>			</view>			<view class="tips dir-top-wrap cross-center">				<text>{{desc}}</text>			</view>			<u-button shape="circle"					  type="success"					  hover-class="none"					  :custom-style="btnStyle"					  @click="handleWithdraw"			>提现</u-button>		</view>	</app-layout></template><script>	import appLayout from "@/components/app-layout"	export default {		components:{			appLayout,		},		data() {			return {				overage: 0,				desc: '',			}		},		methods: {			handleWithdraw(){				if(this.overage > 0){					this.$jump({url:'/pages/price/apply',type:'to'})				}else{					this.$u.toast("暂无可提现金额");				}			},			getSetting(){				this.$u.api.settingGet().then(data => {					this.setting = data;				})			},			getOverage(){				this.$u.api.userOverage().then(res => {					this.overage = res.overage					this.desc = res.desc				})			}		},		computed:{			btnStyle() {				return {					border:'none',					background:'linear-gradient(90deg, rgba(196,146,68,1) 0%, rgba(225,193,117,1) 100%, rgba(225,193,117,1) 100%)',					width: '600rpx',					padding: '36rpx 0',					height: '100rpx',					fontSize: '36rpx',					fontWeight: 600				};			}		},		onLoad(){			this.getOverage();		}	}</script><style lang="scss" scoped>	.price-box{		background: #fff;		width: 650rpx;		border-radius: 16rpx;		margin: 32rpx 0;		padding: 48rpx 0;		.title{			color: #333333;			font-weight: 600;			font-size: 30rpx;		}		.price{			color: #c49244;			font-size: 64rpx;			font-weight: bold;			margin: 24rpx 0 12rpx;			&:first-letter{				font-size: .6em;			}		}		.desc{			color: #c49244;			font-size: 28rpx;		}	}	.tips{		color: #666666;		margin: 12rpx 0 52rpx;		line-height: 1.8em;	}</style>
 |