Skip to content

Commit

Permalink
fix: fix the appreciation page cannot get local data
Browse files Browse the repository at this point in the history
  • Loading branch information
xcyeye committed Nov 12, 2021
1 parent 24a127e commit 60d0c5a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
21 changes: 11 additions & 10 deletions Aurora-theme/lib/client/components/global/Donate.vue
Expand Up @@ -51,7 +51,7 @@
:class="{donateListActive: donateListActive}"
id="donate-bottom2">
<div class="donate-pro" id="donate-pro-list">
<div :key="index" v-for="(item,index) in localDonateList" class="donate-bottom-common donate-pro-single">
<div :key="index" v-for="(item,index) in localDonateList" class="donate-bottom-common donate-pro-single">
<div class="pro-img pro-common" id="pro-img-list">
<span>{{item.name}}</span>
</div>
Expand Down Expand Up @@ -126,21 +126,22 @@ export default {
this.hexToRgbColor = this.hexToRgb(background_color)
}
network.req({
baseURL: 'https://pay.cco.vin/pay/info'
//baseURL: 'http://localhost:8099/pay/info'
}).then((res) => {
this.donateList = res
})
if (this.donate.onlineList) {
console.log("执行")
network.req({
baseURL: 'https://pay.cco.vin/pay/info'
}).then((res) => {
this.donateList = res
})
}
},
mounted() {
this.window = window
},
computed: {
localDonateList() {
if (this.themeProperty.donateList !== undefined && this.themeProperty.donateList != null) {
return this.themeProperty.donateList
if (this.themeProperty.donate !== undefined && this.themeProperty.donate != null) {
return this.themeProperty.donate.donateList
}else {
return []
}
Expand Down
19 changes: 18 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,21 @@
# [1.0.0](https://github.com/vuepress-aurora/vuepress-theme-aurora/compare/v1.6.2...v1.0.0) (2021-11-10)
# [1.0.0](https://github.com/vuepress-aurora/vuepress-theme-aurora/compare/v1.7.0...v1.0.0) (2021-11-12)



# [1.7.0](https://github.com/vuepress-aurora/vuepress-theme-aurora/compare/v1.6.2...v1.7.0) (2021-11-12)


### Bug Fixes

* **coze-plugin:** repaire the installation of the plug-in, the build failed ([3923faf](https://github.com/vuepress-aurora/vuepress-theme-aurora/commit/3923fafd35ddd469878fc0b0c016f1a9908a6431))
* **home-social:** fix the homepage social position on the mobile phone ([3ea9622](https://github.com/vuepress-aurora/vuepress-theme-aurora/commit/3ea9622b90ccfa5991be84e62991c55a27e173e0))
* **navbar:** fix the navigation bar interval is large ([06c04d2](https://github.com/vuepress-aurora/vuepress-theme-aurora/commit/06c04d2466b7ba86f1b8cb3bcd99ec23a13d17d8))


### Features

* **coze-plugin:** increase the successful registration and the effect of sprinkling flowers ([3adaf43](https://github.com/vuepress-aurora/vuepress-theme-aurora/commit/3adaf433b420c54f6d6189304319f37d1aef087a))
* **sidebar-avatar:** add sidebar avatar customization ([435b317](https://github.com/vuepress-aurora/vuepress-theme-aurora/commit/435b3172034db1fb35898f6563e77a1a2333d638))



Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Expand Up @@ -835,7 +835,7 @@ module.exports = {
],

//是否显示在线支付的订单信息,如果需要开启,请自己写支付接口,自己修改源码,默认关闭
onlineList: true,
onlineList: false,

//用户赞赏列表数组
donateList: [
Expand Down

0 comments on commit 60d0c5a

Please sign in to comment.