This commit is contained in:
PQZ 2024-12-11 18:13:56 +08:00
parent d4edbd321a
commit 482307854e
16 changed files with 20 additions and 18 deletions

View File

@ -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',

View File

@ -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
})

View File

@ -150,7 +150,7 @@
qhindex: 0,
swxw: 0,
Phone: null,
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
newId: null,
typelist: [{
name: '成人班',

View File

@ -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'

View File

@ -32,7 +32,7 @@
data() {
return {
titles: "平台公告",
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
msg: "1",
List: [],
show: false,

View File

@ -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

View File

@ -109,7 +109,7 @@
List: [],
show: false,
status: 'loading',
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
bookingData: [],
bookingId: null,
userId: null,

View File

@ -72,7 +72,7 @@
show: false,
status: 'loading',
courseId: null,
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
bmTypeById: [],
content: '',
kcInfo: null,

View File

@ -155,7 +155,7 @@
status: 'loading',
swiperListData: [],
jxglInfoData: [],
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
kcListInfo: [],
preferentialCurrentIndex: 0,
searchSchool: null,

View File

@ -29,7 +29,7 @@
List: [],
show: false,
status: 'loading',
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
newId: null,
content: null
}

View File

@ -32,7 +32,7 @@
data() {
return {
titles: "平台公告",
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
msg: "1",
List: [],
show: false,

View File

@ -53,7 +53,7 @@
List: [],
show: false,
status: 'loading',
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
schoolList: [],
queryParams: {
pageNum: 1,

View File

@ -46,7 +46,7 @@
return {
titles: "设置",
fileList1: [],
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
avatar: '',
selfInfo: ''
}

View File

@ -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",

View File

@ -86,7 +86,7 @@
export default {
data() {
return {
baseUrl: this.$baseUrl,
baseUrl: this.$imagesUrl,
titles: "我的",
msg: "3",
List: [],

View File

@ -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)