2024-04-07 11:10:47 +08:00
|
|
|
<template>
|
|
|
|
<view class="content">
|
2024-04-09 13:54:58 +08:00
|
|
|
|
|
|
|
<uni-card class="box-boder" v-for="(item, index) in projectList" :key="index" >
|
|
|
|
<text>{{item.value}}</text>
|
|
|
|
</uni-card>
|
|
|
|
<movable-area class="movable-area">
|
|
|
|
<movable-view class="movable-view" direction="all">
|
|
|
|
<button style="width: 50px;height:50px;border-radius:50px;position:fixed;background:#ff6700;line-height:50px;font-size:25pt;color:#fff;" @click="handerinto">+</button>
|
|
|
|
|
|
|
|
</movable-view>
|
|
|
|
</movable-area>
|
2024-04-07 11:10:47 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-04-09 13:54:58 +08:00
|
|
|
projectList:[
|
|
|
|
{index:1,value:'123132132132132132131312132132231啊大苏打飒飒大苏打飒飒大苏打撒旦阿松大阿松大阿松大阿松大啊阿斯顿阿松大阿三大苏打阿松大阿三阿松大阿松大阿松大阿三阿松大阿松大啊飒飒4'},
|
|
|
|
{index:1,value:'dasdasdasdasdasdasdasd'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
{index:1,value:'12313213213啊实打实的阿松大阿松大阿三'},
|
|
|
|
]
|
2024-04-07 11:10:47 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad() {
|
2024-04-09 13:54:58 +08:00
|
|
|
|
2024-04-07 11:10:47 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2024-04-09 13:54:58 +08:00
|
|
|
handerinto(){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'../itemlist/itemlist'
|
2024-04-07 11:10:47 +08:00
|
|
|
})
|
|
|
|
},
|
2024-04-09 13:54:58 +08:00
|
|
|
//发送请求案例
|
2024-04-07 11:10:47 +08:00
|
|
|
getNoticelist(){
|
|
|
|
this.request('loadNotice', 'GET').then(res=>{
|
|
|
|
console.log("res:",res)
|
|
|
|
if(res){
|
|
|
|
this.messageData = res.data
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
2024-04-09 13:54:58 +08:00
|
|
|
|
|
|
|
//跳转路由案例
|
2024-04-07 11:10:47 +08:00
|
|
|
goMore(){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'../itemlist/itemlist'
|
|
|
|
})
|
|
|
|
},
|
2024-04-09 13:54:58 +08:00
|
|
|
|
2024-04-07 11:10:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-04-09 13:54:58 +08:00
|
|
|
.box-title{
|
|
|
|
width: 200rpx;
|
|
|
|
height: 70rpx;
|
|
|
|
// background-color: red;
|
|
|
|
text-align: center;
|
|
|
|
margin-left: 270rpx;
|
|
|
|
font-size: 1.5rem
|
|
|
|
|
|
|
|
}
|
|
|
|
.movable-area{
|
|
|
|
pointer-events:none;// 这个属性设置为none,让所有事件穿透过去
|
|
|
|
z-index: 100;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
.movable-view{
|
|
|
|
pointer-events:auto;// 重设为auto,覆盖父属性设置
|
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
border-radius: 50rpx;
|
|
|
|
background: skyblue;
|
|
|
|
}
|
2024-04-07 11:10:47 +08:00
|
|
|
</style>
|