|
- const app = getApp()
- //Component Object
- Component({
- properties: {
- titil:{//弹框标题
- type:String,
- value:'提示',
- },
- text:{//弹框内容
- type:String,
- value:'告知当前状态,信息和解决方法 告知当前状态',
- },
- assistant:{//副操作标题
- type:String,
- value:'',
- },
- advocate:{//主操作标题
- type:String,
- value:'',
- },
- wayAdvocate:{//主操作方法
- type:Function,
- },
- url:{//跳转的路径
- type:String,
- },
- hidText:{//关闭提示框文案
- type:String,
- value:'确认',
- }
- },
- data: {
-
- },
- methods: {
- wayAssistant:function(){
- this.triggerEvent('hie',{data:false});
- },
- go:function() {
- this.triggerEvent('go',{url:false});
- }
- },
- created: function() {
-
- },
- attached: function() {
-
- },
- ready: function() {
- console.log(this.properties.url,"666");
- },
- moved: function() {
-
- },
- detached: function() {
-
- },
- });
-
|