21 lines
704 B
JavaScript
21 lines
704 B
JavaScript
const { brand, trustContent } = require("../../utils/linjing-data");
|
|
Page({
|
|
data: {
|
|
brand, trustContent, records: [],
|
|
},
|
|
onLoad() {
|
|
this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] });
|
|
},
|
|
onShow() {
|
|
this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] });
|
|
},
|
|
call() {
|
|
wx.makePhoneCall({ phoneNumber: brand.phone.replace(/[^0-9-]/g, "") });
|
|
},
|
|
copyWechat() { wx.setClipboardData({ data: brand.wechat, success: () => wx.showToast({ title: "微信号已复制", icon: "none" }) }); },
|
|
recordsPage() { wx.navigateTo({ url: "/pages/records/index" }); },
|
|
inquire() {
|
|
wx.navigateTo({ url: "/pages/inquiry/index" });
|
|
},
|
|
});
|