diy_service.js
1.11 KB
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
52
53
Component({
properties: {
// 这里定义了innerText属性,属性值可以在组件使用时指定
object:{
type: Object,
value:null
},
},
data: {
iurl:getApp().globalData.setting.imghost
},
lifetimes: {
attached: function() {
var th=this;
//----获取系统参数-----
getApp().getConfig2(function(e) {
var json_d = JSON.parse(e.switch_list);
th.setData({ sys_switch:json_d, })
})
}
},
methods: {
berror:function(e){
var iurl=getApp().globalData.setting.imghost;
var ob={};
var txt="object.title_img";
ob[txt] = iurl +'/miniapp/images/logo.png?v=1';
this.setData(ob);
},
//-- 跳到绑定注册会员 --
go_user:function(){
getApp().goto('/packageE/pages/togoin/togoin');
return false;
},
//---------联系客服------------
contactService: function() {
getApp().con_Service();
},
//---------联系微信客服------------
con_weixin:function () {
getApp().con_wx(this);
},
click_contact:function () {
getApp().globalData.no_clear=1;
}
}
})