This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |