Commit 5169da0d authored by 徐一鸣's avatar 徐一鸣

应用商店详情样式优化

parent 5695b1bd
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<h3 <h3
class="detail-title" class="detail-title"
v-text="item.name + ':'" v-text="item.name + ':'"
v-if="item.type != 'rich-text'"
></h3> ></h3>
<service-steps <service-steps
......
...@@ -58,21 +58,44 @@ export default { ...@@ -58,21 +58,44 @@ export default {
console.log(error); console.log(error);
}); });
this.$http let detailData = [
.get(`/apaas/hubApi/market/readme/${this.id}`)
.then(({ data }) => {
this.detailData = [
{ {
name: "获取流程", name: "获取流程",
type: "step", type: "step",
value: ["应用申请", "信息填写", "审核确认", "应用获取"], value: ["应用申请", "信息填写", "审核确认", "应用获取"],
}, },
];
Promise.all([
this.$http.get(`/apaas/hubApi/market/app/detail/${this.id}`),
this.$http.get(`/apaas/hubApi/market/values/${this.id}`),
])
.then((response) => {
let data1 = response[0].data.data;
let data2 = response[1].data.data;
detailData.push(
{ {
name: "富文本", name: "应用简介",
type: "rich-text", type: "text",
value: data.data, value: data1.yyjj,
}, },
]; {
name: "功能简介",
type: "text",
value: data1.gnjj,
},
{
name: "应用场景",
type: "text",
value: data1.cjsl,
},
{
name: "应用参数",
type: "rich-text",
value: data2,
}
);
this.detailData = detailData;
}) })
.catch(function(error) { .catch(function(error) {
console.log(error); console.log(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment