feat:优化 debug 页
This commit is contained in:
@@ -18,12 +18,21 @@ Page({
|
||||
showIntroductionPopup: false,
|
||||
showSelectWordPopup: false, // 选择文字弹窗
|
||||
env: 'release',
|
||||
isPCDevtool: false,
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
const hasShowIntroduction =
|
||||
wx.getStorageSync('hasShowIntroduction') || false;
|
||||
|
||||
// 判断是否在PC端开发工具上运行
|
||||
const systemInfo = wx.getDeviceInfo();
|
||||
if (systemInfo.platform === 'devtools') {
|
||||
this.setData({
|
||||
isPCDevtool: true,
|
||||
});
|
||||
}
|
||||
|
||||
if (!hasShowIntroduction) {
|
||||
this.setData({
|
||||
cardList: [
|
||||
@@ -241,13 +250,13 @@ Page({
|
||||
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '涂鸦丫 - 涂色|识字|画画|打印',
|
||||
title: '涂鸦丫-涂色|识字|画画|打印',
|
||||
path: '/pages/index/index',
|
||||
};
|
||||
},
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: '涂鸦丫 - 涂色|识字|画画|打印',
|
||||
title: '涂鸦丫-涂色|识字|画画|打印',
|
||||
query: '/pages/index/index',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user