diff --git a/manifest.json b/manifest.json index a87efa3..75a64ce 100644 --- a/manifest.json +++ b/manifest.json @@ -1,82 +1,91 @@ { - "name": "city-store-transfer", - "appid": "__UNI__F3EA0D6", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 - }, - /* 模块配置 */ - "modules": {}, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios": {}, - /* SDK配置 */ - "sdkConfigs": {} - } - }, - /* 快应用特有相关 */ - "quickapp": {}, - /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wxda178d12ae834c45", - "setting": { - "urlCheck": false - }, - "usingComponents": true, - "permission": { - // 获取当前的地理位置、速度 配置 - "scope.userLocation": { - "desc": "你的位置信息将用于小程序位置接口的效果展示" - }, - "scope.userFuzzyLocation": { - "desc": "你的位置信息将用于小程序位置的效果展示" - } - }, - "requiredPrivateInfos": ["choosePoi", "chooseAddress", "getFuzzyLocation"] - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "2" -} \ No newline at end of file + "name" : "city-store-transfer", + "appid" : "__UNI__F3EA0D6", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : { + "OAuth" : {} + }, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : { + "oauth" : { + "weixin" : { + "appid" : "wxda178d12ae834c45", + "UniversalLinks" : "" + } + } + } + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wxda178d12ae834c45", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true, + "permission" : { + // 获取当前的地理位置、速度 配置 + "scope.userLocation" : { + "desc" : "你的位置信息将用于小程序位置接口的效果展示" + }, + "scope.userFuzzyLocation" : { + "desc" : "你的位置信息将用于小程序位置的效果展示" + } + }, + "requiredPrivateInfos" : [ "choosePoi", "chooseAddress", "getFuzzyLocation" ] + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" +} diff --git a/pages.json b/pages.json index 0840704..db52186 100644 --- a/pages.json +++ b/pages.json @@ -163,7 +163,16 @@ "enablePullDownRefresh": false } } - ], + ,{ + "path" : "pages/my/edit/edit", + "style" : + { + "navigationBarTitleText": "修改个人信息", + "enablePullDownRefresh": false + } + + } + ], "tabBar": { "color": "#CCCCCC", "borderStyle": "white", diff --git a/pages/my/edit/edit.vue b/pages/my/edit/edit.vue new file mode 100644 index 0000000..91a2580 --- /dev/null +++ b/pages/my/edit/edit.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/pages/my/my.vue b/pages/my/my.vue index c62e6b4..bbb5e5d 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -7,7 +7,8 @@ {{username}} - + + @@ -42,8 +43,8 @@ data() { return { src: 'https://cdn.uviewui.com/uview/album/2.jpg', - account: '123456', - username: '用户名', + account: '', + username: '', isLoad: true } }, @@ -53,6 +54,8 @@ return } this.isLoad = true + this.$data.account = wx.getStorageSync('account') + this.$data.username = wx.getStorageSync('nickname') }, methods: { reOnLoad() { @@ -82,6 +85,11 @@ uni.navigateTo({ url: '/pages/Partnerships/Partnerships' }) + }, + toEdit(){ + uni.navigateTo({ + url:'/pages/my/edit/edit' + }) } //---------页面调用接口示例------------ // getInfo() { @@ -124,6 +132,10 @@ .account { font-size: 15px; font-weight: 1rpx; + display: flex; + } + .edit-icon{ + } } diff --git a/service/request.js b/service/request.js index f2a842a..7686aca 100644 --- a/service/request.js +++ b/service/request.js @@ -202,6 +202,12 @@ const apiService = { return new Promise((resolve, reject) => { resolve(service.get(url)) }) + }, + editPersonInfo(data){ + const url = `/center/userupdate` + return new Promise((resolve,reject) => { + resolve(service.post(url,data)) + }) } } export {