当前位置:网站首页>基于微信小程序的婚纱影楼门户小程序
基于微信小程序的婚纱影楼门户小程序
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代码
边栏推荐
- 互联网的发展促进了无界零售、数字零售、即时零售等一系列新模式的出现
- The number of small stores in Suning has dropped sharply by 428 in one year. Zhangkangyang, the son of Zhang Jindong, is the actual controller
- lotus v1.16.0 calibnet
- Aspnetcoreratelimit rate limit interface access limit current limit control
- Google Earth engine (GEE) - global flood database V1 (2000-2018)
- 2022年低压电工考题及答案
- Games104 operation 2-colorgrading
- Necessary skills for test and development: actual combat of security test vulnerability shooting range
- Code understanding: implementing volume models for hangwriten text recognition
- 2022年材料员-通用基础(材料员)操作证考试题库及答案
猜你喜欢

Code understanding: implementing volume models for hangwriten text recognition

mysql修改密码报错需要怎么做

Mask's miserable and inspirational childhood, who is introverted by campus violence

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

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

One article explains in detail | those things about growth

What to do when MySQL changes the password and reports an error

IP数据报的发送和转发过程
![[matlab traffic light identification] traffic light identification [including GUI source code 1908]](/img/0e/3103c4c5dd664196c85db9b30bcaf5.png)
[matlab traffic light identification] traffic light identification [including GUI source code 1908]

Sword finger offer 53 - I. find the number I in the sorted array (improved bisection)
随机推荐
PHP code wechat, official account and enterprise wechat send emoticons [u+1f449]
native关键字的作用
E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
JS逆向之巨量星图sign签名
Generate QR code in wechat applet
Performance optimization and implementation of video codec
Role of native keyword
Congratulations to myself, official account has more than ten thousand fans
To quickly download JDK, in addition to the official Oracle download, is there a download address for the latest version available in China
通过例子学习Rust
信息学奥赛一本通 1360:奇怪的电梯(lift)
Where does the storm go? Whose pot is the weather forecast wrong?
Sum of squares of each bit of a number
2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案
Flexible IP network test tool -- x-launch
Audio and video technology development weekly
Has anyone ever used CDC to synchronize to MySQL with a deadlock?
Audio and video technology development weekly
别卷!如何高质量地复现一篇论文?
lotus v1.16.0 calibnet