解决微信小程序首页空白问题。

This commit is contained in:
cst61
2026-02-01 09:21:11 +08:00
parent 80d6d46182
commit cc01c4dc47
454 changed files with 404 additions and 62235 deletions

View File

@@ -1,86 +0,0 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const db = common_vendor.tr.database();
db.collection("uni-id-users");
const uniIdCo = common_vendor.tr.importObject("uni-id-co");
const _sfc_main = {
emits: ["success"],
computed: {},
data() {
return {};
},
methods: {
async beforeGetphonenumber() {
return await new Promise((resolve, reject) => {
common_vendor.index.showLoading({ mask: true });
common_vendor.wx$1.checkSession({
success() {
resolve();
common_vendor.index.hideLoading();
},
fail() {
common_vendor.wx$1.login({
success({
code
}) {
common_vendor.tr.importObject("uni-id-co", {
customUI: true
}).loginByWeixin({ code }).then((e) => {
resolve();
}).catch((e) => {
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue:46", e);
reject();
}).finally((e) => {
common_vendor.index.hideLoading();
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue:53", err);
reject();
}
});
}
});
});
},
async bindMobileByMpWeixin(e) {
if (e.detail.errMsg == "getPhoneNumber:ok") {
await this.beforeGetphonenumber();
uniIdCo.bindMobileByMpWeixin(e.detail).then((e2) => {
this.$emit("success");
}).finally((e2) => {
this.closeMe();
});
} else {
this.closeMe();
}
},
async open() {
this.$refs.popup.open();
},
closeMe(e) {
this.$refs.popup.close();
}
}
};
if (!Array) {
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
_easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../../uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
_easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.closeMe && $options.closeMe(...args)),
b: common_vendor.o((...args) => $options.bindMobileByMpWeixin && $options.bindMobileByMpWeixin(...args)),
c: common_vendor.sr("popup", "e0127e04-0"),
d: common_vendor.p({
type: "bottom"
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e0127e04"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.js.map

View File

@@ -1,6 +0,0 @@
{
"component": true,
"usingComponents": {
"uni-popup": "../../../uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -1 +0,0 @@
<uni-popup wx:if="{{d}}" class="r data-v-e0127e04" u-s="{{['d']}}" u-r="popup" u-i="e0127e04-0" bind:__l="__l" u-p="{{d}}"><view class="box data-v-e0127e04"><text class="headBox data-v-e0127e04">绑定资料</text><text class="tip data-v-e0127e04">将一键获取你的手机号码绑定你的个人资料</text><view class="btnBox data-v-e0127e04"><text bindtap="{{a}}" class="close data-v-e0127e04">关闭</text><button class="agree uni-btn data-v-e0127e04" type="primary" open-type="getPhoneNumber" bindgetphonenumber="{{b}}">获取</button></view></view></uni-popup>

View File

@@ -1,143 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.uni-content.data-v-e0127e04 {
padding: 0 60rpx;
}
.login-logo.data-v-e0127e04 {
display: none;
}
@media screen and (min-width: 690px) {
.uni-content.data-v-e0127e04 {
padding: 0;
max-width: 300px;
margin-left: calc(50% - 200px);
}
}
.uni-content view.data-v-e0127e04 {
box-sizing: border-box;
}
.title.data-v-e0127e04 {
display: flex;
padding: 18px 0;
font-weight: 800;
flex-direction: column;
}
.tip.data-v-e0127e04 {
display: flex;
color: #BDBDC0;
font-size: 11px;
margin: 6px 0;
}
.uni-content.data-v-e0127e04 .uni-easyinput__content,
.input-box.data-v-e0127e04 {
height: 44px;
background-color: #F8F8F8 !important;
border-radius: 0;
font-size: 14px;
display: flex;
flex: 1;
}
.link.data-v-e0127e04 {
color: #04498c;
cursor: pointer;
}
.uni-content.data-v-e0127e04 .uni-forms-item__inner {
padding-bottom: 8px;
}
.uni-btn.data-v-e0127e04 {
text-align: center;
height: 40px;
line-height: 40px;
margin: 15px 0 10px 0;
color: #FFF !important;
border-radius: 5px;
font-size: 16px;
}
.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd.data-v-e0127e04 {
height: auto !important;
}
view.data-v-e0127e04 {
display: flex;
}
.box.data-v-e0127e04 {
background-color: #FFFFFF;
height: 200px;
width: 750rpx;
flex-direction: column;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.headBox.data-v-e0127e04 {
padding: 20rpx;
height: 80rpx;
line-height: 80rpx;
text-align: left;
font-size: 16px;
color: #333333;
margin-left: 15rpx;
}
.tip.data-v-e0127e04 {
color: #666666;
text-align: left;
justify-content: center;
margin: 10rpx 30rpx;
font-size: 18px;
}
.btnBox.data-v-e0127e04 {
margin-top: 45rpx;
justify-content: center;
flex-direction: row;
}
.close.data-v-e0127e04,
.agree.data-v-e0127e04 {
text-align: center;
width: 200rpx;
height: 80rpx;
line-height: 80rpx;
border-radius: 5px;
margin: 0 20rpx;
font-size: 14px;
}
.close.data-v-e0127e04 {
color: #999999;
border-color: #EEEEEE;
border-style: solid;
border-width: 1px;
background-color: #FFFFFF;
}
.close.data-v-e0127e04:active {
color: #989898;
background-color: #E2E2E2;
}
.agree.data-v-e0127e04 {
color: #FFFFFF;
}
.agree.data-v-e0127e04::after {
border: none;
}
.agree.data-v-e0127e04:active {
background-color: #F5F5F6;
}