微信小程序/bml/pages/dls/dls.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//index.js
//获取应用实例
var app = getApp()
Page({
data: {
dls_item: [],
onReady: function (res) {
this.videoContext = wx.createVideoContext('myVideo')
},
inputValue: '',
data: {
src: '',
},
/**
* 页面配置
*/
winWidth: 0,
winHeight: 0,
// tab切换
currentTab: 0,
hidden: true,
scrollTop: 0,
scrollHeight: 0,
page: 1,
isAjax: true,
isGet: true
},
calling: function (e) {
var that = this;
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.mobile, //此号码并非真实电话号码,仅用于测试
success: function () {
console.log("拨打电话成功!")
},
fail: function () {
console.log("拨打电话失败!")
}
})
},
onLoad: function (options) {
var that = this;
/**
* 获取系统信息
*/
wx.getSystemInfo({
success: function (res) {
that.setData({
winWidth: res.windowWidth,
winHeight: res.windowHeight,
clientHeight: res.windowHeight,
scrollHeight: res.windowHeight,
parentId: options.parentId
});
}
});
this.loadMore();
后面还有 91 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
