mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(frontend):添加微信公众号二维码并更新相关页面
- 在 about.vue 中添加微信公众号二维码图片 - 在 AppInfo 结构中添加 Wxgzh 字段用于存储微信公众号二维码链接 - 在 main.go 中嵌入微信公众号二维码图片 - 在 models 和 TypeScript 中添加相应字段支持微信公众号二维码
This commit is contained in:
parent
c6b841fb8f
commit
58f3009902
1
app.go
1
app.go
@ -863,6 +863,7 @@ func (a *App) GetVersionInfo() *models.VersionInfo {
|
|||||||
Icon: GetImageBase(icon),
|
Icon: GetImageBase(icon),
|
||||||
Alipay: GetImageBase(alipay),
|
Alipay: GetImageBase(alipay),
|
||||||
Wxpay: GetImageBase(wxpay),
|
Wxpay: GetImageBase(wxpay),
|
||||||
|
Wxgzh: GetImageBase(wxgzh),
|
||||||
Content: VersionCommit,
|
Content: VersionCommit,
|
||||||
OfficialStatement: OFFICIAL_STATEMENT,
|
OfficialStatement: OFFICIAL_STATEMENT,
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,7 @@ type VersionInfo struct {
|
|||||||
Icon string `json:"icon"`
|
Icon string `json:"icon"`
|
||||||
Alipay string `json:"alipay"`
|
Alipay string `json:"alipay"`
|
||||||
Wxpay string `json:"wxpay"`
|
Wxpay string `json:"wxpay"`
|
||||||
|
Wxgzh string `json:"wxgzh"`
|
||||||
BuildTimeStamp int64 `json:"buildTimeStamp"`
|
BuildTimeStamp int64 `json:"buildTimeStamp"`
|
||||||
OfficialStatement string `json:"officialStatement"`
|
OfficialStatement string `json:"officialStatement"`
|
||||||
IsDel soft_delete.DeletedAt `gorm:"softDelete:flag"`
|
IsDel soft_delete.DeletedAt `gorm:"softDelete:flag"`
|
||||||
|
@ -11,6 +11,7 @@ const versionInfo = ref('');
|
|||||||
const icon = ref('https://raw.githubusercontent.com/ArvinLovegood/go-stock/master/build/appicon.png');
|
const icon = ref('https://raw.githubusercontent.com/ArvinLovegood/go-stock/master/build/appicon.png');
|
||||||
const alipay =ref('https://github.com/ArvinLovegood/go-stock/raw/master/build/screenshot/alipay.jpg')
|
const alipay =ref('https://github.com/ArvinLovegood/go-stock/raw/master/build/screenshot/alipay.jpg')
|
||||||
const wxpay =ref('https://github.com/ArvinLovegood/go-stock/raw/master/build/screenshot/wxpay.jpg')
|
const wxpay =ref('https://github.com/ArvinLovegood/go-stock/raw/master/build/screenshot/wxpay.jpg')
|
||||||
|
const wxgzh =ref('https://github.com/ArvinLovegood/go-stock/raw/dev/build/screenshot/%E6%89%AB%E7%A0%81_%E6%90%9C%E7%B4%A2%E8%81%94%E5%90%88%E4%BC%A0%E6%92%AD%E6%A0%B7%E5%BC%8F-%E7%99%BD%E8%89%B2%E7%89%88.png')
|
||||||
const notify = useNotification()
|
const notify = useNotification()
|
||||||
const vipLevel=ref("");
|
const vipLevel=ref("");
|
||||||
const vipStartTime=ref("");
|
const vipStartTime=ref("");
|
||||||
@ -24,6 +25,7 @@ onMounted(() => {
|
|||||||
icon.value = res.icon;
|
icon.value = res.icon;
|
||||||
alipay.value=res.alipay;
|
alipay.value=res.alipay;
|
||||||
wxpay.value=res.wxpay;
|
wxpay.value=res.wxpay;
|
||||||
|
wxgzh.value=res.wxgzh;
|
||||||
|
|
||||||
GetSponsorInfo().then((res) => {
|
GetSponsorInfo().then((res) => {
|
||||||
vipLevel.value = res.vipLevel;
|
vipLevel.value = res.vipLevel;
|
||||||
@ -127,7 +129,6 @@ EventsOn("updateVersion",async (msg) => {
|
|||||||
<p>QQ交流群:<a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0YQ8qD3exahsD4YLNhzQTWe5ssstWC89&authKey=usOMMRFtIQDC%2FYcatHYapcxQbJ7PwXPHK9OypTXWzNjAq%2FRVvQu9bj2lRgb%2BSZ3p&noverify=0&group_code=491605333" target="_blank">491605333</a></p>
|
<p>QQ交流群:<a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0YQ8qD3exahsD4YLNhzQTWe5ssstWC89&authKey=usOMMRFtIQDC%2FYcatHYapcxQbJ7PwXPHK9OypTXWzNjAq%2FRVvQu9bj2lRgb%2BSZ3p&noverify=0&group_code=491605333" target="_blank">491605333</a></p>
|
||||||
</div>
|
</div>
|
||||||
</n-space>
|
</n-space>
|
||||||
|
|
||||||
<n-divider title-placement="center">支持💕开源</n-divider>
|
<n-divider title-placement="center">支持💕开源</n-divider>
|
||||||
<n-flex justify="center">
|
<n-flex justify="center">
|
||||||
<n-table size="small" style="width: 820px">
|
<n-table size="small" style="width: 820px">
|
||||||
@ -159,9 +160,8 @@ EventsOn("updateVersion",async (msg) => {
|
|||||||
<!-- <h1>关于作者</h1>-->
|
<!-- <h1>关于作者</h1>-->
|
||||||
<n-avatar width="100" src="https://avatars.githubusercontent.com/u/7401917?v=4" />
|
<n-avatar width="100" src="https://avatars.githubusercontent.com/u/7401917?v=4" />
|
||||||
<h2><a href="https://github.com/ArvinLovegood" target="_blank">@ArvinLovegood</a></h2>
|
<h2><a href="https://github.com/ArvinLovegood" target="_blank">@ArvinLovegood</a></h2>
|
||||||
<p>一个热爱编程的小白,欢迎关注我的Github</p>
|
<p>一个热爱编程的小白,欢迎关注我的Github/微信公众号</p>
|
||||||
<n-image width="300" src="https://go-stock.sparkmemory.top/assets/%E6%89%AB%E7%A0%81_%E6%90%9C%E7%B4%A2%E8%81%94%E5%90%88%E4%BC%A0%E6%92%AD%E6%A0%B7%E5%BC%8F-%E7%99%BD%E8%89%B2%E7%89%88-DEJtWc_y.png" />
|
<n-image width="300" :src="wxgzh" />
|
||||||
|
|
||||||
<p>开源不易,如果觉得好用,可以请作者喝杯咖啡。</p>
|
<p>开源不易,如果觉得好用,可以请作者喝杯咖啡。</p>
|
||||||
<n-flex justify="center">
|
<n-flex justify="center">
|
||||||
<n-image width="200" :src="alipay" />
|
<n-image width="200" :src="alipay" />
|
||||||
|
@ -702,6 +702,7 @@ export namespace models {
|
|||||||
icon: string;
|
icon: string;
|
||||||
alipay: string;
|
alipay: string;
|
||||||
wxpay: string;
|
wxpay: string;
|
||||||
|
wxgzh: string;
|
||||||
buildTimeStamp: number;
|
buildTimeStamp: number;
|
||||||
officialStatement: string;
|
officialStatement: string;
|
||||||
IsDel: number;
|
IsDel: number;
|
||||||
@ -721,6 +722,7 @@ export namespace models {
|
|||||||
this.icon = source["icon"];
|
this.icon = source["icon"];
|
||||||
this.alipay = source["alipay"];
|
this.alipay = source["alipay"];
|
||||||
this.wxpay = source["wxpay"];
|
this.wxpay = source["wxpay"];
|
||||||
|
this.wxgzh = source["wxgzh"];
|
||||||
this.buildTimeStamp = source["buildTimeStamp"];
|
this.buildTimeStamp = source["buildTimeStamp"];
|
||||||
this.officialStatement = source["officialStatement"];
|
this.officialStatement = source["officialStatement"];
|
||||||
this.IsDel = source["IsDel"];
|
this.IsDel = source["IsDel"];
|
||||||
|
3
main.go
3
main.go
@ -40,6 +40,9 @@ var alipay []byte
|
|||||||
//go:embed build/screenshot/wxpay.jpg
|
//go:embed build/screenshot/wxpay.jpg
|
||||||
var wxpay []byte
|
var wxpay []byte
|
||||||
|
|
||||||
|
//go:embed build/screenshot/扫码_搜索联合传播样式-白色版.png
|
||||||
|
var wxgzh []byte
|
||||||
|
|
||||||
//go:embed build/stock_basic.json
|
//go:embed build/stock_basic.json
|
||||||
var stocksBin []byte
|
var stocksBin []byte
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user