# midea-common-weex-view Weex 子窗口
# 引入
APP 内置原生组件,可直接使用 cross-view 标签。 Weex 子窗口,支持 Minix 页面设置一个内嵌窗口,打开另外一个 weex 页面。插件页面打开的 weex 子窗口,同样支持插件的特有接口
# 代码演示
# 基本用法
通过设置 crossprops 和 type 属性,展示环形进度条。
<div class="container">
  <cross-view
    id="mideagespass1"
    class="crossview"
    type="midea-common-weex-view"
    crossprops="{{cross_props}}"
  ></cross-view>
</div>
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
import prompt from '@system.prompt'
export default {
  data: {
    dataJson: {
      router: {
        type: "jumpWeex",
        param: {
          pageName: "person-center",
          // remoteUrl: 'http://dolphin-weex-dev.msmartlife.cn/dist/base/actionsheet.js?_wx_tpl=http://dolphin-weex-dev.msmartlife.cn/dist/base/actionsheet.js',
          // url: "T0xE2/weex.js"
        }
      },
    },
    cross_props: '',
  },
  onInit() {
    this.cross_props = JSON.stringify(this.dataJson)
  }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Api
# Prop
| 字段 | 说明 | 类型 | 默认值 | 是否必须 | 
|---|---|---|---|---|
| type | 原生组件类型 | String | midea-common-weex-view | 是 | 
| crossprops | 参数 | String | {}附表1 | 是 | 
# 附表 1
| 字段 | 说明 | 类型 | 默认值 | 是否必须 | 
|---|---|---|---|---|
| type | route 类型 | String | jumpWeex | 是 | 
| param | route 参数 | Object | Object | 是 |