吆喝
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<uni-popup type="center" ref="redeemVip">
|
||||
<view class="vipBox">
|
||||
<view class="vipTitle">VIP激活</view>
|
||||
<view class="vipContent">
|
||||
<input type="text" class="ipt" placeholder="请输入卡密" v-model="vipCode">
|
||||
<!-- <input type="text" class="ipt" placeholder="请输入密码" v-model="vipPass">-->
|
||||
</view>
|
||||
<view class="vipFooter">
|
||||
<view class="vipConfirmBtn footerBtn" @click="submitCard">确定</view>
|
||||
<view class="vipCancelBtn footerBtn" @click="closeRedeem">取消</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "depositPup",
|
||||
data() {
|
||||
return {
|
||||
vipCode: '',
|
||||
vipPass: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitCard(){
|
||||
let that = this;
|
||||
uni.request({
|
||||
url: that.configs.webUrl + '/api/Cryptocard/exchangeCard',
|
||||
method: 'get',
|
||||
data: {
|
||||
dense: this.vipCode,
|
||||
vipPass: this.vipPass
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
if(res.data.code == 1){
|
||||
this.$emit('redeemVip',res.data.data)
|
||||
this.closeRedeem()
|
||||
}else{
|
||||
uni.showToast()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
showRedeem() {
|
||||
this.$refs.redeemVip.open('center')
|
||||
},
|
||||
closeRedeem() {
|
||||
this.$refs.redeemVip.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
.vipBox{
|
||||
width: 600rpx;
|
||||
border-radius: 15rpx;
|
||||
background-color: #fff;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
.vipTitle{
|
||||
line-height: 60rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
.vipContent{
|
||||
padding: 20rpx;
|
||||
}
|
||||
.ipt{
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
padding-left: 15rpx;
|
||||
font-size: 30rpx;
|
||||
border: 1rpx solid #eeeeee;
|
||||
margin-top: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.vipFooter{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content:space-around;
|
||||
padding: 20rpx 0;
|
||||
margin: 0 30rpx;
|
||||
}
|
||||
.footerBtn{
|
||||
width: 200rpx;
|
||||
line-height: 70rpx;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.vipConfirmBtn{
|
||||
background-color: #00C657;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.vipCancelBtn{
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user