diff --git a/combining.html b/combining.html
index 9888f1d..b375249 100644
--- a/combining.html
+++ b/combining.html
@@ -587,7 +587,7 @@
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
diff --git a/coupon/myOrder.html b/coupon/myOrder.html
index caf5b8c..5197695 100644
--- a/coupon/myOrder.html
+++ b/coupon/myOrder.html
@@ -344,7 +344,7 @@
window.location.origin +
"/alipay.html?orderNumber=" + res.alipay_order_number
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) {
//在微信内置环境、百度app打开,不能唤起支付宝
this.href = link;
diff --git a/order.html b/order.html
index 82871f7..a3ce556 100644
--- a/order.html
+++ b/order.html
@@ -232,7 +232,7 @@
}
let link =
- "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
+ "https://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (
ua.indexOf("micromessenger") > -1 ||
diff --git a/packkey/combining.html b/packkey/combining.html
index 04db3ee..29a5cd7 100644
--- a/packkey/combining.html
+++ b/packkey/combining.html
@@ -621,7 +621,7 @@
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
diff --git a/packkey/order.html b/packkey/order.html
index 4a61788..eaf6383 100644
--- a/packkey/order.html
+++ b/packkey/order.html
@@ -223,7 +223,7 @@
data.order_number
);
let link =
- "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
+ "https://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (
ua.indexOf("micromessenger") > -1 ||
diff --git a/packkey/reduce.html b/packkey/reduce.html
index b246e21..0f904ed 100644
--- a/packkey/reduce.html
+++ b/packkey/reduce.html
@@ -331,7 +331,7 @@
window.location.origin +
"/packkey/alipay.html?orderNumber=" + this.orderId
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) {
//复制链接地址,提醒去浏览器打开
diff --git a/packkey/wx-combining.html b/packkey/wx-combining.html
index 52943bb..2a7c3e0 100644
--- a/packkey/wx-combining.html
+++ b/packkey/wx-combining.html
@@ -214,7 +214,7 @@
const emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
new Vue({
el: "#app",
- data () {
+ data() {
return {
goods: '',
backAble: (~~sessionStorage.getItem('goodsCount')) > 1,
@@ -249,7 +249,7 @@
};
},
- mounted () {
+ mounted() {
document.title = localStorage.getItem('title');
this.code_batch_id = JSON.parse(sessionStorage.getItem('goodsInfo')).entity.code_batch_id;
this.getProductDetail();
@@ -272,7 +272,7 @@
},
computed: {
- dynamicStyle () {
+ dynamicStyle() {
switch (Number(this.goods.group_info.channel)) {
case 1:
return {
@@ -326,7 +326,7 @@
methods: {
//获取商品详情
- getProductDetail () {
+ getProductDetail() {
const self = this;
req.axiosGet('/key/group/v2/groupProductDetail', {
token: self.token,
@@ -391,7 +391,7 @@
}).catch();
},
// 轮循
- groupProductVoucherDetail () {
+ groupProductVoucherDetail() {
let self = this;
req.axiosPost('/key/group/groupProductVoucherDetail', {
token: this.token,
@@ -507,7 +507,7 @@
/* ******************************************** 官方领取 ******************************************** */
/* 直接领取 */
- directSubmit () {
+ directSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -558,7 +558,7 @@
},
/* 公众号领取 */
- publicCollection () {
+ publicCollection() {
let params = {
token: this.token,
code_batch_id: this.code_batch_id,
@@ -588,7 +588,7 @@
},
/* 支付宝官方领取H5跳转 */
- toLinkAlipay () {
+ toLinkAlipay() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
@@ -604,7 +604,7 @@
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
@@ -621,7 +621,7 @@
/* ******************************************** 账号领取 ******************************************** */
/* 立即领取 */
- submit () {
+ submit() {
if (this.goods.group_info.channel == 3 || this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 2) {
const { confirm, receive_account } = this.form;
if (this.loading) return;
@@ -638,7 +638,7 @@
},
// 提交函数
- submitOne (data) {
+ submitOne(data) {
/* 领取立减金 */
req.axiosPost("/key/couponGroupUsage", data)
.then(({ code, message }) => {
@@ -656,7 +656,7 @@
},
// 重试函数
- resetSubmit (data) {
+ resetSubmit(data) {
/* 领取立减金 */
req.axiosPost("/voucher/groupVoucherRetry", data)
.then(({ code, message }) => {
@@ -670,7 +670,7 @@
},
/* 验证后 最终提交 */
- finalSubmit () {
+ finalSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -697,7 +697,7 @@
},
/* 返回 */
- backGoodsFn () {
+ backGoodsFn() {
if (this.backAble) {
window.location.replace('./homepage.html');
} else {
@@ -706,7 +706,7 @@
},
/* 接口异常处理 */
- axiosErrorFun (code, message) {
+ axiosErrorFun(code, message) {
this.loading = false;
if (code == 403) {
if (this.backAble) {
@@ -723,7 +723,7 @@
},
//复制文本
- copyFn () {
+ copyFn() {
var textArea = document.createElement("textarea");
textArea.value = this.copyLink;
document.body.appendChild(textArea);
@@ -738,7 +738,7 @@
},
/* 触发提示 */
- tips (text) {
+ tips(text) {
this.cls && clearTimeout(this.cls);
this.prompt_text = text;
this.promptShow = true;
@@ -747,18 +747,18 @@
}, 3000);
},
// 错误弹出框关闭
- knowFn () {
+ knowFn() {
this.popboxshow = false;
this.maskshow = false;
},
// 错误弹窗
- openErrorDialog (tip) {
+ openErrorDialog(tip) {
this.maskshow = true;
this.tiptext = tip;
this.popboxshow = true;
},
// 6发放中 1待使用 9领取失败 20待领取 轮循+详情
- formatStatusText (status) {
+ formatStatusText(status) {
switch (status) {
case 6:
return "发放中";
@@ -775,7 +775,7 @@
}
},
// 计算 num
- computeNum (data) {
+ computeNum(data) {
const self = this;
let new_product = data.map(item => {
let result = item.voucher.reduce((acc, curr) => {
diff --git a/packkey/ysf-combining.html b/packkey/ysf-combining.html
index f990945..cad5bee 100644
--- a/packkey/ysf-combining.html
+++ b/packkey/ysf-combining.html
@@ -214,7 +214,7 @@
const emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
new Vue({
el: "#app",
- data () {
+ data() {
return {
goods: '',
backAble: (~~sessionStorage.getItem('goodsCount')) > 1,
@@ -249,7 +249,7 @@
};
},
- mounted () {
+ mounted() {
document.title = localStorage.getItem('title');
this.code_batch_id = JSON.parse(sessionStorage.getItem('goodsInfo')).entity.code_batch_id;
this.getProductDetail();
@@ -272,7 +272,7 @@
},
computed: {
- dynamicStyle () {
+ dynamicStyle() {
switch (Number(this.goods.group_info.channel)) {
case 1:
return {
@@ -326,7 +326,7 @@
methods: {
//获取商品详情
- getProductDetail () {
+ getProductDetail() {
const self = this;
req.axiosGet('/key/group/v2/groupProductDetail', {
token: self.token,
@@ -391,7 +391,7 @@
}).catch();
},
// 轮循
- groupProductVoucherDetail () {
+ groupProductVoucherDetail() {
let self = this;
req.axiosPost('/key/group/groupProductVoucherDetail', {
token: this.token,
@@ -507,7 +507,7 @@
/* ******************************************** 官方领取 ******************************************** */
/* 直接领取 */
- directSubmit () {
+ directSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -557,7 +557,7 @@
},
/* 公众号领取 */
- publicCollection () {
+ publicCollection() {
let params = {
token: this.token,
code_batch_id: this.code_batch_id,
@@ -587,7 +587,7 @@
},
/* 支付宝官方领取H5跳转 */
- toLinkAlipay () {
+ toLinkAlipay() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
@@ -603,7 +603,7 @@
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
@@ -620,7 +620,7 @@
/* ******************************************** 账号领取 ******************************************** */
/* 立即领取 */
- submit () {
+ submit() {
if (this.goods.group_info.channel == 3 || this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 2) {
const { confirm, receive_account } = this.form;
if (this.loading) return;
@@ -637,7 +637,7 @@
},
// 提交函数
- submitOne (data) {
+ submitOne(data) {
/* 领取立减金 */
req.axiosPost("/key/couponGroupUsage", data)
.then(({ code, message }) => {
@@ -655,7 +655,7 @@
},
// 重试函数
- resetSubmit (data) {
+ resetSubmit(data) {
/* 领取立减金 */
req.axiosPost("/voucher/groupVoucherRetry", data)
.then(({ code, message }) => {
@@ -669,7 +669,7 @@
},
/* 验证后 最终提交 */
- finalSubmit () {
+ finalSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -696,7 +696,7 @@
},
/* 返回 */
- backGoodsFn () {
+ backGoodsFn() {
if (this.backAble) {
window.location.replace('./homepage.html');
} else {
@@ -705,7 +705,7 @@
},
/* 接口异常处理 */
- axiosErrorFun (code, message) {
+ axiosErrorFun(code, message) {
this.loading = false;
if (code == 403) {
if (this.backAble) {
@@ -722,7 +722,7 @@
},
//复制文本
- copyFn () {
+ copyFn() {
var textArea = document.createElement("textarea");
textArea.value = this.copyLink;
document.body.appendChild(textArea);
@@ -737,7 +737,7 @@
},
/* 触发提示 */
- tips (text) {
+ tips(text) {
this.cls && clearTimeout(this.cls);
this.prompt_text = text;
this.promptShow = true;
@@ -746,18 +746,18 @@
}, 3000);
},
// 错误弹出框关闭
- knowFn () {
+ knowFn() {
this.popboxshow = false;
this.maskshow = false;
},
// 错误弹窗
- openErrorDialog (tip) {
+ openErrorDialog(tip) {
this.maskshow = true;
this.tiptext = tip;
this.popboxshow = true;
},
// 6发放中 1待使用 9领取失败 20待领取 轮循+详情
- formatStatusText (status) {
+ formatStatusText(status) {
switch (status) {
case 6:
return "发放中";
@@ -774,7 +774,7 @@
}
},
// 计算 num
- computeNum (data) {
+ computeNum(data) {
const self = this;
let new_product = data.map(item => {
let result = item.voucher.reduce((acc, curr) => {
diff --git a/paysuccess.html b/paysuccess.html
index 6c2e27b..279c89e 100644
--- a/paysuccess.html
+++ b/paysuccess.html
@@ -164,7 +164,7 @@
window.location.origin +
"/alipay.html?orderNumber=" + this.orderId
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
/* 判断如果是微信浏览器或者百度浏览器 则无法拉起支付宝 */
if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) {
diff --git a/reduce.html b/reduce.html
index 6ae4b7a..cc5576d 100644
--- a/reduce.html
+++ b/reduce.html
@@ -320,7 +320,7 @@
window.location.origin +
"/alipay.html?orderNumber=" + this.orderId
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) {
//复制链接地址,提醒去浏览器打开
diff --git a/wx-combining.html b/wx-combining.html
index 25d3ccd..adac1b9 100644
--- a/wx-combining.html
+++ b/wx-combining.html
@@ -566,7 +566,7 @@
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
diff --git a/ysf-combining.html b/ysf-combining.html
index 2aa5fc4..680adc5 100644
--- a/ysf-combining.html
+++ b/ysf-combining.html
@@ -213,7 +213,7 @@
const emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
new Vue({
el: "#app",
- data () {
+ data() {
return {
goods: '',
backAble: (~~sessionStorage.getItem('goodsCount')) > 1,
@@ -248,7 +248,7 @@
};
},
- mounted () {
+ mounted() {
document.title = localStorage.getItem('title');
this.code_batch_id = JSON.parse(sessionStorage.getItem('goodsInfo')).entity.code_batch_id;
this.getProductDetail();
@@ -271,7 +271,7 @@
},
computed: {
- dynamicStyle () {
+ dynamicStyle() {
switch (Number(this.goods.group_info.channel)) {
case 1:
return {
@@ -325,7 +325,7 @@
methods: {
//获取商品详情
- getProductDetail () {
+ getProductDetail() {
const self = this;
req.axiosGet('/key/group/v2/groupProductDetail', {
token: self.token,
@@ -378,7 +378,7 @@
}).catch();
},
// 轮循
- groupProductVoucherDetail () {
+ groupProductVoucherDetail() {
let self = this;
req.axiosPost('/key/group/groupProductVoucherDetail', {
token: this.token,
@@ -494,7 +494,7 @@
/* ******************************************** 官方领取 ******************************************** */
/* 直接领取 */
- directSubmit () {
+ directSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -540,7 +540,7 @@
},
/* 公众号领取 */
- publicCollection () {
+ publicCollection() {
let params = {
token: this.token,
code_batch_id: this.code_batch_id,
@@ -560,13 +560,13 @@
},
/* 支付宝官方领取H5跳转 */
- toLinkAlipay () {
+ toLinkAlipay() {
let self = this;
let banklink = encodeURIComponent(
window.location.origin +
`/packkey/combiningAlipay.html?codeBatchId=${this.code_batch_id}&token=${this.token}`
);
- let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
+ let link = "https://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
if (isWx() ||
(ua.indexOf("android") > -1 &&
@@ -583,7 +583,7 @@
/* ******************************************** 账号领取 ******************************************** */
/* 立即领取 */
- submit () {
+ submit() {
if (this.goods.group_info.channel == 3 || this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 2) {
const { confirm, receive_account } = this.form;
if (this.loading) return;
@@ -600,7 +600,7 @@
},
// 提交函数
- submitOne (data) {
+ submitOne(data) {
/* 领取立减金 */
req.axiosPost("/key/couponGroupUsage", data)
.then(({ code, message }) => {
@@ -614,7 +614,7 @@
},
// 重试函数
- resetSubmit (data) {
+ resetSubmit(data) {
/* 领取立减金 */
req.axiosPost("/voucher/groupVoucherRetry", data)
.then(({ code, message }) => {
@@ -628,7 +628,7 @@
},
/* 验证后 最终提交 */
- finalSubmit () {
+ finalSubmit() {
const self = this;
self.loading = true;
setTimeout(() => {
@@ -655,7 +655,7 @@
},
/* 返回 */
- backGoodsFn () {
+ backGoodsFn() {
if (this.backAble) {
window.location.replace('./homepage.html');
} else {
@@ -664,7 +664,7 @@
},
/* 接口异常处理 */
- axiosErrorFun (code, message) {
+ axiosErrorFun(code, message) {
this.loading = false;
if (code == 403) {
if (this.backAble) {
@@ -681,7 +681,7 @@
},
//复制文本
- copyFn () {
+ copyFn() {
var textArea = document.createElement("textarea");
textArea.value = this.copyLink;
document.body.appendChild(textArea);
@@ -696,7 +696,7 @@
},
/* 触发提示 */
- tips (text) {
+ tips(text) {
this.cls && clearTimeout(this.cls);
this.prompt_text = text;
this.promptShow = true;
@@ -705,18 +705,18 @@
}, 3000);
},
// 错误弹出框关闭
- knowFn () {
+ knowFn() {
this.popboxshow = false;
this.maskshow = false;
},
// 错误弹窗
- openErrorDialog (tip) {
+ openErrorDialog(tip) {
this.maskshow = true;
this.tiptext = tip;
this.popboxshow = true;
},
// 6发放中 1待使用 9领取失败 20待领取 轮循+详情
- formatStatusText (status) {
+ formatStatusText(status) {
switch (status) {
case 6:
return "发放中";
@@ -733,7 +733,7 @@
}
},
// 计算 num
- computeNum (data) {
+ computeNum(data) {
const self = this;
let new_product = data.map(item => {
let result = item.voucher.reduce((acc, curr) => {