feat: 添加小程序码,增加分享功能
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"demoPages/textPaint/textPaint",
|
||||
"demoPages/textPaint2/textPaint"
|
||||
],
|
||||
"pages": ["pages/index/index"],
|
||||
"window": {},
|
||||
"style": "v2",
|
||||
"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) {
|
||||
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) {
|
||||
|
||||
@@ -182,4 +182,17 @@ Page({
|
||||
this.setData({ showIntroductionPopup: false });
|
||||
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="wrapper">
|
||||
<text class="wrapper-title">设置文字和颜色12</text>
|
||||
<text class="wrapper-title">自定义涂鸦卡</text>
|
||||
<word-input bind:onConfirm="onConfirmInput" />
|
||||
<view class="word-card-box">
|
||||
<block
|
||||
|
||||
@@ -61,8 +61,8 @@ class TextDrawService {
|
||||
this.ctx = ctx;
|
||||
this.paperSize = 'A4';
|
||||
this.options = {
|
||||
appName: '涂鸦呀',
|
||||
appHint: '涂色|识字|画画|认知',
|
||||
appName: '涂鸦丫',
|
||||
appHint: '涂色|识字|画画|打印',
|
||||
title: '找一找 涂 色',
|
||||
subTitle: '把相同的文字涂上相同的颜色',
|
||||
...options,
|
||||
|
||||
@@ -41,7 +41,7 @@ wx-button:not([size=mini]) {
|
||||
}
|
||||
|
||||
&--green {
|
||||
background: rgba(147, 211, 51, 1);
|
||||
background: rgb(147, 211, 51);
|
||||
box-shadow: 0px 10rpx 4rpx rgba(121, 185, 21, 1);
|
||||
|
||||
&.disabled {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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) {
|
||||
|
||||
+11
-2
@@ -30,7 +30,16 @@
|
||||
"compileHotReLoad": false,
|
||||
"skylineRenderEnable": 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",
|
||||
"simulatorPluginLibVersion": {},
|
||||
@@ -50,7 +59,7 @@
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 4
|
||||
},
|
||||
"libVersion": "2.32.3",
|
||||
"libVersion": "3.7.12",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
|
||||
+17
-19
@@ -2,25 +2,23 @@
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "doodle-mini",
|
||||
"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",
|
||||
"condition": {
|
||||
"miniprogram": {
|
||||
"list": [
|
||||
{
|
||||
"name": "textPaint2",
|
||||
"pathName": "demoPages/textPaint2/textPaint",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "db guide",
|
||||
"pathName": "pages/databaseGuide/databaseGuide",
|
||||
"query": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"condition": {}
|
||||
}
|
||||
Reference in New Issue
Block a user