|
@@ -81,8 +81,8 @@ export default {
|
|
|
|
|
|
if (PAYS[item.id] !== 'paypal') {
|
|
if (PAYS[item.id] !== 'paypal') {
|
|
if (this.isWeixin) {
|
|
if (this.isWeixin) {
|
|
- let href = spaceId ? `https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=http%3a%2f%2ftest.4dkankan.com%2fapi%2forder%2fpay%2fwechatPreJsPay%3forderId=${orderId}%26spaceId=${spaceId || null}%26orderType=${Number(orderType)}&appid=wx779dbafb46bab697&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect`
|
|
|
|
- : `https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=http%3a%2f%2ftest.4dkankan.com%2fapi%2forder%2fpay%2fwechatPreJsPay%3forderId=${orderId}%26orderType=${Number(orderType)}&appid=wx779dbafb46bab697&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect`
|
|
|
|
|
|
+ let href = spaceId ? `https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=https%3a%2f%www.4dkankan.com%2fapi%2forder%2fpay%2fwechatPreJsPay%3forderId=${orderId}%26spaceId=${spaceId || null}%26orderType=${Number(orderType)}&appid=wx779dbafb46bab697&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect`
|
|
|
|
+ : `https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=https%3a%2f%2fwww.4dkankan.com%2fapi%2forder%2fpay%2fwechatPreJsPay%3forderId=${orderId}%26orderType=${Number(orderType)}&appid=wx779dbafb46bab697&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect`
|
|
return location.replace(href)
|
|
return location.replace(href)
|
|
}
|
|
}
|
|
let response = await this.$http
|
|
let response = await this.$http
|