Commit a4b561e6 by zhangquan

bug修复和mock修改

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