1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| <template>
| <view class="u-demo">
| <view class="u-demo-wrap">
| <view class="u-demo-title">演示效果</view>
| <view class="u-demo-area">
| <view class="u-no-demo-here">
| 收到的参数为:{{paramsStr}}
| </view>
| <view class="u-btn-wrap">
| <u-button @click="back">返回</u-button>
| </view>
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| params: {}
| }
| },
| onLoad(option) {
| this.params = option;
| },
| computed: {
| paramsStr() {
| return JSON.stringify(this.params);
| }
| },
| methods: {
| back() {
| this.$u.route({
| type: 'back',
| animationType: 'slide-in-top'
| });
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .wrap {
| padding: 24rpx;
| }
|
| .u-btn-wrap {
| margin-top: 50rpx;
| }
| </style>
|
|