调整
This commit is contained in:
parent
d655b59eaa
commit
c6cd7e69e8
@ -3,7 +3,8 @@ module.exports = {
|
|||||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||||
|
|
||||||
//baseUrl: 'https://www.nuoyunr.com/jx',
|
//baseUrl: 'https://www.nuoyunr.com/jx',
|
||||||
imagesUrl: 'http://localhost:48080/admin-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',
|
||||||
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
this.fileList1 = [{
|
this.fileList1 = [{
|
||||||
url: this.formData.photo
|
url: this.imageUrl + this.formData.photo
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -129,17 +129,10 @@
|
|||||||
url: '/infra/file/upload',
|
url: '/infra/file/upload',
|
||||||
filePath: e,
|
filePath: e,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.formData.photo = res.data
|
this.formData.photo = '/' + res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if (!this.formData.photo || this.formData.photo.length == 0) {
|
|
||||||
uni.showToast({
|
|
||||||
title: "请上传封面图",
|
|
||||||
icon: "none"
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!this.formData.name || !this.formData.price || !this.formData.reserveMoney || !this.formData
|
if (!this.formData.name || !this.formData.price || !this.formData.reserveMoney || !this.formData
|
||||||
.automatic || !this.formData.license || !this.formData.describ) {
|
.automatic || !this.formData.license || !this.formData.describ) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -148,6 +141,13 @@
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!this.formData.photo || this.formData.photo.length == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请上传封面图",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.formData.id) {
|
if (this.formData.id) {
|
||||||
request({
|
request({
|
||||||
url: '/drivingSchool/system/driveSchoolCourse',
|
url: '/drivingSchool/system/driveSchoolCourse',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<view class="">
|
<view class="">
|
||||||
<view class="top-d-s">
|
<view class="top-d-s">
|
||||||
<view class="touxiang">
|
<view class="touxiang">
|
||||||
<image :src="imagesUrl + vactor" mode=""></image>
|
<image :src="imageUrl + cadetOne.vactor" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="name_">{{cadetOne.name}}</view>
|
<view class="name_">{{cadetOne.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
<view class="box-ds">
|
<view class="box-ds">
|
||||||
<view class="left-box">
|
<view class="left-box">
|
||||||
<image :src="imagesUrl + cadetOne.photo" mode=""></image>
|
<image :src="imageUrl + cadetOne.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="">
|
<!-- <view class="">
|
||||||
<view class="box-title">{{cadetOne.driveSchoolCourse.automatic}}</view>
|
<view class="box-title">{{cadetOne.driveSchoolCourse.automatic}}</view>
|
||||||
@ -104,12 +104,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from "@/utils/request.js"
|
import request from "@/utils/request.js"
|
||||||
import {
|
|
||||||
imagesUrl
|
|
||||||
} from "@/config.js"
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
imageUrl: this.$imagesUrl,
|
||||||
tabindex: 0,
|
tabindex: 0,
|
||||||
tabindex2: 1,
|
tabindex2: 1,
|
||||||
tabindex3: 2,
|
tabindex3: 2,
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
justify-content: space-between;width: 100%;">
|
justify-content: space-between;width: 100%;">
|
||||||
<view class="d-s" @click="goDetails(item.identity)">
|
<view class="d-s" @click="goDetails(item.identity)">
|
||||||
<view class="touxiang">
|
<view class="touxiang">
|
||||||
<image :src="imagesUrl + item.vactor" mode=""></image>
|
<image :src="imageUrl + item.vactor" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="name_">{{item.name}}</view>
|
<view class="name_">{{item.name}}</view>
|
||||||
@ -43,12 +43,10 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from "@/utils/request.js"
|
import request from "@/utils/request.js"
|
||||||
import {
|
|
||||||
imagesUrl
|
|
||||||
} from "@/config.js"
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
imageUrl: this.$imagesUrl,
|
||||||
keyword: '',
|
keyword: '',
|
||||||
cadetList: [],
|
cadetList: [],
|
||||||
param:{
|
param:{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<view class="box-ds" v-for="(item,index) in dataList" :key="index">
|
<view class="box-ds" v-for="(item,index) in dataList" :key="index">
|
||||||
<view class="d-s">
|
<view class="d-s">
|
||||||
<view class="left-box">
|
<view class="left-box">
|
||||||
<image :src="item.photo" mode=""></image>
|
<image :src="imageUrl+item.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="box-title" v-if="item.name == 1">成人班</view>
|
<view class="box-title" v-if="item.name == 1">成人班</view>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="box-ds">
|
<view class="box-ds">
|
||||||
<view class="left-box">
|
<view class="left-box">
|
||||||
<image :src="imagesUrl + orderOne.driveSchoolCourse.photo" mode=""></image>
|
<image :src="imageUrl + orderOne.driveSchoolCourse.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="box-title">{{orderOne.driveSchoolCourse.automatic}}</view>
|
<view class="box-title">{{orderOne.driveSchoolCourse.automatic}}</view>
|
||||||
@ -83,11 +83,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from "@/utils/request.js"
|
import request from "@/utils/request.js"
|
||||||
import {imagesUrl} from "@/config.js"
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tabindex: 0,
|
tabindex: 0,
|
||||||
|
imageUrl: this.$imagesUrl,
|
||||||
tablist: [{
|
tablist: [{
|
||||||
name: '全部订单'
|
name: '全部订单'
|
||||||
},
|
},
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="box-ds">
|
<view class="box-ds">
|
||||||
<view class="left-box" @click="goDetails(item.id)">
|
<view class="left-box" @click="goDetails(item.id)">
|
||||||
<image :src="imagesUrl + item.photo" mode=""></image>
|
<image :src="imageUrl + item.driveSchoolCourse.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 60%;">
|
<view style="width: 60%;">
|
||||||
|
|
||||||
@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
<view class="right-icon">
|
<view class="right-icon">
|
||||||
<view class="">实付:</view>
|
<view class="">实付:</view>
|
||||||
<!-- <view style="font-size: 20px;color: #FB423B;">¥{{item.driveSchoolCourse.reserveMoney}}</view>-->
|
<view style="font-size: 20px;color: #FB423B;">¥{{item.driveSchoolCourse.reserveMoney}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -110,7 +110,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
userId: null,
|
userId: null,
|
||||||
imagesUrl: this.$baseUrl,
|
imageUrl: this.$imagesUrl,
|
||||||
listData: ["全部订单", "已报名", "已付款", "已面签"],
|
listData: ["全部订单", "已报名", "已付款", "已面签"],
|
||||||
listDataIndex: 0,
|
listDataIndex: 0,
|
||||||
orderList: [],
|
orderList: [],
|
||||||
@ -164,6 +164,7 @@
|
|||||||
this.orderList = res.data.records
|
this.orderList = res.data.records
|
||||||
}
|
}
|
||||||
this.param.total = res.data.total
|
this.param.total = res.data.total
|
||||||
|
console.log(this.orderList,'orderList')
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "网络不佳请稍后再试",
|
title: "网络不佳请稍后再试",
|
||||||
|
@ -17,7 +17,7 @@ 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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user