当前位置:网站首页>基于微信小程序的婚纱影楼门户小程序
基于微信小程序的婚纱影楼门户小程序
2022-06-28 04:41:00 【CC同学呀】
业务背景
婚纱影楼小程序提供了一个连接用户与影楼的平台,相当于影楼在微信的官网。它能帮助影楼展示拍摄实力,记录访客数据,宣传优惠活动。使用频率高,方便传播,是影楼在微信端宣传营销的得力助手。其采用腾讯提供的小程序云开发解决方案,无须服务器和域名。 样片页是影楼展示优秀摄影样片提供给用户欣赏并且吸引客户的。套系页是影楼根据市场需求推出的不同套餐,用户可以按照自己的喜好预定套系。个人中心可以查看用户预约的拍摄计划,也可以获取到影楼的联系方式。
功能需求

数据库设计

技术攻关
小程序目前提审是越来越严格,需要 对用户发布的内容,图片,视频等进行安全合规校验,保证不出现不雅的内容。
对此开发了针对图片和文本的校验方法UGC公共方式封装
const cloudHelper = require('../helper/cloud_helper.js');
const pageHelper = require('../helper/page_helper.js');
const setting = require('../setting/setting.js');
/** * 图片类型校验 * @param {*} fileName * @param {*} type */
function imgTypeCheck(path, type = ['jpg', 'jpeg', 'png','JPG','JPEG','PNG']) {
let fmt = path.split(".")[(path.split(".")).length - 1];
if (type.indexOf(fmt) > -1)
return true;
else
return false;
}
/** * 图片大小校验 * @param {*} size * @param {*} maxSize */
function imgSizeCheck(size, maxSize) {
return size < maxSize;
}
async function imgCheckCloud(path, opt) {
/* let result = await cloudHelper.callCloudSumbit('check/img', params, opt).then(res => { return true; }).catch(err => { return false; }); */
let result = await wx.cloud.callFunction({
name: 'cloud',
data: {
route: 'check/img',
token : '',
params:{
img: wx.cloud.CDN( {
type: 'filePath',
filePath: path,
})
}
},
success: function (res) {
console.log(res)
console.log('succ')
return true;
},
fail: function (res) {
console.log(res)
return false;
},
complete: function (res) {
}
});
return result;
}
/** * 图像校验 * @param {*} imgData */
async function imgCheck(imgData) {
let result = await wx.serviceMarket.invokeService({
service: 'wxee446d7507c68b11',
api: 'imgSecCheck',
data: {
"Action": "ImageModeration",
"Scenes": ["PORN", "POLITICS", "TERRORISM"],
"ImageUrl": new wx.serviceMarket.CDN({
type: 'filePath',
filePath: imgData,
}),
"ImageBase64": '',
"Config": "",
"Extra": ""
},
}).then(res => {
if (res && res.data && res.data.Response &&
res.data.Response.PornResult && res.data.Response.PornResult.Suggestion === 'PASS' &&
res.data.Response.PoliticsResult && res.data.Response.PoliticsResult.Suggestion === 'PASS' &&
res.data.Response.TerrorismResult && res.data.Response.TerrorismResult.Suggestion === 'PASS')
return true;
else
return false;
}).catch(err => {
console.log(err);
return false;
});
return result;
}
module.exports = {
imgCheck,
imgCheckCloud,
imgTypeCheck,
imgSizeCheck
}
前端界面设计




后端界面设计

Git代码:
Git代码
边栏推荐
- Matlab exercises -- basic data processing
- Find an SQL that can judge the data in the table and only fill in the SQL that is not overwritten
- CI & CD must be known!
- Is the securities account opened by qiniu safe? How to open an account
- UI automation test framework construction - write an app automation
- 论文详读:IMPROVING CONVOLUTIONAL MODELS FOR HANDWRITTEN TEXT RECOGNITION
- 有人用cdc同步到mysql发生过死锁吗?
- Audio and video technology development weekly
- Audio and video technology development weekly
- TACo:一种关于文字识别的数据增强技术
猜你喜欢

?位置怎么写才能输出true

Necessary skills for test and development: actual combat of security test vulnerability shooting range

Audio and video technology development weekly

代码理解:IMPROVING CONVOLUTIONAL MODELS FOR HANDWRITTEN TEXT RECOGNITION

Where does the storm go? Whose pot is the weather forecast wrong?

华为9年经验的软件测试总监工作感悟—写给还在迷茫的朋友

控制器的功能和工作原理

CUPTI error: CUPTI could not be loaded or symbol could not be found.

2022年安全员-A证考试题库及模拟考试
![[noip2002 popularization group] cross the river pawn](/img/6c/31fa210e08c7fd07691a1c5320154e.png)
[noip2002 popularization group] cross the river pawn
随机推荐
Severe tire damage: the first rock band in the world to broadcast live on the Internet
Excel knowledge and skills summary
易周金融 | Q1手机银行活跃用户规模6.5亿;理财子公司布局新兴领域
What to do when MySQL changes the password and reports an error
Project practice! Teach you JMeter performance test hand in hand
无线传感器网络学习笔记(一)
现代交换原理MOOC部分题目整理
2022年G3锅炉水处理复训题库模拟考试平台操作
2022烟花爆竹经营单位安全管理人员特种作业证考试题库及模拟考试
2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案
The second round of free public classes of the red team is coming ~ 8:00 tomorrow night!
2022年安全员-A证考试题库及模拟考试
LeetCode 88:合并两个有序数组
S32ds jump to defaultisr
Find an SQL that can judge the data in the table and only fill in the SQL that is not overwritten
The SQL of filincdc always reports this error when there are multiple tables. How can I solve it
Is it true that qiniu business school gives away securities accounts? Is it safe to open an account
Blocking, non blocking, IO multiplexing select\poll\epoll
Notepad++ -- column editing mode -- Usage / instance
Pager when importing text files from MySQL