feat: 添加小程序码,增加分享功能
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": ["pages/index/index"],
|
||||||
"pages/index/index",
|
|
||||||
"demoPages/textPaint/textPaint",
|
|
||||||
"demoPages/textPaint2/textPaint"
|
|
||||||
],
|
|
||||||
"window": {},
|
"window": {},
|
||||||
"style": "v2",
|
"style": "v2",
|
||||||
"rendererOptions": {
|
"rendererOptions": {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 63 KiB |
@@ -17,7 +17,7 @@ export function setCanvasSize(canvas: Canvas, paperSize: PaperSize) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getMiniCodeImage(canvas: Canvas) {
|
export async function getMiniCodeImage(canvas: Canvas) {
|
||||||
return getImage(canvas, '/assets/imgs/mini-code.jpg');
|
return getImage(canvas, '/assets/imgs/doodle-mini-code.jpg');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getImage(canvas: Canvas, path: string) {
|
export async function getImage(canvas: Canvas, path: string) {
|
||||||
|
|||||||
@@ -182,4 +182,17 @@ Page({
|
|||||||
this.setData({ showIntroductionPopup: false });
|
this.setData({ showIntroductionPopup: false });
|
||||||
wx.setStorageSync('hasShowIntroduction', true);
|
wx.setStorageSync('hasShowIntroduction', true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: '涂鸦丫 - 涂色|识字|画画|打印',
|
||||||
|
path: '/pages/index/index',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
return {
|
||||||
|
title: '涂鸦丫 - 涂色|识字|画画|打印',
|
||||||
|
query: '/pages/index/index',
|
||||||
|
};
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<view class="page-container">
|
<view class="page-container">
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
<text class="wrapper-title">设置文字和颜色12</text>
|
<text class="wrapper-title">自定义涂鸦卡</text>
|
||||||
<word-input bind:onConfirm="onConfirmInput" />
|
<word-input bind:onConfirm="onConfirmInput" />
|
||||||
<view class="word-card-box">
|
<view class="word-card-box">
|
||||||
<block
|
<block
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ class TextDrawService {
|
|||||||
this.ctx = ctx;
|
this.ctx = ctx;
|
||||||
this.paperSize = 'A4';
|
this.paperSize = 'A4';
|
||||||
this.options = {
|
this.options = {
|
||||||
appName: '涂鸦呀',
|
appName: '涂鸦丫',
|
||||||
appHint: '涂色|识字|画画|认知',
|
appHint: '涂色|识字|画画|打印',
|
||||||
title: '找一找 涂 色',
|
title: '找一找 涂 色',
|
||||||
subTitle: '把相同的文字涂上相同的颜色',
|
subTitle: '把相同的文字涂上相同的颜色',
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ wx-button:not([size=mini]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--green {
|
&--green {
|
||||||
background: rgba(147, 211, 51, 1);
|
background: rgb(147, 211, 51);
|
||||||
box-shadow: 0px 10rpx 4rpx rgba(121, 185, 21, 1);
|
box-shadow: 0px 10rpx 4rpx rgba(121, 185, 21, 1);
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export async function getMiniCodeImage(canvas: Canvas) {
|
export async function getMiniCodeImage(canvas: Canvas) {
|
||||||
return getImage(canvas, '/assets/imgs/mini-code.jpg');
|
return getImage(canvas, '/assets/imgs/doodle-mini-code.jpg');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getImage(canvas: Canvas, path: string) {
|
export async function getImage(canvas: Canvas, path: string) {
|
||||||
|
|||||||
+11
-2
@@ -30,7 +30,16 @@
|
|||||||
"compileHotReLoad": false,
|
"compileHotReLoad": false,
|
||||||
"skylineRenderEnable": true,
|
"skylineRenderEnable": true,
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"packNpmManually": true
|
"packNpmManually": true,
|
||||||
|
"compileWorklet": false,
|
||||||
|
"uglifyFileName": true,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"minifyWXML": true,
|
||||||
|
"localPlugins": false,
|
||||||
|
"disableUseStrict": false,
|
||||||
|
"condition": false,
|
||||||
|
"swc": false,
|
||||||
|
"disableSWC": true
|
||||||
},
|
},
|
||||||
"simulatorType": "wechat",
|
"simulatorType": "wechat",
|
||||||
"simulatorPluginLibVersion": {},
|
"simulatorPluginLibVersion": {},
|
||||||
@@ -50,7 +59,7 @@
|
|||||||
"tabIndent": "insertSpaces",
|
"tabIndent": "insertSpaces",
|
||||||
"tabSize": 4
|
"tabSize": 4
|
||||||
},
|
},
|
||||||
"libVersion": "2.32.3",
|
"libVersion": "3.7.12",
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"include": []
|
"include": []
|
||||||
|
|||||||
+17
-19
@@ -2,25 +2,23 @@
|
|||||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
"projectname": "doodle-mini",
|
"projectname": "doodle-mini",
|
||||||
"setting": {
|
"setting": {
|
||||||
"compileHotReLoad": true
|
"compileHotReLoad": true,
|
||||||
|
"urlCheck": true,
|
||||||
|
"coverView": false,
|
||||||
|
"lazyloadPlaceholderEnable": false,
|
||||||
|
"skylineRenderEnable": true,
|
||||||
|
"preloadBackgroundData": false,
|
||||||
|
"autoAudits": false,
|
||||||
|
"useApiHook": true,
|
||||||
|
"useApiHostProcess": true,
|
||||||
|
"showShadowRootInWxmlPanel": false,
|
||||||
|
"useStaticServer": false,
|
||||||
|
"useLanDebug": false,
|
||||||
|
"showES6CompileOption": false,
|
||||||
|
"checkInvalidKey": true,
|
||||||
|
"ignoreDevUnusedFiles": true,
|
||||||
|
"bigPackageSizeSupport": false
|
||||||
},
|
},
|
||||||
"libVersion": "3.7.12",
|
"libVersion": "3.7.12",
|
||||||
"condition": {
|
"condition": {}
|
||||||
"miniprogram": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"name": "textPaint2",
|
|
||||||
"pathName": "demoPages/textPaint2/textPaint",
|
|
||||||
"query": "",
|
|
||||||
"launchMode": "default",
|
|
||||||
"scene": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "db guide",
|
|
||||||
"pathName": "pages/databaseGuide/databaseGuide",
|
|
||||||
"query": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user