组件(直接复制到components文件下
<!-- 组件 -->
<template>
<block v-if="options && options.length">
<view class="wrap">
<block v-for="(item, index) in options" :key="index">
<view class="wrap_box">
<view class="wrap_box_title">
<text>{
{
item.title}}</text>
</view>
<block v-for="(val, idx) in item.children" :key="idx">
<view class="wrap_box_content">
<view class="wrap_box_content_title">{
{
val.name}}</view>
<view class="wrap_box_content_tip">
{
{
val.value}}
</view>
</view>
</block>
</view>
</block>
</view>
</block>
</template>
<script>
export default {
name: 'Descriptions',