diff --git a/plugins/BKStripe/static/image/pay-1.png b/plugins/BKStripe/static/image/pay-1.png new file mode 100644 index 00000000..107298eb Binary files /dev/null and b/plugins/BKStripe/static/image/pay-1.png differ diff --git a/plugins/BKStripe/static/image/pay-2.png b/plugins/BKStripe/static/image/pay-2.png new file mode 100644 index 00000000..589aaaa0 Binary files /dev/null and b/plugins/BKStripe/static/image/pay-2.png differ diff --git a/plugins/BKStripe/static/image/pay-3.png b/plugins/BKStripe/static/image/pay-3.png new file mode 100644 index 00000000..90dcc041 Binary files /dev/null and b/plugins/BKStripe/static/image/pay-3.png differ diff --git a/plugins/BKStripe/static/image/pay-4.png b/plugins/BKStripe/static/image/pay-4.png new file mode 100644 index 00000000..a022d687 Binary files /dev/null and b/plugins/BKStripe/static/image/pay-4.png differ diff --git a/plugins/BKStripe/static/image/pay-5.png b/plugins/BKStripe/static/image/pay-5.png new file mode 100644 index 00000000..fe335544 Binary files /dev/null and b/plugins/BKStripe/static/image/pay-5.png differ diff --git a/themes/default/account/address.blade.php b/themes/default/account/address.blade.php index 810eaf1e..0cd9e1cb 100644 --- a/themes/default/account/address.blade.php +++ b/themes/default/account/address.blade.php @@ -118,7 +118,7 @@ }, deleteAddress(index) { - this.$confirm('确定要删除用户码?', '提示', { + this.$confirm('确定要删除地址吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -143,6 +143,10 @@ const url = `/account/addresses${type == 'put' ? '/' + this.form.id : ''}`; $http[type](url, this.form).then((res) => { + if (res.data.default) { + this.addresses.map(e => e.default = false) + } + if (type == 'post') { this.addresses.push(res.data) } else { diff --git a/themes/default/checkout/payment/bk_stripe.blade.php b/themes/default/checkout/payment/bk_stripe.blade.php index 3056cc2a..af48d222 100644 --- a/themes/default/checkout/payment/bk_stripe.blade.php +++ b/themes/default/checkout/payment/bk_stripe.blade.php @@ -1,116 +1,120 @@ -
-
-
-
卡信息
-
- - - +
+
+ {{-- --}} +
卡信息
+
+ + + + + +
+ + + - -
- - - - - - - - -
+ + + - - - - - 記住這張卡以備將來使用 - - -
-
-
- -
-
-
-
订单结账
- -
-
-
    -
  • 订单号@{{ source.order.number }}
  • -
  • 运费15
  • -
  • 应付总金额
  • -
-
-
-
+ + + + + + 記住這張卡以備將來使用 + + +
+
+
+ +
+
+
+
订单结账
+ +
+
+
    +
  • 订单号@{{ source.order.number }}
  • +
  • 运费15
  • +
  • 应付总金额
  • +
+
+
+
+
- + }, + beforeMount() {}, + + methods: { + checkedBtnCheckoutConfirm(form) { + this.$refs[form].validate((valid) => { + if (!valid) { + this.$message.error('请检查表单是否填写正确'); + return; + } + + console.log(this.form); + + $http.post(`/orders/${this.source.order.number}/pay`, this.form).then((res) => { + console.log(res) + }) + }); + } + } + }) +