登录
This commit is contained in:
13
App.vue
13
App.vue
@@ -2,6 +2,8 @@
|
||||
import { TUILogin } from '@tencentcloud/tui-core';
|
||||
// #ifdef APP-PLUS || H5
|
||||
import { TUIChatKit } from './TUIKit';
|
||||
|
||||
|
||||
TUIChatKit.init();
|
||||
// #endif
|
||||
|
||||
@@ -15,10 +17,17 @@ vueVersion = 3;
|
||||
// Deploy production environment please get it from your server.
|
||||
// View https://cloud.tencent.com/document/product/269/32688
|
||||
uni.$SDKAppID = 1600086550; // Your SDKAppID
|
||||
uni.$userID = 'oi'; // Your userID
|
||||
uni.$userSig = 'eJwtzEELwiAYxvHv4jmGWjobdInIwGCHgsFuI529tS1bQ4zou2fbjs-vgf8HnY*nxJseZYgmGC3GDdp0A9Qw8gNmfel75RxolBGOMRacMTw9JjjoTXTGGI3XpAO0f0tX6XJNORdzBWyM2qe9HhTfVabLSQCSt14Wb6NuRVOyC9nL0ssmKLwFsUHfH3s4MI4_'; // Your userSig
|
||||
uni.$userID = '123'; // Your userID
|
||||
uni.$userSig = 'eJwtzF0LgjAYhuH-suOQ132K0IkYdGAYOaQOs614GclaI4Lov7fUw*d64P4Q3XTZywZSEpoBWU0bjR0jXnHinLKFn8advUdDylwCQCGFgPmxb4-BJhdC0HTNGvH*N8WVZBx4sVTwlqrq4f2muYQKtj090GPdQhwBtaqHE9OwE1UbBu-2Xe-W5PsDP3YvSw__'; // Your userSig
|
||||
|
||||
export default {
|
||||
provide() {
|
||||
return {
|
||||
$global: {
|
||||
lastPage: null
|
||||
}
|
||||
}
|
||||
},
|
||||
onLaunch: function () {
|
||||
TUILogin.login({
|
||||
SDKAppID: uni.$SDKAppID,
|
||||
|
||||
@@ -22,21 +22,14 @@ import TUIChatConfig from "../../config";
|
||||
import ToolbarItemContainer from "../toolbar-item-container/index.vue";
|
||||
import InvitationDark from "../../../../assets/icon/InvitationDark.png";
|
||||
import InvitationLight from "../../../../assets/icon/InvitationLight.png";
|
||||
import { CHAT_MSG_CUSTOM_TYPE } from "../../../../constant";
|
||||
import { ref } from "vue";
|
||||
import TUIChatEngine, {
|
||||
TUITranslateService,
|
||||
TUIStore,
|
||||
StoreName,
|
||||
IConversationModel,
|
||||
TUIChatService,
|
||||
SendMessageParams,
|
||||
SendMessageOptions,
|
||||
} from "@tencentcloud/chat-uikit-engine";
|
||||
import { isEnabledMessageReadReceiptGlobal } from "../../utils/utils";
|
||||
import OfflinePushInfoManager, {
|
||||
IOfflinePushInfoCreateParams,
|
||||
} from "../../offlinePushInfoManager/index";
|
||||
import OfflinePushInfoManager from "../../offlinePushInfoManager/index";
|
||||
|
||||
const evaluateIcon =
|
||||
TUIChatConfig.getTheme() === "dark" ? InvitationDark : InvitationLight;
|
||||
@@ -65,8 +58,8 @@ const submitEvaluate = () => {
|
||||
buttonText1: "接受邀请",
|
||||
buttonText2: "拒绝邀请",
|
||||
}),
|
||||
description: "",
|
||||
extension: "",
|
||||
description: "邀请参加PK",
|
||||
extension: "邀请参加PK",
|
||||
};
|
||||
|
||||
//`````````````````````````````````````````````````````
|
||||
|
||||
@@ -102,11 +102,18 @@ import { CHAT_MSG_CUSTOM_TYPE } from '../../../../constant';
|
||||
import { ICustomMessagePayload } from '../../../../interface';
|
||||
import Icon from '../../../common/Icon.vue';
|
||||
import star from '../../../../assets/icon/star-light.png';
|
||||
import TUIChatEngine, {
|
||||
TUIStore,
|
||||
StoreName,
|
||||
} from "@tencentcloud/chat-uikit-engine";
|
||||
interface Props {
|
||||
messageItem: IMessageModel;
|
||||
content: any;
|
||||
}
|
||||
//```````````````````````````````````````````````````
|
||||
const currentConversation = ref('123');
|
||||
|
||||
//```````````````````````````````````````````````````
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
messageItem: undefined,
|
||||
content: undefined,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</view>
|
||||
<view class="RoomID">房间ID:{{ item.id }}</view>
|
||||
<view class="Charm">魅力值</view>
|
||||
<view class="charmValue"> {{ item.score }}</view>
|
||||
<view class="charmValue"> {{ item.score }}W</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- `````````````````````````````````````````````````````` -->
|
||||
@@ -218,5 +218,6 @@ export default {
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
export default function request(urldata) {
|
||||
const {url, data, method, header,userInfo} = urldata;
|
||||
const baseUrl =
|
||||
"http://192.168.0.218:8086"
|
||||
+url;
|
||||
console.log("``````````````````````````````````",userInfo);
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
const baseUrl =
|
||||
"http://192.168.0.218:8086/"
|
||||
+ url;
|
||||
console.log("``````````````````````````````````", userInfo);
|
||||
if (userInfo) {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
if(res.data){
|
||||
if(res.data.nickName){
|
||||
if (res.data) {
|
||||
if (res.data.nickName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: baseUrl,
|
||||
@@ -24,16 +24,18 @@ export default function request(urldata) {
|
||||
}
|
||||
});
|
||||
});
|
||||
}else{
|
||||
uni.reLaunch({ url: "/pages/UserInformation/UserInformation"})
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.reLaunch({ url: "/pages/UserInformation/UserInformation" })
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
return new Promise((resolve, reject) => {
|
||||
});
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: baseUrl,
|
||||
data: data,
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<view class="topNavigation">
|
||||
<view
|
||||
@click="RealTimePk"
|
||||
:class="{ Selectcss: Select, NoSelectcss: !Select }"
|
||||
class="RealTime"
|
||||
>实时PK</view
|
||||
>
|
||||
<view
|
||||
@click="MakeAppointmentPK"
|
||||
:class="{ Selectcss: !Select, NoSelectcss: Select }"
|
||||
class="MakeAppointment"
|
||||
class="RealTime"
|
||||
>预约PK</view
|
||||
>
|
||||
<view
|
||||
@click="RealTimePk"
|
||||
:class="{ Selectcss: Select, NoSelectcss: !Select }"
|
||||
class="MakeAppointment"
|
||||
>实时PK</view
|
||||
>
|
||||
<view @click="screening" class="Screening">筛选</view>
|
||||
<image @click="Search" src="../../static/Searching.png" class="filter-icon" />
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Select: true,
|
||||
Select: false,
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -82,11 +82,11 @@ export default {
|
||||
height: 39rpx;
|
||||
font-size: 42rpx;
|
||||
color: #0e1011;
|
||||
font-weight: 600;
|
||||
}
|
||||
.NoSelectcss {
|
||||
width: 108rpx;
|
||||
font-weight: 600;
|
||||
height: 29rpx;
|
||||
font-size: 31rpx;
|
||||
color: #727a7b;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -22,6 +22,7 @@ import Advertisement from "../../components/Advertisement/Advertisement";
|
||||
import contentList from "../../components/contentList/contentList";
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
export default {
|
||||
inject: ['$global'],
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
@@ -30,6 +31,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
goAdvertisement(){
|
||||
console.log(uni);
|
||||
this.$global.lastPage = getCurrentPages().router;
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
},
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
import request from "../../components/request.js";
|
||||
|
||||
export default {
|
||||
inject: ['$global'],
|
||||
data() {
|
||||
return {
|
||||
userinfo:
|
||||
@@ -59,8 +60,6 @@ export default {
|
||||
title: "登录中...",
|
||||
mask: true,
|
||||
});
|
||||
|
||||
try {
|
||||
const { code } = await uni.login({
|
||||
provider: "weixin",
|
||||
onlyAuthorize: true,
|
||||
@@ -70,9 +69,8 @@ export default {
|
||||
console.log("code", this.userinfo);
|
||||
console.log("code", this.id);
|
||||
console.log("code", this.userSig);
|
||||
|
||||
const res = await request({
|
||||
url: "/user/inputUserInfo",
|
||||
url: "user/inputUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.id,
|
||||
@@ -84,22 +82,19 @@ export default {
|
||||
userInfo: false,
|
||||
});
|
||||
console.log("res", res);
|
||||
if (res.data.code === 200) {
|
||||
if (res.code === 200) {
|
||||
uni.showToast({
|
||||
title: "登录成功",
|
||||
icon: "success",
|
||||
});
|
||||
console.log("登录成功", res.data);
|
||||
uni.setStorageSync("userinfo", res.data.info);
|
||||
uni.hideLoading();
|
||||
|
||||
//```````````````````````````````````````````````````````````````````````登录成功后跳转回原页面 或 首页
|
||||
// const fromPage = decodeURIComponent(options.from || "");
|
||||
// if (fromPage) {
|
||||
// uni.redirectTo({
|
||||
// url: fromPage,
|
||||
// });
|
||||
// } else {
|
||||
// uni.switchTab({ url: "/pages/index/index" }); // 默认首页
|
||||
// }
|
||||
uni.reLaunch({
|
||||
url: this.$global.lastPage || "/pages/Home/Home", // 默认页
|
||||
});
|
||||
//````````````````````````````````````````````````````````````````````
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -107,19 +102,6 @@ export default {
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (err) {
|
||||
console.error("登录错误:", err);
|
||||
uni.showToast({
|
||||
title: "请检查网络连接",
|
||||
icon: "none",
|
||||
});
|
||||
} finally {
|
||||
uni.hideLoading();
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -13,6 +13,7 @@ import request from "../../components/request.js";
|
||||
import genTestUserSig from "../../components/debug/GenerateTestUserSig.js";
|
||||
// const genTestUserSig = require('../../components/debug/GenerateTestUserSig.js');
|
||||
export default {
|
||||
inject: ['$global'],
|
||||
data() {
|
||||
return {
|
||||
userInfo: {},
|
||||
@@ -34,9 +35,8 @@ export default {
|
||||
title: "登录中...",
|
||||
mask: true,
|
||||
});
|
||||
try {
|
||||
const res = await request({
|
||||
url: "/user/loginWithPhoneNumber",
|
||||
url: "user/loginWithPhoneNumber",
|
||||
method: "POST",
|
||||
data: {
|
||||
code: e.detail.code,
|
||||
@@ -62,20 +62,10 @@ export default {
|
||||
} else {
|
||||
uni.setStorageSync("userinfo", this.info.data.info);
|
||||
uni.hideLoading();
|
||||
// `
|
||||
uni.navigateBack({
|
||||
delta: 1, // 返回层级(默认值为 1)
|
||||
});
|
||||
// `································································登录成功后跳转回原页面 或 首页
|
||||
// const fromPage = decodeURIComponent(options.from || "");
|
||||
// if (fromPage) {
|
||||
// uni.redirectTo({
|
||||
// url: fromPage,
|
||||
// });
|
||||
// } else {
|
||||
// uni.switchTab({ url: "/pages/index/index" }); // 默认首页
|
||||
// }
|
||||
// `·································································
|
||||
//跳转原来页面否则首页
|
||||
uni.reLaunch({
|
||||
url: this.$global.lastPage || "/pages/Home/Home", // 默认页
|
||||
});
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -83,15 +73,6 @@ export default {
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("登录错误:", err);
|
||||
uni.showToast({
|
||||
title: "请检查网络连接",
|
||||
icon: "none",
|
||||
});
|
||||
} finally {
|
||||
uni.hideLoading();
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\nimport { TUILogin } from '@tencentcloud/tui-core';\r\n\r\n\r\n\r\n\r\n\r\nlet vueVersion = 2;\r\n\r\nvueVersion = 3;\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\nuni.$SDKAppID = 1600086550; // Your SDKAppID\r\nuni.$userID = 'oi'; // Your userID\r\nuni.$userSig = 'eJwtzEELwiAYxvHv4jmGWjobdInIwGCHgsFuI529tS1bQ4zou2fbjs-vgf8HnY*nxJseZYgmGC3GDdp0A9Qw8gNmfel75RxolBGOMRacMTw9JjjoTXTGGI3XpAO0f0tX6XJNORdzBWyM2qe9HhTfVabLSQCSt14Wb6NuRVOyC9nL0ssmKLwFsUHfH3s4MI4_'; // Your userSig\r\n\r\nexport default {\r\n onLaunch: function () {\r\n\t TUILogin.login({\r\n\t SDKAppID: uni.$SDKAppID,\r\n\t userID: uni.$userID, \r\n\t userSig: uni.$userSig, \r\n\t useUploadPlugin: true, // If you need to send rich media messages, please set to true.\r\n\t framework: `vue${vueVersion}` // framework used vue2 / vue3\r\n\t }).catch(() => {});\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,html,body,page {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","TUILogin","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;AAOA,IAAI,aAAa;AAEjB,aAAa;AAObA,cAAAA,MAAI,YAAY;AAChBA,cAAAA,MAAI,UAAU;AACdA,cAAAA,MAAI,WAAW;AAEf,MAAe,YAAA;AAAA,EACb,UAAU,WAAY;AACtBC,kBAAAA,EAAS,MAAM;AAAA,MACb,UAAUD,cAAI,MAAA;AAAA,MACd,QAAQA,cAAI,MAAA;AAAA,MACZ,SAASA,cAAI,MAAA;AAAA,MACb,iBAAiB;AAAA;AAAA,MACjB,WAAW,MAAM,UAAU;AAAA;AAAA,IAAA,CAC5B,EAAE,MAAM,MAAM;AAAA,IAAA,CAAE;AAAA,EACjB;AACF;ACfO,SAAS,YAAY;AAC1B,QAAM,MAAME,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\nimport { TUILogin } from '@tencentcloud/tui-core';\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nlet vueVersion = 2;\r\n\r\nvueVersion = 3;\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\nuni.$SDKAppID = 1600086550; // Your SDKAppID\r\nuni.$userID = '123'; // Your userID\r\nuni.$userSig = 'eJwtzF0LgjAYhuH-suOQ132K0IkYdGAYOaQOs614GclaI4Lov7fUw*d64P4Q3XTZywZSEpoBWU0bjR0jXnHinLKFn8advUdDylwCQCGFgPmxb4-BJhdC0HTNGvH*N8WVZBx4sVTwlqrq4f2muYQKtj090GPdQhwBtaqHE9OwE1UbBu-2Xe-W5PsDP3YvSw__'; // Your userSig\r\n\r\nexport default {\r\n\tprovide() {\r\n return {\r\n $global: {\r\n lastPage: null\r\n }\r\n }\r\n },\r\n onLaunch: function () {\r\n\t TUILogin.login({\r\n\t SDKAppID: uni.$SDKAppID,\r\n\t userID: uni.$userID, \r\n\t userSig: uni.$userSig, \r\n\t useUploadPlugin: true, // If you need to send rich media messages, please set to true.\r\n\t framework: `vue${vueVersion}` // framework used vue2 / vue3\r\n\t }).catch(() => {});\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,html,body,page {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","TUILogin","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;AASA,IAAI,aAAa;AAEjB,aAAa;AAObA,cAAAA,MAAI,YAAY;AAChBA,cAAAA,MAAI,UAAU;AACdA,cAAAA,MAAI,WAAW;AAEf,MAAe,YAAA;AAAA,EACd,UAAU;AACA,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AAAA,EACA,UAAU,WAAY;AACtBC,kBAAAA,EAAS,MAAM;AAAA,MACb,UAAUD,cAAI,MAAA;AAAA,MACd,QAAQA,cAAI,MAAA;AAAA,MACZ,SAASA,cAAI,MAAA;AAAA,MACb,iBAAiB;AAAA;AAAA,MACjB,WAAW,MAAM,UAAU;AAAA;AAAA,IAAA,CAC5B,EAAE,MAAM,MAAM;AAAA,IAAA,CAAE;AAAA,EACjB;AACF;ACxBO,SAAS,YAAY;AAC1B,QAAM,MAAME,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"request.js","sources":["components/request.js"],"sourcesContent":["export default function request(urldata) {\r\n const {url, data, method, header,userInfo} = urldata;\r\n const baseUrl = \r\n \"http://192.168.0.218:8086\"\r\n +url;\r\n console.log(\"``````````````````````````````````\",userInfo);\r\n if (userInfo) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n if(res.data){\r\n if(res.data.nickName){\r\n return new Promise((resolve, reject) => {\r\n uni.request({\r\n url: baseUrl,\r\n data: data,\r\n method: method,\r\n header: header,\r\n success: function (res) {\r\n resolve(res.data);\r\n },\r\n fail: function (res) {\r\n reject(res);\r\n }\r\n });\r\n });\r\n }else{\r\n uni.reLaunch({ url: \"/pages/UserInformation/UserInformation\"})\r\n }\r\n }else{\r\n uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n }\r\n });\r\n }else{\r\n return new Promise((resolve, reject) => {\r\n uni.request({\r\n url: baseUrl,\r\n data: data,\r\n method: method,\r\n header: header,\r\n success: function (res) {\r\n resolve(res.data);\r\n },\r\n fail: function (res) {\r\n reject(res);\r\n }\r\n });\r\n });\r\n }\r\n\r\n}"],"names":["uni","res"],"mappings":";;AAAe,SAAS,QAAQ,SAAS;AACrC,QAAM,EAAC,KAAK,MAAM,QAAQ,QAAO,SAAQ,IAAI;AAC7C,QAAM,UACN,8BACC;AACDA,gBAAA,MAAA,MAAA,OAAA,8BAAY,sCAAqC,QAAQ;AACzD,MAAI,UAAU;AACVA,kBAAAA,MAAI,WAAW;AAAA,MACX,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AACd,YAAG,IAAI,MAAK;AACR,cAAG,IAAI,KAAK,UAAS;AACjB,mBAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACpCA,4BAAAA,MAAI,QAAQ;AAAA,gBACR,KAAK;AAAA,gBACL;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA,SAAS,SAAUC,MAAK;AACpB,0BAAQA,KAAI,IAAI;AAAA,gBACnB;AAAA,gBACD,MAAM,SAAUA,MAAK;AACjB,yBAAOA,IAAG;AAAA,gBACb;AAAA,cACjC,CAA6B;AAAA,YAC7B,CAAyB;AAAA,UACzB,OAAyB;AACDD,0BAAAA,MAAI,SAAS,EAAE,KAAK,yCAAwC,CAAC;AAAA,UAChE;AAAA,QACrB,OAAqB;AACDA,wBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAoB,CAAE;AAAA,QAC/C;AAAA,MACJ;AAAA,IACb,CAAW;AAAA,EACX,OAAS;AACA,WAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACrCA,oBAAAA,MAAI,QAAQ;AAAA,QACR,KAAK;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA,SAAS,SAAU,KAAK;AACpB,kBAAQ,IAAI,IAAI;AAAA,QACnB;AAAA,QACD,MAAM,SAAU,KAAK;AACjB,iBAAO,GAAG;AAAA,QACb;AAAA,MACjB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ;AAEL;;"}
|
||||
{"version":3,"file":"request.js","sources":["components/request.js"],"sourcesContent":["export default function request(urldata) {\r\n const { url, data, method, header, userInfo } = urldata;\r\n const baseUrl =\r\n \"http://192.168.0.218:8086/\"\r\n + url;\r\n console.log(\"``````````````````````````````````\", userInfo);\r\n if (userInfo) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n if (res.data) {\r\n if (res.data.nickName) {\r\n return new Promise((resolve, reject) => {\r\n uni.request({\r\n url: baseUrl,\r\n data: data,\r\n method: method,\r\n header: header,\r\n success: function (res) {\r\n resolve(res.data);\r\n },\r\n fail: function (res) {\r\n reject(res);\r\n }\r\n });\r\n });\r\n } else {\r\n this.$global.lastPage = uni.page.route;\r\n uni.reLaunch({ url: \"/pages/UserInformation/UserInformation\" })\r\n }\r\n } else {\r\n this.$global.lastPage = uni.page.route;\r\n uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n }\r\n });\r\n } else {\r\n return new Promise((resolve, reject) => {\r\n uni.request({\r\n url: baseUrl,\r\n data: data,\r\n method: method,\r\n header: header,\r\n success: function (res) {\r\n resolve(res.data);\r\n },\r\n fail: function (res) {\r\n reject(res);\r\n }\r\n });\r\n });\r\n }\r\n\r\n}"],"names":["uni","res"],"mappings":";;AAAe,SAAS,QAAQ,SAAS;AACrC,QAAM,EAAE,KAAK,MAAM,QAAQ,QAAQ,SAAU,IAAG;AAChD,QAAM,UACF,+BACE;AACNA,gBAAY,MAAA,MAAA,OAAA,8BAAA,sCAAsC,QAAQ;AAC1D,MAAI,UAAU;AACVA,kBAAAA,MAAI,WAAW;AAAA,MACX,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AACd,YAAI,IAAI,MAAM;AACV,cAAI,IAAI,KAAK,UAAU;AACnB,mBAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACpCA,4BAAAA,MAAI,QAAQ;AAAA,gBACR,KAAK;AAAA,gBACL;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA,SAAS,SAAUC,MAAK;AACpB,0BAAQA,KAAI,IAAI;AAAA,gBACnB;AAAA,gBACD,MAAM,SAAUA,MAAK;AACjB,yBAAOA,IAAG;AAAA,gBACb;AAAA,cACjC,CAA6B;AAAA,YAC7B,CAAyB;AAAA,UACzB,OAA2B;AACH,iBAAK,QAAQ,WAAWD,cAAAA,MAAI,KAAK;AACjCA,0BAAAA,MAAI,SAAS,EAAE,KAAK,yCAAwC,CAAE;AAAA,UACjE;AAAA,QACrB,OAAuB;AACH,eAAK,QAAQ,WAAWA,cAAAA,MAAI,KAAK;AACjCA,wBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAoB,CAAE;AAAA,QAC/C;AAAA,MACJ;AAAA,IACb,CAAS;AAAA,EACT,OAAW;AACH,WAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACpCA,oBAAAA,MAAI,QAAQ;AAAA,QACR,KAAK;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA,SAAS,SAAU,KAAK;AACpB,kBAAQ,IAAI,IAAI;AAAA,QACnB;AAAA,QACD,MAAM,SAAU,KAAK;AACjB,iBAAO,GAAG;AAAA,QACb;AAAA,MACjB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ;AAEL;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"topNavigation.js","sources":["components/topNavigation/topNavigation.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RvcE5hdmlnYXRpb24vdG9wTmF2aWdhdGlvbi52dWU"],"sourcesContent":["<template>\r\n <view class=\"topNavigation\">\r\n <view\r\n @click=\"RealTimePk\"\r\n :class=\"{ Selectcss: Select, NoSelectcss: !Select }\"\r\n class=\"RealTime\"\r\n >实时PK</view\r\n >\r\n <view\r\n @click=\"MakeAppointmentPK\"\r\n :class=\"{ Selectcss: !Select, NoSelectcss: Select }\"\r\n class=\"MakeAppointment\"\r\n >预约PK</view\r\n >\r\n <view @click=\"screening\" class=\"Screening\">筛选</view>\r\n <image @click=\"Search\" src=\"../../static/Searching.png\" class=\"filter-icon\" />\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n Select: true,\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");//触发预约PK事件\r\n },\r\n screening() {\r\n this.$emit(\"screening\");//触发筛选事件\r\n },\r\n Search() {\r\n this.$emit(\"Search\");//触发搜索事件\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.topNavigation {\r\n width: 100%;\r\n height: 114.5rpx;\r\n display: flex;\r\n align-items: center;\r\n}\r\n.Screening {\r\n width: 93rpx;\r\n height: 50rpx;\r\n background: #ffffff;\r\n border-radius: 4rpx;\r\n font-size: 23rpx;\r\n color: #3b3b3b;\r\n text-align: center;\r\n line-height: 50rpx;\r\n}\r\n.filter-icon {\r\n width: 33rpx;\r\n height: 33rpx;\r\n}\r\n.RealTime {\r\n margin: 0 39rpx 0 41rpx;\r\n}\r\n.MakeAppointment {\r\n margin-right: 233rpx;\r\n}\r\n.Screening {\r\n margin-right: 20rpx;\r\n}\r\n.Selectcss {\r\n width: 146rpx;\r\n height: 39rpx;\r\n font-size: 42rpx;\r\n color: #0e1011;\r\n}\r\n.NoSelectcss {\r\n width: 108rpx;\r\n height: 29rpx;\r\n font-size: 31rpx;\r\n color: #727a7b;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/components/topNavigation/topNavigation.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;AAoBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA;EAEX;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;AAAA,IACD,YAAY;AACV,WAAK,MAAM,WAAW;AAAA,IACvB;AAAA,IACD,SAAS;AACP,WAAK,MAAM,QAAQ;AAAA,IACpB;AAAA,EACF;AACH;;;;;;;;;;;;;;;AC7CA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"topNavigation.js","sources":["components/topNavigation/topNavigation.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RvcE5hdmlnYXRpb24vdG9wTmF2aWdhdGlvbi52dWU"],"sourcesContent":["<template>\r\n <view class=\"topNavigation\">\r\n <view\r\n @click=\"MakeAppointmentPK\"\r\n :class=\"{ Selectcss: !Select, NoSelectcss: Select }\"\r\n class=\"RealTime\"\r\n >预约PK</view\r\n >\r\n <view\r\n @click=\"RealTimePk\"\r\n :class=\"{ Selectcss: Select, NoSelectcss: !Select }\"\r\n class=\"MakeAppointment\"\r\n >实时PK</view\r\n >\r\n <view @click=\"screening\" class=\"Screening\">筛选</view>\r\n <image @click=\"Search\" src=\"../../static/Searching.png\" class=\"filter-icon\" />\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n Select: false,\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");//触发预约PK事件\r\n },\r\n screening() {\r\n this.$emit(\"screening\");//触发筛选事件\r\n },\r\n Search() {\r\n this.$emit(\"Search\");//触发搜索事件\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.topNavigation {\r\n width: 100%;\r\n height: 114.5rpx;\r\n display: flex;\r\n align-items: center;\r\n}\r\n.Screening {\r\n width: 93rpx;\r\n height: 50rpx;\r\n background: #ffffff;\r\n border-radius: 4rpx;\r\n font-size: 23rpx;\r\n color: #3b3b3b;\r\n text-align: center;\r\n line-height: 50rpx;\r\n}\r\n.filter-icon {\r\n width: 33rpx;\r\n height: 33rpx;\r\n}\r\n.RealTime {\r\n margin: 0 39rpx 0 41rpx;\r\n}\r\n.MakeAppointment {\r\n margin-right: 233rpx;\r\n}\r\n.Screening {\r\n margin-right: 20rpx;\r\n}\r\n.Selectcss {\r\n width: 146rpx;\r\n height: 39rpx;\r\n font-size: 42rpx;\r\n color: #0e1011;\r\n font-weight: 600;\r\n}\r\n.NoSelectcss {\r\n font-weight: 600;\r\n height: 29rpx;\r\n color: #727a7b;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/components/topNavigation/topNavigation.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;AAoBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA;EAEX;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;AAAA,IACD,YAAY;AACV,WAAK,MAAM,WAAW;AAAA,IACvB;AAAA,IACD,SAAS;AACP,WAAK,MAAM,QAAQ;AAAA,IACpB;AAAA,EACF;AACH;;;;;;;;;;;;;;;AC7CA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n // this.requestSomething();\r\n },\r\n methods: {\r\n goAdvertisement(){\r\n uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 1300rpx;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,kBAAiB;AACfA,oBAAAA,MAAI,WAAW,EAAE,KAAK,sBAAsB;AAAA,IAC9C;AAAA,EACD;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;ACxCA,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n inject: ['$global'],\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n // this.requestSomething();\r\n },\r\n methods: {\r\n goAdvertisement(){\r\n console.log(uni);\r\n this.$global.lastPage = getCurrentPages().router;\r\n uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 1300rpx;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,QAAQ,CAAC,SAAS;AAAA,EAClB,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,kBAAiB;AACfA,oBAAAA,MAAY,MAAA,OAAA,6BAAAA,cAAG,KAAA;AACf,WAAK,QAAQ,WAAW,gBAAe,EAAG;AAC1CA,oBAAAA,MAAI,WAAW,EAAE,KAAK,sBAAsB;AAAA,IAC9C;AAAA,EACD;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;AC3CA,GAAG,WAAW,eAAe;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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