123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <view class="container">
- <view class="intro">详情</view>
- <text class="intro">详见:详情</text>
- </view>
- </template>
- <script>
- import { mapActions, mapState } from 'vuex'
- export default {
- onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数
- this.id = option.id;
- this.type = option.type;
- },
- computed: {
- ...mapState(['details'])
- },
- data() {
- return {
- id: '',
- type: null,
- }
- },
- methods: {
- }
- }
- </script>
- <style>
- .container {
- padding: 20px;
- font-size: 14px;
- line-height: 24px;
- }
- </style>
|