This commit is contained in:
13405411873 2024-10-23 16:53:40 +08:00
parent b3210ffad3
commit 74cc28d805
571 changed files with 104289 additions and 43 deletions

16
.hbuilderx/launch.json Normal file
View File

@ -0,0 +1,16 @@
{ // launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}

View File

@ -1,7 +1,7 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
baseUrl: 'https://www.nuoyunr.com/admin-api', baseUrl: 'https://www.nuoyunr.com/admin-api',
//baseUrl: 'http://192.168.2.3:48080/admin-api', //baseUrl: 'http://127.0.0.1:48080/admin-api',
imagesUrl: 'http://www.nuoyunr.com/lananRsc', imagesUrl: 'http://www.nuoyunr.com/lananRsc',
baseImageUrl: 'https://www.nuoyunr.com/minio', baseImageUrl: 'https://www.nuoyunr.com/minio',
// 应用信息 // 应用信息

View File

@ -33,27 +33,31 @@
} }
}, },
onLoad() { onLoad() {
console.log(getToken(),36);
if(getToken()){ if(getToken()){
let info = uni.getStorageSync('userinfo') let info = uni.getStorageSync('userinfo')
if(info&&info.roles[0]&&info.roles[0].roleKey&&uni.getStorageSync('roleSelect')=='shop'){ let chooseIdx = uni.getStorageSync("chooseIdx")
console.log(chooseIdx,chooseIdx&&chooseIdx == 0,40);
if(chooseIdx==null){
uni.navigateTo({
url:'/pages/Login/login'
})
}
else if(chooseIdx == 0){
uni.navigateTo({ uni.navigateTo({
url:'/pages/index/synthesis' url:'/pages/index/synthesis'
}) })
}else if(info&&uni.getStorageSync('roleSelect')=='worker'){ }else if(chooseIdx == 2){
uni.navigateTo({ uni.navigateTo({
url:'/pages/staff/staff' url:'/pages/staff/staff'
}) })
} }
else if(info&&uni.getStorageSync('roleSelect')=='jcgf'){ else if(chooseIdx == 1){
uni.navigateTo({ uni.navigateTo({
url:'/pages/authority/authority' url:'/pages/authority/authority'
}) })
} }
else{
uni.navigateTo({
url:'/pages/Login/login'
})
}
}else{ }else{
uni.navigateTo({ uni.navigateTo({

View File

@ -111,19 +111,7 @@
}) })
}, },
onLoad() { onLoad() {
if(getToken()){
let info = uni.getStorageSync('userinfo')
if(info.roles[0].roleKey == "jcyh"){
uni.navigateTo({
url:'/pages/index/index'
})
}else if(info){
uni.navigateTo({
url:'/pages/staff/staff'
})
}
}
}, },
computed: { computed: {
buttonText() { buttonText() {
@ -192,6 +180,7 @@
} }
}, },
userinfo(){ userinfo(){
uni.setStorageSync("chooseIdx",this.shopinfo)
if(this.shopinfo == 0){ if(this.shopinfo == 0){
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'

View File

@ -129,6 +129,7 @@
import config from '@/config'; import config from '@/config';
import request from '../../utils/request'; import request from '../../utils/request';
import upload from '@/utils/upload.js' import upload from '@/utils/upload.js'
import { getToken, getTenantId } from '@/utils/auth'
export default { export default {
data() { data() {
return { return {
@ -393,14 +394,18 @@
url: this.$baseUrl+'/common/uploadImg', // url: this.$baseUrl+'/common/uploadImg', //
filePath: url, filePath: url,
name: 'file', name: 'file',
header: {
'Tenant-Id': getTenantId(),
'Authorization': 'Bearer ' + getToken()
},
formData: { formData: {
user: 'test' user: 'test'
}, },
success: (res) => { success: (res) => {
try { try {
console.log(res,"1212")
let img = JSON.parse(res.data); let img = JSON.parse(res.data);
this.imagePath = this.imgs + img.fileName this.imagePath = img.data.url
setTimeout(() => { setTimeout(() => {
this.vehicleLicenseOCR() this.vehicleLicenseOCR()
}, 1000) }, 1000)
@ -417,9 +422,10 @@
}, },
async vehicleLicenseOCR(){ async vehicleLicenseOCR(){
let data = { let data = {
imagePath :this.baseUrl + this.imagePath imagePath :this.baseUrl +'/'+ this.imagePath
//imagePath :'http://www.nuoyunr.com/lananRsc/detection/jsz.jpg' //imagePath :'http://www.nuoyunr.com/lananRsc/detection/jsz.jpg'
} }
console.log(this.baseUrl + this.imagePath,"1212")
let res = await request({ let res = await request({
url:'/partnerOwn/partner/vehicleLicenseOCR', url:'/partnerOwn/partner/vehicleLicenseOCR',
method: 'post', method: 'post',

View File

@ -146,7 +146,7 @@
}); });
}, },
async getList(){ async getList(){
this.infoDatas = []
let res = await request({ let res = await request({
url:'/partnerOwn/partner/inspectionList', url:'/partnerOwn/partner/inspectionList',
method: 'get', method: 'get',
@ -158,6 +158,7 @@
pageNum:this.pageNum, pageNum:this.pageNum,
} }
}) })
console.log(res,161);
if(res.code == 200 ){ if(res.code == 200 ){
if (this.pageNum != 1) { if (this.pageNum != 1) {

View File

@ -165,6 +165,7 @@
city:'', city:'',
area:'', area:'',
four:'', four:'',
baseImageUrl:this.$baseImageUrl
} }
@ -209,7 +210,7 @@
this.fileList6.push( this.fileList6.push(
{ {
url: res.data.partnerLogo url: this.baseImageUrl+res.data.partnerLogo
} }
) )
console.log(this.fileList6); console.log(this.fileList6);
@ -218,7 +219,7 @@
if(it){ if(it){
this.fileList4.push( this.fileList4.push(
{ {
url: it url: this.baseImageUrl+it
}) })
} }

View File

@ -127,9 +127,9 @@
params: data params: data
}) })
if(res.code == 200){ if(res.code == 200){
this.goodsList = res.rows this.goodsList = this.goodsList.concat(res.rows)
let total = res.total let total = res.total
this.totalPages = Math.ceil(total / this.pageSize); this.totalPages = Math.ceil(total / this.pageSize);
} }
}, },

Binary file not shown.

View File

@ -1 +1 @@
https://app.liuyingyong.cn/build/download/db2ec950-7e06-11ef-aaf6-b32a2be96ade https://app.liuyingyong.cn/build/download/fdc856c0-90e5-11ef-aac0-018a70970415

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More