Commit aa64b786 by xinla

--no commit message

1 parent 4875075e
......@@ -34,14 +34,18 @@ export default {
</div>
</template>
<template v-else-if="[7, 9, 10].includes(+data.type)">
<div class="g-card g-pad20 cc ac" style="width: 80%">
小程序
<el-image style="width: 120px; height: 120px" :src="data.avatar" error="头像" fit="fit"></el-image>
<div class="g-card g-pad20 cc ac" style="width: 70%; padding-bottom: 50px">
<div class="mt10">小程序</div>
<div class="mt20 mb20">
<el-image style="width: 120px; height: 120px" :src="data.avatar">
<!-- <div slot="placeholder">请设置</div> -->
</el-image>
</div>
<el-button type="primary">点击打开小程序</el-button>
</div>
</template>
<template v-else>
<div class="g-card g-pad20 cc ac" style="width: 80%">
<div class="g-card g-pad20 cc ac" style="width: 70%">
<div class="al bfc-o">
<el-image
class="fl mr10"
......
......@@ -178,9 +178,9 @@ export default {
<i class="el-icon-copy-document copy-btn cp" title="复制" :data-clipboard-text="row.shortLink"></i>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status">
<!-- <el-table-column label="状态" align="center" prop="status">
<template slot-scope="{ row }">{{ dictStatus[row.status + ''] }}</template>
</el-table-column>
</el-table-column> -->
<el-table-column label="最后更新时间" align="center" prop="updateTime" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="{ row }">
......
......@@ -6,14 +6,16 @@
</div>
</template>
<template v-else-if="[7, 9, 10].includes(+data.type)">
<div class="g-card g-pad20 cc ac" style="width: 80%">
小程序
<image style="width: 120px; height: 120px" :src="data.avatar" error="头像" fit="fit"></image>
<div class="g-card g-pad20 cc ac" style="width: 70%">
<div class="mt10">小程序</div>
<div class="mt20 mb20">
<image style="width: 120px; height: 120px" :src="data.avatar" error="头像" fit="fit"></image>
</div>
<button type="primary">点击打开小程序</button>
</div>
</template>
<template v-else>
<div class="g-card g-pad20 cc ac" style="width: 80%">
<div class="g-card g-pad20 cc ac" style="width: 70%">
<div class="al bfc-o">
<image class="fl mr10" style="width: 50px; height: 50px" :src="data.avatar" error="头像" fit="fit"></image>
<div class="toe">{{ data.name || '无名称' }}</div>
......@@ -27,42 +29,61 @@
</template>
<script>
import { getDetail } from '@/api/intelligentShortLink'
import { touchTypeDict } from './mixin'
import {
getDetail
} from '@/api/intelligentShortLink'
import {
touchTypeDict
} from './mixin'
export default {
data() {
return {
loading: false,
data: {},
touchTypeDict,
}
},
onLoad() {},
created() {
// let id = this.$route.query.id
var pages = getCurrentPages()
var page = pages[pages.length - 1]
// console.log(1,page.route)
this.getDetail(page.route)
},
methods: {
getDetail(path) {
this.loading = true
getDetail(path)
.then(({ data }) => {
this.data = data
uni.setNavigationBarTitle({
title: touchTypeDict[data.type].previewMobileTitle,
export default {
data() {
return {
loading: false,
data: {},
touchTypeDict,
}
},
onLoad() {},
created() {
// let id = this.$route.query.id
var pages = getCurrentPages()
var page = pages[pages.length - 1]
// console.log(1,page.route)
this.getDetail(page.route)
},
methods: {
getDetail(path) {
this.loading = true
getDetail(path)
.then(({
data
}) => {
this.data = data
uni.setNavigationBarTitle({
title: touchTypeDict[data.type].previewMobileTitle,
})
})
.catch(() => {})
.finally(() => {
this.loading = false
})
},
open() {
wx.navigateToMiniProgram({
appId: '',
path: 'page/index/index?id=123',
extraData: {
foo: 'bar',
},
envVersion: 'develop',
success(res) {
// 打开成功
},
})
.catch(() => {})
.finally(() => {
this.loading = false
})
},
},
},
}
}
</script>
<style lang="scss" scoped></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!