Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
支持页面添加广告赞助位
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Sep 29, 2018
1 parent cba60a9 commit 62ef23a
Showing 1 changed file with 48 additions and 18 deletions.
66 changes: 48 additions & 18 deletions front/src/views/Support.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,64 @@
<template>
<div>
<h2>如果觉得本软件不错,不妨打赏一下作者吧,让作者有动力持续更新版本和修复BUG。</h2>
<div class="qr">
<img src="pay/alipay.png" />
<b>支付宝</b>
</div>
<div class="qr">
<img src="pay/weipay.png" />
<b>微信</b>
</div>
<Card>
<p slot="title">如果觉得本软件不错的话,可以通过下面的二维码打赏作者,让作者有动力持续更新版本和修复BUG。</p>
<div class="card-container">
<img class="qr-img" src="pay/alipay.png" />
<b>支付宝</b>
</div>
<div class="card-container">
<img class="qr-img" src="pay/weipay.png" />
<b>微信</b>
</div>
</Card>
<Card v-if="softList.length>0"
style="margin-top:20px;">
<p slot="title">另外作者在这里推荐几款正版软件,有需要的话可以看一看,你们的每一次点击都是对作者的鼓励。</p>
<div v-for="(soft,index) in softList"
:key="index"
class="card-container">
<img class="ad-img" :src="soft.preview" />
<a href="#"
@click="openUrl(soft.url)"><b>{{soft.title}}</b></a>
</div>
</Card>
</div>
</template>

<script>
export default {}
import { openUrl } from '../common/native.js'
export default {
data() {
return {
softList: []
}
},
methods: {
openUrl(url) {
openUrl(url)
}
},
created() {
this.$noSpinHttp.get(this.$config.adminServer + 'recommend/soft').then(result => {
this.softList = result.data
})
}
}
</script>

<style scoped>
.qr {
.card-container {
display: inline-block;
width: 200px;
width: 220px;
text-align: center;
margin: 20px;
}
.qr img {
width: 200px;
height: 200px;
margin: 5px;
}
.qr b {
.card-container b {
display: inline-block;
padding-top: 5px;
}
.card-container img {
width: 200px;
height: 200px;
}
</style>

0 comments on commit 62ef23a

Please sign in to comment.