Compare commits
2 Commits
c3400d88b7
...
ad6f2127b4
Author | SHA1 | Date | |
---|---|---|---|
ad6f2127b4 | |||
b372a20e03 |
@ -63,7 +63,7 @@ export function loginApp(data) {
|
|||||||
// 使用租户域名(标识),获得租户编号
|
// 使用租户域名(标识),获得租户编号
|
||||||
export function getTenantIdByWebsite(website) {
|
export function getTenantIdByWebsite(website) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/tenant/get-by-website',
|
url: '/system/tenant/getListByWebsite',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
website
|
website
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<view class="box-title" v-if="detailsinfo.rescueInfo.rescueStatus == 6">待取车</view> -->
|
<view class="box-title" v-if="detailsinfo.rescueInfo.rescueStatus == 6">待取车</view> -->
|
||||||
|
|
||||||
<view v-if="detailsinfo.rescueInfo.rescueStatus > 2" class="touxiang">
|
<view v-if="detailsinfo.rescueInfo.rescueStatus > 2" class="touxiang">
|
||||||
<image :src="baseUrl + detailsinfo.driverInfo.avatar" mode="aspectFit"></image>
|
<image :src="baseImageUrl + detailsinfo.driverInfo.avatar" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-bs" v-if="detailsinfo.driverInfo != '' ">
|
<view class="box-bs" v-if="detailsinfo.driverInfo != '' ">
|
||||||
<view class="orderCardStatusData" v-if="detailsinfo.rescueInfo.rescueStatus == 3">
|
<view class="orderCardStatusData" v-if="detailsinfo.rescueInfo.rescueStatus == 3">
|
||||||
@ -141,7 +141,7 @@
|
|||||||
<view class="wrap-box" v-if="item.images">
|
<view class="wrap-box" v-if="item.images">
|
||||||
<view class="img-box" v-for="(items,index) in item.images.split(',') " :key="index"
|
<view class="img-box" v-for="(items,index) in item.images.split(',') " :key="index"
|
||||||
@click="previewImage(items)">
|
@click="previewImage(items)">
|
||||||
<image :src="baseUrl + items " mode=""></image>
|
<image :src="baseImageUrl + items " mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -164,7 +164,7 @@
|
|||||||
<view class="wrap-box" style="margin-left: 20px;" v-if="item.images">
|
<view class="wrap-box" style="margin-left: 20px;" v-if="item.images">
|
||||||
<view class="img-box" v-for="(items,index) in item.images.split(',') " :key="index"
|
<view class="img-box" v-for="(items,index) in item.images.split(',') " :key="index"
|
||||||
@click="previewImage(items)">
|
@click="previewImage(items)">
|
||||||
<image :src="baseUrl + items " mode=""></image>
|
<image :src="baseImageUrl + items " mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
@ -196,7 +196,7 @@
|
|||||||
compass: true,
|
compass: true,
|
||||||
marker: [],
|
marker: [],
|
||||||
urlList: [],
|
urlList: [],
|
||||||
baseUrl: this.$baseUrl,
|
baseImageUrl: this.$baseImageUrl,
|
||||||
detailsinfo: null,
|
detailsinfo: null,
|
||||||
timerId: null,
|
timerId: null,
|
||||||
currentIndicator: 'none',
|
currentIndicator: 'none',
|
||||||
@ -254,7 +254,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
previewImage(url) {
|
previewImage(url) {
|
||||||
let newsurl = this.baseUrl + url
|
let newsurl = this.baseImageUrl + url
|
||||||
this.urlList.push(newsurl)
|
this.urlList.push(newsurl)
|
||||||
console.log();
|
console.log();
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<!-- 可选项 -->
|
<!-- 可选项 -->
|
||||||
<view class="bt-box" v-for="(item,index) in arr" :key="index" @click="getlist(item.id)">
|
<view class="bt-box" v-for="(item,index) in arr" :key="index" @click="getlist(item.id)">
|
||||||
<view class="bt-img">
|
<view class="bt-img">
|
||||||
<image :src="item.icon" mode=""></image>
|
<image :src="baseImageUrl + item.icon" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="zi" :class="{'sy' :ggindex == item.id }">{{item.title}}</view>
|
<view class="zi" :class="{'sy' :ggindex == item.id }">{{item.title}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<!-- 渲染的数据 -->
|
<!-- 渲染的数据 -->
|
||||||
<view class="dz-box" v-for="(item,index) in arrlist" :key="index" @click="godetails(item.id)">
|
<view class="dz-box" v-for="(item,index) in arrlist" :key="index" @click="godetails(item.id)">
|
||||||
<view class="dz-left">
|
<view class="dz-left">
|
||||||
<image :src="item.imgs[0]" mode=""></image>
|
<image :src="baseImageUrl + item.imgs[0]" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="dz-right">
|
<view class="dz-right">
|
||||||
<view class="dz-title">{{item.title}}</view>
|
<view class="dz-title">{{item.title}}</view>
|
||||||
@ -67,6 +67,7 @@
|
|||||||
scale: 13, //缩放级别
|
scale: 13, //缩放级别
|
||||||
compass: true,
|
compass: true,
|
||||||
marker: [],
|
marker: [],
|
||||||
|
baseImageUrl: this.$baseImageUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<headers title="地图详情"></headers>
|
<headers title="地图详情"></headers>
|
||||||
<view class="c-top">
|
<view class="c-top">
|
||||||
<image :src="imgs" mode=""></image>
|
<image :src="baseImageUrl + imgs" mode=""></image>
|
||||||
<!-- p -->
|
<!-- p -->
|
||||||
<view class="c-box">
|
<view class="c-box">
|
||||||
<!-- 上 -->
|
<!-- 上 -->
|
||||||
@ -57,7 +57,8 @@
|
|||||||
return {
|
return {
|
||||||
id: '',
|
id: '',
|
||||||
arr: {},
|
arr: {},
|
||||||
imgs: ''
|
imgs: '',
|
||||||
|
baseImageUrl: this.$baseImageUrl,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
@ -140,14 +140,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onShow(){
|
mounted(){
|
||||||
console.log(144,144);
|
|
||||||
getTenantIdByWebsite(this.tenantCode).then(res => {
|
|
||||||
const tenantId = res.data;
|
|
||||||
if (tenantId && tenantId >= 0) {
|
|
||||||
setTenantId(tenantId)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
@ -275,7 +268,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
uni.setStorageSync('identity', this.sfindex);
|
uni.setStorageSync('identity', this.sfindex);
|
||||||
console.log(277);
|
|
||||||
|
const loginFun = () => {
|
||||||
if (this.activeid == 0) {
|
if (this.activeid == 0) {
|
||||||
const data = {
|
const data = {
|
||||||
username: this.tel,
|
username: this.tel,
|
||||||
@ -283,7 +277,6 @@
|
|||||||
type: 0
|
type: 0
|
||||||
}
|
}
|
||||||
loginApp(data).then(res => {
|
loginApp(data).then(res => {
|
||||||
|
|
||||||
setToken(res.data.accessToken)
|
setToken(res.data.accessToken)
|
||||||
this.userinfo()
|
this.userinfo()
|
||||||
})
|
})
|
||||||
@ -312,6 +305,22 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getTenantIdByWebsite(this.tenantCode).then(res => {
|
||||||
|
if (res.code === 200 && res.data && res.data.length > 0) {
|
||||||
|
uni.showActionSheet({
|
||||||
|
itemList: res.data.map(m => m.name),
|
||||||
|
success: ({tapIndex}) => {
|
||||||
|
setTenantId(res.data[tapIndex].id)
|
||||||
|
loginFun()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
setTenantId('')
|
||||||
|
loginFun()
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
userinfo() {
|
userinfo() {
|
||||||
if (this.sfindex == 'user') {
|
if (this.sfindex == 'user') {
|
||||||
|
@ -236,3 +236,4 @@
|
|||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@
|
|||||||
url: '/common/upload',
|
url: '/common/upload',
|
||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.imageList1.push(res.fileName)
|
this.imageList1.push(this.$baseImageUrl + res.data.url)
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -239,7 +239,7 @@
|
|||||||
url: '/common/upload',
|
url: '/common/upload',
|
||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.imageList2.push(res.fileName)
|
this.imageList2.push(this.$baseImageUrl + res.data.url)
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
:maxCount="1" width="60" height="60">
|
:maxCount="1" width="60" height="60">
|
||||||
<image src="http://www.nuoyunr.com/lananRsc/detection/touxiang.png" class="tximg" mode=""
|
<image src="http://www.nuoyunr.com/lananRsc/detection/touxiang.png" class="tximg" mode=""
|
||||||
v-if="!userinfo.avatar"></image>
|
v-if="!userinfo.avatar"></image>
|
||||||
<image :src=" baseUrl +userinfo.avatar " class="tximg" mode="" v-if="userinfo.avatar"></image>
|
<image :src="baseImageUrl + userinfo.avatar " class="tximg" mode="" v-if="userinfo.avatar"></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view class="c-title" v-if="!userinfo" @click="gologin">立即登录</view>
|
<view class="c-title" v-if="!userinfo" @click="gologin">立即登录</view>
|
||||||
@ -185,7 +185,8 @@
|
|||||||
},
|
},
|
||||||
msg: '4',
|
msg: '4',
|
||||||
value: '',
|
value: '',
|
||||||
baseUrl: this.$baseUrl
|
baseUrl: this.$baseUrl,
|
||||||
|
baseImageUrl: this.$baseImageUrl,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -227,7 +228,7 @@
|
|||||||
|
|
||||||
async getUserinfo() {
|
async getUserinfo() {
|
||||||
await request({
|
await request({
|
||||||
url: '/getAppInfo',
|
url: '/rescue/getJcAppInfo',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -282,7 +283,7 @@
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
console.log(res.fileName);
|
console.log(res.fileName);
|
||||||
this.onChooseavatar(res.fileName)
|
this.onChooseavatar(this.$baseImageUrl + res.data.url)
|
||||||
// this.releasebox.imageList.push(res.fileName)
|
// this.releasebox.imageList.push(res.fileName)
|
||||||
// console.log(this.releasebox.imageList);
|
// console.log(this.releasebox.imageList);
|
||||||
})
|
})
|
||||||
@ -360,7 +361,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/getAppInfo',
|
url: '/rescue/getJcAppInfo',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
console.log('个人信息', res);
|
console.log('个人信息', res);
|
||||||
|
@ -461,7 +461,9 @@
|
|||||||
url: '/common/upload',
|
url: '/common/upload',
|
||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.imageList.push(res.fileName)
|
console.log('res.fileName', res.data.url)
|
||||||
|
this.imageList.push(this.$baseImageUrl + res.data.url)
|
||||||
|
console.log('this.imageList', this.imageList)
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -57,7 +57,8 @@
|
|||||||
label: '扣车',
|
label: '扣车',
|
||||||
icon: require('@/static/icons/order/tuoche.png')
|
icon: require('@/static/icons/order/tuoche.png')
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
|
baseImageUrl: this.$baseImageUrl,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
Loading…
Reference in New Issue
Block a user