This commit is contained in:
PQZ 2024-12-10 16:43:01 +08:00
parent d655b59eaa
commit c6cd7e69e8
8 changed files with 26 additions and 27 deletions

View File

@ -3,7 +3,8 @@ module.exports = {
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
//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',
// imagesUrl: 'http://192.168.31.54:8016/jx',
// 应用信息

View File

@ -86,7 +86,7 @@
if (res.code == 0) {
this.formData = res.data
this.fileList1 = [{
url: this.formData.photo
url: this.imageUrl + this.formData.photo
}]
}
})
@ -129,17 +129,10 @@
url: '/infra/file/upload',
filePath: e,
}).then((res) => {
this.formData.photo = res.data
this.formData.photo = '/' + res.data
})
},
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
.automatic || !this.formData.license || !this.formData.describ) {
uni.showToast({
@ -148,6 +141,13 @@
})
return
}
if (!this.formData.photo || this.formData.photo.length == 0) {
uni.showToast({
title: "请上传封面图",
icon: "none"
})
return
}
if (this.formData.id) {
request({
url: '/drivingSchool/system/driveSchoolCourse',

View File

@ -3,7 +3,7 @@
<view class="">
<view class="top-d-s">
<view class="touxiang">
<image :src="imagesUrl + vactor" mode=""></image>
<image :src="imageUrl + cadetOne.vactor" mode=""></image>
</view>
<view class="name_">{{cadetOne.name}}</view>
</view>
@ -61,7 +61,7 @@
<view class="box-ds">
<view class="left-box">
<image :src="imagesUrl + cadetOne.photo" mode=""></image>
<image :src="imageUrl + cadetOne.photo" mode=""></image>
</view>
<!-- <view class="">
<view class="box-title">{{cadetOne.driveSchoolCourse.automatic}}</view>
@ -104,12 +104,11 @@
<script>
import request from "@/utils/request.js"
import {
imagesUrl
} from "@/config.js"
export default {
data() {
return {
imageUrl: this.$imagesUrl,
tabindex: 0,
tabindex2: 1,
tabindex3: 2,

View File

@ -14,7 +14,7 @@
justify-content: space-between;width: 100%;">
<view class="d-s" @click="goDetails(item.identity)">
<view class="touxiang">
<image :src="imagesUrl + item.vactor" mode=""></image>
<image :src="imageUrl + item.vactor" mode=""></image>
</view>
<view class="">
<view class="name_">{{item.name}}</view>
@ -43,12 +43,10 @@
<script>
import request from "@/utils/request.js"
import {
imagesUrl
} from "@/config.js"
export default {
data() {
return {
imageUrl: this.$imagesUrl,
keyword: '',
cadetList: [],
param:{

View File

@ -7,7 +7,7 @@
<view class="box-ds" v-for="(item,index) in dataList" :key="index">
<view class="d-s">
<view class="left-box">
<image :src="item.photo" mode=""></image>
<image :src="imageUrl+item.photo" mode=""></image>
</view>
<view class="">
<view class="box-title" v-if="item.name == 1">成人班</view>

View File

@ -12,7 +12,7 @@
</view>
<view class="box-ds">
<view class="left-box">
<image :src="imagesUrl + orderOne.driveSchoolCourse.photo" mode=""></image>
<image :src="imageUrl + orderOne.driveSchoolCourse.photo" mode=""></image>
</view>
<view class="">
<view class="box-title">{{orderOne.driveSchoolCourse.automatic}}</view>
@ -83,11 +83,11 @@
<script>
import request from "@/utils/request.js"
import {imagesUrl} from "@/config.js"
export default {
data() {
return {
tabindex: 0,
imageUrl: this.$imagesUrl,
tablist: [{
name: '全部订单'
},

View File

@ -32,7 +32,7 @@
</view>
<view class="box-ds">
<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 style="width: 60%;">
@ -73,7 +73,7 @@
<view class="right-icon">
<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>
@ -110,7 +110,7 @@
}
],
userId: null,
imagesUrl: this.$baseUrl,
imageUrl: this.$imagesUrl,
listData: ["全部订单", "已报名", "已付款", "已面签"],
listDataIndex: 0,
orderList: [],
@ -163,7 +163,8 @@
} else {
this.orderList = res.data.records
}
this.param.total = res.data.total
this.param.total = res.data.total
console.log(this.orderList,'orderList')
} else {
uni.showToast({
title: "网络不佳请稍后再试",

View File

@ -17,7 +17,7 @@ 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()
}