在masifast.json中mp-weixin设置darkmode:true,
"mp-weixin" : {
"darkmode" : true,
"themeLocation" : "theme.json", // 如果 theme.json 在根目录可省略
}
theme.json
{
"light": {
"navBgColor": "#f8f8f8",
"navTxtStyle": "black"
},
"dark": {
"navBgColor": "#0F0F1D",
"navTxtStyle": "white"
}
}
微信官方的弹窗就会根据当前用户在微信的主题模式来显示对应主题的授权弹框