Browse Source

update

master
lc18518571399 11 months ago
parent
commit
c0939d0a6b
  1. 14
      h5/src/App.vue

14
h5/src/App.vue

@ -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 = "无数据";
}

Loading…
Cancel
Save