登录
This commit is contained in:
@@ -36,8 +36,8 @@ const _sfc_main = {
|
||||
buttonText1: "接受邀请",
|
||||
buttonText2: "拒绝邀请"
|
||||
}),
|
||||
description: "",
|
||||
extension: ""
|
||||
description: "邀请参加PK",
|
||||
extension: "邀请参加PK"
|
||||
};
|
||||
const options = {
|
||||
to: ((_b = (_a = currentConversation == null ? void 0 : currentConversation.value) == null ? void 0 : _a.groupProfile) == null ? void 0 : _b.groupID) || ((_d = (_c = currentConversation == null ? void 0 : currentConversation.value) == null ? void 0 : _c.userProfile) == null ? void 0 : _d.userID),
|
||||
|
||||
@@ -15,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
content: { default: void 0 }
|
||||
},
|
||||
setup(__props) {
|
||||
common_vendor.ref("123");
|
||||
const props = __props;
|
||||
const custom = common_vendor.ref();
|
||||
const message = common_vendor.ref();
|
||||
|
||||
11
unpackage/dist/dev/mp-weixin/app.js
vendored
11
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -19,9 +19,16 @@ if (!Math) {
|
||||
let vueVersion = 2;
|
||||
vueVersion = 3;
|
||||
common_vendor.index.$SDKAppID = 1600086550;
|
||||
common_vendor.index.$userID = "oi";
|
||||
common_vendor.index.$userSig = "eJwtzEELwiAYxvHv4jmGWjobdInIwGCHgsFuI529tS1bQ4zou2fbjs-vgf8HnY*nxJseZYgmGC3GDdp0A9Qw8gNmfel75RxolBGOMRacMTw9JjjoTXTGGI3XpAO0f0tX6XJNORdzBWyM2qe9HhTfVabLSQCSt14Wb6NuRVOyC9nL0ssmKLwFsUHfH3s4MI4_";
|
||||
common_vendor.index.$userID = "123";
|
||||
common_vendor.index.$userSig = "eJwtzF0LgjAYhuH-suOQ132K0IkYdGAYOaQOs614GclaI4Lov7fUw*d64P4Q3XTZywZSEpoBWU0bjR0jXnHinLKFn8advUdDylwCQCGFgPmxb4-BJhdC0HTNGvH*N8WVZBx4sVTwlqrq4f2muYQKtj090GPdQhwBtaqHE9OwE1UbBu-2Xe-W5PsDP3YvSw__";
|
||||
const _sfc_main = {
|
||||
provide() {
|
||||
return {
|
||||
$global: {
|
||||
lastPage: null
|
||||
}
|
||||
};
|
||||
},
|
||||
onLaunch: function() {
|
||||
common_vendor.A.login({
|
||||
SDKAppID: common_vendor.index.$SDKAppID,
|
||||
|
||||
@@ -7770,7 +7770,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.0.107,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_AbyXCr";
|
||||
const id = "mp-weixin_6sCg0b";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
@@ -1 +1 @@
|
||||
<scroll-view scroll-y="true" class="scroll data-v-4813d59a"><uni-card wx:for="{{a}}" wx:for-item="item" u-s="{{['d']}}" class="content-list data-v-4813d59a" u-i="{{item.g}}" bind:__l="__l"><image class="headShot data-v-4813d59a" src="{{b}}" mode="scaleToFill"/><view class="content-list-title data-v-4813d59a"><view class="cardname data-v-4813d59a">{{item.a}}</view><view class="content-list-info data-v-4813d59a"><view class="{{['data-v-4813d59a', d && 'Gendermale', e && 'Genderfemale']}}"><image wx:if="{{c}}" class="Genderimg data-v-4813d59a" src="{{item.b}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-4813d59a" src="{{item.c}}" mode="scaleToFill"/><view class="age data-v-4813d59a">{{item.d}}</view></view><view class="RoomID data-v-4813d59a">房间ID:{{item.e}}</view><view class="Charm data-v-4813d59a">魅力值</view><view class="charmValue data-v-4813d59a">{{item.f}}</view></view></view></uni-card></scroll-view>
|
||||
<scroll-view scroll-y="true" class="scroll data-v-4813d59a"><uni-card wx:for="{{a}}" wx:for-item="item" u-s="{{['d']}}" class="content-list data-v-4813d59a" u-i="{{item.g}}" bind:__l="__l"><image class="headShot data-v-4813d59a" src="{{b}}" mode="scaleToFill"/><view class="content-list-title data-v-4813d59a"><view class="cardname data-v-4813d59a">{{item.a}}</view><view class="content-list-info data-v-4813d59a"><view class="{{['data-v-4813d59a', d && 'Gendermale', e && 'Genderfemale']}}"><image wx:if="{{c}}" class="Genderimg data-v-4813d59a" src="{{item.b}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-4813d59a" src="{{item.c}}" mode="scaleToFill"/><view class="age data-v-4813d59a">{{item.d}}</view></view><view class="RoomID data-v-4813d59a">房间ID:{{item.e}}</view><view class="Charm data-v-4813d59a">魅力值</view><view class="charmValue data-v-4813d59a">{{item.f}}W</view></view></view></uni-card></scroll-view>
|
||||
@@ -76,4 +76,5 @@
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
function request(urldata) {
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
const baseUrl = "http://192.168.0.218:8086" + url;
|
||||
const baseUrl = "http://192.168.0.218:8086/" + url;
|
||||
common_vendor.index.__f__("log", "at components/request.js:6", "``````````````````````````````````", userInfo);
|
||||
if (userInfo) {
|
||||
common_vendor.index.getStorage({
|
||||
@@ -25,9 +25,11 @@ function request(urldata) {
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.$global.lastPage = common_vendor.index.page.route;
|
||||
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
|
||||
}
|
||||
} else {
|
||||
this.$global.lastPage = common_vendor.index.page.route;
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Select: true
|
||||
Select: false
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -29,12 +29,12 @@ const _sfc_main = {
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o$1((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
|
||||
b: $data.Select ? 1 : "",
|
||||
c: !$data.Select ? 1 : "",
|
||||
d: common_vendor.o$1((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
|
||||
e: !$data.Select ? 1 : "",
|
||||
f: $data.Select ? 1 : "",
|
||||
a: common_vendor.o$1((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
|
||||
b: !$data.Select ? 1 : "",
|
||||
c: $data.Select ? 1 : "",
|
||||
d: common_vendor.o$1((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
|
||||
e: $data.Select ? 1 : "",
|
||||
f: !$data.Select ? 1 : "",
|
||||
g: common_vendor.o$1((...args) => $options.screening && $options.screening(...args)),
|
||||
h: common_vendor.o$1((...args) => $options.Search && $options.Search(...args)),
|
||||
i: common_assets._imports_0$2
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">实时PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">预约PK</view><view bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view><image bindtap="{{h}}" src="{{i}}" class="filter-icon data-v-ce2f6748"/></view>
|
||||
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">预约PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">实时PK</view><view bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view><image bindtap="{{h}}" src="{{i}}" class="filter-icon data-v-ce2f6748"/></view>
|
||||
@@ -33,10 +33,10 @@
|
||||
height: 39rpx;
|
||||
font-size: 42rpx;
|
||||
color: #0e1011;
|
||||
font-weight: 600;
|
||||
}
|
||||
.NoSelectcss.data-v-ce2f6748 {
|
||||
width: 108rpx;
|
||||
font-weight: 600;
|
||||
height: 29rpx;
|
||||
font-size: 31rpx;
|
||||
color: #727a7b;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ const Advertisement = () => "../../components/Advertisement/Advertisement.js";
|
||||
const contentList = () => "../../components/contentList/contentList.js";
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
@@ -13,6 +14,8 @@ const _sfc_main = {
|
||||
},
|
||||
methods: {
|
||||
goAdvertisement() {
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:34", common_vendor.index);
|
||||
this.$global.lastPage = getCurrentPages().router;
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const _sfc_main = {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {
|
||||
userinfo: "https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0",
|
||||
@@ -41,50 +42,45 @@ const _sfc_main = {
|
||||
title: "登录中...",
|
||||
mask: true
|
||||
});
|
||||
try {
|
||||
const { code } = await common_vendor.index.login({
|
||||
provider: "weixin",
|
||||
onlyAuthorize: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:68", "code", code);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:69", "code", this.name);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:70", "code", this.userinfo);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:71", "code", this.id);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:72", "code", this.userSig);
|
||||
const res = await components_request.request({
|
||||
url: "/user/inputUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.id,
|
||||
headerIcon: this.userinfo,
|
||||
nickName: this.name,
|
||||
code,
|
||||
usersig: this.userSig
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:86", "res", res);
|
||||
if (res.data.code === 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录成功",
|
||||
icon: "success"
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:92", "登录成功", res.data);
|
||||
common_vendor.index.setStorageSync("userinfo", res.data.info);
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
common_vendor.index.__f__("error", "at pages/UserInformation/UserInformation.vue:115", "登录错误:", err);
|
||||
const { code } = await common_vendor.index.login({
|
||||
provider: "weixin",
|
||||
onlyAuthorize: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:67", "code", code);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:68", "code", this.name);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:69", "code", this.userinfo);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:70", "code", this.id);
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:71", "code", this.userSig);
|
||||
const res = await components_request.request({
|
||||
url: "user/inputUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.id,
|
||||
headerIcon: this.userinfo,
|
||||
nickName: this.name,
|
||||
code,
|
||||
usersig: this.userSig
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:84", "res", res);
|
||||
if (res.code === 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请检查网络连接",
|
||||
title: "登录成功",
|
||||
icon: "success"
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:90", "登录成功", res.data);
|
||||
common_vendor.index.setStorageSync("userinfo", res.data.info);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.reLaunch({
|
||||
url: this.$global.lastPage || "/pages/Home/Home"
|
||||
// 默认页
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录失败",
|
||||
icon: "none"
|
||||
});
|
||||
} finally {
|
||||
common_vendor.index.hideLoading();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_debug_GenerateTestUserSig = require("../../components/debug/GenerateTestUserSig.js");
|
||||
const _sfc_main = {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {
|
||||
userInfo: {},
|
||||
@@ -24,53 +25,43 @@ const _sfc_main = {
|
||||
title: "登录中...",
|
||||
mask: true
|
||||
});
|
||||
try {
|
||||
const res = await components_request.request({
|
||||
url: "/user/loginWithPhoneNumber",
|
||||
method: "POST",
|
||||
data: {
|
||||
code: e.detail.code
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:46", "登录结果:", res);
|
||||
this.info = res;
|
||||
if (this.info.code === 200) {
|
||||
if (this.info.data.newAccount) {
|
||||
const sdkAppID = Number(this.info.data.chatInfo.appId);
|
||||
const userID = "administrator";
|
||||
const { userSig } = components_debug_GenerateTestUserSig.genTestUserSig({
|
||||
SDKAPPID: sdkAppID,
|
||||
SECRETKEY: this.info.data.chatInfo.appKey,
|
||||
userID
|
||||
});
|
||||
common_vendor.index.setStorageSync("userSig", userSig);
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/UserInformation/UserInformation"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
// 返回层级(默认值为 1)
|
||||
});
|
||||
}
|
||||
const res = await components_request.request({
|
||||
url: "user/loginWithPhoneNumber",
|
||||
method: "POST",
|
||||
data: {
|
||||
code: e.detail.code
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:46", "登录结果:", res);
|
||||
this.info = res;
|
||||
if (this.info.code === 200) {
|
||||
if (this.info.data.newAccount) {
|
||||
const sdkAppID = Number(this.info.data.chatInfo.appId);
|
||||
const userID = "administrator";
|
||||
const { userSig } = components_debug_GenerateTestUserSig.genTestUserSig({
|
||||
SDKAPPID: sdkAppID,
|
||||
SECRETKEY: this.info.data.chatInfo.appKey,
|
||||
userID
|
||||
});
|
||||
common_vendor.index.setStorageSync("userSig", userSig);
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/UserInformation/UserInformation"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录失败",
|
||||
icon: "none"
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.reLaunch({
|
||||
url: this.$global.lastPage || "/pages/Home/Home"
|
||||
// 默认页
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
common_vendor.index.__f__("error", "at pages/login/login.vue:87", "登录错误:", err);
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "请检查网络连接",
|
||||
title: "登录失败",
|
||||
icon: "none"
|
||||
});
|
||||
} finally {
|
||||
common_vendor.index.hideLoading();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user