feat: 会员中心 hgcloud 主题初始化 + drone 部署步骤
All checks were successful
continuous-integration/drone/push Build is passing

- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/
- .gitignore 排除压缩包和临时解压目录
- drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
This commit is contained in:
yiqiu
2026-03-19 17:56:44 +08:00
parent 75756e5a64
commit 3b41cffbc9
381 changed files with 386825 additions and 1 deletions

View File

@@ -0,0 +1,73 @@
(function (window, undefined) {
var old_onload = window.onload
window.onload = function () {
const template = document.getElementsByClassName('template')[0]
Vue.prototype.lang = window.lang
new Vue({
components: {
asideMenu,
topMenu,
pagination,
},
created() {
this.getCommonData()
},
mounted() {
},
updated() {
// // 关闭loading
// document.getElementById('mainLoading').style.display = 'none';
// document.getElementsByClassName('template')[0].style.display = 'block'
},
destroyed() {
},
data() {
return {
params: {
page: 1,
limit: 20,
pageSizes: [20, 50, 100],
total: 200,
orderby: 'id',
sort: 'desc',
keywords: '',
},
commonData: {},
}
},
filters: {
formateTime(time) {
if (time && time !== 0) {
return formateDate(time * 1000)
} else {
return "--"
}
}
},
methods: {
// 每页展示数改变
sizeChange(e) {
this.params.limit = e
this.params.page = 1
// 获取列表
},
// 当前页改变
currentChange(e) {
this.params.page = e
},
// 获取通用配置
getCommonData() {
this.commonData = JSON.parse(localStorage.getItem("common_set_before"))
document.title = this.commonData.website_name + '-模板页面'
}
},
}).$mount(template)
typeof old_onload == 'function' && old_onload()
};
})(window);