...
|
...
|
@@ -8,7 +8,7 @@ export default { |
|
|
return state.products[productId];
|
|
|
},
|
|
|
async fetchProductInfo({ commit, state, rootGetters }, { productId }) {
|
|
|
const queryUrls = ['', '/resource', '/activity', '/recommend']
|
|
|
const queryUrls = ['', '/resource', '/activity', '/recommend', '/vedioImage']
|
|
|
if(rootGetters.getLogin) {
|
|
|
queryUrls.push('/limit/info')
|
|
|
}
|
...
|
...
|
@@ -29,8 +29,11 @@ export default { |
|
|
});
|
|
|
});
|
|
|
|
|
|
let [detail, resource, activity, recommend, limitInfo] = await Promise.all(queryTasks);
|
|
|
let [detail, resource, activity, recommend, vedioResource, limitInfo] = await Promise.all(queryTasks);
|
|
|
|
|
|
if(vedioResource) {
|
|
|
|
|
|
}
|
|
|
// 视频资源位
|
|
|
const videoResourceInfo = resource.find(r=> /(\.mp4)/.test(r.data[0].url));
|
|
|
const videoResource = get(videoResourceInfo, 'data[0]', {});
|
...
|
...
|
@@ -224,5 +227,5 @@ export default { |
|
|
});
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
},
|
|
|
}; |
...
|
...
|
|