From c0493a942a8a73ccb0cc718a0ed0da683ea6c61b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 5 Jul 2021 14:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=B4=E5=83=8F=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ pages/bind/binduser.js | 15 ++++++++++ pages/bind/binduser.wxml | 2 +- project.config.json | 59 ---------------------------------------- 4 files changed, 18 insertions(+), 60 deletions(-) delete mode 100644 project.config.json diff --git a/.gitignore b/.gitignore index 10fa70b..583ad45 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ $RECYCLE.BIN/ # Node.js node_modules/ + +project.config.json \ No newline at end of file diff --git a/pages/bind/binduser.js b/pages/bind/binduser.js index 548e73a..460a5cd 100644 --- a/pages/bind/binduser.js +++ b/pages/bind/binduser.js @@ -138,6 +138,21 @@ Page({ }) this.denglu2() }, + getUserProfile: function(e){ + wx.getUserProfile({ + desc: '获取头像和昵称', // + success: (res) => { + this.setData({ + userInfo: res.userInfo + }) + this.denglu() + }, + fail:(res)=>{ + this.denglu() + } + }) + + }, /** * 生命周期函数--监听页面加载 */ diff --git a/pages/bind/binduser.wxml b/pages/bind/binduser.wxml index 388477c..01a978b 100644 --- a/pages/bind/binduser.wxml +++ b/pages/bind/binduser.wxml @@ -28,7 +28,7 @@ - + 账号错误或忘记密码? 获取测试账户请致电15810169371 diff --git a/project.config.json b/project.config.json deleted file mode 100644 index 156da11..0000000 --- a/project.config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "description": "项目配置文件。", - "setting": { - "urlCheck": false, - "es6": true, - "enhance": false, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": true, - "coverView": true, - "nodeModules": true, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "uglifyFileName": false, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, - "useMultiFrameRuntime": false, - "useApiHook": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "bundle": false, - "useIsolateContext": false, - "useCompilerModule": false, - "userConfirmedUseCompilerModuleSwitch": false, - "userConfirmedBundleSwitch": false, - "packNpmManually": false, - "packNpmRelationList": [], - "minifyWXSS": true - }, - "compileType": "miniprogram", - "libVersion": "2.9.4", - "appid": "wx5c39b569f01c27db", - "projectname": "aqyj", - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "list": [] - }, - "conversation": { - "list": [] - }, - "game": { - "currentL": -1, - "list": [] - }, - "miniprogram": { - "list": [] - } - } -} \ No newline at end of file