1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- var Nova = getApp().Nova;
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- options: null,
- },
- /**
- * 组件的初始数据
- */
- data: {
- },
- lifetimes: {
- attached: function () {
- console.log('通知栏',this.data.options);
- let { options } = this.data
- let {
- data,
- src,
- style,
- } = options
- let conts = data.list[0]
- this.setData({
- conts,
- src,
- style,
- })
- },
- },
- /**
- * 组件的方法列表
- */
- methods: {
- goNovaURL: function(ev){
- let url = ev.currentTarget.dataset.url;
- Nova.goNovaURL(url);
- }
- }
- })
|