Commit c6bdaa88 by luyt

feat;替换wx api

1 parent 853e632b
......@@ -346,7 +346,7 @@ Page({
filePath: _this.data.posterUrl, //仅为示例,并非真实的资源
success(res) {
console.log("res: ", res);
wx.$api.showToast("下载成功!");
wx.showToast("下载成功!");
},
});
}
......
......@@ -220,7 +220,7 @@ Component({
downVideo(e) {
let { url } = e.target.dataset;
console.log(url);
wx.$api.showToast("正在下载视频...");
wx.showToast("正在下载视频...");
wx.downloadFile({
url: url,
success(res) {
......@@ -230,7 +230,7 @@ Component({
filePath: res.tempFilePath,
success(res) {
setTimeout(() => {
wx.$api.showToast("下载成功!");
wx.showToast("下载成功!");
}, 2000);
},
});
......@@ -370,7 +370,7 @@ Component({
this.getMoreFn();
})
.catch(({ errMsg }) => {
wx.$api.showToast(errMsg || "系统异常");
wx.showToast(errMsg || "系统异常");
// this.setBtnLoading(false)
});
},
......
......@@ -582,17 +582,17 @@ Page({
}
})
},
// 打电话
phoneCallFn(e) {
let { phone } = e.currentTarget.dataset
console.log('phone: ', phone)
wx.$api.phoneCall(phone)
},
// 复制号码
setCopyDataFn(e) {
let { phone } = e.currentTarget.dataset
wx.$api.setCopyData(phone)
},
// // 打电话
// phoneCallFn(e) {
// let { phone } = e.currentTarget.dataset
// console.log('phone: ', phone)
// wx.phoneCall(phone)
// },
// // 复制号码
// setCopyDataFn(e) {
// let { phone } = e.currentTarget.dataset
// wx.setCopyData(phone)
// },
getClueInit(param) {
// console.log(22222)
this.getUnreadApi(param)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!