123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <view class="page-view">
- <top-return color="#FFF"></top-return>
- <view class="flex-row">
- <view class="flex-column" style="margin: 120rpx 0 0 50rpx;">
- <view class="report-title">作业</view>
- <view class="report-title">分析报告</view>
- <view class="report-subtitle">{{workData[index].work.name}}</view>
- </view>
- <view class="bg1"></view>
- <view class="detail-image" :style="{backgroundImage:`url(${image})`}"></view>
- </view>
- <view class="card-view">
- <view class="card-item" style="width: 100%;height: 2300rpx;opacity: 0.9;"></view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex'
- export default {
- computed: {
- ...mapState('m_children', ['workData'])
- },
- data() {
- return {
- index: '',
- image: 'https://ouch-cdn2.icons8.com/L7XZ0sgjVoRcfTOPCIQaYDAjSFWSuLHiH__hrCVy_CQ/rs:fit:439:456/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvNTM2/L2M3ZmQyOTdiLTgz/ODEtNGQzYy1hNzk1/LWY1MmY3ZWUyMjIw/YS5wbmc.png'
- };
- },
- onLoad(param) {
- this.index = param.index
- },
- methods: {
- },
- }
- </script>
- <style lang="scss">
- @import 'data_pages.scss';
- .page-view {
- background-color: $color-yellow;
- }
- .bg1 {
- position: absolute;
- top: 200rpx;
- left: 450rpx;
- width: 430rpx;
- height: 430rpx;
- border-radius: 50%;
- background-color: #f9da7a;
- }
- .detail-image {
- position: absolute;
- top: 170rpx;
- left: 430rpx;
- width: 330rpx;
- height: 360rpx;
- background-size: 100%; //背景图片自适应
- background-repeat: no-repeat;
- z-index: 50;
- }
- </style>
|