diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..a02cf76 --- /dev/null +++ b/project.config.json @@ -0,0 +1,28 @@ +{ + "appid": "wx24c1b58020a5ce66", + "compileType": "miniprogram", + "libVersion": "3.3.3", + "packOptions": { + "ignore": [], + "include": [] + }, + "setting": { + "coverView": true, + "es6": true, + "postcss": true, + "minified": true, + "enhance": true, + "showShadowRootInWxmlPanel": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + } + }, + "condition": {}, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 2 + } +} \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json new file mode 100644 index 0000000..72c48e2 --- /dev/null +++ b/project.private.config.json @@ -0,0 +1,7 @@ +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "jwl-applet", + "setting": { + "compileHotReLoad": true + } +} \ No newline at end of file diff --git a/src/jtools/api/activity.js b/src/jtools/api/activity.js index 0cdffa5..ffdc0b2 100644 --- a/src/jtools/api/activity.js +++ b/src/jtools/api/activity.js @@ -72,4 +72,47 @@ export function canRecieveGift(data) { data, noToken: true }); -} \ No newline at end of file +} + +//查询中奖信息 +export function queryWinnerInfo(data) { + return request({ + url: 'activity/applet/activity/winner/info', + method: 'get', + data, + noToken: true + }); +} + +//查询助力信息 +export function queryHelpInfo(data) { + return request({ + url: 'activity/applet/activity/help/info', + method: 'get', + data, + noToken: true + }); +} + +//保存助力信息 +export function saveHelpInfo(data) { + return request({ + url: 'activity/applet/activity/help/save', + method: 'post', + data, + noToken: true + }); +} + + +//微信登录获取手机号 +export function wxLogin(data) { + return request({ + url: 'activity/applet/activity/wx/login', + method: 'post', + data, + noToken: true + }); +} + + diff --git a/src/pages.json b/src/pages.json index c85fb59..dda5ed5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -197,6 +197,13 @@ "navigationBarTitleText" : "核销二维码", "enablePullDownRefresh" : false } + }, + { + "path": "pages/me/help", + "style": { + "navigationBarTitleText": "好友助力", + "enablePullDownRefresh": true + } } ], diff --git a/src/pages/index/components/ggl/index.vue b/src/pages/index/components/ggl/index.vue index 58c9c06..e075971 100644 --- a/src/pages/index/components/ggl/index.vue +++ b/src/pages/index/components/ggl/index.vue @@ -1,6 +1,6 @@