|
@@ -979,6 +979,7 @@ let vm = new Vue({
|
|
|
}
|
|
|
$("#calculateOrderPriceDialog").modal('show');
|
|
|
|
|
|
+ this.couponBarCodeChangeFocus();
|
|
|
},
|
|
|
// 计算优惠价格,返回订单详情数据
|
|
|
calculateOrderPriceSubmit : function () {
|
|
@@ -1148,6 +1149,7 @@ let vm = new Vue({
|
|
|
|
|
|
$("#Send").attr("data-dismiss","modal");
|
|
|
$('#payModal').modal('show');
|
|
|
+ this.payCodeChangeFocus();
|
|
|
$("#payCode").keydown(function(e){
|
|
|
if(e.keyCode==13){
|
|
|
$("#submitOrder").click();
|
|
@@ -1331,6 +1333,22 @@ let vm = new Vue({
|
|
|
toUrl('../logout?_' + $.now());
|
|
|
}, 500);
|
|
|
});
|
|
|
+ },
|
|
|
+ couponBarCodeChangeFocus() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.couponBarCode.focus();
|
|
|
+ console.log("123");
|
|
|
+ }, 200);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ payCodeChangeFocus() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.payCode.focus();
|
|
|
+ console.log("456");
|
|
|
+ }, 200);
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
});
|