合并所有代码

This commit is contained in:
Teng 2026-05-06 09:17:04 +08:00
parent d483ab2f88
commit 69cbf6ab71
38 changed files with 30 additions and 284 deletions

View File

@ -1,47 +0,0 @@
// src/composables/useWeChatAuth.js
import { ref } from 'vue';
import request from '@/request/index.js';
//解决跨域
export function proxy(res){
return request({
url: `/api/proxy/get?apiUrl=${res.apiUrl}&params=${res.other}`,
method: 'get',
})
}
export const jsonp = function (url, data) {
return new Promise((resolve, reject) => {
// 1.初始化url
let dataString = url.indexOf('?') === -1 ? '?' : '&'
let callbackName = `jsonpCB_${Date.now()}`;
url += `${dataString}`
if (data) {
// 2.有请求参数依次添加到url
for (let k in data) {
url += `&${k}=${data[k]}`
}
}
let scriptNode = document.createElement('script');
scriptNode.src = url;
// 3. callback
window[callbackName] = (result) => {
result ? resolve(result) : reject('没有返回数据');
delete window[callbackName];
document.body.removeChild(scriptNode);
}
// 4. 异常情况
scriptNode.addEventListener('error', () => {
reject('接口返回数据失败');
delete window[callbackName];
document.body.removeChild(scriptNode);
}, false)
// 5. 开始请求
document.body.appendChild(scriptNode)
})
}

View File

@ -21,7 +21,6 @@
const height = ref(600);
//
const handleCrop = (e) => {
// console.log("")
uni.setStorageSync(`imgkey${type.value}`, e.tempFilePath);
uni.navigateBack()
}

View File

@ -1,121 +0,0 @@
<template>
<view>
<image :src="isError ? defaultImage : links[currentIndex]" :style="{ width: width, height: height }"
:mode="objectFit" @error="isError = true" @load="isError = false" />
<button v-if="showButton" @click="$emit('update:playing', !playing)">
{{ playing ? '停止播放' : '开始播放' }}
</button>
</view>
</template>
<script setup>
import {
ref,
watch,
onUnmounted
} from 'vue'
// props
const props = defineProps({
links: {
type: Array,
default: () => []
},
width: {
type: String,
default: '65rpx'
},
height: {
type: String,
default: '65rpx'
},
objectFit: {
type: String,
default: 'aspectFill'
},
defaultImage: {
type: String,
default: ''
},
interval: {
type: Number,
default: 80
},
playing: {
type: Boolean,
default: false
},
showButton: {
type: Boolean,
default: false
},
loop: {
type: Boolean,
default: false
}
})
//
const emit = defineEmits(['update:playing'])
//
const currentIndex = ref(0) //
const isPlaying = ref(false) //
const isError = ref(false) //
let timer = null //
//
const startPlay = () => {
if (isPlaying.value) return
isPlaying.value = true
timer = setInterval(() => {
if (props.loop) {
// 使
currentIndex.value = (currentIndex.value + 1) % props.links.length
isError.value = false
} else {
//
if (currentIndex.value < props.links.length - 1) {
currentIndex.value++
isError.value = false
} else {
stopPlay()
}
}
}, props.interval)
}
//
const stopPlay = () => {
isPlaying.value = false
clearInterval(timer)
}
// playing
watch(() => props.playing, (val) => {
currentIndex.value = 0
if (val) {
startPlay()
} else {
stopPlay()
setTimeout(() => currentIndex.value = 0, 50)
}
})
// links
watch(() => props.links, () => {
currentIndex.value = 0
isError.value = false
if (isPlaying.value) {
stopPlay()
}
}, {
deep: true
})
//
onUnmounted(() => {
stopPlay()
})
</script>

View File

@ -5,10 +5,6 @@
<view class="neuro-mask" @click="handleClose"></view>
<!-- 拟态框阻止冒泡点击 -->
<view class="neuro-box" @click.stop>
<!-- <view class="tittle-bgc">
</view> -->
<!-- <view class="text">提示</view> -->
<view class="button-father">
<view class="button-white" @click="handleClose">取消</view>
<view class="button" @click="go">确定</view>
@ -40,11 +36,7 @@
}
const go = () => {
if(props.cont=='是否退出登录?'){
// uni.clearStorage()
wx.exitMiniProgram()
// uni.reLaunch({
// url:'/pages/login/index'
// })
}else{
emit('go');
}
@ -96,25 +88,6 @@
padding: 0 10%;
}
.tittle-bgc {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 300rpx;
background-image: url('https://www.focusnu.com/media/directive/index/modelbgc.png');
background-size: 100% auto;
background-position: top center;
background-repeat: no-repeat;
.text {
color: #47526F;
font-size: 40rpx;
margin: 40rpx 0 0 50rpx;
font-weight: 600;
}
}
.button {
width: 47%;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
@ -134,8 +107,6 @@
display: flex;
justify-content: center;
align-items: center;
// color: #fff;
// color: rgb(242,242,242);
font-size: 25rpx;
border-radius: 24rpx;
}

View File

@ -3,12 +3,9 @@
<view class="botton-view">
<view v-for="(item,index) in itemArray" :key="index" class="array-father">
<view :class="itemTarget===index ? `bottom-button-target` : `bottom-button`" @click="jumpto(index)">
<!-- <donghua :width="`60rpx`" :height="`60rpx`" :links="donghuaArray[index]" :playing="playing==index"
:interval="50" /> -->
<image v-if="index==0" :src="playing==0?'/static/donghua/home/home19.png':'/static/donghua/home/home0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
<image v-if="index==1" :src="playing==1?'/static/donghua/new/new18.png':'/static/donghua/new/new0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
<image v-if="index==2" :src="playing==2?'/static/donghua/my/my14.png':'/static/donghua/my/my0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
<view class="bottom-text">
{{item}}
</view>
@ -37,28 +34,6 @@
const playing = ref(-1);
const photoplay = ref(false);
const itemArray = ["NU", "动态", "我的"];
const donghuaArray = [genPaths(
'/static/donghua/home',
'home',
19, //
'png',
0, //
false //
),genPaths(
'/static/donghua/new',
'new',
18, //
'png',
0, //
false //
),genPaths(
'/static/donghua/my',
'my',
14, //
'png',
0, //
false //
)]
onMounted(() => {
photoplay.value = true;
@ -82,7 +57,6 @@
});
break;
}
}
}
</script>

View File

@ -3,8 +3,6 @@
<view class="botton-view">
<view v-for="(item,index) in itemArray" :key="index" class="array-father">
<view :class="itemTarget===index ? `bottom-button-target` : `bottom-button`" @click="jumpto(index)">
<!-- <donghua :width="`60rpx`" :height="`60rpx`" :links="donghuaArray[index]" :playing="playing==index"
:interval="50" /> -->
<image v-if="index==0" :src="playing==0?'/static/donghua/home/home19.png':'/static/donghua/home/home0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
<image v-if="index==1" :src="playing==1?'/static/donghua/new/new18.png':'/static/donghua/new/new0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
<image v-if="index==2" :src="playing==2?'/static/donghua/my/my14.png':'/static/donghua/my/my0.png'" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
@ -37,28 +35,6 @@
const playing = ref(-1);
const photoplay = ref(false);
const itemArray = ["NU", "动态", "我的"];
const donghuaArray = [genPaths(
'/static/donghua/home',
'home',
19, //
'png',
0, //
false //
), genPaths(
'/static/donghua/new',
'new',
18, //
'png',
0, //
false //
), genPaths(
'/static/donghua/my',
'my',
14, //
'png',
0, //
false //
)]
onMounted(() => {
photoplay.value = true;

View File

@ -17,12 +17,10 @@ app.$mount()
import {
createSSRApp
} from 'vue'
import donghua from '@/compontent/public/donghua.vue'
export function createApp() {
const app = createSSRApp(App)
// 使用 uView UI
app.use(uView)
app.component('donghua', donghua)
return {
app
}

View File

@ -77,63 +77,63 @@
}
},
{
"path": "pages/index/index",
"path": "pages/mechanismindex/index",
"style": {
"navigationBarTitleText": "首页",
"enablePullDownRefresh": true
}
},
{
"path": "pages/index/mine",
"path": "pages/mechanismindex/mine",
"style": {
"navigationBarTitleText": "我的"
}
},
{
"path": "pages/yuangongindex/searchjigou",
"path": "pages/staffindex/searchjigou",
"style": {
"navigationBarTitleText": "查找"
}
},
{
"path": "pages/yuangongindex/workjoin",
"path": "pages/staffindex/workjoin",
"style": {
"navigationBarTitleText": "入驻审核"
}
},
{
"path": "pages/yuangongindex/message",
"path": "pages/staffindex/message",
"style": {
"navigationBarTitleText": "消息"
}
},
{
"path": "pages/yuangongindex/companyyaoqing",
"path": "pages/staffindex/companyyaoqing",
"style": {
"navigationBarTitleText": "公司邀请"
}
},
{
"path": "pages/yuangongindex/simpleyaoqing",
"path": "pages/staffindex/simpleyaoqing",
"style": {
"navigationBarTitleText": "公司邀请"
}
},
{
"path": "pages/yuangongindex/company",
"path": "pages/staffindex/company",
"style": {
"navigationBarTitleText": "公司详情"
}
},
{
"path": "pages/yuangongindex/index",
"path": "pages/staffindex/index",
"style": {
"navigationBarTitleText": "首页",
"enablePullDownRefresh": true
}
},
{
"path": "pages/yuangongindex/mine",
"path": "pages/staffindex/mine",
"style": {
"navigationBarTitleText": "我的"
}
@ -390,7 +390,7 @@
},
{
"path" : "pages/yuangongindex/purchaseorder",
"path" : "pages/staffindex/purchaseorder",
"style" :
{
"navigationBarTitleText" : "",
@ -398,7 +398,7 @@
}
},
{
"path" : "pages/yuangongindex/purchaseorderdetail",
"path" : "pages/staffindex/purchaseorderdetail",
"style" :
{
"navigationBarTitleText" : "",
@ -406,7 +406,7 @@
}
},
{
"path" : "pages/yuangongindex/detIlspro",
"path" : "pages/staffindex/detIlspro",
"style" :
{
"navigationBarTitleText" : ""
@ -448,21 +448,21 @@
}
},
{
"path" : "pages/yuangongindex/commission",
"path" : "pages/staffindex/commission",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/yuangongindex/daypay",
"path" : "pages/staffindex/daypay",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/yuangongindex/region",
"path" : "pages/staffindex/region",
"style" :
{
"navigationBarTitleText" : ""

View File

@ -1,4 +1,3 @@
// src/composables/useWeChatAuth.js
import { ref } from 'vue';
import request from '@/request/index.js';
@ -25,9 +24,6 @@ export function queryOrgInfoById(id){
})
}
export function queryOrgHis(id){
return request({
url: `/api/orgApplyInfo/queryOrgHis?openId=${id}&optType=rz,bg`,

View File

@ -286,7 +286,7 @@
// import tu from 'https://www.focusnu.com/media/directive/index/tu.png'
import request from '@/request/index.js' // uni.request
import downMenu from '@/compontent/public/downmenu.vue'
import downMenu from '@/compontent/public/menus/mechanismdownmenu.vue'
import model from "@/compontent/public/model.vue"
const tu = 'https://www.focusnu.com/media/directive/index/tu.png'

View File

@ -53,7 +53,7 @@
onUnmounted
} from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/downmenu.vue'
import downMenu from '@/compontent/public/menus/mechanismdownmenu.vue'
const phone = ref("")
const openid = ref("")

View File

@ -48,7 +48,7 @@
<script setup lang="ts">
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -327,7 +327,7 @@
// getOrgNuId
// } from './api.js'
import request from '@/request/index.js'
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import model from "@/compontent/public/model.vue"
const show = ref(false);

View File

@ -53,7 +53,7 @@
onUnmounted
} from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -69,7 +69,7 @@
<script setup lang="ts">
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -45,7 +45,7 @@
<script setup lang="ts">
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -48,7 +48,7 @@
<script setup lang="ts">
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/oldmandownmenu.vue'
import downMenu from '@/compontent/public/menus/oldmandownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -275,7 +275,7 @@
Apply
} from './api.js'
import request from '@/request/index.js'
import downMenu from '@/compontent/public/yuangongdownmenu.vue'
import downMenu from '@/compontent/public/menus/staffdownmenu.vue'
import model from "@/compontent/public/model.vue"
import exit from "@/compontent/public/exit.vue"
const show = ref(false);

View File

@ -53,7 +53,7 @@
onUnmounted
} from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/yuangongdownmenu.vue'
import downMenu from '@/compontent/public/menus/staffdownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -255,7 +255,7 @@
getShowInfoByOpenId
} from './api.js'
import request from '@/request/index.js'
import downMenu from '@/compontent/public/gongyingshnagdownmenu.vue'
import downMenu from '@/compontent/public/menus/supplierdownmenu.vue'
import model from "@/compontent/public/model.vue"
const show = ref(false);

View File

@ -253,7 +253,7 @@
getSupInfoByOpenId
} from './api.js'
import request from '@/request/index.js'
import downMenu from '@/compontent/public/gongyingshnagdownmenu.vue'
import downMenu from '@/compontent/public/menus/supplierdownmenu.vue'
import model from "@/compontent/public/model.vue"
const show = ref(false);

View File

@ -50,7 +50,7 @@
onUnmounted
} from 'vue';
import exit from "@/compontent/public/exit.vue"
import downMenu from '@/compontent/public/gongyingshnagdownmenu.vue'
import downMenu from '@/compontent/public/menus/supplierdownmenu.vue'
import {
getMessageList
} from '@/pages/addstaff/api/addjigou.js'

View File

@ -50,7 +50,7 @@
ref,
onMounted,
onUnmounted,
defineExpose
// defineExpose
} from 'vue';
import {
onLoad,