1.修改充值金额的值

2.修改其他问题
yj-dev
杨杰 3 years ago
parent 8f606ffd1c
commit 3e4e4f78b7
  1. 35
      pages/order/confirmation.vue
  2. 8
      pages/tabBar/user/user.vue
  3. 42
      pages/user/deposit/deposit.vue
  4. 43
      pages/user/mineCouponsDestails/mineCouponsDestails.vue
  5. 14
      pages/user/minePromotion/minePromotion.vue
  6. 145
      subPages/unionComfirmation/unionComfirmation.vue

@ -90,8 +90,8 @@
<view class="width94 comorder mart10">
<view class="height50 width100 backcorfff">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
支付方式
<view class="width100 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
支付方式 <text class="jfrecharge" @click="jumpdeposits" v-if="couponList.payType == 2 || couponList.payType==3">积分充值</text>
</view>
</view>
<view class="width94 line1 mart5 marb5"></view>
@ -227,8 +227,8 @@
jumpType: '',
tongCardPrice: 0,
storeId: '',
isDiscont: false,
coupondiscountid:''
isDiscont: false,
coupondiscountid: ''
};
},
@ -310,14 +310,14 @@
},
radioChanges(item) {
if (this.memDiscountId == item.highDiscount.id) { //
this.memDiscountId = '';
this.memDiscountId = '';
this.coupondiscountid = '';
this.paytheprice = this.couponList.discountPrice;
this.deductionPrice = '0.00';
this.isDiscont = false;
} else { //
this.isDiscont = true;
this.memDiscountId = item.highDiscount.id;
this.memDiscountId = item.highDiscount.id;
this.coupondiscountid = item.id;
if (item.highDiscount.discountType == 1) {
//
@ -731,7 +731,13 @@
duration: 4000
});
});
},
},
//
jumpdeposits(){
uni.navigateTo({
url:'../user/deposit/deposit'
})
}
}
}
@ -917,7 +923,7 @@
align-items: center;
.sum {
width: 50%;
width: 68%;
font-size: 18px;
margin-right: 10upx;
display: flex;
@ -930,7 +936,7 @@
}
.btn {
padding: 0 50rpx;
padding: 0 45rpx;
height: 80rpx;
background-color: #0083f5;
color: #fff;
@ -943,6 +949,17 @@
}
}
.jfrecharge {
background-color: #0083f5;
padding: 5px 20rpx;
color: #fff;
margin-left: 50%;
justify-content: center;
align-items: center;
font-size: 30rpx;
border-radius: 40rpx;
}
.goods-list {
width: 100%;
padding: 0;

@ -24,18 +24,18 @@
<!-- #ifdef MP -->
<button class="erweima fotct aliitem font14" v-if="user == null" open-type="getPhoneNumber"
@getphonenumber="loginByPhone">
<image src="../../../static/img/jingbi.png"></image> 充值金额
<image src="../../../static/img/jingbi.png"></image> 充值积分
</button>
<button class="erweima fotct aliitem font14" v-else @click="toDeposit">
<image src="../../../static/img/jingbi.png"></image> 充值金额
<image src="../../../static/img/jingbi.png"></image> 充值积分
</button>
<!-- #endif -->
<!-- #ifdef H5 -->
<button class="erweima fotct aliitem font14" v-if="user.phone == null" @click="jumpH5Bding">
<image src="../../../static/img/jingbi.png"></image> 充值金额
<image src="../../../static/img/jingbi.png"></image> 充值积分
</button>
<button class="erweima fotct aliitem font14" v-else @click="toDeposit">
<image src="../../../static/img/jingbi.png"></image> 充值金额
<image src="../../../static/img/jingbi.png"></image> 充值积分
</button>
<!-- #endif -->
</view>

@ -36,17 +36,6 @@
</view>
<view class="content">
<view class="pay-list">
<!-- <view class="row" @tap="paytype='alipay'">
<view class="left">
<image src="/static/img/alipay.png"></image>
</view>
<view class="center">
支付宝支付
</view>
<view class="right">
<radio :checked="paytype=='alipay'" color="#0083f5" />
</view>
</view> -->
<view class="row" @tap="paytype='wxpay'">
<view class="left">
<image :src="imagewxUrl+imgadres"></image>
@ -85,11 +74,11 @@
data() {
return {
inputAmount: '', //
amountList: [10, 50, 100], //3
amountList: [100, 200, 300, 500, 800, 1000], //3
paytype: 'wxpay', //
user: "",
imagewxUrl: app.globalData.imageWxImg,
imgadres:'wxpay.png'
imgadres: 'wxpay.png'
};
},
onLoad() {
@ -126,7 +115,7 @@
title: '正在提交订单...'
})
let goods = {
"identificationCode":app.globalData.identificationCode,
"identificationCode": app.globalData.identificationCode,
"highChildOrderList": [{
"goodsType": 2,
"goodsId": app.globalData.userInfo.id,
@ -214,10 +203,10 @@
jweixin.chooseWXPay({
appId: self.return_data.appId,
timestamp: self.return_data
.timeStamp, // jssdk使timestamp使timeStampS
.timeStamp, // jssdk使timestamp使timeStampS
nonceStr: self.return_data.nonceStr, // 32
package: self.return_data
.package, // prepay_idprepay_id=***
.package, // prepay_idprepay_id=***
signType: 'MD5', // 'SHA1'使'MD5'
paySign: self.return_data.sign, //
success: function(res) {
@ -271,19 +260,22 @@
width: 100%;
.list {
display: flex;
display: flow-root;
justify-content: space-between;
padding: 20upx 0;
.box {
width: 30%;
height: 120upx;
height: 120rpx;
float: left;
margin-left: 3.333%;
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10upx;
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.05);
font-size: 36upx;
border-radius: 10rpx;
box-shadow: 0rpx 5rpx 20rpx rgba(0, 0, 0, 0.05);
font-size: 36rpx;
background-color: #f1f1f1;
color: 333;
@ -295,14 +287,14 @@
}
.num {
margin-top: 10upx;
margin-top: 20upx;
display: flex;
justify-content: flex-end;
align-items: center;
.text {
padding-right: 10upx;
font-size: 30upx;
font-size: 40upx;
}
.input {
@ -315,7 +307,7 @@
input {
margin: 0 20upx;
height: 60upx;
font-size: 30upx;
font-size: 40upx;
color: #0083f5;
justify-content: flex-end;
align-items: center;
@ -395,4 +387,4 @@
}
}
}
</style>
</style>

@ -43,13 +43,16 @@
</view>
</view>
</view>
<view class="width90 mart40 fcor666" v-if="videourl != ''">视频教程</view>
<!-- <view class="width90 mart40 fcor666" v-if="videourl != ''">视频教程</view>
<view class="btnplay" @click="playvideo" v-if="videourl != ''">播放视频教学</view>
<view class="width80 mart20 marb30" v-if="isplayvideo">
<yy-video-player :auto-play="false" :url="imageUrl+imagedess1" :poster="poster" :show-back-btn="true">
</yy-video-player>
</view> -->
<view class="width90 mart40 fcor666" v-if="videourl != ''">临时通知</view>
<view class="alijus mart20 marb30" v-if="videourl != ''">
<image mode="widthFix" :src="imageUrl+imagedess2"></image>
</view>
</view>
</template>
@ -72,14 +75,15 @@
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'noorder.png',
imagedess1: '/CMS/html/11641540903873.mp4',
imagedess2: '/CMS/html/notice1.png',
pageNum: 1,
pageSize: 10,
isNoMoreData: false,
couponsDetails: '',
salesEndTime: '',
couponId: '',
videourl: '' ,//
isplayvideo: false //
videourl: '', //
isplayvideo: false //
}
},
filters: {
@ -150,10 +154,10 @@
// uni.navigateTo({
// url: '../../goods/goods?id='+e
// });
},
//
playvideo(){
this.isplayvideo = true;
},
//
playvideo() {
this.isplayvideo = true;
}
}
}
@ -226,16 +230,17 @@
background-color: red;
color: #FFFFFF;
border-radius: 0px;
}
.btnplay{
width: 120px;
text-align: center;
height: 40px;
line-height: 40px;
color: #FFFFFF;
background-color: #089bf5;
border-radius: 5px;
margin-left: 5%;
margin-top: 20px;
}
.btnplay {
width: 120px;
text-align: center;
height: 40px;
line-height: 40px;
color: #FFFFFF;
background-color: #089bf5;
border-radius: 5px;
margin-left: 5%;
margin-top: 20px;
}
</style>

@ -18,12 +18,12 @@
<view class="width50 flright font15 fcor666 fontwig6 fotrt">今日流水</view>
</view>
</view>
<view class="mart70">
<!-- <view class="mart70">
<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
activeColor="#089bf5" lineColor="#089bf5" minWidth="374">
</QSTabs>
<view class="line1"></view>
</view>
</view> -->
<!-- // -->
<view class="width100" v-if="current == 0">
@ -100,7 +100,7 @@
</view>
</view>
<!-- 兑换码库存 -->
<view class="width100" v-if="current == 1">
<view class="width100 mart80" v-if="current == 1">
<view class="width100 mart20">
<view class="width90 mart10 fcor333 font14 fontwig6 height22">
<view class="promotion_xg flleft"></view>
@ -267,11 +267,15 @@
couponList:[], //
couponCont:[], //
tabs: ["销售码", "兑换码"], //
current: 0, //
current: 1, //
}
},
onLoad() {
this.getAgentCount(1);
// this.getAgentCount(1);
// this.getAgentConvertCodeCount();
},
onShow() {
this.getAgentCount(1);
this.getAgentConvertCodeCount();
},
methods: {

@ -80,7 +80,7 @@
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" />
</view>
</view>
</view>
</view>
<image src="../static/union5.jpg" class="width100 mart20 marb30" mode="widthFix"></image>
<view class="width100 height60"></view>
<view class="footer">
@ -181,8 +181,8 @@
rechargeModel: '',
agentKey: '',
objectId: '',
OrderPreList: [],
reType:'' //
OrderPreList: [],
reType: '' //
};
},
@ -193,8 +193,8 @@
this.rechargeContent = options.rechargeContent;
this.rechargeModel = options.rechargeModel;
this.agentKey = options.agentKey;
this.objectId = options.objectId;
this.reType = options.rechargeType;
this.objectId = options.objectId;
this.reType = options.rechargeType;
},
onShow() {
let that = this;
@ -269,7 +269,7 @@
if (item.discountType == 1) {
//
this.deductionPrice = item.discountPrice;
this.payPrice = this.paytheprice- this.deductionPrice;
this.payPrice = this.paytheprice - this.deductionPrice;
} else if (item.discountType == 2) {
//
@ -319,8 +319,9 @@
}
});
},
toPay() {
if (this.paytype == '') {
toPay() {
let that = this;
if (that.paytype == '') {
uni.showToast({
title: '请选择支付方式',
icon: 'none',
@ -328,36 +329,42 @@
})
return;
}
uni.showLoading({
title: '提交订单中...'
})
let params = {
"memDiscountId": this.memDiscountId,
"orderPrice": this.orderPrice,
"payPrice": this.payPrice,
"rechargeContent": this.rechargeContent,
"rechargeModel": this.rechargeModel,
"agentKey": this.agentKey,
"objectId": this.objectId,
"identificationCode": app.globalData.identificationCode
}
addOrderPay(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
this.orderId = res.return_data.id;
uni.requestSubscribeMessage({
tmplIds: ['ZO6kC3oJv0zj9QzL0htsF-mM9vAElcgPZEcUGglxsoU'],
success(res) {
uni.showLoading({
title: '提交订单中...'
})
let params = {
"orderId": res.return_data.id,
"openId": app.globalData.openId
"memDiscountId": that.memDiscountId,
"orderPrice": that.orderPrice,
"payPrice": that.payPrice,
"rechargeContent": that.rechargeContent,
"rechargeModel": that.rechargeModel,
"agentKey": that.agentKey,
"objectId": that.objectId,
"identificationCode": app.globalData.identificationCode
}
this.orderToUNionPay(params);
} else {
uni.hideLoading();
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
});
}
addOrderPay(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
that.orderId = res.return_data.id;
let params = {
"orderId": res.return_data.id,
"openId": app.globalData.openId
}
that.orderToUNionPay(params);
} else {
uni.hideLoading();
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
});
}
})
},
fail(res) {},
})
},
//
@ -432,21 +439,21 @@
})
}
})
} else if (that.paytype == 'jinbi') {
if (that.user.gold < that.payPrice * 100) {
uni.showToast({
icon: 'none',
title: '积分不足',
duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/deposit/deposit'
})
}, 1000)
}
});
return;
} else if (that.paytype == 'jinbi') {
if (that.user.gold < that.payPrice * 100) {
uni.showToast({
icon: 'none',
title: '积分不足',
duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/deposit/deposit'
})
}, 1000)
}
});
return;
}
if (!that.user.isSetPayPwd) {
uni.navigateTo({
@ -455,14 +462,14 @@
return;
}
that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') {
if (that.tongCardPrice < that.payPrice) {
uni.showToast({
icon: 'none',
title: '工会卡余额不足',
duration: 2000,
});
return;
} else if (that.paytype == 'gonghuika') {
if (that.tongCardPrice < that.payPrice) {
uni.showToast({
icon: 'none',
title: '工会卡余额不足',
duration: 2000,
});
return;
}
if (!that.user.isSetPayPwd) {
uni.navigateTo({
@ -541,16 +548,16 @@
"orderId": this.orderId,
"cardNo": this.user.hltCardNo.cardNo,
"password": this.PaymentPassword
}
}
hltUnionCardPayUnion(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
uni.showToast({
title: '支付成功'
})
uni.reLaunch({
url: '../Phone-recharge-details/Phone-recharge-details?id=' +
this.orderId
if (res.return_code == '000000') {
uni.showToast({
title: '支付成功'
})
uni.reLaunch({
url: '../Phone-recharge-details/Phone-recharge-details?id=' +
this.orderId
})
return;
}
@ -562,8 +569,8 @@
}
uni.showToast({
title: res.return_msg,
icon: 'none',
duration:2000
icon: 'none',
duration: 2000
})
})

Loading…
Cancel
Save