9 changed files with 285 additions and 209 deletions
@ -1,12 +1,63 @@ |
|||||
<template> |
<template> |
||||
<view class="container"> |
<view class="container"> |
||||
我是通知消息 |
<uni-list border-full v-for="(item,index) in noticeList" :key="index"> |
||||
|
<uni-list-item showArrow clickable :title="item.title" |
||||
|
:note="item.createTime" :thumb="item.img" thumb-size="lg" @click="targetToDetail(item.id)"/> |
||||
|
</uni-list> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
|
import { |
||||
</style> |
getNoticeList |
||||
|
} from '@/api/userInfo.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
noticeList: [], |
||||
|
pageSize: 10, |
||||
|
pageNum: 1 |
||||
|
} |
||||
|
}, |
||||
|
// 下拉刷新 |
||||
|
onPullDownRefresh() { |
||||
|
uni.stopPullDownRefresh() |
||||
|
}, |
||||
|
created() { |
||||
|
const params = { |
||||
|
pageSize: this.pageSize, |
||||
|
pageNum: this.pageNum, |
||||
|
} |
||||
|
this.getNoticeList(params); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
// 获取公告分页 |
||||
|
async getNoticeList(params) { |
||||
|
const res = await getNoticeList(params) |
||||
|
console.log('res', res) |
||||
|
if (res.data.code === 200) { |
||||
|
this.noticeList = res.data.rows |
||||
|
console.log('noticeList', this.noticeList) |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '公告列表加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
targetToDetail(id) { |
||||
|
console.log('id', id) |
||||
|
if (id) { |
||||
|
uni.navigateTo({ |
||||
|
url: 'noticeDetail?id=' + id |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
<style lang="scss"> |
<style lang="scss"> |
||||
</style> |
</style> |
||||
|
|||||
@ -0,0 +1,47 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view>id:{{noticeDetail.id}}</view> |
||||
|
<view>标题:{{noticeDetail.title}}</view> |
||||
|
<view>内容:{{noticeDetail.content}}</view> |
||||
|
<view>图片:{{noticeDetail.img}}</view> |
||||
|
<view>创建时间:{{noticeDetail.createTime}}</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
getNoticeDetails |
||||
|
} from '@/api/userInfo.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
noticeDetail:{} |
||||
|
} |
||||
|
}, |
||||
|
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数 |
||||
|
this.id = option.id |
||||
|
//console.log('this.id',this.id) |
||||
|
this.getNoticeDetails(option.id); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
// 查询公告详情 |
||||
|
async getNoticeDetails(id) { |
||||
|
const res = await getNoticeDetails(id) |
||||
|
console.log('res', res) |
||||
|
if (res.data.code === 200) { |
||||
|
this.noticeDetail = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '公告详情数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,52 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view>订单号:{{withdrawDetailInfo.orderId}}</view> |
||||
|
<view>提现金额:{{withdrawDetailInfo.amt}}</view> |
||||
|
<view>手机号:{{withdrawDetailInfo.phone}}</view> |
||||
|
<view>银行卡:{{withdrawDetailInfo.bankNo}}</view> |
||||
|
<view>渠道:{{withdrawDetailInfo.channel}}</view> |
||||
|
<view>状态:{{withdrawDetailInfo.status}}</view> |
||||
|
<view>创建时间:{{withdrawDetailInfo.createTime}}</view> |
||||
|
<view>审核理由:{{withdrawDetailInfo.reason}}</view> |
||||
|
<view>到账时间:{{withdrawDetailInfo.achieveTime}}</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
getWithdrawDetails |
||||
|
} from '@/api/userInfo.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
withdrawDetailInfo:{} |
||||
|
} |
||||
|
}, |
||||
|
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数 |
||||
|
console.log(option) |
||||
|
const param = { |
||||
|
orderId: option.orderId |
||||
|
} |
||||
|
this.getWithdrawDetails(param); |
||||
|
}, |
||||
|
methods: { |
||||
|
// 查询提现记录明细 |
||||
|
async getWithdrawDetails(param) { |
||||
|
const res = await getWithdrawDetails(param) |
||||
|
console.log('res', res) |
||||
|
if (res.data.code === 200) { |
||||
|
this.withdrawDetailInfo = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '提现记录详情数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
Loading…
Reference in new issue