【小程序源码】头像制图工具箱小程序纯前端源码
- 2026-09-24 09:24:05
【小程序源码】头像制图工具箱小程序纯前端源码 今天在网上看到了一个微信小程序源码,经测试QQ小程序也可以完美运行,所以给大家分享一下这个QQ微信头像制图工具箱小程序纯前端源码。 主要功能有文字九格、头像挂件生成、爆趣九宫格、形状九宫格、创意长图、情侣头像、猫狗交流器。 小程序经过本人在开发者工具中测试是可用的,如果有什么疑问的话可以在交流群里进行交流。本公众号将持续为大家提供优质的小程序相关资讯,喜欢的朋友可以关注一下。 注意,你需要发布的时候记得添加白名单域名:https://elf-deco.maibaapp.com 下面展示部分代码:

getApp(), Page({data: {},toNine: function(e) {var a = e.currentTarget.dataset;if (console.log(a), wx.getStorageSync("clip_square") || "peitu" == a.page || "word" == a.page || "long_image" == a.page) return wx.navigateTo({url: "/pages/" + a.page + "/" + a.page}), 0;wx.showActionSheet({itemList: [ "拍照片", "相册照片" ],success: function(e) {var t = [];t = 0 == e.tapIndex ? [ "camera" ] : [ "album" ], wx.chooseImage({count: 1,sizeType: [ "compressed" ],sourceType: t,success: function(e) {var t = e.tempFilePaths[0];wx.setStorageSync("clip_page", {url: t,targetPath: "" + a.page}), wx.navigateTo({url: "/pages/clip_square/clip_square"});}});}});},toClip: function() {wx.chooseImage({success: function(e) {wx.navigateTo({url: "/pages/clip_square/clip_square?url=" + e.tempFilePaths[0] + "&targetPath=logs"});}});},onLoad: function() {},getUserInfo: function(e) {if (console.log(e.detail), e.detail.errMsg.includes("ok")) {var a = JSON.parse(e.detail.rawData);a.avatarUrl = a.avatarUrl.replace("/132", "/0"), wx.setStorageSync("userInfo", a),wx.navigateTo({url: "/pages/avatar/avatar?target=userInfo"});} else console.log("ee =", e), this.toNine(e);},toPuzzle: function(e) {wx.navigateTo({url: "/pages/puzzle/puzzle"});},toPeitu: function() {wx.navigateTo({url: "/pages/peitu/peitu"});},onShareAppMessage: function() {return {title: "拿起配图神器,然后朋友圈走一波",imageUrl: "/images/share_image.png",path: "/pages/index/index"};}});
下载方式:
关注公众号
回复:xcx头像制图工具箱

本文来自网友投稿或网络内容,如有侵犯您的权益请联系我们删除,联系邮箱:wyl860211@qq.com 。