0000000000000000
|
|
@ -0,0 +1,121 @@
|
|||
<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>
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
<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)">
|
||||
<image class="botton-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`" />
|
||||
<donghua :width="`60rpx`" :height="`60rpx`" :links="donghuaArray[index]" :playing="playing==index"
|
||||
:interval="50" />
|
||||
<view class="bottom-text">
|
||||
{{item}}
|
||||
</view>
|
||||
|
|
@ -15,21 +15,53 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
ref,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
import {
|
||||
genPaths
|
||||
} from '@/compontent/public/issame.js'
|
||||
|
||||
const props = defineProps({
|
||||
itemTarget: {
|
||||
type: Number,
|
||||
required: true // 如果必须传
|
||||
// default: 0 // 如果您想给默认值
|
||||
required: true, // 如果必须传
|
||||
default: -1 // 如果您想给默认值
|
||||
}
|
||||
})
|
||||
|
||||
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;
|
||||
playing.value = props.itemTarget
|
||||
})
|
||||
const jumpto = (index) => {
|
||||
if(index!=props.itemTarget){
|
||||
if (index != props.itemTarget) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
uni.reLaunch({
|
||||
|
|
@ -99,9 +131,14 @@
|
|||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.botton-img {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.bottom-text {
|
||||
margin-top: -15rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
export function shallowEqualObjects(a, b) {
|
||||
if (a === b) return true;
|
||||
if (!a || !b) return false;
|
||||
if (typeof a !== 'object' || typeof b !== 'object') return false;
|
||||
|
||||
const keysA = Object.keys(a);
|
||||
const keysB = Object.keys(b);
|
||||
if (keysA.length !== keysB.length) return false;
|
||||
|
||||
for (const key of keysA) {
|
||||
if (!Object.prototype.hasOwnProperty.call(b, key)) return false;
|
||||
if (a[key] !== b[key]) return false; // 用严格相等
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// 通用的生成函数
|
||||
export function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) {
|
||||
return Array.from({
|
||||
length: count
|
||||
}, (_, i) => {
|
||||
const idx = pad ?
|
||||
String(i + startIndex).padStart(2, '0') :
|
||||
i + startIndex
|
||||
return `${base}/${prefix}${idx}.${ext}`
|
||||
})
|
||||
}
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
<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)">
|
||||
<image class="botton-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`" />
|
||||
<donghua :width="`60rpx`" :height="`60rpx`" :links="donghuaArray[index]" :playing="playing==index"
|
||||
:interval="50" />
|
||||
<view class="bottom-text">
|
||||
{{item}}
|
||||
</view>
|
||||
|
|
@ -15,21 +15,53 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
ref,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
import {
|
||||
genPaths
|
||||
} from '@/compontent/public/issame.js'
|
||||
|
||||
const props = defineProps({
|
||||
itemTarget: {
|
||||
type: Number,
|
||||
required: true // 如果必须传
|
||||
// default: 0 // 如果您想给默认值
|
||||
required: true, // 如果必须传
|
||||
default: -1 // 如果您想给默认值
|
||||
}
|
||||
})
|
||||
|
||||
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;
|
||||
playing.value = props.itemTarget
|
||||
})
|
||||
const jumpto = (index) => {
|
||||
if(index!=props.itemTarget){
|
||||
if (index != props.itemTarget) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
uni.reLaunch({
|
||||
|
|
@ -99,9 +131,14 @@
|
|||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.botton-img {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.bottom-text {
|
||||
margin-top: -15rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
<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)">
|
||||
<image class="botton-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`" />
|
||||
<donghua :width="`60rpx`" :height="`60rpx`" :links="donghuaArray[index]" :playing="playing==index"
|
||||
:interval="50" />
|
||||
<view class="bottom-text">
|
||||
{{item}}
|
||||
</view>
|
||||
|
|
@ -15,19 +15,51 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
ref,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
import {
|
||||
genPaths
|
||||
} from '@/compontent/public/issame.js'
|
||||
|
||||
const props = defineProps({
|
||||
itemTarget: {
|
||||
type: Number,
|
||||
required: true // 如果必须传
|
||||
// default: 0 // 如果您想给默认值
|
||||
required: true, // 如果必须传
|
||||
default: -1 // 如果您想给默认值
|
||||
}
|
||||
})
|
||||
|
||||
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;
|
||||
playing.value = props.itemTarget
|
||||
})
|
||||
const jumpto = (index) => {
|
||||
if (index != props.itemTarget) {
|
||||
switch (index) {
|
||||
|
|
@ -105,4 +137,8 @@
|
|||
height: 38rpx;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.bottom-text {
|
||||
margin-top: -15rpx;
|
||||
}
|
||||
</style>
|
||||
2
main.js
|
|
@ -17,10 +17,12 @@ 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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,9 +100,9 @@
|
|||
import {
|
||||
base_url
|
||||
} from '@/request/index.js';
|
||||
// import {
|
||||
// changemessage
|
||||
// } from './api/addjigou.js'
|
||||
import {
|
||||
swapLongTerm
|
||||
} from '@/compontent/public/long.js'
|
||||
import model from "@/compontent/public/model.vue"
|
||||
|
||||
|
||||
|
|
@ -396,7 +396,7 @@
|
|||
textArray[4] = data.birthDate;
|
||||
textArray[5] = data.idCardAddress;
|
||||
textArray[6] = data.issuingAuthority;
|
||||
textArray[7] = `${data.startTime}-${data.endTime}`;
|
||||
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
|
||||
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
|
||||
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
|
||||
fontphoto.value = data.cardZmPath
|
||||
|
|
|
|||
|
|
@ -6,26 +6,26 @@
|
|||
|
||||
<view class="popup-title">
|
||||
<view class="all-bgc"
|
||||
style="display: flex; justify-content: center;align-items: center;height: 180rpx;width: 100%;position: relative;">
|
||||
style="display: flex; align-items: center;height: 150rpx;width: 100%;position: relative;border-bottom: 1rpx solid #DFDFDF;">
|
||||
<view class="title-font">
|
||||
请选择所在地区
|
||||
</view>
|
||||
<image class="title-imge-title" src="https://www.focusnu.com/media/directive/index/mark.png" />
|
||||
<!-- <image class="title-imge-title" src="https://www.focusnu.com/media/directive/index/mark.png" /> -->
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view style="display: flex;margin-left: 15rpx;">
|
||||
<view class="button-father" v-for="(item,index) in address"
|
||||
:style="index==address.length-1?{backgroundColor:`rgb(222, 233, 251)`,color:`rgb(6, 122, 233)`}:{}"
|
||||
:style="index==address.length-1?{backgroundColor:`#e4e4e4;`,color:`#595959`}:{}"
|
||||
@click="deleteUP(index)">
|
||||
<view>
|
||||
{{item.name}}
|
||||
</view>
|
||||
<image class="title-imge"
|
||||
:src="`https://www.focusnu.com/media/directive/index/workjoin/${index==address.length-1?`x`:`redcha`}.png`" />
|
||||
:src="`https://www.focusnu.com/media/directive/index/workjoin/redcha.png`" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view style="height: 180rpx;width: 100%;"></view>
|
||||
<view style="height: 150rpx;width: 100%;"></view>
|
||||
<view style="height: 80rpx;width: 100%;" v-if="address.length"></view>
|
||||
<view class="other-title">
|
||||
选择地区
|
||||
|
|
@ -149,6 +149,9 @@
|
|||
import {
|
||||
swapLongTerm
|
||||
} from '@/compontent/public/long.js'
|
||||
import {
|
||||
shallowEqualObjects
|
||||
} from '@/compontent/public/issame.js'
|
||||
|
||||
const address = ref([])
|
||||
const show = ref(false);
|
||||
|
|
@ -299,8 +302,11 @@
|
|||
|
||||
if (allNonEmpty) {
|
||||
let data = uni.getStorageSync('backhuancun')
|
||||
data.endTime = swapLongTerm(data.endTime);
|
||||
if(data.endTime=='长期'){
|
||||
data.endTime = swapLongTerm(data.endTime);
|
||||
}
|
||||
uni.setStorageSync("backhuancun", data)
|
||||
|
||||
changemessage(uni.getStorageSync('backhuancun')).then(res => {
|
||||
if (res.success) {
|
||||
uni.requestSubscribeMessage({
|
||||
|
|
@ -653,7 +659,8 @@
|
|||
|
||||
.title-font {
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
// font-weight: 600;
|
||||
margin-left: 80rpx;
|
||||
}
|
||||
|
||||
.title-imge {
|
||||
|
|
@ -670,7 +677,7 @@
|
|||
.other-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
margin-left: 30rpx;
|
||||
margin-left: 45rpx;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
}
|
||||
|
|
@ -759,11 +766,11 @@
|
|||
}
|
||||
|
||||
.all-bgc {
|
||||
background-image: url('https://www.focusnu.com/media/directive/index/where.png');
|
||||
background-size: 100% auto;
|
||||
/* 宽度占满,高度自动 */
|
||||
background-position: top center;
|
||||
background-repeat: no-repeat;
|
||||
// background-image: url('https://www.focusnu.com/media/directive/index/where.png');
|
||||
// background-size: 100% auto;
|
||||
// /* 宽度占满,高度自动 */
|
||||
// background-position: top center;
|
||||
// background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.title-imge-title {
|
||||
|
|
@ -784,6 +791,7 @@
|
|||
background-color: #F5F5F5;
|
||||
color: #666666;
|
||||
border-radius: 30rpx;
|
||||
margin-top: 30rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -493,12 +493,15 @@
|
|||
data.issuingAuthority = textArray[6]
|
||||
|
||||
data.startTime = start
|
||||
data.endTime = swapLongTerm(end)
|
||||
if(data.endTime=='长期'){
|
||||
data.endTime = swapLongTerm(end)
|
||||
}
|
||||
|
||||
data.sysOrgCode = uni.getStorageSync('oldman').orgCode
|
||||
// uni.getStorageSync('oldman').orgCode
|
||||
let res = form
|
||||
// return
|
||||
console.log("!!!!!!!!!", res)
|
||||
// console.log("!!!!!!!!!", res)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view class="login-container" @click="ceshi">
|
||||
<view class="login-container" @click="ceshi">
|
||||
<!-- <u-modal title="驳回原因" v-model="show" :content="content"></u-modal> -->
|
||||
<view class="index-up">
|
||||
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
|
||||
|
|
@ -170,8 +170,9 @@
|
|||
const which = ref(0);
|
||||
// const scaning = ref(false)
|
||||
const ceshi = () => {
|
||||
// console.log("666666")
|
||||
// uni.navigateTo({
|
||||
// url:"/pages/login/index"
|
||||
// url:"/pages/login/xuanchuan"
|
||||
// })
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,15 @@
|
|||
<template>
|
||||
<view class="login-container">
|
||||
<image class="login-imge" src="https://www.focusnu.com/media/directive/login/loading.gif" mode="widthFix"
|
||||
lazy-load="false" />
|
||||
<!-- 性能最好 -->
|
||||
<image :class="playfirst? `login-imge`:`login-imge-an`"
|
||||
src="https://www.focusnu.com/media/directive/login/firstdonghua.png" mode="widthFix" lazy-load="true" />
|
||||
<view class="loading">
|
||||
努力加载中
|
||||
<!-- <view v-for="(item,index) in [0,0,0]" :key="index" class="dian" :style="num==index?{marginTop:`-10rpx`}:{}" >
|
||||
.
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -11,13 +19,17 @@
|
|||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
reactive,
|
||||
ref
|
||||
ref,
|
||||
onMounted,
|
||||
onUnmounted
|
||||
} from 'vue';
|
||||
import {
|
||||
getOpenid,
|
||||
getMessage
|
||||
} from '@/api/loginApi.js'
|
||||
|
||||
|
||||
const playfirst = ref(false);
|
||||
const superLogin = () => {
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
|
|
@ -35,7 +47,7 @@
|
|||
uni.setStorageSync('izYg', res.result.izYg);
|
||||
uni.setStorageSync('allinfo', res.result);
|
||||
// console.log("allinfo",res.result.id)
|
||||
|
||||
// return
|
||||
if (!res.result.tel) {
|
||||
uni.reLaunch({
|
||||
url: `/pages/login/xuanchuan`
|
||||
|
|
@ -89,14 +101,47 @@
|
|||
uni.setStorageSync('special', false);
|
||||
}
|
||||
superLogin();
|
||||
|
||||
// playing.value = true
|
||||
});
|
||||
let timer = null
|
||||
// let fourtimer = null
|
||||
// const num = ref(0)
|
||||
onMounted(() => {
|
||||
timer = setInterval(() => {
|
||||
playfirst.value = !playfirst.value
|
||||
}, 700) // 每0.5秒取反
|
||||
// fourtimer = setInterval(() => {
|
||||
// num.value = (num.value + 1) % 3 // 到2后又回到0
|
||||
// }, 350) // 每1秒执行一次
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
clearInterval(timer)
|
||||
// clearInterval(fourtimer)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.login-imge {
|
||||
width: 440rpx;
|
||||
height: 110rpx;
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
position: absolute;
|
||||
top: 45%;
|
||||
left: 50%;
|
||||
transform: translate(-45%, -50%);
|
||||
transition: all 0.7s ease;
|
||||
}
|
||||
|
||||
.login-imge-an {
|
||||
// margin-top: 10rpx;
|
||||
// margin-left: -10rpx;
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
position: absolute;
|
||||
top: 46%;
|
||||
left: 49%;
|
||||
transform: translate(-46%, -49%);
|
||||
transition: all 0.7s ease;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
|
|
@ -109,4 +154,12 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.loading {
|
||||
margin-top: 100rpx;
|
||||
display: flex;
|
||||
}
|
||||
// .dian{
|
||||
// margin: 0 10rpx;
|
||||
// }
|
||||
</style>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<view class="font-father">
|
||||
<swiper style="width: 100%;" :duration="150" :style="{height: `92vh`}" :current="which" @change="swiperchange">
|
||||
<swiper-item style="position: relative;">
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/bgc0.jpg`" />
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/oldmanbgc.png`" />
|
||||
<view style="width: 100%;padding-left: 75rpx;padding-right: 75rpx;position: absolute;left: 0;bottom: 100rpx;">
|
||||
<view class="title-name">
|
||||
<view class="font-weight">
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
</view>
|
||||
</swiper-item>
|
||||
<swiper-item style="position: relative;">
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/bgc1.jpg`" />
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/yuangongbgc.png`" />
|
||||
<view style="width: 100%;padding-left: 75rpx;padding-right: 75rpx;position: absolute;left: 0;bottom: 100rpx;">
|
||||
<view class="title-name">
|
||||
<view class="font-weight">
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
</view>
|
||||
</swiper-item>
|
||||
<swiper-item style="position: relative;">
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/bgc2.jpg`" />
|
||||
<image class="title-img" :src="`https://www.focusnu.com/media/directive/login/jigoubgc.png`" />
|
||||
<view style="width: 100%;padding-left: 75rpx;padding-right: 75rpx;position: absolute;left: 0;bottom: 150rpx;">
|
||||
<view class="title-name">
|
||||
<!-- <view class="gray-heng"></view> -->
|
||||
|
|
@ -96,10 +96,10 @@
|
|||
|
||||
.title-img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 92vh;
|
||||
height: 45vh;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view :style="{height:`${uni.getStorageSync('moveHeight') + 30}px`}"></view>
|
||||
<view style="position: absolute;top: 300rpx;left: 30rpx;z-index: 1;display: flex;align-items: center;"
|
||||
<view style="position: absolute;top: 200rpx;left: 30rpx;z-index: 1;display: flex;align-items: center;"
|
||||
v-if="workArray.length">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">账单信息</view>
|
||||
|
|
|
|||
|
|
@ -92,24 +92,24 @@
|
|||
if (res.success) {
|
||||
search()
|
||||
|
||||
switch (type.type) {
|
||||
case "emp_org_invited_emp_list":
|
||||
uni.navigateTo({
|
||||
url: `/pages/yuangongindex/simpleyaoqing?extend=${type.extend}`
|
||||
})
|
||||
break
|
||||
}
|
||||
// switch (type.type) {
|
||||
// case "emp_org_invited_emp_list":
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/yuangongindex/simpleyaoqing?extend=${type.extend}`
|
||||
// })
|
||||
// break
|
||||
// }
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// checkRed()
|
||||
switch (type.type) {
|
||||
case "emp_org_invited_emp_list":
|
||||
uni.navigateTo({
|
||||
url: `/pages/yuangongindex/simpleyaoqing?extend=${type.extend}`
|
||||
})
|
||||
break
|
||||
}
|
||||
// switch (type.type) {
|
||||
// case "emp_org_invited_emp_list":
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/yuangongindex/simpleyaoqing?extend=${type.extend}`
|
||||
// })
|
||||
// break
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
</view>
|
||||
<view class="applyfail"
|
||||
v-if="item.employeesApiEntity?.status===`3`&&item.employeesApiEntity.applyType!=`2`">
|
||||
{{ item.employeesApiEntity.applyType =='0' ?`已驳回`:`申请驳回` }}
|
||||
{{ item.employeesApiEntity.applyType =='0' ?`已拒绝`:`申请驳回` }}
|
||||
</view>
|
||||
<view class="applying"
|
||||
v-if="item.employeesApiEntity?.status===`1`&&item.employeesApiEntity.applyType==`2`">
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
{{ item.applyType =='0' ?`已接受`:`申请通过` }}
|
||||
</view>
|
||||
<view class="applyfail" v-if="item.applyStatus===`3`&&item.applyType!=`2`">
|
||||
{{ item.applyType =='0' ?`已驳回`:`申请驳回` }}
|
||||
{{ item.applyType =='0' ?`已拒绝`:`申请驳回` }}
|
||||
</view>
|
||||
<view class="applying" v-if="item.applyStatus===`1`&&item.applyType==`2`">
|
||||
变更中
|
||||
|
|
|
|||
|
|
@ -17,7 +17,11 @@ export default (params) => {
|
|||
|
||||
...params.header
|
||||
}
|
||||
uni.showLoading()
|
||||
// 阻止点击(默认遮罩)
|
||||
// uni.showLoading({
|
||||
// title: '加载中...',
|
||||
// mask: true
|
||||
// })
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: base_url + url,
|
||||
|
|
@ -28,7 +32,7 @@ export default (params) => {
|
|||
success(response) {
|
||||
const res = response
|
||||
// 根据返回的状态码做出对应的操作
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
if (res.statusCode == 200) {
|
||||
resolve(res.data);
|
||||
} else {
|
||||
|
|
@ -69,7 +73,8 @@ export default (params) => {
|
|||
}
|
||||
},
|
||||
fail(err) {
|
||||
uni.hideLoading()
|
||||
// 允许点击
|
||||
// uni.hideLoading()
|
||||
if (err.errMsg.indexOf('request:fail') !== -1) {
|
||||
uni.showToast({
|
||||
title: '网络异常',
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n</style>\n","import App from './App'\r\nimport uView from './uni_modules/vk-uview-ui';\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nimport uView from './uni_modules/vk-uview-ui';\nVue.use(uView);\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACQM,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,iCAAK;AACb,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n</style>\n","import App from './App'\r\nimport uView from './uni_modules/vk-uview-ui';\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nimport uView from './uni_modules/vk-uview-ui';\nVue.use(uView);\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nimport donghua from '@/compontent/public/donghua.vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\tapp.component('donghua', donghua)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACQD,MAAM,UAAU,MAAW;AACpB,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,iCAAK;AACb,MAAI,UAAU,WAAW,OAAO;AAChC,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"assets.js","sources":["static/index/nu.png","static/index/bgc.png","static/index/old.png","static/index/workjoin/bgc.png","static/index/workjoin/ren.png","static/index/workjoin/x.png","static/index/chahao.png","static/index/tuding.png","static/index/dingwei.png","static/index/fangda.png","static/login/right.png","static/login/0.png","static/login/1.png","static/login/2.png","static/login/3.png"],"sourcesContent":["export default \"__VITE_ASSET__e7faca07__\"","export default \"__VITE_ASSET__12a7a67c__\"","export default \"__VITE_ASSET__a6c3231b__\"","export default \"__VITE_ASSET__bf3d7d4d__\"","export default \"__VITE_ASSET__e4f8a77c__\"","export default \"__VITE_ASSET__98cde1cf__\"","export default \"__VITE_ASSET__037a14f3__\"","export default \"__VITE_ASSET__69c4d871__\"","export default \"__VITE_ASSET__ea6d462f__\"","export default \"__VITE_ASSET__a74351a5__\"","export default \"__VITE_ASSET__b75b6465__\"","export default \"__VITE_ASSET__40aa7e44__\"","export default \"__VITE_ASSET__ae8e3dba__\"","export default \"__VITE_ASSET__75e1826f__\"","export default \"__VITE_ASSET__0c2bc10b__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;ACAf,MAAe,OAAA;ACAf,MAAe,OAAA;ACAf,MAAe,OAAA;ACAf,MAAe,OAAA;;;;;;;;;;;;;;;;"}
|
||||
{"version":3,"file":"assets.js","sources":["static/donghua/my/my01.png"],"sourcesContent":["export default \"__VITE_ASSET__21371411__\""],"names":[],"mappings":";AAAA,MAAe,aAAA;;"}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"donghua.js","sources":["compontent/public/donghua.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMvZG9uZ2h1YS52dWU"],"sourcesContent":["<template>\r\n\t<view>\r\n\t\t<image :src=\"isError ? defaultImage : links[currentIndex]\" :style=\"{ width: width, height: height }\"\r\n\t\t\t:mode=\"objectFit\" @error=\"isError = true\" @load=\"isError = false\" />\r\n\t\t<button v-if=\"showButton\" @click=\"$emit('update:playing', !playing)\">\r\n\t\t\t{{ playing ? '停止播放' : '开始播放' }}\r\n\t\t</button>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\twatch,\r\n\t\tonUnmounted\r\n\t} from 'vue'\r\n\r\n\t// 定义组件的 props\r\n\tconst props = defineProps({\r\n\t\tlinks: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault: () => []\r\n\t\t},\r\n\t\twidth: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '65rpx'\r\n\t\t},\r\n\t\theight: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '65rpx'\r\n\t\t},\r\n\t\tobjectFit: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'aspectFill'\r\n\t\t},\r\n\t\tdefaultImage: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tinterval: {\r\n\t\t\ttype: Number,\r\n\t\t\tdefault: 80\r\n\t\t},\r\n\t\tplaying: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tshowButton: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tloop: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t}\r\n\t})\r\n\r\n\t// 定义组件发出的事件\r\n\tconst emit = defineEmits(['update:playing'])\r\n\r\n\t// 组件内部状态\r\n\tconst currentIndex = ref(0) // 当前播放的图片索引\r\n\tconst isPlaying = ref(false) // 是否正在播放\r\n\tconst isError = ref(false) // 当前图片是否加载失败\r\n\tlet timer = null // 定时器\r\n\r\n\t// 开始播放\r\n\tconst startPlay = () => {\r\n\t\tif (isPlaying.value) return\r\n\t\tisPlaying.value = true\r\n\t\ttimer = setInterval(() => {\r\n\t\t\tif (props.loop) {\r\n\t\t\t\t// 循环播放:使用模运算循环索引\r\n\t\t\t\tcurrentIndex.value = (currentIndex.value + 1) % props.links.length\r\n\t\t\t\tisError.value = false\r\n\t\t\t} else {\r\n\t\t\t\t// 非循环播放:到末尾时停止\r\n\t\t\t\tif (currentIndex.value < props.links.length - 1) {\r\n\t\t\t\t\tcurrentIndex.value++\r\n\t\t\t\t\tisError.value = false\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstopPlay()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}, props.interval)\r\n\t}\r\n\r\n\t// 停止播放\r\n\tconst stopPlay = () => {\r\n\t\tisPlaying.value = false\r\n\t\tclearInterval(timer)\r\n\t}\r\n\r\n\t// 监听 playing 属性变化\r\n\twatch(() => props.playing, (val) => {\r\n\t\tcurrentIndex.value = 0\r\n\t\tif (val) {\r\n\t\t\tstartPlay()\r\n\t\t} else {\r\n\t\t\tstopPlay()\r\n\t\t\tsetTimeout(() => currentIndex.value = 0, 50)\r\n\r\n\t\t}\r\n\t})\r\n\r\n\t// 监听 links 数组变化\r\n\twatch(() => props.links, () => {\r\n\t\tcurrentIndex.value = 0\r\n\t\tisError.value = false\r\n\t\tif (isPlaying.value) {\r\n\t\t\tstopPlay()\r\n\t\t}\r\n\t}, {\r\n\t\tdeep: true\r\n\t})\r\n\r\n\t// 组件销毁时清理定时器\r\n\tonUnmounted(() => {\r\n\t\tstopPlay()\r\n\t})\r\n</script>","import Component from 'D:/hldy_xcx/compontent/public/donghua.vue'\nwx.createComponent(Component)"],"names":["ref","watch","onUnmounted","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBC,UAAM,QAAQ;AA2Cd,UAAM,eAAeA,cAAG,IAAC,CAAC;AAC1B,UAAM,YAAYA,cAAG,IAAC,KAAK;AAC3B,UAAM,UAAUA,cAAG,IAAC,KAAK;AACzB,QAAI,QAAQ;AAGZ,UAAM,YAAY,MAAM;AACvB,UAAI,UAAU;AAAO;AACrB,gBAAU,QAAQ;AAClB,cAAQ,YAAY,MAAM;AACzB,YAAI,MAAM,MAAM;AAEf,uBAAa,SAAS,aAAa,QAAQ,KAAK,MAAM,MAAM;AAC5D,kBAAQ,QAAQ;AAAA,QACpB,OAAU;AAEN,cAAI,aAAa,QAAQ,MAAM,MAAM,SAAS,GAAG;AAChD,yBAAa;AACb,oBAAQ,QAAQ;AAAA,UACrB,OAAW;AACN,qBAAU;AAAA,UACV;AAAA,QACD;AAAA,MACJ,GAAK,MAAM,QAAQ;AAAA,IACjB;AAGD,UAAM,WAAW,MAAM;AACtB,gBAAU,QAAQ;AAClB,oBAAc,KAAK;AAAA,IACnB;AAGDC,kBAAAA,MAAM,MAAM,MAAM,SAAS,CAAC,QAAQ;AACnC,mBAAa,QAAQ;AACrB,UAAI,KAAK;AACR,kBAAW;AAAA,MACd,OAAS;AACN,iBAAU;AACV,mBAAW,MAAM,aAAa,QAAQ,GAAG,EAAE;AAAA,MAE3C;AAAA,IACH,CAAE;AAGDA,wBAAM,MAAM,MAAM,OAAO,MAAM;AAC9B,mBAAa,QAAQ;AACrB,cAAQ,QAAQ;AAChB,UAAI,UAAU,OAAO;AACpB,iBAAU;AAAA,MACV;AAAA,IACH,GAAI;AAAA,MACF,MAAM;AAAA,IACR,CAAE;AAGDC,kBAAAA,YAAY,MAAM;AACjB,eAAU;AAAA,IACZ,CAAE;;;;;;;;;;;;;;;;;ACtHF,GAAG,gBAAgBC,SAAS;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"downmenu.js","sources":["compontent/public/downmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMvZG93bm1lbnUudnVl"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<image class=\"botton-img\"\r\n\t\t\t\t\t:src=\"`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref\r\n\t} from 'vue'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true // 如果必须传\r\n\t\t\t// default: 0 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\t\r\n\tconst jumpto = (index) => {\r\n\t\tif(index!=props.itemTarget){\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/index/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/index/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/downmenu.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;;;;;;;;AAoBC,UAAM,QAAQ;AAQd,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AAEnC,UAAM,SAAS,CAAC,UAAU;AACzB,UAAG,SAAO,MAAM,YAAW;AAC1B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;ACjDF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"downmenu.js","sources":["compontent/public/downmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMvZG93bm1lbnUudnVl"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<donghua :width=\"`60rpx`\" :height=\"`60rpx`\" :links=\"donghuaArray[index]\" :playing=\"playing==index\"\r\n\t\t\t\t\t:interval=\"50\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\tonMounted\r\n\t} from 'vue'\r\n\timport {\r\n\t\tgenPaths\r\n\t} from '@/compontent/public/issame.js'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true, // 如果必须传\r\n\t\t\tdefault: -1 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\t\r\n\tconst playing = ref(-1);\r\n\tconst photoplay = ref(false);\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\tconst donghuaArray = [genPaths(\r\n\t\t'/static/donghua/home',\r\n\t\t'home',\r\n\t\t19, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t),genPaths(\r\n\t\t'/static/donghua/new',\r\n\t\t'new',\r\n\t\t18, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t),genPaths(\r\n\t\t'/static/donghua/my',\r\n\t\t'my',\r\n\t\t14, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t)]\r\n\r\n\tonMounted(() => {\r\n\t\tphotoplay.value = true;\r\n\t\tplaying.value = props.itemTarget\r\n\t})\r\n\tconst jumpto = (index) => {\r\n\t\tif (index != props.itemTarget) {\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/index/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/index/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n\r\n\t.bottom-text {\r\n\t\tmargin-top: -15rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/downmenu.vue'\nwx.createComponent(Component)"],"names":["ref","genPaths","onMounted","uni"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBC,UAAM,QAAQ;AAQd,UAAM,UAAUA,cAAAA,IAAI,EAAE;AACtB,UAAM,YAAYA,kBAAI,KAAK;AAC3B,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AACnC,UAAM,eAAe,CAACC,yBAAQ;AAAA,MAC7B;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAGA,yBAAQ;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAGA,yBAAQ;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,CAAE;AAEDC,kBAAAA,UAAU,MAAM;AACf,gBAAU,QAAQ;AAClB,cAAQ,QAAQ,MAAM;AAAA,IACxB,CAAE;AACD,UAAM,SAAS,CAAC,UAAU;AACzB,UAAI,SAAS,MAAM,YAAY;AAC9B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJC,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;ACjFF,GAAG,gBAAgB,SAAS;"}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"issame.js","sources":["compontent/public/issame.js"],"sourcesContent":["export function shallowEqualObjects(a, b) {\r\n\tif (a === b) return true;\r\n\tif (!a || !b) return false;\r\n\tif (typeof a !== 'object' || typeof b !== 'object') return false;\r\n\r\n\tconst keysA = Object.keys(a);\r\n\tconst keysB = Object.keys(b);\r\n\tif (keysA.length !== keysB.length) return false;\r\n\r\n\tfor (const key of keysA) {\r\n\t\tif (!Object.prototype.hasOwnProperty.call(b, key)) return false;\r\n\t\tif (a[key] !== b[key]) return false; // 用严格相等\r\n\t}\r\n\treturn true;\r\n}\r\n// 通用的生成函数\r\nexport function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) {\r\n\treturn Array.from({\r\n\t\tlength: count\r\n\t}, (_, i) => {\r\n\t\tconst idx = pad ?\r\n\t\t\tString(i + startIndex).padStart(2, '0') :\r\n\t\t\ti + startIndex\r\n\t\treturn `${base}/${prefix}${idx}.${ext}`\r\n\t})\r\n}"],"names":[],"mappings":";AAgBO,SAAS,SAAS,MAAM,QAAQ,OAAO,MAAM,OAAO,aAAa,GAAG,MAAM,OAAO;AACvF,SAAO,MAAM,KAAK;AAAA,IACjB,QAAQ;AAAA,EACV,GAAI,CAAC,GAAG,MAAM;AACZ,UAAM,MAAM,MACX,OAAO,IAAI,UAAU,EAAE,SAAS,GAAG,GAAG,IACtC,IAAI;AACL,WAAO,GAAG,IAAI,IAAI,MAAM,GAAG,GAAG,IAAI,GAAG;AAAA,EACvC,CAAE;AACF;;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"oldmandownmenu.js","sources":["compontent/public/oldmandownmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMvb2xkbWFuZG93bm1lbnUudnVl"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<image class=\"botton-img\"\r\n\t\t\t\t\t:src=\"`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref\r\n\t} from 'vue'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true // 如果必须传\r\n\t\t\t// default: 0 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\t\r\n\tconst jumpto = (index) => {\r\n\t\tif(index!=props.itemTarget){\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/oldmanindex/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/oldmanindex/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/oldmandownmenu.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;;;;;;;;AAoBC,UAAM,QAAQ;AAQd,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AAEnC,UAAM,SAAS,CAAC,UAAU;AACzB,UAAG,SAAO,MAAM,YAAW;AAC1B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;ACjDF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"oldmandownmenu.js","sources":["compontent/public/oldmandownmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMvb2xkbWFuZG93bm1lbnUudnVl"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<donghua :width=\"`60rpx`\" :height=\"`60rpx`\" :links=\"donghuaArray[index]\" :playing=\"playing==index\"\r\n\t\t\t\t\t:interval=\"50\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\tonMounted\r\n\t} from 'vue'\r\n\timport {\r\n\t\tgenPaths\r\n\t} from '@/compontent/public/issame.js'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true, // 如果必须传\r\n\t\t\tdefault: -1 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\r\n\tconst playing = ref(-1);\r\n\tconst photoplay = ref(false);\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\tconst donghuaArray = [genPaths(\r\n\t\t'/static/donghua/home',\r\n\t\t'home',\r\n\t\t19, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t), genPaths(\r\n\t\t'/static/donghua/new',\r\n\t\t'new',\r\n\t\t18, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t), genPaths(\r\n\t\t'/static/donghua/my',\r\n\t\t'my',\r\n\t\t14, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t)]\r\n\r\n\tonMounted(() => {\r\n\t\tphotoplay.value = true;\r\n\t\tplaying.value = props.itemTarget\r\n\t})\r\n\tconst jumpto = (index) => {\r\n\t\tif (index != props.itemTarget) {\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/oldmanindex/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/oldmanindex/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n\r\n\t.bottom-text {\r\n\t\tmargin-top: -15rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/oldmandownmenu.vue'\nwx.createComponent(Component)"],"names":["ref","genPaths","onMounted","uni"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBC,UAAM,QAAQ;AAQd,UAAM,UAAUA,cAAAA,IAAI,EAAE;AACtB,UAAM,YAAYA,kBAAI,KAAK;AAC3B,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AACnC,UAAM,eAAe,CAACC,yBAAQ;AAAA,MAC7B;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAIA,yBAAQ;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAIA,yBAAQ;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,CAAE;AAEDC,kBAAAA,UAAU,MAAM;AACf,gBAAU,QAAQ;AAClB,cAAQ,QAAQ,MAAM;AAAA,IACxB,CAAE;AACD,UAAM,SAAS,CAAC,UAAU;AACzB,UAAI,SAAS,MAAM,YAAY;AAC9B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJC,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;ACjFF,GAAG,gBAAgB,SAAS;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"yuangongdownmenu.js","sources":["compontent/public/yuangongdownmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMveXVhbmdvbmdkb3dubWVudS52dWU"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<image class=\"botton-img\"\r\n\t\t\t\t\t:src=\"`https://www.focusnu.com/media/directive/index/itemsbutton/${index}${itemTarget===index?1:0}.png`\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref\r\n\t} from 'vue'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true // 如果必须传\r\n\t\t\t// default: 0 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\r\n\tconst jumpto = (index) => {\r\n\t\tif (index != props.itemTarget) {\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/yuangongindex/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/yuangongindex/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/yuangongdownmenu.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;;;;;;;;AAoBC,UAAM,QAAQ;AAQd,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AAEnC,UAAM,SAAS,CAAC,UAAU;AACzB,UAAI,SAAS,MAAM,YAAY;AAC9B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;ACjDF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"yuangongdownmenu.js","sources":["compontent/public/yuangongdownmenu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV94Y3gvY29tcG9udGVudC9wdWJsaWMveXVhbmdvbmdkb3dubWVudS52dWU"],"sourcesContent":["<template>\r\n\t<!-- 底部的栏,为啥这样写,是因为要做左右拉动 -->\r\n\t<view class=\"botton-view\">\r\n\t\t<view v-for=\"(item,index) in itemArray\" :key=\"index\" class=\"array-father\">\r\n\t\t\t<view :class=\"itemTarget===index ? `bottom-button-target` : `bottom-button`\" @click=\"jumpto(index)\">\r\n\t\t\t\t<donghua :width=\"`60rpx`\" :height=\"`60rpx`\" :links=\"donghuaArray[index]\" :playing=\"playing==index\"\r\n\t\t\t\t\t:interval=\"50\" />\r\n\t\t\t\t<view class=\"bottom-text\">\r\n\t\t\t\t\t{{item}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\tonMounted\r\n\t} from 'vue'\r\n\timport {\r\n\t\tgenPaths\r\n\t} from '@/compontent/public/issame.js'\r\n\r\n\tconst props = defineProps({\r\n\t\titemTarget: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true, // 如果必须传\r\n\t\t\tdefault: -1 // 如果您想给默认值\r\n\t\t}\r\n\t})\r\n\r\n\tconst playing = ref(-1);\r\n\tconst photoplay = ref(false);\r\n\tconst itemArray = [\"NU\", \"动态\", \"我的\"];\r\n\tconst donghuaArray = [genPaths(\r\n\t\t'/static/donghua/home',\r\n\t\t'home',\r\n\t\t19, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t), genPaths(\r\n\t\t'/static/donghua/new',\r\n\t\t'new',\r\n\t\t18, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t), genPaths(\r\n\t\t'/static/donghua/my',\r\n\t\t'my',\r\n\t\t14, // 张数\r\n\t\t'png',\r\n\t\t0, // 起始索引\r\n\t\tfalse // 不补零\r\n\t)]\r\n\r\n\tonMounted(() => {\r\n\t\tphotoplay.value = true;\r\n\t\tplaying.value = props.itemTarget\r\n\t})\r\n\tconst jumpto = (index) => {\r\n\t\tif (index != props.itemTarget) {\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/yuangongindex/index`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: `/pages/yuangongindex/mine`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n\t.botton-view {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\theight: 120rpx;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tfont-weight: 500;\r\n\t\tz-index: 9999;\r\n\r\n\t\t.bottom-button {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.bottom-button-target {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #01a8ff;\r\n\t\t\tflex-direction: column;\r\n\t\t}\r\n\r\n\t\t.blue-heng {\r\n\t\t\theight: 6rpx;\r\n\t\t\twidth: 150rpx;\r\n\t\t\tbackground-color: rgb(42, 133, 235);\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 55rpx;\r\n\t\t\tleft: 50%;\r\n\t\t\t/* 左边缘到父容器左边的距离占父宽度 50% */\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t.array-father {\r\n\t\twidth: 33%;\r\n\t\tposition: relative;\r\n\r\n\t}\r\n\r\n\t.botton-img {\r\n\t\twidth: 38rpx;\r\n\t\theight: 38rpx;\r\n\t\tmargin-bottom: 5rpx;\r\n\t}\r\n\r\n\t.bottom-text {\r\n\t\tmargin-top: -15rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_xcx/compontent/public/yuangongdownmenu.vue'\nwx.createComponent(Component)"],"names":["ref","genPaths","onMounted","uni"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBC,UAAM,QAAQ;AAQd,UAAM,UAAUA,cAAAA,IAAI,EAAE;AACtB,UAAM,YAAYA,kBAAI,KAAK;AAC3B,UAAM,YAAY,CAAC,MAAM,MAAM,IAAI;AACnC,UAAM,eAAe,CAACC,yBAAQ;AAAA,MAC7B;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAIA,yBAAQ;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,GAAIA,yBAAQ;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA;AAAA,IACF,CAAE;AAEDC,kBAAAA,UAAU,MAAM;AACf,gBAAU,QAAQ;AAClB,cAAQ,QAAQ,MAAM;AAAA,IACxB,CAAE;AACD,UAAM,SAAS,CAAC,UAAU;AACzB,UAAI,SAAS,MAAM,YAAY;AAC9B,gBAAQ,OAAK;AAAA,UACZ,KAAK;AACJC,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,UACD,KAAK;AAGJ;AAAA,UACD,KAAK;AACJA,0BAAAA,MAAI,SAAS;AAAA,cACZ,KAAK;AAAA,YACX,CAAM;AACD;AAAA,QACD;AAAA,MAED;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;ACjFF,GAAG,gBAAgB,SAAS;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\n// export const base_url = 'http://192.168.2.20:8081/opeapi'\r\nexport const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token,和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\r\n\tuni.showLoading()\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\r\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\t\t}\n\t\t});\n\t}).catch(() => {});\n};"],"names":["uni"],"mappings":";;AAEY,MAAC,WAAW;AAGxB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAAI,SAAS;AAAA,IACZ,kBAAkBA,cAAG,MAAC,eAAe,OAAO,KAAK;AAAA,IACjD,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IAEjB,GAAG,OAAO;AAAA,EACV;AACDA,gBAAAA,MAAI,YAAa;AACjB,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACvCA,kBAAAA,MAAI,QAAQ;AAAA,MACX,KAAK,WAAW;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACS;AAAA,MACT,QAAQ,UAAU;AACjB,cAAM,MAAM;AAEZA,sBAAAA,MAAI,YAAa;AACjB,YAAI,IAAI,cAAc,KAAK;AAC1B,kBAAQ,IAAI,IAAI;AAAA,QACrB,OAAW;AACNA,wBAAAA,MAAI,iBAAkB;AACtB,kBAAQ,IAAI,YAAU;AAAA,YACrB,KAAK;AACJ,kBAAG,CAAC,OAAO,OAAM;AAChBA,8BAAAA,MAAI,UAAU;AAAA,kBACb,OAAO;AAAA,kBACP,SAAS;AAAA,kBACT,YAAY;AAAA,kBACZ,UAAU;AACT,+BAAW,MAAM;AAChBA,oCAAAA,MAAI,SAAS;AAAA,wBACZ,KAAK;AAAA,sBACjB,CAAY;AAAA,oBACD,GAAE,GAAI;AAAA,kBACP;AAAA,gBACV,CAAS;AAAA,cACD;AAED;AAAA,YACD,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,MAAM;AAAA,gBACN,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,YACD;AACCA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,MAAM;AAAA,gBACN,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AACTA,sBAAAA,MAAI,YAAa;AACjB,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"}
|
||||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\n// export const base_url = 'http://192.168.2.20:8081/opeapi'\r\nexport const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token,和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\r\n\t// 阻止点击(默认遮罩)\r\n\t// uni.showLoading({\r\n\t// title: '加载中...',\r\n\t// mask: true\r\n\t// })\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\t// uni.hideLoading()\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\r\n\t\t\t\t// 允许点击\r\n\t\t\t\t// uni.hideLoading()\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\t\t}\n\t\t});\n\t}).catch(() => {});\n};"],"names":["uni"],"mappings":";;AAEY,MAAC,WAAW;AAGxB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAAI,SAAS;AAAA,IACZ,kBAAkBA,cAAG,MAAC,eAAe,OAAO,KAAK;AAAA,IACjD,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IAEjB,GAAG,OAAO;AAAA,EACV;AAMD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACvCA,kBAAAA,MAAI,QAAQ;AAAA,MACX,KAAK,WAAW;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACS;AAAA,MACT,QAAQ,UAAU;AACjB,cAAM,MAAM;AAGZ,YAAI,IAAI,cAAc,KAAK;AAC1B,kBAAQ,IAAI,IAAI;AAAA,QACrB,OAAW;AACNA,wBAAAA,MAAI,iBAAkB;AACtB,kBAAQ,IAAI,YAAU;AAAA,YACrB,KAAK;AACJ,kBAAG,CAAC,OAAO,OAAM;AAChBA,8BAAAA,MAAI,UAAU;AAAA,kBACb,OAAO;AAAA,kBACP,SAAS;AAAA,kBACT,YAAY;AAAA,kBACZ,UAAU;AACT,+BAAW,MAAM;AAChBA,oCAAAA,MAAI,SAAS;AAAA,wBACZ,KAAK;AAAA,sBACjB,CAAY;AAAA,oBACD,GAAE,GAAI;AAAA,kBACP;AAAA,gBACV,CAAS;AAAA,cACD;AAED;AAAA,YACD,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,MAAM;AAAA,gBACN,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,YACD;AACCA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,MAAM;AAAA,gBACN,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AAGT,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"}
|
||||
|
|
@ -69,9 +69,11 @@ const _sfc_main = {
|
|||
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
|
||||
}
|
||||
};
|
||||
const donghua = () => "./compontent/public/donghua.js";
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.use(uni_modules_vkUviewUi_index.uView);
|
||||
app.component("donghua", donghua);
|
||||
return {
|
||||
app
|
||||
};
|
||||
|
|
|
|||
|
|
@ -61,5 +61,7 @@
|
|||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"usingComponents": {}
|
||||
"usingComponents": {
|
||||
"donghua": "/compontent/public/donghua"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
"use strict";
|
||||
const _imports_0 = "/static/donghua/my/my01.png";
|
||||
exports._imports_0 = _imports_0;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map
|
||||
|
|
@ -8044,5 +8044,6 @@ exports.resolveComponent = resolveComponent;
|
|||
exports.s = s;
|
||||
exports.t = t;
|
||||
exports.unref = unref;
|
||||
exports.watch = watch;
|
||||
exports.wx$1 = wx$1;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|
||||
|
|
|
|||
|
|
@ -0,0 +1,110 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "donghua",
|
||||
props: {
|
||||
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
|
||||
}
|
||||
},
|
||||
emits: ["update:playing"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const currentIndex = common_vendor.ref(0);
|
||||
const isPlaying = common_vendor.ref(false);
|
||||
const isError = common_vendor.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);
|
||||
};
|
||||
common_vendor.watch(() => props.playing, (val) => {
|
||||
currentIndex.value = 0;
|
||||
if (val) {
|
||||
startPlay();
|
||||
} else {
|
||||
stopPlay();
|
||||
setTimeout(() => currentIndex.value = 0, 50);
|
||||
}
|
||||
});
|
||||
common_vendor.watch(() => props.links, () => {
|
||||
currentIndex.value = 0;
|
||||
isError.value = false;
|
||||
if (isPlaying.value) {
|
||||
stopPlay();
|
||||
}
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
common_vendor.onUnmounted(() => {
|
||||
stopPlay();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: isError.value ? __props.defaultImage : __props.links[currentIndex.value],
|
||||
b: __props.width,
|
||||
c: __props.height,
|
||||
d: __props.objectFit,
|
||||
e: common_vendor.o(($event) => isError.value = true),
|
||||
f: common_vendor.o(($event) => isError.value = false),
|
||||
g: __props.showButton
|
||||
}, __props.showButton ? {
|
||||
h: common_vendor.t(__props.playing ? "停止播放" : "开始播放"),
|
||||
i: common_vendor.o(($event) => _ctx.$emit("update:playing", !__props.playing))
|
||||
} : {});
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createComponent(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/compontent/public/donghua.js.map
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<view><image src="{{a}}" style="{{'width:' + b + ';' + ('height:' + c)}}" mode="{{d}}" binderror="{{e}}" bindload="{{f}}"/><button wx:if="{{g}}" bindtap="{{i}}">{{h}}</button></view>
|
||||
|
|
@ -1,18 +1,61 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const compontent_public_issame = require("./issame.js");
|
||||
if (!Array) {
|
||||
const _component_donghua = common_vendor.resolveComponent("donghua");
|
||||
_component_donghua();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "downmenu",
|
||||
props: {
|
||||
itemTarget: {
|
||||
type: Number,
|
||||
required: true
|
||||
required: true,
|
||||
// 如果必须传
|
||||
// default: 0 // 如果您想给默认值
|
||||
default: -1
|
||||
// 如果您想给默认值
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const playing = common_vendor.ref(-1);
|
||||
const photoplay = common_vendor.ref(false);
|
||||
const itemArray = ["NU", "动态", "我的"];
|
||||
const donghuaArray = [compontent_public_issame.genPaths(
|
||||
"/static/donghua/home",
|
||||
"home",
|
||||
19,
|
||||
// 张数
|
||||
"png",
|
||||
0,
|
||||
// 起始索引
|
||||
false
|
||||
// 不补零
|
||||
), compontent_public_issame.genPaths(
|
||||
"/static/donghua/new",
|
||||
"new",
|
||||
18,
|
||||
// 张数
|
||||
"png",
|
||||
0,
|
||||
// 起始索引
|
||||
false
|
||||
// 不补零
|
||||
), compontent_public_issame.genPaths(
|
||||
"/static/donghua/my",
|
||||
"my",
|
||||
14,
|
||||
// 张数
|
||||
"png",
|
||||
0,
|
||||
// 起始索引
|
||||
false
|
||||
// 不补零
|
||||
)];
|
||||
common_vendor.onMounted(() => {
|
||||
photoplay.value = true;
|
||||
playing.value = props.itemTarget;
|
||||
});
|
||||
const jumpto = (index) => {
|
||||
if (index != props.itemTarget) {
|
||||
switch (index) {
|
||||
|
|
@ -35,11 +78,18 @@ const _sfc_main = {
|
|||
return {
|
||||
a: common_vendor.f(itemArray, (item, index, i0) => {
|
||||
return {
|
||||
a: `https://www.focusnu.com/media/directive/index/itemsbutton/${index}${__props.itemTarget === index ? 1 : 0}.png`,
|
||||
b: common_vendor.t(item),
|
||||
c: common_vendor.n(__props.itemTarget === index ? `bottom-button-target` : `bottom-button`),
|
||||
d: common_vendor.o(($event) => jumpto(index), index),
|
||||
e: index
|
||||
a: "459e7b51-0-" + i0,
|
||||
b: common_vendor.p({
|
||||
width: `60rpx`,
|
||||
height: `60rpx`,
|
||||
links: donghuaArray[index],
|
||||
playing: playing.value == index,
|
||||
interval: 50
|
||||
}),
|
||||
c: common_vendor.t(item),
|
||||
d: common_vendor.n(__props.itemTarget === index ? `bottom-button-target` : `bottom-button`),
|
||||
e: common_vendor.o(($event) => jumpto(index), index),
|
||||
f: index
|
||||
};
|
||||
})
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="botton-view data-v-459e7b51"><view wx:for="{{a}}" wx:for-item="item" wx:key="e" class="array-father data-v-459e7b51"><view class="{{['data-v-459e7b51', item.c]}}" bindtap="{{item.d}}"><image class="botton-img data-v-459e7b51" src="{{item.a}}"/><view class="bottom-text data-v-459e7b51">{{item.b}}</view></view></view></view>
|
||||
<view class="botton-view data-v-459e7b51"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="array-father data-v-459e7b51"><view class="{{['data-v-459e7b51', item.d]}}" bindtap="{{item.e}}"><donghua wx:if="{{item.b}}" class="data-v-459e7b51" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><view class="bottom-text data-v-459e7b51">{{item.c}}</view></view></view></view>
|
||||