|
|
@ -1,10 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div v-if="!error"> |
|
|
|
<el-row |
|
|
|
v-for="(item, perIndex) in resData.createImgList" |
|
|
|
:key="perIndex" |
|
|
|
class="yangshi" |
|
|
|
> |
|
|
|
<el-row v-for="(item, perIndex) in resData.createImgList" :key="perIndex" class="yangshi"> |
|
|
|
<el-col :span="3"> {{ item.age }}岁 </el-col> |
|
|
|
<el-col :span="15"> |
|
|
|
<img :src="item.png" height="200px" /> |
|
|
@ -27,16 +23,14 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
let url1 = this.$_.get(window.location.href, ["href"]); |
|
|
|
let url1 = this.$_.get(window.location, ["href"]); |
|
|
|
if (url1) { |
|
|
|
let conf = this.$_.get(url1.split("?")); |
|
|
|
let conf = url1.split("?"); |
|
|
|
if (conf[1]) { |
|
|
|
let id = this.$_.get(conf[1].split("="), [1]); |
|
|
|
if (id.length === 12) { |
|
|
|
console.log(77744, window.location.href, id); |
|
|
|
if (id.length === 24) { |
|
|
|
let res = await this.$axios.get(`/api/getPng?id=${id}`); |
|
|
|
this.resData = this.$_.get(res, ["data", 0]); |
|
|
|
console.log(777, res); |
|
|
|
} else { |
|
|
|
this.error = "无数据"; |
|
|
|
} |
|
|
|