购买按钮

This commit is contained in:
wanyongkang
2020-10-22 09:48:00 +08:00
parent 7c5a57226b
commit b781282ec4
4 changed files with 12 additions and 6 deletions

View File

@@ -197,7 +197,7 @@
<p class="grayText songquan">每隔30天淘宝下单可获得一张优惠券</p>
<p class="redText songquan">{{Tip}}</p>
<div class="ok">
<button type="button" class="btnPay" v-on:click="onePay">确认支付</button>
<button type="button" class="btnPay pay-botton" v-on:click="onePay">确认支付</button>
</div>
</div>
<div class="conPi">
@@ -319,7 +319,7 @@
<p class="grayText songquan">每隔30天淘宝下单可获得一张优惠券</p>
<p class="redText songquan">{{Tip}}</p>
<div class="ok">
<button type="button" class="btnPay" @@click="morePay">确认支付</button>
<button type="button" class="btnPay pay-botton" @@click="morePay">确认支付</button>
</div>
</div>
</div>
@@ -555,6 +555,7 @@
return true;
},
onePay: function () {
$(".pay-botton").hide();
this.OneBuyModel.ConnectCount = parseInt(this.OneBuyModel.ConnectCount)
if (!this.isNum(this.OneBuyModel.ConnectCount)) return;
if (!this.checkOneAccount() || !this.checkOnePwd()) return;
@@ -595,6 +596,7 @@
});
},
morePay: function () {
$(".pay-botton").hide();
this.MoreBuyModel.ConnectCount = parseInt(this.MoreBuyModel.ConnectCount)
if (!this.isNum(this.MoreBuyModel.ConnectCount)) return;
if (!this.checkMoreAccount() || !this.checkMorePwd() || this.MoreBuyModel.MaxPostfix>500) return;

View File

@@ -152,7 +152,7 @@
<p class="grayText songquan">每隔30天淘宝下单可获得一张优惠券</p>
<p class="grayText songquan" style="color:red">{{Tip}}</p>
<div class="ok">
<button type="button" class="btnPay" v-on:click="onePay">确认支付</button>
<button type="button" class="pay-botton "btnPay" v-on:click="onePay">确认支付</button>
</div>
</div>
</div>
@@ -259,6 +259,7 @@
})
},
onePay: function () {
$(".pay-botton").hide();
if (this.OneBuyModel.UseAccountAmount) {
if (this.RestAmount < this.PayAmount){
alert('余额不足,请充值。您也可以使用微信、支付宝支付。');return;

View File

@@ -220,7 +220,7 @@
</div>
</div>
<p class="tiijiao-tipjiao" style="color:red">{{Tip}}</p>
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="onePay">确认支付</button></p>
<p class="tijiao"><button class="btn btn-primary pay-botton" type="button" v-on:click="onePay">确认支付</button></p>
</form>
</div>
@@ -363,7 +363,7 @@
</div>
</div>
<p class="ijiao-tip" style="color:red">{{Tip}}</p>
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="morePay">确认支付</button></p>
<p class="tijiao"><button class="btn btn-primary pay-botton" type="button" v-on:click="morePay">确认支付</button></p>
</form>
</div>
<!-- 支付弹窗开始 -->
@@ -618,6 +618,7 @@
return true;
},
onePay: function () {
$(".pay-botton").hide();
this.OneBuyModel.ConnectCount = parseInt(this.OneBuyModel.ConnectCount)
if (!this.isNum(this.OneBuyModel.ConnectCount)) return;
if (!this.checkOneAccount() || !this.checkOnePwd()) return;
@@ -658,6 +659,7 @@
});
},
morePay: function () {
$(".pay-botton").hide();
this.MoreBuyModel.ConnectCount = parseInt(this.MoreBuyModel.ConnectCount)
if (!this.isNum(this.MoreBuyModel.ConnectCount)) return;
if (!this.checkMoreAccount() || !this.checkMorePwd() || this.MoreBuyModel.MaxPostfix>500) return;

View File

@@ -188,7 +188,7 @@
</div>
</div>
<p class="ijiao-tip" style="color:red">{{Tip}}</p>
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="onePay">确认支付</button></p>
<p class="tijiao"><button class="btn btn-primary pay-botton" type="button" v-on:click="onePay">确认支付</button></p>
</form>
</div>
@@ -316,6 +316,7 @@
})
},
onePay: function () {
$(".pay-botton").hide();
if (this.OneBuyModel.UseAccountAmount) {
if (this.RestAmount < this.PayAmount){
alert('余额不足,请充值。您也可以使用微信、支付宝支付。');return;