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

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

parent 9f391771
...@@ -17,7 +17,10 @@ export function wxBind(data) { ...@@ -17,7 +17,10 @@ export function wxBind(data) {
return request({ return request({
url: '/sysWxUser/bind', url: '/sysWxUser/bind',
method: 'post', method: 'post',
data: data data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8' // 接口修改传参类型
}
}) })
} }
......
<template> <template>
<view style="background-color: #fff;height: 100vh"> <view style="background-color: #fff;height: 94.5vh">
<mine-navbar title="DHEC QMS" /> <mine-navbar title="DHEC QMS" />
<view class="notice-container"> <view class="notice-container">
...@@ -15,7 +15,11 @@ ...@@ -15,7 +15,11 @@
@click="clickTabs" @click="clickTabs"
></u-tabs> ></u-tabs>
</view> </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 v-for="(item,key) in noticeList" :key="key" style="display: flex;background-color: #ffffff" @click="handleRowClick(item)">
<view class="noticeCard"> <view class="noticeCard">
...@@ -55,7 +59,7 @@ ...@@ -55,7 +59,7 @@
<view v-show="loadStatus === 'loading'" style="text-align: center"> <view v-show="loadStatus === 'loading'" style="text-align: center">
<!-- <image src="../../static/images/home/loading.gif" style="width: 50rpx;height: 60rpx;" /> --> <!-- <image src="../../static/images/home/loading.gif" style="width: 50rpx;height: 60rpx;" /> -->
</view> </view>
</scroll-view>
<!--顶部提示--> <!--顶部提示-->
</view> </view>
</view> </view>
...@@ -123,6 +127,17 @@ export default { ...@@ -123,6 +127,17 @@ export default {
this.getPetmNoticeList() this.getPetmNoticeList()
}, },
methods: { 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) { handleRowClick (row) {
console.log('当前行数据:', row) console.log('当前行数据:', row)
// 这里可以添加其他处理逻辑 // 这里可以添加其他处理逻辑
...@@ -335,6 +350,9 @@ export default { ...@@ -335,6 +350,9 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.scroll-view{
height: 60vh;
}
.no-message{ .no-message{
text-align: center; text-align: center;
height: calc(100vh - 350rpx); 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