优化
This commit is contained in:
@@ -1,45 +1,57 @@
|
||||
<template>
|
||||
<view class="forum">
|
||||
<view class="bg">
|
||||
<image class="bgImg" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill" />
|
||||
<view class="forum">
|
||||
<view class="bg">
|
||||
<image
|
||||
class="bgImg"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="title">论坛</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx;"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<tabBar :tabIndex="1"></tabBar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
},
|
||||
components: {
|
||||
tabBar
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === "menu") {
|
||||
return {
|
||||
title: "分享",
|
||||
path: getCurrentPages()[getCurrentPages().length - 1].route,
|
||||
};
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
},
|
||||
components: {
|
||||
tabBar,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@@ -64,14 +76,14 @@ import tabBar from "../../components/tabBar/tabBar";
|
||||
font-weight: bold;
|
||||
}
|
||||
/* 建设中 */
|
||||
.content{
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 250rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 100rpx;
|
||||
}
|
||||
.building{
|
||||
.building {
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
display: flex;
|
||||
@@ -79,11 +91,11 @@ import tabBar from "../../components/tabBar/tabBar";
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.buildingTitle{
|
||||
.buildingTitle {
|
||||
font-size: 40rpx;
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -226,6 +226,14 @@ export default {
|
||||
ConfirmStatus: false, //确认弹窗状态
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === "menu") {
|
||||
return {
|
||||
title: "分享",
|
||||
path: getCurrentPages()[getCurrentPages().length - 1].route,
|
||||
};
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 页面显示时请求数据
|
||||
this.page = 0;
|
||||
@@ -234,6 +242,9 @@ export default {
|
||||
this.RealTimePklist = [];
|
||||
this.pkList({ type: 2 });
|
||||
this.pkList({ type: 1 });
|
||||
// uni.showShareMenu({
|
||||
// withShareTicket: true,
|
||||
// });
|
||||
},
|
||||
onLoad() {
|
||||
uni.getStorage({
|
||||
@@ -266,7 +277,7 @@ export default {
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
//格式化日期
|
||||
dateformat(date) {
|
||||
dateformat(date) {
|
||||
const isoString = date.replace(" ", "T");
|
||||
const timestamp = Date.parse(isoString);
|
||||
if (isNaN(timestamp)) {
|
||||
@@ -491,7 +502,6 @@ export default {
|
||||
formatDate: formatDate,
|
||||
|
||||
async pkList(condition) {
|
||||
console.log("`````````````````````````````",condition);
|
||||
//获取list
|
||||
const res = await request({
|
||||
url: "pk/pkList",
|
||||
@@ -506,7 +516,6 @@ export default {
|
||||
userInfo: false,
|
||||
});
|
||||
if (res.code === 200) {
|
||||
console.log("````````````````````````````````",res.data);
|
||||
this.triggered = false;
|
||||
if (condition.type === 1) {
|
||||
this.MakeAppointmentPKlist.push(...res.data);
|
||||
|
||||
@@ -245,6 +245,14 @@ export default {
|
||||
AnchorList: [],
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
|
||||
@@ -114,6 +114,14 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 重新编辑主播信息
|
||||
onRecompose(item) {
|
||||
|
||||
@@ -1,46 +1,62 @@
|
||||
<template>
|
||||
<view class="contact">
|
||||
<view class="bg">
|
||||
<image class="bgImg" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill" />
|
||||
<view class="contact">
|
||||
<view class="bg">
|
||||
<image
|
||||
class="bgImg"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" />
|
||||
<image
|
||||
class="ReturnImg"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="title">联系客服</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx;"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === "menu") {
|
||||
return {
|
||||
title: "分享",
|
||||
path: "/pages/Home/Home",
|
||||
};
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@@ -76,14 +92,14 @@
|
||||
height: 100%;
|
||||
}
|
||||
/* 建设中 */
|
||||
.content{
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 250rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 100rpx;
|
||||
}
|
||||
.building{
|
||||
.building {
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
display: flex;
|
||||
@@ -91,11 +107,11 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.buildingTitle{
|
||||
.buildingTitle {
|
||||
font-size: 40rpx;
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -177,6 +177,14 @@ export default {
|
||||
mounted() {
|
||||
this.createModule = this.$refs.createModule; // 挂载后赋值
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 刷新
|
||||
onRefresherRefresh() {
|
||||
|
||||
@@ -120,6 +120,14 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
sliderPosition() {
|
||||
const { current, buttonWidth, gap } = this;
|
||||
|
||||
@@ -68,6 +68,14 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatDate: formatDate,
|
||||
//下拉刷新
|
||||
|
||||
@@ -32,6 +32,14 @@ export default {
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
|
||||
@@ -179,6 +179,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
@@ -191,6 +192,14 @@ export default {
|
||||
this.getPkmineInfo();
|
||||
this.getPkIDInfo();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?customData=${JSON.stringify(this.customData)}`,
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//根据当前消息ID查询pk信息
|
||||
async getPkIDInfo() {
|
||||
@@ -213,7 +222,7 @@ export default {
|
||||
data: {
|
||||
id: this.customData.pkIdA,
|
||||
},
|
||||
userInfo: true,
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
console.log(res.data);
|
||||
this.SenderData = res.data;
|
||||
@@ -227,7 +236,7 @@ export default {
|
||||
data: {
|
||||
id: this.customData.pkIdB,
|
||||
},
|
||||
userInfo: true,
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
console.log(res.data);
|
||||
this.ReceiverData = res.data;
|
||||
|
||||
@@ -116,7 +116,7 @@ export default {
|
||||
//````````````````````````````````````````````````````````````````````
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "登录失败",
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -183,18 +183,32 @@ export default {
|
||||
InvitingPartyEventindex: null,
|
||||
chatInfo: {},
|
||||
currentConversation: null,
|
||||
inid: null,
|
||||
// parentMessage: null,
|
||||
style: {
|
||||
backgroundColor: "#ffffff",
|
||||
},
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
return {
|
||||
title: '分享',
|
||||
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?inid=${this.item.id}`,
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.inid = options.inid;
|
||||
if (this.inid) {
|
||||
this.GetonShareAppMessagedata();
|
||||
}
|
||||
// 获取源页面的eventChannel对象
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
// 监听itemDetail事件
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item; // 将接收到的数据赋值给item
|
||||
console.log(" itemDetail", data.item);
|
||||
});
|
||||
|
||||
uni.getStorage({
|
||||
@@ -211,6 +225,29 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//分享直接获取数据
|
||||
GetonShareAppMessagedata() {
|
||||
request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.inid,
|
||||
userId: this.id,
|
||||
},
|
||||
userInfo: true,
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.item = res.data;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
//修改信息
|
||||
// onRecompose(item) {
|
||||
// this.parentMessage = item;
|
||||
@@ -232,6 +269,11 @@ export default {
|
||||
Returnfunc() {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
fail: () => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/Home/Home',
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
open() {
|
||||
|
||||
Reference in New Issue
Block a user