Commit eb7e2e0e authored by 石盼盼's avatar 石盼盼

居中,意向区域保存成功返回上一页面

parent 07dc9603
...@@ -58,7 +58,7 @@ App({ ...@@ -58,7 +58,7 @@ App({
codeChangeToken(code, cb) { codeChangeToken(code, cb) {
let that = this let that = this
wx.request({ wx.request({
url: 'https://wandoutiyu.test.xueyoubangedu.com/api/getsessionkey', url: 'https://wandoutiyu.xueyoubangedu.com/api/getsessionkey',
data: { data: {
code: code code: code
}, },
...@@ -87,7 +87,7 @@ App({ ...@@ -87,7 +87,7 @@ App({
wx.checkSession({ wx.checkSession({
success() { success() {
wx.request({ wx.request({
url: 'https://wandoutiyu.test.xueyoubangedu.com/api/saveinfo', url: 'https://wandoutiyu.xueyoubangedu.com/api/saveinfo',
data: { data: {
encryptedData: encodeURIComponent(info.encryptedData), encryptedData: encodeURIComponent(info.encryptedData),
iv: encodeURIComponent(info.iv), iv: encodeURIComponent(info.iv),
......
...@@ -176,6 +176,7 @@ Page({ ...@@ -176,6 +176,7 @@ Page({
type: 'POST', type: 'POST',
callback: (data) => { callback: (data) => {
base.toast('保存区域成功') base.toast('保存区域成功')
base.goBack(2)
} }
} }
base.newRequest(params) base.newRequest(params)
......
...@@ -205,6 +205,7 @@ ...@@ -205,6 +205,7 @@
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
padding: 0 10rpx; padding: 0 10rpx;
text-align: center;
} }
.content1_body { .content1_body {
......
...@@ -3,8 +3,8 @@ var app = getApp() ...@@ -3,8 +3,8 @@ var app = getApp()
const qiniuUploader = require("./qiniuUploader.js"); const qiniuUploader = require("./qiniuUploader.js");
class Base { class Base {
constructor() { constructor() {
// this.baseUrl = 'https://wandoutiyu.xueyoubangedu.com/api/' //线上接口 this.baseUrl = 'https://wandoutiyu.xueyoubangedu.com/api/' //线上接口
this.baseUrl = 'https://wandoutiyu.test.xueyoubangedu.com/api/' //测试接口 // this.baseUrl = 'https://wandoutiyu.test.xueyoubangedu.com/api/' //测试接口
} }
newRequest(params, flag = false, tips = true) { newRequest(params, flag = false, tips = true) {
let that = this let that = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment