Commit 3763a45f authored by zhangjianguo's avatar zhangjianguo

1

parent a2326672
...@@ -158,9 +158,18 @@ export default { ...@@ -158,9 +158,18 @@ export default {
} }
// #endif // #endif
}); });
this.navs = uni.getStorageSync("basedata") if(uni.getStorageSync("basedata")){
? uni.getStorageSync("basedata").navbar.navs this.navs = uni.getStorageSync("basedata")
: []; ? uni.getStorageSync("basedata").navbar.navs
: [];
}else{
setTimeout(()=>{
this.navs = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").navbar.navs
: [];
},500)
}
this.activeHandler(); this.activeHandler();
}, },
methods: { methods: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="balanceStyle" :style="{'height':contentHeight}" > <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 :style="{'backgroundImage':'url('+(g.setting.bj_pic_url.url?g.setting.bj_pic_url.url:'')+')',backgroundSize: 'cover'}" class="balance_top" >
<Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</Text> <Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</Text>
<Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{g.balance}}</Text> <Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{g.balance?g.balance:0}}</Text>
<view class="recharge" @click="goUrl('/pages/balance/recharge')"> <view class="recharge" @click="goUrl('/pages/balance/recharge')">
<Text style='color: #fff;;font-size: 28rpx;'>充值</Text> <Text style='color: #fff;;font-size: 28rpx;'>充值</Text>
</view> </view>
...@@ -143,22 +143,22 @@ ...@@ -143,22 +143,22 @@
uni.navigateBack() uni.navigateBack()
}, },
balancedata(){ balancedata(){
uni.showNavigationBarLoading(); // uni.showNavigationBarLoading();
let h=this.apiheader() // let h=this.apiheader()
this.request( // this.request(
{ // {
url: "", // url: "",
header:h, // header:h,
data: { // data: {
r: "api/balance/index", // r: "api/balance/index",
} // }
}, // },
res => { // res => {
uni.hideNavigationBarLoading() // uni.hideNavigationBarLoading()
this.g = res.data; // this.g = res.data;
} // }
); // );
}, },
getlogs(){ getlogs(){
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
<view class="content" v-else-if="d.ReOrderStatus == 2"> <view class="content" v-else-if="d.ReOrderStatus == 2">
尊敬的客户,让您久等了,很抱歉出现了让您不满意的情况,我们将配合您尽快完成本次售后申请 尊敬的客户,让您久等了,很抱歉出现了让您不满意的情况,我们将配合您尽快完成本次售后申请
</view> </view>
<view v-if="d.ReOrderStatus == 5 || d.Type==1">申请退款金额:{{d.Refund}}</view> <view v-if="d.ReOrderStatus == 5 || d.Type==1" class="marginT">申请退款金额:{{d.Refund}}</view>
<view v-if="d.ReOrderStatus == 5 || d.Type==1">实退金额:{{d.Refund}}</view> <view v-if="d.ReOrderStatus == 5 || d.Type==1" class="marginT">实退金额:{{d.Refund}}</view>
<view v-if="d.ReOrderStatus == 5 || d.Type==1">退款方式:原路退回</view> <view v-if="d.ReOrderStatus == 5 || d.Type==1" class="marginT">退款方式:原路退回</view>
<view v-if="d.ReOrderStatus == 5 || d.Type==1">退款时间:{{d.FinishTime}}</view> <view v-if="d.ReOrderStatus == 5 || d.Type==1" class="marginT">退款时间:{{d.FinishTime}}</view>
<!-- TODO字段没有 --> <!-- TODO字段没有 -->
<!-- <view class="content" v-else> <!-- <view class="content" v-else>
...@@ -626,4 +626,7 @@ export default { ...@@ -626,4 +626,7 @@ export default {
border: none; border: none;
outline: none; outline: none;
} }
.refundsDetails .marginT{
margin-top: 5px;
}
</style> </style>
...@@ -149,12 +149,12 @@ ...@@ -149,12 +149,12 @@
<view class="content">{{ orders.pay_time }}</view> <view class="content">{{ orders.pay_time }}</view>
</view> --> </view> -->
</view> </view>
<view class="order-info-item" > <!-- <view class="order-info-item" >
<view class="field" > <view class="field" >
<view class="label">配送方式:</view> <view class="label">配送方式:</view>
<view class="content">{{orders.DeliveryMethodName}}</view> <view class="content">{{orders.DeliveryMethodName}}</view>
</view> </view>
</view> </view> -->
</view> </view>
<view class="block"> <view class="block">
<view class="order-info-item"> <view class="order-info-item">
......
...@@ -30,9 +30,12 @@ ...@@ -30,9 +30,12 @@
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.UserInfo = uni.getStorageSync('mall_UserInfo') ?uni.getStorageSync('mall_UserInfo'):{} this.UserInfo = uni.getStorageSync('mall_UserInfo') ?uni.getStorageSync('mall_UserInfo'):{}
console.log(this.UserInfo)
this.init()
},
onReady(){
this.init()
}, },
mounted() { mounted() {
...@@ -61,22 +64,21 @@ ...@@ -61,22 +64,21 @@
{ {
url: '/api/AppletUser/GetWeiXinQRCodeForApplet', url: '/api/AppletUser/GetWeiXinQRCodeForApplet',
data: { data: {
Path:'pages/index/index/?pid=' + this.UserInfo.UserId, Path:'/pages/index/index?pid=' + this.UserInfo.UserId,
With:this.qrcode.QrCodeSize, With:this.qrcode.QrCodeSize,
} }
}, },
(res) => { (res) => {
uni.hideNavigationBarLoading() uni.hideNavigationBarLoading()
this.fenxqrcode = this.host2+res.data; this.fenxqrcode = this.host2+res.data;
// this.fenxqrcode = 'https://mallApi.oytour.com'+res.data; console.log(this.fenxqrcode)
this.drawCtx(); this.drawCtx();
} }
); );
}, },
drawCtx(){ drawCtx(){
uni.showLoading({ uni.showLoading({
title: "正在生成海报", title: "正在生成",
}); });
let ctx = uni.createCanvasContext("firstCanvas", this); let ctx = uni.createCanvasContext("firstCanvas", this);
let that = this; let that = this;
...@@ -92,7 +94,8 @@ ...@@ -92,7 +94,8 @@
uni.getImageInfo({//头像 uni.getImageInfo({//头像
src: that.UserInfo.Photo, src: that.UserInfo.Photo,
success: function (image) { success: function (image) {
ctx.save(); // 先保存状态 已便于画完圆再用
ctx.save(); // 先保存状态 已便于画完圆再用
ctx.beginPath(); //开始绘制 ctx.beginPath(); //开始绘制
//先画个圆 //先画个圆
ctx.arc(that.qrcode.HeadSize/2+that.qrcode.HeadPaddingLeft, that.qrcode.HeadSize/2+that.qrcode.HeadPaddingTop, that.qrcode.HeadSize/2, 0, Math.PI * 2, false); ctx.arc(that.qrcode.HeadSize/2+that.qrcode.HeadPaddingLeft, that.qrcode.HeadSize/2+that.qrcode.HeadPaddingTop, that.qrcode.HeadSize/2, 0, Math.PI * 2, false);
...@@ -104,8 +107,10 @@ ...@@ -104,8 +107,10 @@
if(that.qrcode.IsShowQrCode==0){ //二维码 if(that.qrcode.IsShowQrCode==0){ //二维码
uni.getImageInfo({//头像
src: that.UserInfo.Photo, uni.getImageInfo({
// src: that.UserInfo.Photo,
src: that.fenxqrcode,
success: function (image) { success: function (image) {
ctx.drawImage(image.path, that.qrcode.QrCodePaddingLeft, that.qrcode.QrCodePaddingTop, that.qrcode.QrCodeSize, that.qrcode.QrCodeSize);//绘制头像 ctx.drawImage(image.path, that.qrcode.QrCodePaddingLeft, that.qrcode.QrCodePaddingTop, that.qrcode.QrCodeSize, that.qrcode.QrCodeSize);//绘制头像
...@@ -119,7 +124,7 @@ ...@@ -119,7 +124,7 @@
if(that.qrcode.IsShowQrCode==0){ if(that.qrcode.IsShowQrCode==0){
uni.getImageInfo({//头像 uni.getImageInfo({//头像
src: that.UserInfo.Photo, src: that.fenxqrcode,
success: function (image) { success: function (image) {
ctx.drawImage(image.path, that.qrcode.QrCodePaddingLeft, that.qrcode.QrCodePaddingTop, that.qrcode.QrCodeSize, that.qrcode.QrCodeSize);//绘制头像 ctx.drawImage(image.path, that.qrcode.QrCodePaddingLeft, that.qrcode.QrCodePaddingTop, that.qrcode.QrCodeSize, that.qrcode.QrCodeSize);//绘制头像
...@@ -147,35 +152,39 @@ ...@@ -147,35 +152,39 @@
}, },
drawQrCode(ctx) { drawQrCode(ctx) {
let that = this; let that = this;
ctx.draw(false, () => { console.log('生成海报12')
uni.canvasToTempFilePath( setTimeout(()=>{
{ ctx.draw(false, () => {
x: 0, uni.canvasToTempFilePath(
y: 0, {
width: 750, x: 0,
height: 1344, y: 0,
destWidth: 750.0 , width: 750,
destHeight: 1344.0 , height: 1344,
canvasId: "firstCanvas", destWidth: 750.0 ,
success: (res) => { destHeight: 1344.0 ,
canvasId: "firstCanvas",
uni.hideLoading(); success: (res) => {
that.tempPic = res.tempFilePath;
}, uni.hideLoading();
fail(e) { that.tempPic = res.tempFilePath;
console.log(e); },
}, fail(e) {
}, console.log(e);
that },
); },
}); that
);
});
},200)
}, },
preservation(){ preservation(){
uni.showLoading({ uni.showLoading({
title: "正在生成海报", title: "正在生成",
}); });
let that = this; let that = this;
uni.canvasToTempFilePath( uni.canvasToTempFilePath(
...@@ -184,7 +193,7 @@ ...@@ -184,7 +193,7 @@
success: (res) => { success: (res) => {
uni.hideLoading(); uni.hideLoading();
uni.showLoading({ uni.showLoading({
title: "正在保存海报", title: "正在保存",
}); });
uni.saveImageToPhotosAlbum({ uni.saveImageToPhotosAlbum({
filePath: res.tempFilePath, filePath: res.tempFilePath,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="cashBox_top"> <view class="cashBox_top">
<Text style='font-size: 18px;margin-top: 10px;'>账户剩余余额:{{cash.CommissionWithdrawal}}</Text> <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.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.MinimumWithdrawalLimit!=-1?cash.MinimumWithdrawalLimit+'元':'不限'}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>手续费 百分比:{{cash.WithdrawFee}}%</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;"> <!-- <view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;">
<Text style='font-size: 12px;color:#333 '>今日提现金额无限制</Text> <Text style='font-size: 12px;color:#333 '>今日提现金额无限制</Text>
...@@ -242,14 +242,18 @@ ...@@ -242,14 +242,18 @@
return false return false
} }
} }
if(this.msg.AppliedMoney<this.cash.MinimumWithdrawalLimit){
uni.showToast({ if(this.cash.MinimumWithdrawalLimit!=-1){
title: "提现金额大于等于"+this.cash.MinimumWithdrawalLimit, if(this.msg.AppliedMoney<this.cash.MinimumWithdrawalLimit){
icon: "none" uni.showToast({
}); title: "提现金额大于等于"+this.cash.MinimumWithdrawalLimit,
return false icon: "none"
});
return false
}
} }
this.msg.Fee = this.msg.AppliedMoney - (this.cash.WithdrawFee*0.01*this.msg.AppliedMoney);
this.msg.Fee = this.cash.WithdrawFee*0.01*this.msg.AppliedMoney;
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
this.request2( this.request2(
......
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