去掉协会 WebView 和魔方账密页,微信登录与咨询接口共用同一 token 和拦截器。 Co-authored-by: Cursor <cursoragent@cursor.com>
100 lines
2.4 KiB
Vue
100 lines
2.4 KiB
Vue
|
|
<script>
|
|
|
|
export default {
|
|
onLaunch: function() {
|
|
console.log('App Launch')
|
|
uni.showShareMenu({
|
|
withShareTicket: true, // 设置为 true,表示在分享时返回 shareTicket
|
|
menus: ['shareAppMessage', 'shareTimeline'] // 指定要显示的分享菜单项
|
|
})
|
|
// pingfang pingfang-medium
|
|
uni.loadFontFace({
|
|
global:true,
|
|
family: 'SourceHanSans',
|
|
source: 'url("https://miniapp.yuxingu.com.cn/yxg-mp/SourceHanSansCN-Regular.otf")',
|
|
success(res) {
|
|
console.log('加载SourceHanSans字体成功')
|
|
}
|
|
})
|
|
|
|
uni.loadFontFace({
|
|
global:true,
|
|
family: 'GenYoMinJP',
|
|
source: 'url("https://miniapp.yuxingu.com.cn/yxg-mp/GenYoMinJP-Regular-7.ttf")',
|
|
success(res) {
|
|
console.log('加载GenYoMinJP字体成功')
|
|
}
|
|
})
|
|
|
|
uni.loadFontFace({
|
|
global:true,
|
|
family: 'SourceHanSansBold',
|
|
source: 'url("https://miniapp.yuxingu.com.cn/yxg-mp/SourceHanSansCN-Bold.otf")',
|
|
success(res) {
|
|
console.log('加载SourceHanSansBold字体成功')
|
|
}
|
|
})
|
|
},
|
|
onShow: function() {
|
|
console.log('App Show')
|
|
},
|
|
onHide: function() {
|
|
console.log('App Hide')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
/*每个页面公共css */
|
|
page {
|
|
--color-primary: #e54d42;
|
|
--color-primary-hover: #d44338;
|
|
--color-primary-soft: #ffe4e4;
|
|
--color-bg-start: #ffd1c7;
|
|
--color-bg-end: #ffc8b5;
|
|
--color-bg-sheet: #fff9f7;
|
|
--color-surface: #ffffff;
|
|
--color-text-primary: #333333;
|
|
--color-text-secondary: #999999;
|
|
--color-text-tertiary: #bbbbbb;
|
|
--color-border: #f0f0f0;
|
|
--color-accent-gold: #c8923a;
|
|
--color-accent-blue: #4a90e2;
|
|
--color-accent-green: #5cb85c;
|
|
--spacing-md: 16px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--radius-sheet: 22px;
|
|
--shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
|
|
--shadow-hero: 0 8px 28px rgba(229, 77, 66, 0.12);
|
|
--shadow-sheet: 0 -4px 24px rgba(180, 100, 80, 0.06);
|
|
--font-sans: SourceHanSans, -apple-system, sans-serif;
|
|
--font-display: GenYoMinJP, SourceHanSansBold, serif;
|
|
}
|
|
body{
|
|
font-family: 'SourceHanSans';
|
|
box-sizing: border-box;
|
|
}
|
|
image {
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: crisp-edges;
|
|
}
|
|
page-common{
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
all-center{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
color: transparent;
|
|
}
|
|
</style>
|