Commit fd265c9f authored by 刘怀志's avatar 刘怀志

feat(登录): /sysWxUser/bind修改

parent 9f391771
......@@ -17,7 +17,10 @@ export function wxBind(data) {
return request({
url: '/sysWxUser/bind',
method: 'post',
data: data
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8' // 接口修改传参类型
}
})
}
......
<template>
<view style="background-color: #fff;height: 100vh">
<view style="background-color: #fff;height: 94.5vh">
<mine-navbar title="DHEC QMS" />
<view class="notice-container">
......@@ -15,7 +15,11 @@
@click="clickTabs"
></u-tabs>
</view>
<scroll-view
class="scroll-view"
scroll-y="true"
@scrolltolower="scrolltolower"
:scroll-with-animation="true">
<!--消息卡片-->
<view v-for="(item,key) in noticeList" :key="key" style="display: flex;background-color: #ffffff" @click="handleRowClick(item)">
<view class="noticeCard">
......@@ -55,7 +59,7 @@
<view v-show="loadStatus === 'loading'" style="text-align: center">
<!-- <image src="../../static/images/home/loading.gif" style="width: 50rpx;height: 60rpx;" /> -->
</view>
</scroll-view>
<!--顶部提示-->
</view>
</view>
......@@ -123,6 +127,17 @@ export default {
this.getPetmNoticeList()
},
methods: {
// 处理滚动加载
scrolltolower() {
this.loadStatus = 'loading'
if (this.queryNotice.rows * this.queryNotice.page >= this.total) {
this.loadStatus = 'nomore'
} else {
this.queryNotice.rows += this.defaultPageSize
this.getPetmNoticeList()
this.loadStatus = 'loadmore'
}
},
handleRowClick (row) {
console.log('当前行数据:', row)
// 这里可以添加其他处理逻辑
......@@ -335,6 +350,9 @@ export default {
</script>
<style scoped lang="scss">
.scroll-view{
height: 60vh;
}
.no-message{
text-align: center;
height: calc(100vh - 350rpx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment