You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
|
|
var api = require('../api.js');
|
|
const PHONE_REG = /^[1][0-9]{10}$/;
|
|
|
|
const submitFormSource = {
|
|
ADD_CART: 1, // 1、步数兑换海贝
|
|
TOORDER: 2, // 2、首页邀请好友
|
|
INVITE_INDEX_LAYER: 3, // 3、首页浮层 邀请好友
|
|
GOODS_DETAIL_EXCHANGE: 4, // 4、商品详情页免费兑换
|
|
INVITE_GOODS_DETAIL: 5, // 5、商品详情页页邀请好友
|
|
FOLLOW: 6, // 6、引导关注公众号"知道了"按钮
|
|
EXPERIENCE: 7, // 7、健康体验,免费领取按钮
|
|
INDEX_POP_LAYER: 8, // 首页弹窗 点击后跳转任务列表
|
|
HEALTHFIT: 9, // 9、健康体验,减脂营按钮
|
|
HEALTHHOTMOMMY: 10, // 10、健康体验,辣妈营按钮
|
|
HEALTTHBODY: 11 // 11、健康体验,体态营按钮
|
|
// 20~29 为健康体验 列表从第一个到第十个
|
|
};
|
|
|
|
function submitFormId(formId,source) {
|
|
const app = getApp();
|
|
app.request({
|
|
url: api.default.submitFormId,
|
|
data: {
|
|
formId: formId,
|
|
source: source,
|
|
},
|
|
success: function (res) {
|
|
wx.hideLoading();
|
|
if (res.code == 200) {
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
submitFormId:submitFormId
|
|
};
|