| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const _sfc_main = {
- __name: "index",
- setup(__props) {
- const url = common_vendor.ref("");
- common_vendor.onLoad((query) => {
- url.value = decodeURIComponent(query.url);
- });
- function messaged(e) {
- if (e.detail.data.length > 0) {
- common_vendor.index.setStorageSync("wxCode", e.detail.data[0].date.code);
- common_vendor.index.__f__("log", "at pages/webview/index.vue:19", "e.detail", e.detail);
- } else {
- common_vendor.index.showToast({
- title: "授权失败!",
- icon: "none"
- });
- }
- }
- function onBinderror(e) {
- common_vendor.index.showModal({
- title: e.detail.fullUrl,
- content: "无法打开当前域名 请复制链接,到浏览器打开",
- cancelText: "返回",
- confirmText: "复制链接",
- success: (res) => {
- if (res.confirm) {
- common_vendor.index.setClipboardData({
- data: e.detail.fullUrl,
- showToast: false,
- success: () => {
- common_vendor.index.showToast({
- title: "已复制链接,快去浏览器打开吧",
- icon: "none"
- });
- }
- });
- } else {
- common_vendor.index.navigateBack();
- }
- }
- });
- }
- return (_ctx, _cache) => {
- return {
- a: url.value,
- b: common_vendor.o(onBinderror),
- c: common_vendor.o(messaged)
- };
- };
- }
- };
- wx.createPage(_sfc_main);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/webview/index.js.map
|