123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <template>
- <view class="container index">
- <nav-header>合成记录</nav-header>
- <!-- //数据列表 -->
- <view class="content">
- <view class="item" v-for="(item,index) in list" :key="index">
- <view class="">
- <view class="">
- <image :src="item.img" mode="" style="width: 140rpx;height: 140rpx;border-radius: 24rpx;">
- </image>
- </view>
- <view class="">
- <view class="">
- 合成-{{item.name}}
- </view>
- <view class="">
- 合成时间:{{item.time}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="nothing" v-if="list.length <= 0" style="width: 304rpx;margin: 156rpx auto 0;">
- <view class="">
- <image src="/static/shoping/8.png" mode="widthFix" style="width: 304rpx;"></image>
- </view>
- <view class="" style="text-align: center;
- color: #999999;
- font-size: 28rpx;">
- 暂无数据
- </view>
- </view>
- <!-- //数据列表 结束-->
- </view>
- </template>
- <script>
- import navHeader from "@/components/my/nav_header.vue"
- export default {
- components: {
- navHeader
- },
- data() {
- return {
- list: [],
- page: 0
- }
- },
- onLoad() {
- this.get_compound_history()
- },
- methods: {
- get_compound_history() {
- this.api.compound_history(30, ++this.page).then(res => {
- res.data.data.forEach(ele => {
- this.list.push({
- img: ele.cover,
- name: ele.name,
- time: ele.create_at
- })
- })
- console.log(res)
- })
- }
- }
- }
- </script>
- <style scoped lang="less">
- .index {
- box-sizing: border-box;
- padding-top: 100rpx;
- }
- .content {
- margin: 0 auto;
- width: 710rpx;
- }
- .item {
- width: 710rpx;
- height: 148rpx;
- background: fff;
- border-radius: 24rpx;
- display: flex;
- justify-content: flex-end;
- margin-top: 30rpx;
- }
- .item>view {
- align-self: center;
- width: 702rpx;
- height: 140rpx;
- background:#1D1F1E;
- border-radius: 24rpx;
- display: flex;
- }
- .item>view>view:last-child {
- box-sizing: border-box;
- padding-top: 18rpx;
- padding-bottom: 16rpx;
- padding-left: 30rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .item>view>view:last-child>view:last-child {
- font-size: 24rpx;
- letter-spacing: 2rpx;
- }
- .item>view>view:last-child>view:first-child {
- font-size: 32rpx;
- font-weight: bold;
- }
- .nothing {
- width: 304rpx;
- margin: 156rpx auto 0;
- >view:last-child {
- text-align: center;
- color: #999999;
- font-size: 28rpx;
- }
- }
- </style>
|