...
|
...
|
@@ -64,12 +64,13 @@ const _formatConsultsList = (data) => { |
|
|
* @limit {[number]} 每页咨询数量
|
|
|
* @return {[object]}
|
|
|
*/
|
|
|
const getConsults = (id, page, limit) => {
|
|
|
const getConsults = (id, page, limit, uid) => {
|
|
|
let params = {
|
|
|
method: 'app.consult.li',
|
|
|
product_id: id,
|
|
|
page: page ? page : 1,
|
|
|
limit: limit ? limit : 300
|
|
|
limit: limit ? limit : 300,
|
|
|
uid
|
|
|
};
|
|
|
|
|
|
return api.get('', params, {
|
...
|
...
|
@@ -160,10 +161,10 @@ let comments = (params) => { |
|
|
* @params {[object]} 查询参数
|
|
|
* @return {[object]}
|
|
|
*/
|
|
|
let consults = (params) => {
|
|
|
let consults = (params, uid) => {
|
|
|
return api.all([
|
|
|
_getCommonConsult(),
|
|
|
getConsults(params.product_id, 1, 60)
|
|
|
getConsults(params.product_id, 1, 60, uid)
|
|
|
]).then(result => {
|
|
|
let data = {
|
|
|
link: `/product/detail/consultform?product_id=${params.product_id}`
|
...
|
...
|
|