From 2e6f381d09669635473faf5dd4a3f01b5797d97e Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 27 五月 2024 16:25:09 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- h5/pages/applicationRecord/applicationRecord.vue | 353 ++++++++++++++++++++++++++++++---------------------------- 1 files changed, 185 insertions(+), 168 deletions(-) diff --git a/h5/pages/applicationRecord/applicationRecord.vue b/h5/pages/applicationRecord/applicationRecord.vue index 7f4dc7b..6c647ed 100644 --- a/h5/pages/applicationRecord/applicationRecord.vue +++ b/h5/pages/applicationRecord/applicationRecord.vue @@ -1,177 +1,194 @@ <template> - <view class="box"> - <scroll-view scroll-x class="box_head"> - <view class="box_head_list"> - <view class="box_head_item active">鍏ㄩ儴</view> - <view class="box_head_item">寰呭鏍�</view> - <view class="box_head_item">瀹℃牳閫氳繃</view> - <view class="box_head_item">瀹℃牳椹冲洖</view> - </view> - </scroll-view> - <view class="box_list"> - <view class="box_list_item" v-for="(item, index) in 3" :key="index"> - <view class="box_list_item_head"> - <text>涓佹仼鍑殑鍔冲姟鍏ュ巶鐢宠</text> - <text class="loading">寰呭鏍�</text> - </view> - <view class="box_list_item_nr"> - <view class="box_list_item_nr_item"> - <text>琚闂汉锛�</text> - <text>浜轰簨閮�-鐜嬩簹钃�</text> - </view> - <view class="box_list_item_nr_item"> - <text>杩涘巶鏃堕棿锛�</text> - <text>12-12 09:00</text> - </view> - <view class="box_list_item_nr_item"> - <text>绂诲巶鏃堕棿锛�</text> - <text>12-12 12:00</text> - </view> - <view class="box_list_item_nr_item"> - <text>鍏ュ巶浜烘暟锛�</text> - <text>10</text> - </view> - <view class="box_list_item_nr_item"> - <text>鏉ヨ浜嬬敱锛�</text> - <text>涓氬姟鏉ュ線</text> - </view> - <view class="box_list_item_nr_x"></view> - <view class="box_list_item_nr_text"> - 2023-12-12 09:00鎻愪氦 - </view> - </view> - </view> - </view> - </view> + <view class="box"> + <scroll-view scroll-x class="box_head"> + <view class="box_head_list"> + <view class="box_head_item active">鍏ㄩ儴</view> + <view class="box_head_item">寰呭鏍�</view> + <view class="box_head_item">瀹℃牳閫氳繃</view> + <view class="box_head_item">瀹℃牳椹冲洖</view> + </view> + </scroll-view> + <view class="box_list"> + <view class="box_list_item" v-for="(item, index) in 3" :key="index"> + <view class="box_list_item_head"> + <text>涓佹仼鍑殑鍔冲姟鍏ュ巶鐢宠</text> + <text class="loading">寰呭鏍�</text> + </view> + <view class="box_list_item_nr"> + <view class="box_list_item_nr_item"> + <text>琚闂汉锛�</text> + <text>浜轰簨閮�-鐜嬩簹钃�</text> + </view> + <view class="box_list_item_nr_item"> + <text>杩涘巶鏃堕棿锛�</text> + <text>12-12 09:00</text> + </view> + <view class="box_list_item_nr_item"> + <text>绂诲巶鏃堕棿锛�</text> + <text>12-12 12:00</text> + </view> + <view class="box_list_item_nr_item"> + <text>鍏ュ巶浜烘暟锛�</text> + <text>10</text> + </view> + <view class="box_list_item_nr_item"> + <text>鏉ヨ浜嬬敱锛�</text> + <text>涓氬姟鏉ュ線</text> + </view> + <view class="box_list_item_nr_x"></view> + <view class="box_list_item_nr_text"> 2023-12-12 09:00鎻愪氦 </view> + </view> + </view> + </view> + </view> </template> <script> - export default { - data() { - return { - - }; - } - } +import { getVisitedRecord } from '@/api' +export default { + data() { + return { + pagination: { + page: 1, + capacity: 10 + }, + list: [] + } + }, + onLoad() { + this.getList() + }, + methods: { + getList() { + const { pagination } = this + getVisitedRecord({ + pageWrap: { ...pagination } + }).then(res => { + this.list = res.data + }) + } + + } +} </script> <style> - page { - background-color: #F7F7F7 !important; - } +page { + background-color: #f7f7f7 !important; +} </style> <style lang="scss" scoped> - .box { - width: 100%; - .box_head { - width: 100%; - height: 108rpx; - padding: 0 30rpx; - box-sizing: border-box; - background: #FFFFFF; - position: sticky; - top: 0; - left: 0; - .box_head_list { - width: 100%; - height: 100%; - display: flex; - align-items: center; - .active { - border: 1rpx solid #279BAA !important; - color: #279BAA !important; - } - .box_head_item { - padding: 0 30rpx; - height: 60rpx; - line-height: 60rpx; - box-sizing: border-box; - border-radius: 30rpx; - border: 1rpx solid #999999; - font-size: 26rpx; - font-weight: 400; - color: #333333; - margin-right: 20rpx; - } - } - } - .box_list { - width: 100%; - padding: 30rpx; - box-sizing: border-box; - .box_list_item { - width: 100%; - margin-bottom: 20rpx; - &:last-child { - margin: 0 !important; - } - .box_list_item_head { - width: 100%; - height: 100rpx; - padding: 0 30rpx; - box-sizing: border-box; - background: linear-gradient(270deg, #FEFEFF 0%, #E1F7FE 100%); - border-radius: 8rpx 8rpx 0rpx 0rpx; - display: flex; - align-items: center; - justify-content: space-between; - .loading { - color: #279BAA; - } - .success { - color: #03C68F; - } - .error { - color: #E0312A; - } - text { - &:nth-child(1) { - font-size: 32rpx; - font-weight: 500; - color: #222222; - } - &:nth-child(2) { - font-size: 26rpx; - font-weight: 400; - } - } - } - .box_list_item_nr { - padding: 30rpx; - width: 100%; - box-sizing: border-box; - background-color: #FFFFFF; - .box_list_item_nr_x { - width: 100%; - height: 1rpx; - background-color: #E5E5E5; - } - .box_list_item_nr_text { - width: 100%; - font-size: 26rpx; - font-weight: 400; - color: #999999; - margin-top: 32rpx; - } - .box_list_item_nr_item { - width: 100%; - display: flex; - align-items: center; - margin-bottom: 20rpx; - text { - &:nth-child(1) { - font-size: 26rpx; - font-weight: 400; - color: #666666; - } - &:nth-child(2) { - font-size: 26rpx; - font-weight: 400; - color: #333333; - } - } - } - } - } - } - } +.box { + width: 100%; + .box_head { + width: 100%; + height: 108rpx; + padding: 0 30rpx; + box-sizing: border-box; + background: #ffffff; + position: sticky; + top: 0; + left: 0; + .box_head_list { + width: 100%; + height: 100%; + display: flex; + align-items: center; + .active { + border: 1rpx solid #279baa !important; + color: #279baa !important; + } + .box_head_item { + padding: 0 30rpx; + height: 60rpx; + line-height: 60rpx; + box-sizing: border-box; + border-radius: 30rpx; + border: 1rpx solid #999999; + font-size: 26rpx; + font-weight: 400; + color: #333333; + margin-right: 20rpx; + } + } + } + .box_list { + width: 100%; + padding: 30rpx; + box-sizing: border-box; + .box_list_item { + width: 100%; + margin-bottom: 20rpx; + &:last-child { + margin: 0 !important; + } + .box_list_item_head { + width: 100%; + height: 100rpx; + padding: 0 30rpx; + box-sizing: border-box; + background: linear-gradient(270deg, #fefeff 0%, #e1f7fe 100%); + border-radius: 8rpx 8rpx 0rpx 0rpx; + display: flex; + align-items: center; + justify-content: space-between; + .loading { + color: #279baa; + } + .success { + color: #03c68f; + } + .error { + color: #e0312a; + } + text { + &:nth-child(1) { + font-size: 32rpx; + font-weight: 500; + color: #222222; + } + &:nth-child(2) { + font-size: 26rpx; + font-weight: 400; + } + } + } + .box_list_item_nr { + padding: 30rpx; + width: 100%; + box-sizing: border-box; + background-color: #ffffff; + .box_list_item_nr_x { + width: 100%; + height: 1rpx; + background-color: #e5e5e5; + } + .box_list_item_nr_text { + width: 100%; + font-size: 26rpx; + font-weight: 400; + color: #999999; + margin-top: 32rpx; + } + .box_list_item_nr_item { + width: 100%; + display: flex; + align-items: center; + margin-bottom: 20rpx; + text { + &:nth-child(1) { + font-size: 26rpx; + font-weight: 400; + color: #666666; + } + &:nth-child(2) { + font-size: 26rpx; + font-weight: 400; + color: #333333; + } + } + } + } + } + } +} </style> -- Gitblit v1.9.3