123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <view class="content">
- <block v-if="detail">
- <!-- 顶部图片 -->
- <image class="top" v-if="detail.img" :src="detail.img" mode="widthFix"></image>
- <view class="headline">
- <view class="title" v-if="detail.industry">行业:<span>{{detail.industry}}</span></view>
- <view class="title" v-if="detail.scheme">方案:<span>{{detail.scheme}}</span></view>
- <view class="title" v-if="detail.client">客户:<span>{{detail.client}}</span></view>
- </view>
- <image class="line" src="../../static/imgs/line.png"></image>
- <view class="boxs" v-if="detail.descriptions&&detail.descriptions.length">
- <view class="box" v-for="(item,index) in detail.descriptions" :key="index">
- <view class="b_title">{{item.title}}</view>
- <view class="intro">
- <u-parse :content="item.content"></u-parse>
- </view>
- </view>
- </view>
- </block>
- </view>
- </template>
- <script>
- import { data } from '../plan/data.js'
- export default {
- data(){
- return {
- detail:null
- }
- },
- created() {
- uni.setNavigationBarTitle({
- title:'案例'
- })
- },
- onLoad(option) {
- if(option.id&&option.key){
- this.getDetails(option.id,option.key);
- }
- },
- methods:{
- getDetails(id,key){
- let temp = data[key];
- if(temp.length){
- this.detail = temp.find(t=>t.id == id).details || null;
- }
- }
- }
- }
- </script>
- <style scoped lang="less">
- .content{
- overflow-x: hidden;
- padding-bottom: 100rpx;
-
- .top{
- width: 100%;
- }
-
- .headline{
- width: 100%;
- padding: 10rpx 30rpx;
- box-sizing: border-box;
- .title{
- margin-top: 20rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 30rpx;
- color: #111111;
- line-height: 42rpx;
- text-align: left;
- span{
- margin-left: 20rpx;
- font-weight: bold;
- color: #333333;
- }
- }
- }
-
- .line{
- width: 100%;
- height: 6rpx;
- margin: 30rpx 0 40rpx;
- }
-
- .boxs{
- width: 100%;
- padding: 0 30rpx;
- box-sizing: border-box;
-
- .box{
- margin-top: 48rpx;
- &:first-child{
- margin-top: 0;
- }
-
- .b_title{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 32rpx;
- color: #333333;
- line-height: 45rpx;
- letter-spacing: 2rpx;
- }
-
- .intro{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 28rpx;
- color: #666666;
- line-height: 48rpx;
- margin-top: 20rpx;
- letter-spacing: 2rpx;
- }
- }
- }
- }
- </style>
|