新增分享

This commit is contained in:
itgaojian163 2025-07-23 16:14:08 +08:00
parent 8228d9a809
commit 63f7886a4c
6 changed files with 71 additions and 23 deletions

View File

@ -86,7 +86,16 @@
import { import {
isMobilePhone isMobilePhone
} from "@/common/js/validator.js"; } from "@/common/js/validator.js";
import {
inject
} from 'vue';
export default { export default {
setup() {
const globalData = inject('globalData')
return {
globalData
}
},
data() { data() {
return { return {
isActive: true, isActive: true,
@ -104,6 +113,7 @@
contactEmail: "", contactEmail: "",
contactCompany: "", contactCompany: "",
csaNo: "", csaNo: "",
appImgUrl: this.globalData.imgAssetsUrl,
}; };
}, },
onLoad() { onLoad() {
@ -136,6 +146,14 @@
clearInterval(this.timer); clearInterval(this.timer);
} }
}, },
onShareAppMessage() {
return {
title: '喵著',
content: '用喵著搞定软著,代码与流程都藏着省心的巧思 —— 把这份高效分享给需要的人,让每一次创作都少些奔波~',
imageUrl: this.appImgUrl + '/wx_share_img.png',
path: `/pages/login/login`
};
},
methods: { methods: {
closeDialog() { closeDialog() {
uni.showModal({ uni.showModal({

File diff suppressed because one or more lines are too long

View File

View File

@ -7339,7 +7339,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "127.0.0.1,192.168.0.114"; const hosts = "127.0.0.1,192.168.0.114";
const port = "8090"; const port = "8090";
const id2 = "mp-baidu_K-M1jr"; const id2 = "mp-baidu_0elgo5";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -5,6 +5,12 @@ const common_js_cache_storage = require("../../common/js/cache/storage.js");
const common_js_validator = require("../../common/js/validator.js"); const common_js_validator = require("../../common/js/validator.js");
const common_assets = require("../../common/assets.js"); const common_assets = require("../../common/assets.js");
const _sfc_main = { const _sfc_main = {
setup() {
const globalData = common_vendor.inject("globalData");
return {
globalData
};
},
data() { data() {
return { return {
isActive: true, isActive: true,
@ -23,7 +29,8 @@ const _sfc_main = {
contactName: "", contactName: "",
contactEmail: "", contactEmail: "",
contactCompany: "", contactCompany: "",
csaNo: "" csaNo: "",
appImgUrl: this.globalData.imgAssetsUrl
}; };
}, },
onLoad() { onLoad() {
@ -36,11 +43,19 @@ const _sfc_main = {
this.phoneNumber = common_js_cache_storage.get("loginPhone", ""); this.phoneNumber = common_js_cache_storage.get("loginPhone", "");
}, },
onUnload() { onUnload() {
common_vendor.index.__f__("log", "at pages/login/login.vue:134", "页面卸载"); common_vendor.index.__f__("log", "at pages/login/login.vue:144", "页面卸载");
if (this.timer != null) { if (this.timer != null) {
clearInterval(this.timer); clearInterval(this.timer);
} }
}, },
onShareAppMessage() {
return {
title: "喵著",
content: "用喵著搞定软著,代码与流程都藏着省心的巧思 —— 把这份高效分享给需要的人,让每一次创作都少些奔波~",
imageUrl: this.appImgUrl + "/wx_share_img.png",
path: `/pages/login/login`
};
},
methods: { methods: {
closeDialog() { closeDialog() {
common_vendor.index.showModal({ common_vendor.index.showModal({
@ -105,9 +120,9 @@ const _sfc_main = {
_self.msgType = "success"; _self.msgType = "success";
_self.$refs.msg.open(); _self.$refs.msg.open();
_self.timer = setInterval(_self.startCountDown, 1e3); _self.timer = setInterval(_self.startCountDown, 1e3);
common_vendor.index.__f__("log", "at pages/login/login.vue:205", res); common_vendor.index.__f__("log", "at pages/login/login.vue:223", res);
}).catch((err) => { }).catch((err) => {
common_vendor.index.__f__("log", "at pages/login/login.vue:208", err); common_vendor.index.__f__("log", "at pages/login/login.vue:226", err);
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
_self.msgHint = err.msg ? err.msg : "获取验证码失败,请稍后重试"; _self.msgHint = err.msg ? err.msg : "获取验证码失败,请稍后重试";
_self.msgType = "error"; _self.msgType = "error";
@ -191,7 +206,7 @@ const _sfc_main = {
} }
}).catch((err) => { }).catch((err) => {
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/login/login.vue:297", err); common_vendor.index.__f__("log", "at pages/login/login.vue:315", err);
_self.msgHint = err.msg ? err.msg : "登录失败,请稍后重试"; _self.msgHint = err.msg ? err.msg : "登录失败,请稍后重试";
_self.msgType = "error"; _self.msgType = "error";
_self.$refs.msg.open(); _self.$refs.msg.open();
@ -361,5 +376,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}; };
} }
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
_sfc_main.__runtimeHooks = 2;
swan.createPage(MiniProgramPage); swan.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-baidu/pages/login/login.js.map //# sourceMappingURL=../../../.sourcemap/mp-baidu/pages/login/login.js.map

View File

@ -1,19 +1,33 @@
{ {
"appid": "118838711", "appid": "118838711",
"compilation-args": { "compilation-args": {
"common": { "common": {
"babelSetting": { "babelSetting": {
"ignore": [] "ignore": []
}, },
"enhance": true, "enhance": true,
"ignorePrefixCss": false "ignorePrefixCss": false,
"quickPreview": true
},
"selected": -2,
"forceChanged": {
"quickPreview": true,
"originMode": "optiAmd"
}
}, },
"selected": -3 "host": "baiduboxapp",
}, "projectname": "ts_aimz",
"host": "baiduboxapp", "setting": {
"projectname": "ts_aimz", "autoAudits": false,
"setting": { "urlCheck": false
"autoAudits": false, },
"urlCheck": false "swan": {
} "baiduboxapp": {
"swanJsVersion": "3.970.2",
"extensionJsVersion": "1.21.2"
}
},
"preview": {
"packageId": 1209323
}
} }