Commit f8ed6213 by 匡雅琴

修复线上bug

1 parent b69b0710
......@@ -219,16 +219,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.getPrivacySetting({
success: res => {
console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
if (res.needAuthorization) {
// 需要弹出隐私协议
} else {
// 用户已经同意过隐私协议,所以不需要再弹出隐私协议,也能调用隐私接口
}
}
})
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!