Commit 6d3d92f8 authored by zhangjianguo's avatar zhangjianguo

1

parent 3763a45f
<template>
<view class="balanceStyle" :style="{'height':contentHeight}" >
<view :style="{'backgroundImage':'url('+(g.setting.bj_pic_url.url?g.setting.bj_pic_url.url:'')+')',backgroundSize: 'cover'}" class="balance_top" >
<view class="balance_top" >
<Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</Text>
<Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{g.balance?g.balance:0}}</Text>
<Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{balance}}</Text>
<view class="recharge" @click="goUrl('/pages/balance/recharge')">
<Text style='color: #fff;;font-size: 28rpx;'>充值</Text>
</view>
......@@ -64,7 +64,7 @@
data() {
return {
pageTitle:"余额记录",
balance:0,
showAuth:false,
contentHeight:0,
mainColor: "",
......@@ -105,7 +105,8 @@
title: this.pageTitle,
});
},
onLoad(){
onLoad(option){
this.balance = option.balance
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
......@@ -229,10 +230,15 @@
return i;
},
goUrl(url){
console.log(url )
uni.navigateTo({
url: url
})
// console.log(url )
// uni.navigateTo({
// url: url
// })
uni.showToast({
title: '正在开发,敬请期待',
icon: "none"
});
},
godetail(item){
uni.navigateTo({
......@@ -264,6 +270,9 @@
flex-direction: column;
align-items: center;
position: relative;
background-image: url(../../static/images/icon/privilegebg.jpeg);
background-repeat: no-repeat;
background-size: 100% 215px;
}
.balanceStyle .recharge{
width: 90px;
......
......@@ -299,9 +299,9 @@ export default {
},
onShareAppMessage(res) {
return {
title: this.g.name,
title:this.g.app_share_title!=null? this.g.app_share_title: this.g.name,
path: "/pages/goods/goods?id" + this.id,
imageUrl: this.g.pic_url[0].pic_url,
imageUrl: this.g.app_share_pic!=null? this.g.app_share_pic:this.g.pic_url[0].pic_url,
};
},
methods: {
......
......@@ -90,10 +90,10 @@
</view>
<view>
<text style="font-size: 24rpx; color: gray;"
>申请数量</text
>申请金额</text
>
<text style="font-size: 26rpx; color: #000;">{{
item.OrderDetailModel.Number
<text style="font-size: 26rpx; color: #000;">{{
item.OrderDetailModel.Final_Price
}}</text>
</view>
</view>
......
......@@ -184,7 +184,7 @@ export default {
this.forms.ReNumber = res.data.Number;
if (this.forms.Type == 1) {
this.forms.Refund = res.data.Final_Price-res.data.FreightMoney;
this.forms.Refund = res.data.Final_Price;
}
this.loading = false;
uni.hideNavigationBarLoading();
......
......@@ -3,8 +3,8 @@
<view class="cashBox">
<view class="cashBox_top">
<Text style='font-size: 18px;margin-top: 10px;'>账户剩余余额:{{cash.CommissionWithdrawal}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>今日剩余提现金额:{{cash.CanRemitMoney}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>最少提现额度:{{cash.MinimumWithdrawalLimit!=-1?cash.MinimumWithdrawalLimit+'元':'不限'}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>今日剩余提现金额:{{cash.CanRemitMoney==-1?'不限':cash.CanRemitMoney+'元'}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>最少提现额度:{{cash.MinimumWithdrawalLimit}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>手续费 百分比:{{cash.WithdrawFee}}%</Text>
<!-- <view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;">
<Text style='font-size: 12px;color:#333 '>今日提现金额无限制</Text>
......@@ -254,7 +254,7 @@
}
this.msg.Fee = this.cash.WithdrawFee*0.01*this.msg.AppliedMoney;
this.msg.AppliedMoney = this.msg.AppliedMoney - this.msg.Fee; //最终提现要减去 手续费
uni.showNavigationBarLoading();
this.request2(
{
......
......@@ -6,7 +6,7 @@
<u-avatar :src="user_info.avatar" size="140" style="margin-left: 50rpx;"></u-avatar>
<view style="display: flex;flex-direction: column;justify-content: center;">
<Text style="color: #FFF;margin-left: 20rpx;font-size: 36rpx;" @click="login(user_info)">{{ user_info.nickname ? user_info.nickname : '立即登录' }}</Text>
<view class="member" @click="goUrl('/pages/member/index/index')" v-if='user_info.nickname'>
<view class="member" v-if='user_info.nickname'>
<image :src="meueData.user_center.top_pic_url" mode='aspectFill' style="width: 26px;height: 26px;border-radius: 13px;"></image>
<Text style='margin-right: 10px;'>{{user_info.identity.level_name!=null ?user_info.identity.level_name:'普通用户' }}</Text>
</view>
......@@ -16,7 +16,7 @@
<view style="display: flex;flex-direction: column;align-items: center;" v-if="meueData.user_center.top_style == 2">
<u-avatar :src="user_info.avatar" size="140"></u-avatar>
<Text style="color: #FFF;margin-left: 20rpx;font-size: 36rpx;" @click="login(user_info)">{{ user_info.nickname ? user_info.nickname : '立即登录' }}</Text>
<view class="member" @click="goUrl('/pages/member/index/index')" v-if='user_info.nickname'>
<view class="member" v-if='user_info.nickname'>
<image :src="meueData.user_center.top_pic_url" mode='aspectFill' style="width: 26px;height: 26px;border-radius: 13px;"></image>
<Text style='margin-right: 10px;'>{{user_info.identity.level_name!=null ?user_info.identity.level_name:'普通用户' }}</Text>
</view>
......@@ -199,6 +199,10 @@ console.log(wx.getStorageSync('basedata'))
uni.navigateTo({
url: '/pages/order/after-sale/refunds-list'
});
}else if(url =='/pages/balance/balance'){
uni.navigateTo({
url: '/pages/balance/balance?balance='+this.user_info.balance
});
}else{
uni.navigateTo({
url: url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment