<web-view :src="url" :update-title="false" :fullscreen="false"></web-view>
uni.downloadFile({
url:
that.type === 'agree'
? '可用的阿里系html链接/user.html'
: '可用的阿里系html链接/privacy.html',
success: data => {
if (data.statusCode === 200) {
uni.setStorage({
key: 'agreement',
data: data.tempFilePath
});
console.log(data.tempFilePath, 888);
uni.saveFile({
tempFilePath: data.tempFilePath,
success(res) {
console.log(res, 999);
that.url = res.savedFilePath;
uni.setNavigationBarTitle({
title: that.map[that.type]
});
}
});
}
},
web-view不支持打开本地链接