Commit 1af4fcd2 authored by 黄奎's avatar 黄奎

提交

parent 8225a660
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
<img style="width:50rpx;height:50rpx;margin-right:10px" :src="item.src" alt="" /> <img style="width:50rpx;height:50rpx;margin-right:10px" :src="item.src" alt="" />
<span style="position:relative;top:-7px">{{item.Name}}</span> <span style="position:relative;top:-7px">{{item.Name}}</span>
</p> --> </p> -->
<u-radio-group v-model="payment" :size="36" :active-color='mc' @change="radioChange"> <u-radio-group v-model="payment" :size="36" :active-color='mc' @change="radioChange" :wrap="true">
<u-radio shape="circle" :name="0"> <u-radio shape="circle" :name="0" :wrap="true">
<img style="width:50rpx;height:50rpx;margin-right:10px" <img style="width:50rpx;height:50rpx;margin-right:10px"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/wx.png" alt="" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/wx.png" alt="" />
<span style="position:relative;top:-7px">微信</span> <span style="position:relative;top:-7px">微信</span>
</u-radio> </u-radio>
<u-radio v-if="u.TenantId==27" shape="circle" :name="1"> <u-radio v-if="u.TenantId==27" shape="circle" :name="1" :wrap="true">
<img style="width:50rpx;height:50rpx;margin-right:10px" <img style="width:50rpx;height:50rpx;margin-right:10px"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/zhifubao.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/zhifubao.png"
alt="" /> alt="" />
...@@ -50,15 +50,19 @@ ...@@ -50,15 +50,19 @@
<view class="Alipay-box33"> <view class="Alipay-box33">
<image class="Alipay-image" src="../../static/images/zhifu.png"></image> <image class="Alipay-image" src="../../static/images/zhifu.png"></image>
</view> </view>
<view class="Alipay-text4" @click="send()" style="margin-bottom: 86rpx;"> <view class="item-box">
去发送 <view class="Alipay-text4" @click="send()" style="margin-bottom: 86rpx;">
去发送
<button open-type="contact" send-message-title="支付" :show-message-card="true">0</button>
</view>
</view> </view>
<view> <view>
<view class="Alipay-box3"> <view class="Alipay-box3">
<view class="Alipay-text2">2</view> <view class="Alipay-text2">2</view>
<view class="Alipay-text3">复制支付宝链接,使用浏览器打开连接</view> <view class="Alipay-text3">复制支付宝链接,使用浏览器打开连接</view>
</view> </view>
<view class="Alipay-text5">wwww.baidu.com</view> <view class="Alipay-text5">{{url}}</view>
<view class="Alipay-text4" @click="copy()"> <view class="Alipay-text4" @click="copy()">
复制链接 复制链接
</view> </view>
...@@ -75,6 +79,7 @@ ...@@ -75,6 +79,7 @@
props: ['payInfo', 'isAlipay', 'StuId', 'TeacherIds'], props: ['payInfo', 'isAlipay', 'StuId', 'TeacherIds'],
data() { data() {
return { return {
url:'',
AlipayMask: false, AlipayMask: false,
mc: {}, mc: {},
payment: 0, payment: 0,
...@@ -116,8 +121,7 @@ ...@@ -116,8 +121,7 @@
if (e == 0) { if (e == 0) {
this.payType = 'wx_lite' this.payType = 'wx_lite'
} else { } else {
// this.AlipayMask = true this.payType = 'alipay_qr'
// this.pay = false
} }
}, },
cloGood() { cloGood() {
...@@ -130,7 +134,7 @@ ...@@ -130,7 +134,7 @@
}, },
copy() { copy() {
uniCopy({ uniCopy({
content: '地址复制', content: this.url,
success: (res) => { success: (res) => {
uni.showToast({ uni.showToast({
title: res, title: res,
...@@ -151,7 +155,7 @@ ...@@ -151,7 +155,7 @@
this.$emit('closePay'); this.$emit('closePay');
}, },
Pay() { Pay() {
if (this.payment == 0) { // if (this.payment == 0) {
let msg = { let msg = {
'pay_channel': this 'pay_channel': this
.payType, //网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub .payType, //网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub
...@@ -173,6 +177,8 @@ ...@@ -173,6 +177,8 @@
if (res.data != '') { if (res.data != '') {
if (this.payType != 'wx_lite') { if (this.payType != 'wx_lite') {
this.aliPay(res.data) this.aliPay(res.data)
this.AlipayMask =true
this.pay = false
} else { } else {
this.wxPay(JSON.parse(res.data)) this.wxPay(JSON.parse(res.data))
} }
...@@ -185,15 +191,18 @@ ...@@ -185,15 +191,18 @@
// uni.hideNavigationBarLoading(); // uni.hideNavigationBarLoading();
} }
); );
} else { // }
this.AlipayMask = true // else {
this.pay = false // this.AlipayMask = true
} // this.pay = false
// }
}, },
// 支付宝支付 // 支付宝支付
aliPay(url) { aliPay(url) {
window.location.href = url // window.location.href = url
this.url = url
}, },
// 微信支付 // 微信支付
wxPay(payData) { wxPay(payData) {
...@@ -246,6 +255,9 @@ ...@@ -246,6 +255,9 @@
</script> </script>
<style> <style>
.item-box{
position: relative;
}
.Alipay-box { .Alipay-box {
/* height: 930rpx; */ /* height: 930rpx; */
background: #FFFFFF; background: #FFFFFF;
...@@ -322,8 +334,9 @@ ...@@ -322,8 +334,9 @@
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #3A22CB; color: #3A22CB;
line-height: 5rpx; /* line-height: 5rpx; */
margin-left: 68rpx; margin-left: 68rpx;
margin-bottom: 59rpx; margin-bottom: 59rpx;
word-wrap: break-word;
} }
</style> </style>
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