Commit a4b561e6 by zhangquan

bug修复和mock修改

1 parent 53f5765e
...@@ -17,9 +17,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,9 +17,8 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
//return window.fetch('https://', {}).then(res => res.json()) return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config')
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -175,18 +175,29 @@ export default { ...@@ -175,18 +175,29 @@ export default {
}, },
goBurialPointPage(scope){ goBurialPointPage(scope){
const recordType = { const recordType = {
viewAmount: 1, viewAmount: {
fansAmount: 3, id: 1,
shareAmount: 2 name: '浏览明细'
},
fansAmount: {
id: 3,
name: '访客明细'
},
shareAmount: {
id: 2,
name: '分享明细'
}
}[scope.prop] }[scope.prop]
console.log(recordType.id)
const params = { const params = {
recordType, recordType : recordType.id,
strategyName: scope.scope.strategyName, strategyName: scope.scope.strategyName,
id: scope.scope.id id: scope.scope.id
} }
const queryStr = encodeURIComponent(JSON.stringify(params)) const queryStr = encodeURIComponent(JSON.stringify(params))
this.$router.push({ this.$router.push({
path: `/strategy/burialPointList/`+queryStr path: `/strategy/burialPointList/`+queryStr,
query: { $title: recordType.name }
}) })
}, },
handleReset(){ handleReset(){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!