1
This commit is contained in:
parent
d4edbd321a
commit
482307854e
@ -2,7 +2,7 @@
|
||||
module.exports = {
|
||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||
|
||||
imagesUrl: 'http://localhost:48080/admin-api',
|
||||
imagesUrl: 'http://122.51.230.86:9000',
|
||||
baseUrl: 'http://localhost:48080/admin-api',
|
||||
// baseUrl: 'http://192.168.31.54:8016/jx',
|
||||
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||
|
1
main.js
1
main.js
@ -9,6 +9,7 @@ import './uni.promisify.adaptor'
|
||||
Vue.config.productionTip = false
|
||||
App.mpType = 'app'
|
||||
Vue.prototype.$baseUrl = config.baseUrl
|
||||
Vue.prototype.$imagesUrl = config.imagesUrl
|
||||
const app = new Vue({
|
||||
...App
|
||||
})
|
||||
|
@ -150,7 +150,7 @@
|
||||
qhindex: 0,
|
||||
swxw: 0,
|
||||
Phone: null,
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
newId: null,
|
||||
typelist: [{
|
||||
name: '成人班',
|
||||
|
@ -100,7 +100,7 @@
|
||||
data() {
|
||||
return {
|
||||
titles: "预约训练",
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
indicatorDots: false,
|
||||
autoplay: true,
|
||||
interval: 2000,
|
||||
@ -253,7 +253,7 @@
|
||||
icon: "success",
|
||||
duration: 4000
|
||||
})
|
||||
if (res.code == 200) {
|
||||
if (res.code == 0) {
|
||||
console.log('进了', res);
|
||||
uni.navigateTo({
|
||||
url: '/pages/reservation/reservation'
|
||||
|
@ -32,7 +32,7 @@
|
||||
data() {
|
||||
return {
|
||||
titles: "平台公告",
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
msg: "1",
|
||||
List: [],
|
||||
show: false,
|
||||
|
@ -161,7 +161,7 @@
|
||||
popupShow: false,
|
||||
sfzimg: null,
|
||||
fileList1: [],
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
status: 'loading',
|
||||
sexlist: [
|
||||
"男",
|
||||
@ -447,7 +447,7 @@
|
||||
},
|
||||
method: 'post',
|
||||
})
|
||||
if (res.code == 200) {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/contract?Address=' +
|
||||
this.Address + '&name=' + this.name
|
||||
|
@ -109,7 +109,7 @@
|
||||
List: [],
|
||||
show: false,
|
||||
status: 'loading',
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
bookingData: [],
|
||||
bookingId: null,
|
||||
userId: null,
|
||||
|
@ -72,7 +72,7 @@
|
||||
show: false,
|
||||
status: 'loading',
|
||||
courseId: null,
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
bmTypeById: [],
|
||||
content: '',
|
||||
kcInfo: null,
|
||||
|
@ -155,7 +155,7 @@
|
||||
status: 'loading',
|
||||
swiperListData: [],
|
||||
jxglInfoData: [],
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
kcListInfo: [],
|
||||
preferentialCurrentIndex: 0,
|
||||
searchSchool: null,
|
||||
|
@ -29,7 +29,7 @@
|
||||
List: [],
|
||||
show: false,
|
||||
status: 'loading',
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
newId: null,
|
||||
content: null
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
data() {
|
||||
return {
|
||||
titles: "平台公告",
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
msg: "1",
|
||||
List: [],
|
||||
show: false,
|
||||
|
@ -53,7 +53,7 @@
|
||||
List: [],
|
||||
show: false,
|
||||
status: 'loading',
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
schoolList: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
|
@ -46,7 +46,7 @@
|
||||
return {
|
||||
titles: "设置",
|
||||
fileList1: [],
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
avatar: '',
|
||||
selfInfo: ''
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
||||
yd: false,
|
||||
shenfen: 'jcyh',
|
||||
show: false,
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
privacyPolicyChecked: false,
|
||||
phoneNumber: "",
|
||||
isButtonDisabled: false,
|
||||
@ -162,7 +162,7 @@
|
||||
getPhone(e) {
|
||||
console.log('执行了');
|
||||
config.header = config.header || {}
|
||||
config.header['Tenant-Id'] = '1'
|
||||
config.header['tenant-id'] = '180'
|
||||
if (this.privacyPolicyChecked == false) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
|
@ -86,7 +86,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: this.$baseUrl,
|
||||
baseUrl: this.$imagesUrl,
|
||||
titles: "我的",
|
||||
msg: "3",
|
||||
List: [],
|
||||
|
@ -17,10 +17,11 @@ const request = config => {
|
||||
// 是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
config.header = config.header || {}
|
||||
config.header['Tenant-Id'] = '1'
|
||||
config.header['tenant-id'] = '180'
|
||||
if (getToken() && !isToken) {
|
||||
config.header['Authorization'] = 'Bearer ' + getToken()
|
||||
}
|
||||
|
||||
// get请求映射params参数
|
||||
if (config.params) {
|
||||
let url = config.url + '?' + tansParams(config.params)
|
||||
|
Loading…
Reference in New Issue
Block a user