diff --git a/config.js b/config.js index a68f427..6869ffe 100644 --- a/config.js +++ b/config.js @@ -13,7 +13,7 @@ const type = 'prod' // 环境配置 const config = { dev : { - // baseUrl : 'http://admin.anqi.shop/a-notice-api', + // baseUrl : 'https://school-admin.xzaiyp.top', baseUrl : 'http://h5.xzaiyp.top/school-api', }, prod : { diff --git a/manifest.json b/manifest.json index fd59c4e..9c7bf8f 100644 --- a/manifest.json +++ b/manifest.json @@ -54,7 +54,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx3c24e397e3b132ea", + "appid" : "wxf215f4abe6f854a3", "setting" : { "urlCheck" : false }, diff --git a/pages/center/center.vue b/pages/center/center.vue index 53384d6..b938688 100644 --- a/pages/center/center.vue +++ b/pages/center/center.vue @@ -86,7 +86,7 @@ //退出登录 logout() { - uni.navigateTo({ + uni.reLaunch({ url: '/pages/login/login' }) uni.removeStorageSync('token'); diff --git a/pages/reject/reject.vue b/pages/reject/reject.vue index fb12f64..a6e6e6b 100644 --- a/pages/reject/reject.vue +++ b/pages/reject/reject.vue @@ -45,18 +45,19 @@ //驳回 submit() { this.$refs.form.validate().then(res => { - + this.$api('editSchoolOrderError', this.form, res => { + if (res.code == 200) { + uni.redirectTo({ + url: '/pages/order/order' + }) + } + }) }).catch(errors => { uni.showToast({ icon: 'none', title: '请填写驳回原因' }) }) - this.$api('editSchoolOrderError', this.form, res => { - if (res.code == 200) { - console.log(res); - } - }) }, //返回