This commit is contained in:
2024-03-20 11:39:05 +08:00
commit 6fe05463fa
198 changed files with 11274 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
var t = getApp();
Component({
properties: {},
data: {
tel: ""
},
lifetimes: {
attached: function() {
this.attachedIn();
}
},
attached: function() {
this.attachedIn();
},
methods: {
attachedIn: function() {
this.getTel();
},
getTel: function() {
var e = this;
if (!t.globalData.canGetData) return setTimeout(function() {
e.getTel();
}, 300), !1;
this.setData({
tel: t.globalData.servicetel
});
},
callUs: function() {
if (!t.globalData.servicetel) return !1;
wx.makePhoneCall({
phoneNumber: "" + t.globalData.servicetel
});
}
}
});

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,4 @@
<view bindtap="callUs" class="service-tel">
<view>=客服电话=</view>
<view>{{tel}}</view>
</view>

View File

@@ -0,0 +1,9 @@
.service-tel {
align-items: center;
color: #999;
display: flex;
flex-direction: column;
font-size: 26rpx;
justify-content: center;
line-height: 40rpx;
}