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