提交 94fb71d2 编写于 作者: guofeng.chen's avatar guofeng.chen

修改参数

上级 20dfb089
......@@ -78,8 +78,9 @@ const user = {
getWxUserInfo({ state, commit }, code) {
const type = 15;
let url = process.env.BUILD_ENV === 'dev' ? `https://sc.yunqueyi.com/wechats/users/info/${type}/${code}` : getBaseUrl(`wechats/users/info/${type}/${code}`);
fetch({
url: `https://sc.yunqueyi.com/wechats/users/info/${type}/${code}`,
url,
method: 'get',
headers: { token: state.token }
}).then(res => {
......
......@@ -8,7 +8,8 @@ export const wxConfig = (link) => {
// const params = { resetURI: true, url: encodeURIComponent(location.href) };
// 上线前是需要把域名改为线上的sc
let baseUrl = getBaseUrl("");
request({ url: `https://sc.yunqueyi.com/wechats/signs?url=${encodeURIComponent(link)}&type=15` }).then(res => {
let type = process.env.BUILD_ENV === 'dev' ? '&type=15' : '';
request({ url: `https://sc.yunqueyi.com/wechats/signs?url=${encodeURIComponent(link)}${type}` }).then(res => {
// request({ url: `${baseUrl}/wechats/signs?url=${encodeURIComponent(link)}` }).then(res => {
let configs = res.data.signMap;
wx.config({
......
......@@ -301,10 +301,10 @@ export default {
tradeType: 3,
}
this.POST('trade/center/mweb_prepay', data).then(res => {
if (res.code == "000000") {
if (res.code == "000000" && res.data) {
let redirectUrl = this.getRedirectUrl(orderId);
let jumpLink = res.data + '&redirect_url=' + encodeURIComponent(redirectUrl);
// window.location.href = jumpLink;
window.location.href = jumpLink;
} else {
this.$toast(res.message);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册