jinru:function(){
var get_user_openid = this
wx.getSystemInfo({
success: function (res) {
if (res.platform == "devtools") {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 80;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
setTimeout(function () {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 100;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
setTimeout(function () {
get_user_openid.setData
({
imgae_gif_dage0: true
})
}, 1500)
}, 2500)
setTimeout(function () {
get_user_openid.setData
({
imgae_gif_0: true
})
setTimeout(function () {
get_user_openid.setData
({
imgae_gif_1: true
})
setTimeout(function () {
get_user_openid.setData
({
imgae_gif_2: true,
name_opacity: 0
})
var opacity_home = 1
var animation_name = wx.createAnimation
({
duration: 2000,
timingFunction: 'ease',
})
get_user_openid.name_animation = animation_name
animation_name.opacity(opacity_home).step()
get_user_openid.setData
({
name_animation: animation_name.export(),
})
}, 2500)
}, 8000)
}, 3000)
console.log("pc")
} else if (res.platform == "ios") {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 50;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/1.0.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_0: res.path })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/5.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_1: res.path })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/6.gif',
success: function (res) { get_user_openid.setData({ imgae_gif_url_2: res.path }) }
})
get_user_openid.setData({ imgae_gif_url_3: res.path })
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 20;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
get_user_openid.setData({ imgae_gif_url_4: res.path })
setTimeout(function () {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 29;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
}, 3500)
setTimeout(function () {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 1;
get_user_openid.setData({ imgae_gif_dage0: true })
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
get_user_openid.setData({ imgae_gif_0: true })
setTimeout(function () {
get_user_openid.setData({ imgae_gif_1: true })
setTimeout(function () {
get_user_openid.setData({ imgae_gif_2: true, name_opacity: 0 })
var opacity_home = 1; var animation_name = wx.createAnimation
({ duration: 2000, timingFunction: 'ease', })
get_user_openid.name_animation = animation_name
animation_name.opacity(opacity_home).step()
get_user_openid.setData({ name_animation: animation_name.export(), })
}, 3500)
}, 7500)
}, 6000)
}
})
}
})
console.log("ios")
} else if (res.platform == "android") {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 50;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/1.0.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_0: res.path })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/5.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_1: res.path })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/6.gif',
success: function (res) { get_user_openid.setData({ imgae_gif_url_2: res.path }) }
})
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/KPI 合成 1_12fps.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_3: res.path })
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 20;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
wx.getImageInfo
({
src: 'https://gongyi3cdn.tencent-cloud.net/qybs20/qinyong/ani/过场动画.gif',
success: function (res) {
get_user_openid.setData({ imgae_gif_url_4: res.path })
setTimeout(function () {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 29;
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
}, 3500)
setTimeout(function () {
get_user_openid.data.percentNum = get_user_openid.data.percentNum + 1;
get_user_openid.setData({ imgae_gif_dage0: true })
get_user_openid.setData({ percent: get_user_openid.data.percentNum.toString() })
get_user_openid.setData({ imgae_gif_0: true })
setTimeout(function () {
get_user_openid.setData({ imgae_gif_1: true })
setTimeout(function () {
get_user_openid.setData({ imgae_gif_2: true, name_opacity: 0 })
var opacity_home = 1; var animation_name = wx.createAnimation
({ duration: 2000, timingFunction: 'ease', })
get_user_openid.name_animation = animation_name
animation_name.opacity(opacity_home).step()
get_user_openid.setData({ name_animation: animation_name.export(), })
}, 3500)
}, 7500)
}, 6000)
}
})
}
})
}
})
}
})
console.log("安卓")
}
}
})
},
你好,检查下是否是该手机的网络的问题,还有问题的话,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)