localdev
This commit is contained in:
parent
57daf0f0f8
commit
cefc3d67dc
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,7 @@
|
|||||||
# OSX
|
# OSX
|
||||||
#
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/TUIKit/
|
||||||
|
/node_modules/
|
||||||
#Intellij idea
|
#Intellij idea
|
||||||
.idea/
|
.idea/
|
||||||
/idea/
|
/idea/
|
||||||
|
5
App.vue
5
App.vue
@ -259,12 +259,13 @@ body {
|
|||||||
|
|
||||||
transition-duration: 300ms;
|
transition-duration: 300ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
// uni-page-body,
|
// uni-page-body,
|
||||||
// html,
|
// html,
|
||||||
// body,
|
// body,
|
||||||
// page {
|
// page {
|
||||||
// width: 100% !important;
|
// width: 100% ;
|
||||||
// height: 100% !important;
|
// height: 100% ;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
// }
|
// }
|
||||||
</style>
|
</style>
|
||||||
|
@ -16,7 +16,8 @@ img {
|
|||||||
pointer-events:none;
|
pointer-events:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body{
|
||||||
|
height: 100% important;
|
||||||
color:#000;
|
color:#000;
|
||||||
background:#FFF;
|
background:#FFF;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chat">
|
<div class="chat" :style="{height:fn+'px'}">
|
||||||
<div :class="['tui-chat', !isPC && 'tui-chat-h5']">
|
<div :style="{height:'100%'}" :class="['tui-chat', !isPC && 'tui-chat-h5']">
|
||||||
<div
|
<div
|
||||||
v-if="!currentConversationID"
|
v-if="!currentConversationID"
|
||||||
:class="['tui-chat-default', !isPC && 'tui-chat-h5-default']"
|
:class="['tui-chat-default', !isPC && 'tui-chat-h5-default']"
|
||||||
@ -129,7 +129,7 @@ onUnload(() => {
|
|||||||
// @End uniapp use Chat only
|
// @End uniapp use Chat only
|
||||||
|
|
||||||
const emits = defineEmits(['closeChat']);
|
const emits = defineEmits(['closeChat']);
|
||||||
|
const fn = uni.getSystemInfoSync().windowHeight
|
||||||
const groupID = ref(undefined);
|
const groupID = ref(undefined);
|
||||||
const isGroup = ref(false);
|
const isGroup = ref(false);
|
||||||
const isNotInGroup = ref(false);
|
const isNotInGroup = ref(false);
|
||||||
@ -141,6 +141,8 @@ const messageInputRef = ref();
|
|||||||
const messageListRef = ref<InstanceType<typeof MessageList>>();
|
const messageListRef = ref<InstanceType<typeof MessageList>>();
|
||||||
const headerExtensionList = ref<ExtensionInfo[]>([]);
|
const headerExtensionList = ref<ExtensionInfo[]>([]);
|
||||||
const featureConfig = TUIChatConfig.getFeatureConfig();
|
const featureConfig = TUIChatConfig.getFeatureConfig();
|
||||||
|
const ht = uni.getSystemInfoSync().windowHeight
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
TUIStore.watch(StoreName.CONV, {
|
TUIStore.watch(StoreName.CONV, {
|
||||||
@ -302,4 +304,11 @@ function onCurrentConversationUpdate(conversation: IConversationModel) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss" src="./style/index.scss"></style>
|
<style scoped lang="scss" src="./style/index.scss">
|
||||||
|
.chat{
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100vh !important;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
@ -157,9 +157,11 @@ const onAt = (show: boolean) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
if (isH5) {
|
// if (isH5) {
|
||||||
emits('changeToolbarDisplayType', 'none');
|
emits('changeToolbarDisplayType', 'none');
|
||||||
}
|
// }
|
||||||
|
// 新增隐藏加号控制显示内容的逻辑
|
||||||
|
// emits('changeToolbarDisplayType', 'none');
|
||||||
};
|
};
|
||||||
|
|
||||||
const insertEmoji = (emoji: any) => {
|
const insertEmoji = (emoji: any) => {
|
||||||
|
@ -189,7 +189,7 @@ const onInput = (e: any) => {
|
|||||||
const text = e?.detail?.value;
|
const text = e?.detail?.value;
|
||||||
isEditorContentEmpty();
|
isEditorContentEmpty();
|
||||||
if (props.isGroup && (text.endsWith('@') || text.endsWith('@\n'))) {
|
if (props.isGroup && (text.endsWith('@') || text.endsWith('@\n'))) {
|
||||||
TUIGlobal?.hideKeyboard();
|
// TUIGlobal?.hideKeyboard();
|
||||||
emits('onAt', true);
|
emits('onAt', true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
:style="{height: '100%'}"
|
||||||
v-if="typeof contactInfoData === 'object' && Object.keys(contactInfoData).length"
|
v-if="typeof contactInfoData === 'object' && Object.keys(contactInfoData).length"
|
||||||
:class="['tui-contact-info', !isPC && 'tui-contact-info-h5']"
|
:class="['tui-contact-info', !isPC && 'tui-contact-info-h5']"
|
||||||
>
|
>
|
||||||
|
@ -4,13 +4,14 @@
|
|||||||
v-else-if="isShowContactList"
|
v-else-if="isShowContactList"
|
||||||
:class="['tui-contact', !isPC && 'tui-contact-h5']"
|
:class="['tui-contact', !isPC && 'tui-contact-h5']"
|
||||||
>
|
>
|
||||||
<div :class="['tui-contact-left', !isPC && 'tui-contact-h5-left']">
|
<div :class="['tui-contact-left', !isPC && 'tui-contact-h5-left']" :style="{height:ht+'px'}">
|
||||||
<!-- <ContactSearch /> -->
|
<!-- <ContactSearch /> -->
|
||||||
<ContactList :class="['tui-contact-left-list', !isPC && 'tui-contact-h5-left-list']" />
|
<ContactList :class="['tui-contact-left-list', !isPC && 'tui-contact-h5-left-list']" />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isShowContactInfo"
|
v-if="isShowContactInfo"
|
||||||
:class="['tui-contact-right', !isPC && 'tui-contact-h5-right']"
|
:class="['tui-contact-right', !isPC && 'tui-contact-h5-right']"
|
||||||
|
:style="{height:ht+'px'}"
|
||||||
>
|
>
|
||||||
<ContactInfo @switchConversation="switchConversation" />
|
<ContactInfo @switchConversation="switchConversation" />
|
||||||
</div>
|
</div>
|
||||||
@ -21,7 +22,7 @@ import { TUIStore, StoreName } from '@tencentcloud/chat-uikit-engine';
|
|||||||
import { TUIGlobal } from '@tencentcloud/universal-api';
|
import { TUIGlobal } from '@tencentcloud/universal-api';
|
||||||
import { ref, watchEffect,defineProps } from '../../adapter-vue';
|
import { ref, watchEffect,defineProps } from '../../adapter-vue';
|
||||||
import { isPC, isUniFrameWork } from '../../utils/env';
|
import { isPC, isUniFrameWork } from '../../utils/env';
|
||||||
|
const ht = uni.getSystemInfoSync().windowHeight
|
||||||
import SelectFriend from './select-friend/index.vue';
|
import SelectFriend from './select-friend/index.vue';
|
||||||
import ContactSearch from './contact-search/index.vue';
|
import ContactSearch from './contact-search/index.vue';
|
||||||
import ContactList from './contact-list/index.vue';
|
import ContactList from './contact-list/index.vue';
|
||||||
|
@ -4,13 +4,14 @@
|
|||||||
v-else-if="isShowContactList"
|
v-else-if="isShowContactList"
|
||||||
:class="['tui-contact', !isPC && 'tui-contact-h5']"
|
:class="['tui-contact', !isPC && 'tui-contact-h5']"
|
||||||
>
|
>
|
||||||
<div :class="['tui-contact-left', !isPC && 'tui-contact-h5-left']">
|
<div :class="['tui-contact-left', !isPC && 'tui-contact-h5-left']" :style="{height:ht+'px'}" >
|
||||||
<ContactSearch />
|
<ContactSearch />
|
||||||
<ContactList :class="['tui-contact-left-list', !isPC && 'tui-contact-h5-left-list']" />
|
<ContactList :class="['tui-contact-left-list', !isPC && 'tui-contact-h5-left-list']" />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isShowContactInfo"
|
v-if="isShowContactInfo"
|
||||||
:class="['tui-contact-right', !isPC && 'tui-contact-h5-right']"
|
:class="['tui-contact-right', !isPC && 'tui-contact-h5-right']"
|
||||||
|
:style="{height:ht+'px'}"
|
||||||
>
|
>
|
||||||
<ContactInfo @switchConversation="switchConversation" />
|
<ContactInfo @switchConversation="switchConversation" />
|
||||||
</div>
|
</div>
|
||||||
@ -28,7 +29,7 @@
|
|||||||
import ContactInfo from './contact-info/index.vue';
|
import ContactInfo from './contact-info/index.vue';
|
||||||
|
|
||||||
const emits = defineEmits(['switchConversation']);
|
const emits = defineEmits(['switchConversation']);
|
||||||
|
const ht = uni.getSystemInfoSync().windowHeight
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// web/h5 single page application display format, uniapp please ignore
|
// web/h5 single page application display format, uniapp please ignore
|
||||||
displayType: {
|
displayType: {
|
||||||
|
12
api/home.js
12
api/home.js
@ -61,7 +61,17 @@ export function getFloorData() {
|
|||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 获取本地生活楼层数据
|
||||||
|
* @param client_type
|
||||||
|
* @param page_type
|
||||||
|
*/
|
||||||
|
export function getFloorgetBendi() {
|
||||||
|
return http.request({
|
||||||
|
url: `/other/pageData/getBendi?clientType=H5`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 获取获取首页分类数据
|
* 获取获取首页分类数据
|
||||||
*/
|
*/
|
||||||
|
@ -284,9 +284,11 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const storedSte = uni.getStorageSync('ste');
|
||||||
let data = {
|
let data = {
|
||||||
skuId: this.goodsDetail.id,
|
skuId: this.goodsDetail.id,
|
||||||
num: this.num,
|
num: this.num,
|
||||||
|
ste:storedSte
|
||||||
};
|
};
|
||||||
|
|
||||||
if (val == "cart") {
|
if (val == "cart") {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "wzj4",
|
"name" : "wzj4",
|
||||||
"appid" : "__UNI__6DB512D",
|
"appid" : "__UNI__1F0975C",
|
||||||
"description" : "",
|
"description" : "admin",
|
||||||
"versionName" : "4.0.0",
|
"versionName" : "4.0.0",
|
||||||
"versionCode" : 4000049,
|
"versionCode" : 4000049,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
|
412
pages.json
412
pages.json
@ -103,67 +103,67 @@
|
|||||||
"navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
"enablePullDownRefresh" : false
|
"enablePullDownRefresh" : false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/vlogerInfo",
|
"path" : "pages/me/vlogerInfo",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : false //禁用原生导航栏
|
"titleNView" : false //禁用原生导航栏
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/me",
|
"path" : "pages/me/me",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : false //禁用原生导航栏
|
"titleNView" : false //禁用原生导航栏
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/myBackImg",
|
"path" : "pages/me/myBackImg",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : false //禁用原生导航栏
|
"titleNView" : false //禁用原生导航栏
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/myFace",
|
"path" : "pages/me/myFace",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : false //禁用原生导航栏
|
"titleNView" : false //禁用原生导航栏
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/myInfo",
|
"path" : "pages/me/myInfo",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改个人资料",
|
"navigationBarTitleText" : "修改个人资料",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifyNickname",
|
"path" : "pages/me/modifyNickname",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改昵称",
|
"navigationBarTitleText" : "修改昵称",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// "path" : "pages/me/modifyPass",
|
// "path" : "pages/me/modifyPass",
|
||||||
// "style" : {
|
// "style" : {
|
||||||
@ -185,127 +185,127 @@
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifyTioktokNum",
|
"path" : "pages/me/modifyTioktokNum",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改视频号",
|
"navigationBarTitleText" : "修改视频号",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifyDesc",
|
"path" : "pages/me/modifyDesc",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改简介",
|
"navigationBarTitleText" : "修改简介",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifySex",
|
"path" : "pages/me/modifySex",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改性别",
|
"navigationBarTitleText" : "修改性别",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifyBirthday",
|
"path" : "pages/me/modifyBirthday",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改生日",
|
"navigationBarTitleText" : "修改生日",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/modifyLocation",
|
"path" : "pages/me/modifyLocation",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "修改所在地",
|
"navigationBarTitleText" : "修改所在地",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27",
|
"navigationBarBackgroundColor" : "#181b27",
|
||||||
// "app-plus" : {
|
"app-plus" : {
|
||||||
// "titleNView" : {
|
"titleNView" : {
|
||||||
// "buttons" : [
|
"buttons" : [
|
||||||
// {
|
{
|
||||||
// "text" : "保存",
|
"text" : "保存",
|
||||||
// "color" : "#ef274d",
|
"color" : "#ef274d",
|
||||||
// "width" : "60px",
|
"width" : "60px",
|
||||||
// "fontSize" : "15px",
|
"fontSize" : "15px",
|
||||||
// "fontWeight" : "bold"
|
"fontWeight" : "bold"
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/chooseProvince",
|
"path" : "pages/me/chooseProvince",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "选择省份",
|
"navigationBarTitleText" : "选择省份",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/chooseCity",
|
"path" : "pages/me/chooseCity",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "选择城市",
|
"navigationBarTitleText" : "选择城市",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// "path" : "pages/me/settings",
|
// "path" : "pages/me/settings",
|
||||||
// "style" : {
|
// "style" : {
|
||||||
@ -314,30 +314,30 @@
|
|||||||
// "navigationBarBackgroundColor" : "#181b27"
|
// "navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/myFans",
|
"path" : "pages/me/myFans",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "粉丝",
|
"navigationBarTitleText" : "粉丝",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/myFollows",
|
"path" : "pages/me/myFollows",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "关注",
|
"navigationBarTitleText" : "关注",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "path" : "pages/me/chooseDistrict",
|
"path" : "pages/me/chooseDistrict",
|
||||||
// "style" : {
|
"style" : {
|
||||||
// "navigationBarTitleText" : "选择地区",
|
"navigationBarTitleText" : "选择地区",
|
||||||
// "navigationBarTextStyle" : "white",
|
"navigationBarTextStyle" : "white",
|
||||||
// "navigationBarBackgroundColor" : "#181b27"
|
"navigationBarBackgroundColor" : "#181b27"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
|
@ -541,13 +541,15 @@ export default {
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
client = "APP";
|
client = "APP";
|
||||||
// #endif
|
// #endif
|
||||||
|
const storedSte = uni.getStorageSync('ste');
|
||||||
let submit = {
|
let submit = {
|
||||||
client,
|
client,
|
||||||
way: this.routerVal.way,
|
way: this.routerVal.way,
|
||||||
remark: this.remarkVal,
|
remark: this.remarkVal,
|
||||||
parentOrderSn: "",
|
parentOrderSn: "",
|
||||||
|
ste:storedSte
|
||||||
};
|
};
|
||||||
|
console.log(submit,'===')
|
||||||
// 如果是拼团并且当前用户不是团长
|
// 如果是拼团并且当前用户不是团长
|
||||||
this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
|
this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
|
||||||
? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
|
? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
|
||||||
|
@ -788,7 +788,7 @@ export default {
|
|||||||
id: this.productId,
|
id: this.productId,
|
||||||
};
|
};
|
||||||
storage.setCartBackbtn(obj);
|
storage.setCartBackbtn(obj);
|
||||||
uni.switchTab({
|
uni.navigateTo({
|
||||||
url: "/pages/tabbar/cart/cartList",
|
url: "/pages/tabbar/cart/cartList",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<!-- 楼层装修组件 -->
|
<!-- 楼层装修组件 -->
|
||||||
<!-- <div v-for="i in 200">{{i}}</div> -->
|
<u-navbar class="navbar" :is-back="false" :is-fixed="false">
|
||||||
<tpl ref="tpl" />
|
<div class="tab-container">
|
||||||
|
<div
|
||||||
|
v-for="(item, index) in list1"
|
||||||
|
:key="index"
|
||||||
|
:class="{ active: currentTabIndex === index }"
|
||||||
|
@click="click(item)"
|
||||||
|
>
|
||||||
|
{{ item.name }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</u-navbar>
|
||||||
|
<!-- 商城 -->
|
||||||
|
<tpl ref="tpl" v-if="currentTabIndex == 1" :ste="1" />
|
||||||
|
<!-- 本地生活 -->
|
||||||
|
<tpl ref="tpl" v-if="currentTabIndex == 0" :ste="0" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -15,14 +29,26 @@ export default {
|
|||||||
background: {
|
background: {
|
||||||
backgroundColor: "#fff",
|
backgroundColor: "#fff",
|
||||||
},
|
},
|
||||||
|
list1: [
|
||||||
|
{
|
||||||
|
name: "本地生活",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "商城",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
currentTabIndex: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
tpl,
|
tpl,
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
click(item) {
|
||||||
|
this.currentTabIndex = this.list1.indexOf(item);
|
||||||
|
},
|
||||||
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
console.log("下拉刷新");
|
|
||||||
this.$refs.tpl.init();
|
this.$refs.tpl.init();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
},
|
},
|
||||||
@ -30,7 +56,28 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.wrapper{
|
.tab-container {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
// background-color: #f0f0f0;
|
||||||
|
// padding: 0 16rpx 0 0;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.tab-container div {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
.tab-container div.active {
|
||||||
|
border-bottom: 2px solid #F50505;
|
||||||
|
color:#F50505;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.wrapper {
|
||||||
|
// background: red;
|
||||||
|
}
|
||||||
|
.navbar{
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -233,9 +233,10 @@ export default {
|
|||||||
background: #ededed;
|
background: #ededed;
|
||||||
}
|
}
|
||||||
.layout {
|
.layout {
|
||||||
background: #fff;
|
// background: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
.addres {
|
.addres {
|
||||||
// width: 15%;
|
// width: 15%;
|
||||||
@ -245,7 +246,8 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.layout {
|
.layout {
|
||||||
background: #fff;
|
// background: #fff;
|
||||||
|
background: transparent;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<!-- uni 中不能使用 vue component 所以用if判断每个组件 -->
|
<!-- uni 中不能使用 vue component 所以用if判断每个组件 -->
|
||||||
<div v-for="(item,index) in pageData.list" :key="index">
|
<div v-for="(item,index) in pageData.list" :key="index">
|
||||||
<!-- 搜索栏,如果在楼层装修顶部则会自动浮动,否则不浮动 -->
|
<!-- 搜索栏,如果在楼层装修顶部则会自动浮动,否则不浮动 -->
|
||||||
<u-navbar class="navbar" v-if="item.type == 'search'" :is-back="false" :is-fixed="index ===1 ? false : true">
|
<div class="navbar" v-if="item.type == 'search'" :is-back="false" :is-fixed="false">
|
||||||
<search style="width:100%" :res="item.options" />
|
<search style="width:100%" :res="item.options" />
|
||||||
<!-- #ifndef H5 -->
|
<!-- #ifndef H5 -->
|
||||||
<!-- 扫码功能 不兼容h5 详情文档: https://uniapp.dcloud.io/api/system/barcode?id=scancode -->
|
<!-- 扫码功能 不兼容h5 详情文档: https://uniapp.dcloud.io/api/system/barcode?id=scancode -->
|
||||||
@ -11,7 +11,7 @@
|
|||||||
<u-icon name="scan" @click="scan()" color="#666" size="50"></u-icon>
|
<u-icon name="scan" @click="scan()" color="#666" size="50"></u-icon>
|
||||||
</div>
|
</div>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
</u-navbar>
|
</div>
|
||||||
<carousel v-if="item.type == 'carousel'" :res="item.options" />
|
<carousel v-if="item.type == 'carousel'" :res="item.options" />
|
||||||
<titleLayout v-if="item.type == 'title'" :res="item.options" />
|
<titleLayout v-if="item.type == 'title'" :res="item.options" />
|
||||||
<leftOneRightTwo v-if="item.type == 'leftOneRightTwo'" :res="item.options" />
|
<leftOneRightTwo v-if="item.type == 'leftOneRightTwo'" :res="item.options" />
|
||||||
@ -62,7 +62,7 @@ import tpl_goods from "@/pages/tabbar/home/template/tpl_goods"; //商品分类
|
|||||||
import Talent from "@/pages/tabbar/home/template/Talent"; //达人店
|
import Talent from "@/pages/tabbar/home/template/Talent"; //达人店
|
||||||
import tpl_activity from "@/pages/tabbar/home/template/tpl_activity"; //活动
|
import tpl_activity from "@/pages/tabbar/home/template/tpl_activity"; //活动
|
||||||
// 结束引用组件
|
// 结束引用组件
|
||||||
import { getFloorData } from "@/api/home"; //获取楼层装修接口
|
import { getFloorData ,getFloorgetBendi} from "@/api/home"; //获取楼层装修接口
|
||||||
import permision from "@/js_sdk/wa-permission/permission.js"; //权限工具类
|
import permision from "@/js_sdk/wa-permission/permission.js"; //权限工具类
|
||||||
import config from "@/config/config";
|
import config from "@/config/config";
|
||||||
// TODO 后续开发
|
// TODO 后续开发
|
||||||
@ -101,7 +101,17 @@ export default {
|
|||||||
// joinGroup: tpl_join_group,
|
// joinGroup: tpl_join_group,
|
||||||
// integral: tpl_integral,
|
// integral: tpl_integral,
|
||||||
},
|
},
|
||||||
|
props: {
|
||||||
|
ste: {
|
||||||
|
type: Number,
|
||||||
|
default: 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
ste(val) {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
@ -109,19 +119,32 @@ export default {
|
|||||||
uni.showShareMenu({ withShareTicket: true });
|
uni.showShareMenu({ withShareTicket: true });
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
// provide() {
|
||||||
|
// return {
|
||||||
|
// ste: this.ste,
|
||||||
|
// };
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 实例化首页数据楼层
|
* 实例化首页数据楼层
|
||||||
*/
|
*/
|
||||||
init() {
|
init() {
|
||||||
|
uni.setStorageSync('ste', this.ste); // 存储 ste 的值
|
||||||
this.pageData = "";
|
this.pageData = "";
|
||||||
getFloorData().then((res) => {
|
if (this.ste == 1) {
|
||||||
|
getFloorData().then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.pageData = JSON.parse(res.data.result.pageData);
|
this.pageData = JSON.parse(res.data.result.pageData);
|
||||||
console.log(this.pageData.list);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
getFloorgetBendi().then((res) => {
|
||||||
|
if (res.data.success) {
|
||||||
|
this.pageData = JSON.parse(res.data.result.pageData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -224,7 +247,17 @@ export default {
|
|||||||
.wrapper{
|
.wrapper{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.navbar-right {
|
.navbar{
|
||||||
padding: 0 16rpx 0 0;
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background:white;
|
||||||
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
.navbar-right {
|
||||||
|
// padding: 0 16rpx 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -35,11 +35,11 @@
|
|||||||
<!-- 搜索添加 -->
|
<!-- 搜索添加 -->
|
||||||
<TUIContactsea v-if="statue == 2" />
|
<TUIContactsea v-if="statue == 2" />
|
||||||
<!-- 联系人 -->
|
<!-- 联系人 -->
|
||||||
<TUIContact v-else-if="statue == 1" />
|
<TUIContact v-else-if="statue == 1" style="height: 100%;" />
|
||||||
<SelectFriend v-else-if="statue == 3" @con="confn" />
|
<SelectFriend v-else-if="statue == 3" @con="confn" />
|
||||||
<SelectFriendqlioa v-else-if="statue == 4" @concen="concen" />
|
<SelectFriendqlioa v-else-if="statue == 4" @concen="concen" />
|
||||||
<!-- 会话 -->
|
<!-- 会话 -->
|
||||||
<TUIConversation v-else />
|
<TUIConversation style="height: 100%;" v-else />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -85,15 +85,11 @@ export default {
|
|||||||
getUserimInfo()
|
getUserimInfo()
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
console.log(data);
|
|
||||||
const par = data.result;
|
const par = data.result;
|
||||||
uni.$SDKAppID = par.sdkAppId; // Your SDKAppID
|
|
||||||
uni.$userID = par.userID; // Your userID
|
|
||||||
uni.$userSig = par.userSig;
|
|
||||||
TUILogin.login({
|
TUILogin.login({
|
||||||
SDKAppID: uni.$SDKAppID,
|
SDKAppID: par.sdkAppId,
|
||||||
userID: uni.$userID,
|
userID: par.userID,
|
||||||
userSig: uni.$userSig,
|
userSig: par.userSig,
|
||||||
useUploadPlugin: true, // If you need to send rich media messages, please set to true.
|
useUploadPlugin: true, // If you need to send rich media messages, please set to true.
|
||||||
framework: `vue${vueVersion}`, // framework used vue2 / vue3
|
framework: `vue${vueVersion}`, // framework used vue2 / vue3
|
||||||
});
|
});
|
||||||
@ -164,7 +160,15 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
|
uni-page-body,
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
page {
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.jolkp {
|
.jolkp {
|
||||||
height: 66px;
|
height: 66px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -281,4 +285,5 @@ export default {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user