From b0a49dc67deee0586be7a903e043368cb410b5a1 Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Wed, 15 Nov 2023 16:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=AF=B7=E6=B1=82=E5=92=8C=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 171 +++++++++--------- pages/my/my.vue | 19 +- .../publishTransfer/publishTransfer.vue | 36 ++-- service/request.js | 8 +- 4 files changed, 128 insertions(+), 106 deletions(-) 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/my/my.vue b/pages/my/my.vue index fa59bd8..0a100fb 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -5,7 +5,7 @@ - + {{username}} @@ -30,12 +30,14 @@ data() { return { src: 'https://cdn.uviewui.com/uview/album/2.jpg', - account:'123456', - username:'用户名', + account:'', + username:'未登录', + code:'' } }, onLoad() { - // this.getInfo() + + }, methods: { topublished(title){ @@ -52,13 +54,8 @@ uni.navigateTo({ url:'/pages/Partnerships/Partnerships' }) - } - //---------页面调用接口示例------------ - // getInfo() { - // this.$api.getUserInfo().then(res => { - // console.log('userInfo', res); - // }) - // } + }, + } } diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue index 3bac623..16bd2b8 100644 --- a/pages/publish/publishTransfer/publishTransfer.vue +++ b/pages/publish/publishTransfer/publishTransfer.vue @@ -2,7 +2,7 @@ - + 发布房源图片({{ShopInfomation.count}}/5) @@ -10,7 +10,8 @@ - 请选择所属区域 + 请选择所属区域 + {{form.region}} @@ -20,14 +21,16 @@ - 请选择行业类型 + 请选择行业类型 + {{form.trade}} - 请选择行业业态 + 请选择行业业态 + {{form.karma}} @@ -62,13 +65,7 @@ export default { data() { return { - ShopInfomation:{ - city:'', - area:'', - count:0, - - }, - + action:'http://spsp.feashow.cn/api/upload/image/', form:{ title:'', region:'', @@ -121,13 +118,21 @@ console.log("失败信息:" + JSON.stringify(errors)) // uni.$u.toast('校验失败') }) - } + }, + getTradeInfo(){ + this.$api.getTradeInfo().then(res=>{ + console.log(res); + }) + } + }, onReady() { this.$refs.uForm.setRules(this.rules) }, - + onLoad() { + this.getTradeInfo() + } } @@ -170,6 +175,11 @@ font-weight:1px; color: #c1c4c7; } + .checkedtext{ + margin-top: 5rpx; + font-size: 30rpx; + font-weight:1px; + } .picker{ display: flex; diff --git a/service/request.js b/service/request.js index a50f3c3..5853c6c 100644 --- a/service/request.js +++ b/service/request.js @@ -1,4 +1,4 @@ -const serverHost = ''//http://xx.xxx.xx +const serverHost = 'http://spsp.feashow.cn/api'//http://xx.xxx.xx const service = { get(url, data) { @@ -174,6 +174,12 @@ const apiService = { resolve(service.putWithFormData(url, data)) }) }, + getTradeInfo(data){ + const url = `/home/classlist?pid=0/` + return new Promise((resolve,reject) =>{ + resolve(service.post(url, data)) + }) + } } export { apiService,