This commit is contained in:
cjb 2025-07-31 11:41:57 +08:00
parent 5bea152a45
commit bd47ec1f73
5 changed files with 46 additions and 8 deletions

View File

@ -227,6 +227,7 @@
getlist()
}
})
</script>
<style lang="scss">

View File

@ -139,6 +139,7 @@
n:{},
index:0
})
const { actv, setActv } = inject<any>('parc')
@ -171,6 +172,41 @@
}).catch(() => {
loading.value = false
})
if(props.n.status == 2){
uni.connectSocket({
//url: `ws://192.168.5.14:9104/wechat/websocket/${uni.getStorageSync('wxuid')}`,
url:`ws://api.evo-techina.com/wechat/websocket/${uni.getStorageSync('wxuid')}`,
header: {
'content-type': 'application/json'
}
// protocols: ['protocol1'],
// method: 'GET'
})
uni.onSocketOpen(() => {
//loading.value = false
console.log('WebSocket连接已打开')
})
uni.onSocketError((rps:any) => {
console.log('WebSocket连接打开失败请检查',rps)
})
uni.onSocketMessage((rps:any) => {
//console.log('' + rps.data)
rps.data = JSON.parse(rps.data)
if(rps.data && rps.data.length > 0){
bzlist.value = rps.data
}else{
isempty.value = true
}
})
}
//??
}
let hdorderNo = ref('')

View File

@ -60,13 +60,13 @@
</view>
<up-icon name="arrow-right" color="#b9b9b9" />
</view>
<view class="gnrk" @tap="topage('/minePages/invoice/index')">
<!-- <view class="gnrk" @tap="topage('/minePages/invoice/index')">
<view>
<image src="../../static/img/cd4.png" />
<view>电子发票</view>
</view>
<up-icon name="arrow-right" color="#b9b9b9" />
</view>
</view> -->
</template>
<template v-else>
<view class="gnrk" @tap="wdltip">
@ -104,13 +104,13 @@
</view>
<up-icon name="arrow-right" color="#b9b9b9" />
</view>
<view class="gnrk">
<!-- <view class="gnrk">
<view>
<image src="../../static/img/cd4.png" />
<view>电子发票</view>
</view>
<up-icon name="arrow-right" color="#b9b9b9" />
</view>
</view> -->
</template>
<view class="gnrk" @tap="kefu">
<view>

View File

@ -1,4 +1,4 @@
const ENV = process.env.APP_ENV || process.env.NODE_ENV;
const ENV = import.meta.env.APP_ENV || import.meta.env.NODE_ENV //process
const development = {
// #ifdef MP-WEIXIN
@ -9,7 +9,8 @@ const development = {
//apiBaseUrl:'https://587910rq36.zicp.fun' //'/fetch/' //'http://192.168.110.73:8082/' //https://xcjf.56365.cc/' //'/fetch'//网站域名接口地址参考发布小程序和APP时使用
// #endif
//apiBaseUrl:'http://192.168.5.213:9100/gateway'
apiBaseUrl:'http://192.168.5.14:9104'
apiBaseUrl:'http://192.168.5.14:9104',
}
const production = {

View File

@ -31,8 +31,8 @@ export function request(method:any,url:string,data?:any,isLoading?:any){
//url:`${conf.config.apiBaseUrl}${url}`,
//url:'http://192.168.5.200:9104'+ url,
//url:'http://192.168.7.152:9104'+ url,
url:'http://192.168.5.14:9104'+ url,
//url:'https://api.evo-techina.com'+url,
//url:'http://192.168.5.14:9104'+ url,
url:'https://api.evo-techina.com'+url,
//url:'http://192.168.7.152:9100'+ url,
method,
data:data,