Commit 8c890e45 by 李伟康

提交代码

1 parent 24d01e7c
...@@ -16,8 +16,8 @@ export default { ...@@ -16,8 +16,8 @@ export default {
data: { data: {
method: 'scrm.api.shopmall.weapp.activity.group', method: 'scrm.api.shopmall.weapp.activity.group',
id, id,
returnAll: true },
} returnAll: true
}) })
}, },
/** 创建订单(立即购买) */ /** 创建订单(立即购买) */
......
...@@ -50,7 +50,7 @@ const actions = { ...@@ -50,7 +50,7 @@ const actions = {
wxLogin ({ dispatch }, { code, redirectUrl, appId }) { wxLogin ({ dispatch }, { code, redirectUrl, appId }) {
ssoApi.login({ ssoApi.login({
code, code,
appId, appId: window.$fetchConfig.appid,
state: 'snsapi_userinfo' state: 'snsapi_userinfo'
}).then(({ code, data, message }) => { }).then(({ code, data, message }) => {
let route = state.lastPath == 'crowdfunding' ? '' : state.lastPath || '' let route = state.lastPath == 'crowdfunding' ? '' : state.lastPath || ''
...@@ -82,7 +82,7 @@ const actions = { ...@@ -82,7 +82,7 @@ const actions = {
let [redirectUrl] = window.location.href.split('?') let [redirectUrl] = window.location.href.split('?')
const isWxWork = util.getLocalStorage('is_wxwork') const isWxWork = util.getLocalStorage('is_wxwork')
const code = getParams('code') const code = getParams('code')
const appId = util.getAppId() let appId = util.getAppId()
util.showLoading() util.showLoading()
if (process.env.NODE_ENV == 'development') { //本地开发 if (process.env.NODE_ENV == 'development') { //本地开发
if (code) { if (code) {
...@@ -93,7 +93,7 @@ const actions = { ...@@ -93,7 +93,7 @@ const actions = {
getUserInfoFlag: false getUserInfoFlag: false
} : { } : {
code, code,
appId, appId: window.$fetchConfig.appid,
state: 'snsapi_userinfo' state: 'snsapi_userinfo'
} }
ssoApi[target](PARAMS) ssoApi[target](PARAMS)
......
...@@ -331,6 +331,7 @@ export default { ...@@ -331,6 +331,7 @@ export default {
}, },
getActivityGroup () { getActivityGroup () {
shopmallApi.getActivityGroup(this.id).then(({ code, message, data }) => { shopmallApi.getActivityGroup(this.id).then(({ code, message, data }) => {
console.log(data)
let arr = [], items = [] let arr = [], items = []
// console.log(JSON.parse(JSON.stringify(data))) // console.log(JSON.parse(JSON.stringify(data)))
if (code == '0') { if (code == '0') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!