优化
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
// let COS = require('cos-wx-sdk-v5')
|
|
||||||
import COS from 'cos-wx-sdk-v5'
|
|
||||||
// const COS = require('./lib/cos-wx-sdk-v5.min.js'); // 上线时使用压缩包
|
|
||||||
const cos = new COS({
|
|
||||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v", // 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx", // 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
});
|
|
||||||
|
|
||||||
const audioMessages = function(file) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
cos.uploadFile({
|
|
||||||
Bucket: 'vv-1317974657', // 填入您自己的存储桶,必须字段
|
|
||||||
Region: 'ap-shanghai', // 存储桶所在地域,例如 ap-beijing,必须字段
|
|
||||||
Key: "audios/" + file.name, // 存储在桶里的对象键(例如1.jpg,a/b/test.txt),必须字段文件名
|
|
||||||
FilePath: file.path, // 必须
|
|
||||||
FileSize: "", // v1.4.3之前的版本必须,v1.4.3及以后的版本非必须
|
|
||||||
SliceSize: 1024 * 1024 * 2, // 触发分块上传的阈值,超过2MB使用分块上传,非必须,按需调整,最小支持1MB
|
|
||||||
// 支持自定义 headers 非必须
|
|
||||||
Headers: {
|
|
||||||
'x-cos-meta-test': 123
|
|
||||||
},
|
|
||||||
}, function(err, data) {
|
|
||||||
if (err) {
|
|
||||||
reject(err);
|
|
||||||
} else {
|
|
||||||
resolve(data.Location);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
export default audioMessages
|
|
||||||
@@ -41,6 +41,10 @@ export function getConversationList(goeasy) {
|
|||||||
},
|
},
|
||||||
onFailed: function (error) { //获取失败
|
onFailed: function (error) { //获取失败
|
||||||
console.log("获取会话列表失败, code:" + error.code + " content:" + error.content);
|
console.log("获取会话列表失败, code:" + error.code + " content:" + error.content);
|
||||||
|
uni.showToast({
|
||||||
|
title: "获取会话列表失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -61,6 +65,10 @@ export function getConversationMessages(goeasy, userid, imestamp) {
|
|||||||
}, //查询成功
|
}, //查询成功
|
||||||
onFailed: function (error) {
|
onFailed: function (error) {
|
||||||
console.log("获取消息列表失败, code:" + error.code + " content:" + error.content);
|
console.log("获取消息列表失败, code:" + error.code + " content:" + error.content);
|
||||||
|
uni.showToast({
|
||||||
|
title: "获取消息列表失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
}, //查询失败
|
}, //查询失败
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -88,6 +96,10 @@ export function sendMessage(goeasy, userid, message, avatar, nickname) {
|
|||||||
},
|
},
|
||||||
onFailed: function (error) { //发送失败
|
onFailed: function (error) { //发送失败
|
||||||
console.log('发送消息失败,code:' + error.code + ' ,error ' + error.content);
|
console.log('发送消息失败,code:' + error.code + ' ,error ' + error.content);
|
||||||
|
uni.showToast({
|
||||||
|
title: "发送消息失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -107,6 +119,10 @@ export function messageRead(goeasy, userid) {
|
|||||||
},
|
},
|
||||||
onFailed: function (error) {
|
onFailed: function (error) {
|
||||||
console.log('标记私聊已读失败', error);
|
console.log('标记私聊已读失败', error);
|
||||||
|
uni.showToast({
|
||||||
|
title: "标记私聊已读失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -135,6 +151,10 @@ export function sendCustomMessage(goeasy, type, userid, order, avatar, nickname)
|
|||||||
},
|
},
|
||||||
onFailed: function (error) { //发送失败
|
onFailed: function (error) { //发送失败
|
||||||
console.log('Failed to send message,code:' + error.code + ',error' + error.content);
|
console.log('Failed to send message,code:' + error.code + ',error' + error.content);
|
||||||
|
uni.showToast({
|
||||||
|
title: "发送自定义消息失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -146,14 +166,18 @@ export function conversationTop(goeasy, conversation, top) {
|
|||||||
var im = goeasy.im;
|
var im = goeasy.im;
|
||||||
im.topConversation({
|
im.topConversation({
|
||||||
conversation: conversation,
|
conversation: conversation,
|
||||||
top:top ,//或者 false
|
top: top,//或者 false
|
||||||
onSuccess: function () {
|
onSuccess: function () {
|
||||||
resolve('成功');
|
resolve('成功');
|
||||||
},
|
},
|
||||||
onFailed: function (error) {
|
onFailed: function (error) {
|
||||||
console.log( '失败:', error);
|
console.log('失败:', error);
|
||||||
|
uni.showToast({
|
||||||
|
title: "置顶会话失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//删除会话
|
//删除会话
|
||||||
@@ -166,8 +190,32 @@ export function conversationDelete(goeasy, conversation) {
|
|||||||
resolve('删除会话成功');
|
resolve('删除会话成功');
|
||||||
},
|
},
|
||||||
onFailed: function (error) {
|
onFailed: function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
uni.showToast({
|
||||||
|
title: "删除会话失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//发送消息
|
||||||
|
export function sendGroupMessage(goeasy, message) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
var im = goeasy.im;
|
||||||
|
//发送消息
|
||||||
|
im.sendMessage({
|
||||||
|
message: message,
|
||||||
|
onSuccess: () => {
|
||||||
|
resolve(message);
|
||||||
|
},
|
||||||
|
onFailed: function (error) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "发送消息失败",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
// let COS = require('cos-wx-sdk-v5')
|
|
||||||
import COS from 'cos-wx-sdk-v5'
|
|
||||||
// const COS = require('./lib/cos-wx-sdk-v5.min.js'); // 上线时使用压缩包
|
|
||||||
const cos = new COS({
|
|
||||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v", // 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx", // 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
});
|
|
||||||
|
|
||||||
const picturesVideosMessages = function(file) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
cos.uploadFile({
|
|
||||||
Bucket: 'vv-1317974657', // 填入您自己的存储桶,必须字段
|
|
||||||
Region: 'ap-shanghai', // 存储桶所在地域,例如 ap-beijing,必须字段
|
|
||||||
Key: "sources/" + file.name, // 存储在桶里的对象键(例如1.jpg,a/b/test.txt),必须字段文件名
|
|
||||||
FilePath: file.path, // 必须
|
|
||||||
FileSize: "", // v1.4.3之前的版本必须,v1.4.3及以后的版本非必须
|
|
||||||
SliceSize: 1024 * 1024 * 2, // 触发分块上传的阈值,超过2MB使用分块上传,非必须,按需调整,最小支持1MB
|
|
||||||
// 支持自定义 headers 非必须
|
|
||||||
Headers: {
|
|
||||||
'x-cos-meta-test': 123
|
|
||||||
},
|
|
||||||
}, function(err, data) {
|
|
||||||
if (err) {
|
|
||||||
reject(err);
|
|
||||||
} else {
|
|
||||||
resolve(data.Location);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
export default picturesVideosMessages
|
|
||||||
12
pages.json
12
pages.json
@@ -66,6 +66,18 @@
|
|||||||
"navigationBarTitleText": "PK信息处理"
|
"navigationBarTitleText": "PK信息处理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/index/chat/messageComponent/fullscreen/imagePreview",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "图片预览"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/index/chat/messageComponent/fullscreen/videoPreview",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "视频预览"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ export default {
|
|||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
console.log("userinfo", this.info);
|
console.log("userinfo", this.info);
|
||||||
counter.$patch({ myitem: this.info });
|
counter.$patch({ myitem: this.info });
|
||||||
goEasylogin(this.$goeasy, String(this.info.id), this.info.headerIcon, this.info.nickName)//登录IM
|
goEasylogin(this.$goeasy, String(this.info.id), this.info.headerIcon, this.info.nickName)//登录IM
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
@@ -472,6 +472,7 @@ export default {
|
|||||||
data: {
|
data: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
userId: this.info.id,
|
userId: this.info.id,
|
||||||
|
from: 1,
|
||||||
},
|
},
|
||||||
userInfo: true,
|
userInfo: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
胜利
|
胜利
|
||||||
</view>
|
</view>
|
||||||
<view class="Session"> 共{{ item.pkNumber }}场 </view>
|
<view class="Session"> 共{{ item.pkNumber }}场 </view>
|
||||||
<view class="Time">{{ TimeFormatting(item.pkTime) }}</view>
|
<view class="Time">{{ TimeFormatting(item.pkTime*1000) }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="myPkRecorddata.length === 0" class="no-content">暂无内容</view>
|
<view v-if="myPkRecorddata.length === 0" class="no-content">暂无内容</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -390,6 +390,7 @@ export default {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.myPkRecorddata = res.data;
|
this.myPkRecorddata = res.data;
|
||||||
|
console.log("this.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddata",JSON.stringify(this.myPkRecorddata));
|
||||||
} else {
|
} else {
|
||||||
console.log(res.msg);
|
console.log(res.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,10 +35,9 @@
|
|||||||
<view class="AnchorAinfo">
|
<view class="AnchorAinfo">
|
||||||
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
||||||
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
||||||
<!-- <view class="AnchorAICon" v-if="item.userACoins !== null"> -->
|
<view class="AnchorAICon" v-if="item.userACoins !== null">
|
||||||
<view class="AnchorAICon">
|
|
||||||
<view class="AnchorAIContext">实际打金币:</view>
|
<view class="AnchorAIContext">实际打金币:</view>
|
||||||
<view class="AnchorAIConNum">{{ formatCoinNum(iconNumber) }}</view>
|
<view class="AnchorAIConNum">{{ formatCoinNum(item.userACoins) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -122,8 +121,6 @@ export default {
|
|||||||
item: {},
|
item: {},
|
||||||
coinNumlist: [],
|
coinNumlist: [],
|
||||||
triggered: false,
|
triggered: false,
|
||||||
|
|
||||||
iconNumber: 123457,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="pkRecord">
|
<view class="pkRecord">
|
||||||
<view class="bg">
|
<view class="bg">
|
||||||
<image class="bgImg" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill" />
|
<image
|
||||||
|
class="bgImg"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="Return" @click="onBack">
|
<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>
|
||||||
<view class="title">PK记录</view>
|
<view class="title">PK记录</view>
|
||||||
<!-- 导航栏 -->
|
<!-- 导航栏 -->
|
||||||
@@ -32,7 +40,7 @@
|
|||||||
<!-- 内容 -->
|
<!-- 内容 -->
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<scroll-view
|
<scroll-view
|
||||||
show-scrollbar="false"
|
show-scrollbar="false"
|
||||||
scroll-y="true"
|
scroll-y="true"
|
||||||
class="scroll"
|
class="scroll"
|
||||||
refresher-enabled="true"
|
refresher-enabled="true"
|
||||||
@@ -43,48 +51,58 @@
|
|||||||
:refresher-triggered="triggered"
|
:refresher-triggered="triggered"
|
||||||
v-if="pkRecordlist.length !== 0"
|
v-if="pkRecordlist.length !== 0"
|
||||||
>
|
>
|
||||||
<uni-card v-for="(item, index) in pkRecordlist" :key="index" >
|
<uni-card v-for="(item, index) in pkRecordlist" :key="index">
|
||||||
<view class="card" @click="onItemClick(item)">
|
<view class="card" @click="onItemClick(item)">
|
||||||
<!-- 主播A -->
|
<!-- 主播A -->
|
||||||
<view class="AnchorA">
|
<view class="AnchorA">
|
||||||
<view class="AnchorAImg">
|
<view class="AnchorAImg">
|
||||||
<!-- 头像 -->
|
<!-- 头像 -->
|
||||||
<image class="AnchorAImgcss" :src="item.anchorIconA" mode="scaleToFill" />
|
<image class="AnchorAImgcss" :src="item.anchorIconA" mode="scaleToFill" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 皇冠 -->
|
<!-- 皇冠 -->
|
||||||
<image class="Crown" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill" v-if="item.winnerAnchorId == item.anchorIdA"/>
|
<image
|
||||||
<view class="AnchorAinfo">
|
class="Crown"
|
||||||
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png"
|
||||||
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
mode="scaleToFill"
|
||||||
<view class="AnchorAICon" v-if="item.userACoins!== null">
|
v-if="item.winnerAnchorId == item.anchorIdA"
|
||||||
<view class="AnchorAIContext">实际金币:</view>
|
/>
|
||||||
<view class="AnchorAIConNum">{{ item.userACoins}}K</view>
|
<view class="AnchorAinfo">
|
||||||
|
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
||||||
|
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
||||||
|
<view class="AnchorAICon" v-if="item.userACoins !== null">
|
||||||
|
<view class="AnchorAIContext">实际金币:</view>
|
||||||
|
<view class="AnchorAIConNum">{{ formatCoinNum(item.userACoins) }}</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<!-- 图标 -->
|
||||||
<!-- 图标 -->
|
<view class="vstext">
|
||||||
<view class="vstext">
|
<view class="Vtext">V</view>
|
||||||
<view class="Vtext">V</view>
|
<view class="Stext">S</view>
|
||||||
<view class="Stext">S</view>
|
</view>
|
||||||
</view>
|
<!-- 主播B -->
|
||||||
<!-- 主播B -->
|
<view class="AnchorB">
|
||||||
<view class="AnchorB">
|
<view class="AnchorBinfo">
|
||||||
<view class="AnchorBinfo">
|
<view class="AnchorAname">{{ item.anchorIdB }} </view>
|
||||||
<view class="AnchorAname">{{ item.anchorIdB }} </view>
|
<view class="AnchorATime"> {{ formatDate(item.pkTime) }} </view>
|
||||||
<view class="AnchorATime"> {{ formatDate(item.pkTime) }} </view>
|
<view class="AnchorAICon" v-if="item.userBCoins !== null">
|
||||||
<view class="AnchorAICon" v-if="item.userBCoins!== null">
|
<view class="AnchorAIContext">实际打金币:</view>
|
||||||
<view class="AnchorAIContext">实际打金币:</view>
|
<view class="AnchorAIConNum">{{ formatCoinNum(item.userBCoins) }}</view>
|
||||||
<view class="AnchorAIConNum">{{ item.userBCoins }}K</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="AnchorAImg">
|
||||||
|
<!-- 头像 -->
|
||||||
|
<image class="AnchorBImgcss" :src="item.anchorIconB" mode="scaleToFill" />
|
||||||
|
</view>
|
||||||
|
<!-- 皇冠 -->
|
||||||
|
<image
|
||||||
|
class="Crown"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
v-if="item.winnerAnchorId == item.anchorIdB"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="AnchorAImg">
|
|
||||||
<!-- 头像 -->
|
|
||||||
<image class="AnchorBImgcss" :src="item.anchorIconB" mode="scaleToFill" />
|
|
||||||
</view>
|
|
||||||
<!-- 皇冠 -->
|
|
||||||
<image class="Crown" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill" v-if="item.winnerAnchorId == item.anchorIdB"/>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
</uni-card>
|
</uni-card>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view v-if="pkRecordlist.length === 0" class="nodata">暂无内容</view>
|
<view v-if="pkRecordlist.length === 0" class="nodata">暂无内容</view>
|
||||||
@@ -112,20 +130,20 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: "userinfo",
|
key: "userinfo",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.userinfo = res.data;
|
this.userinfo = res.data;
|
||||||
this.getPkRecordList(1);
|
this.getPkRecordList(1);
|
||||||
this.getPkRecordList(2);
|
this.getPkRecordList(2);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
if (res.from === 'menu') {
|
if (res.from === "menu") {
|
||||||
return {
|
return {
|
||||||
title: '分享',
|
title: "分享",
|
||||||
path: "/pages/Home/Home"
|
path: "/pages/Home/Home",
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -137,13 +155,33 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//金币数量格式化
|
||||||
|
formatCoinNum(coin) {
|
||||||
|
if (coin === null || coin === undefined) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (coin < 1000) {
|
||||||
|
return String(coin);
|
||||||
|
}
|
||||||
|
if (coin >= 1000000) {
|
||||||
|
return "1M+";
|
||||||
|
}
|
||||||
|
const kValue = coin / 1000;
|
||||||
|
const formattedString = kValue.toFixed(2); // 确保至少保留两位小数
|
||||||
|
const matchResult = formattedString.match(/^\d+\.\d{0,2}/);
|
||||||
|
if (matchResult === null) {
|
||||||
|
return kValue.toFixed(2) + "k"; // 确保至少保留两位小数
|
||||||
|
}
|
||||||
|
const formatted = matchResult[0];
|
||||||
|
return `${formatted}k`;
|
||||||
|
},
|
||||||
onRefresherRefresh() {
|
onRefresherRefresh() {
|
||||||
this.pkRecordlist = [];
|
this.pkRecordlist = [];
|
||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
this.page = 0;
|
this.page = 0;
|
||||||
if (this.current === 1) {
|
if (this.current === 1) {
|
||||||
this.pkmyRecordlist = [];
|
this.pkmyRecordlist = [];
|
||||||
}else{
|
} else {
|
||||||
this.pkInvitationRecordlist = [];
|
this.pkInvitationRecordlist = [];
|
||||||
}
|
}
|
||||||
this.getPkRecordList(this.current);
|
this.getPkRecordList(this.current);
|
||||||
@@ -153,21 +191,19 @@ export default {
|
|||||||
this.getPkRecordList(this.current);
|
this.getPkRecordList(this.current);
|
||||||
},
|
},
|
||||||
onItemClick(item) {
|
onItemClick(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
url: "/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.eventChannel.emit("itemDetail", {
|
res.eventChannel.emit("itemDetail", {
|
||||||
item: item,
|
item: item,
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onBack() {
|
onBack() {
|
||||||
uni.navigateBack(
|
uni.navigateBack({
|
||||||
{
|
delta: 1,
|
||||||
delta: 1,
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
formatDate: formatDate,
|
formatDate: formatDate,
|
||||||
//获取我发布的PK记录列表
|
//获取我发布的PK记录列表
|
||||||
@@ -185,17 +221,17 @@ export default {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.triggered = false;
|
this.triggered = false;
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.pkmyRecordlist.push(...res.data);
|
this.pkmyRecordlist.push(...res.data);
|
||||||
if (this.current === 1) {
|
if (this.current === 1) {
|
||||||
this.pkRecordlist = this.pkmyRecordlist;
|
this.pkRecordlist = this.pkmyRecordlist;
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.pkInvitationRecordlist.push(...res.data);
|
|
||||||
if (this.current === 2) {
|
|
||||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.pkInvitationRecordlist.push(...res.data);
|
||||||
|
if (this.current === 2) {
|
||||||
|
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(res.msg);
|
console.log(res.msg);
|
||||||
}
|
}
|
||||||
@@ -207,7 +243,7 @@ export default {
|
|||||||
this.slidetext = val === 1 ? "我发布的PK" : "我邀请的PK";
|
this.slidetext = val === 1 ? "我发布的PK" : "我邀请的PK";
|
||||||
if (val === 1) {
|
if (val === 1) {
|
||||||
this.pkRecordlist = this.pkmyRecordlist;
|
this.pkRecordlist = this.pkmyRecordlist;
|
||||||
}else{
|
} else {
|
||||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -360,8 +396,8 @@ export default {
|
|||||||
color: #58d8db;
|
color: #58d8db;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
white-space: nowrap; /* 防止换行 */
|
white-space: nowrap; /* 防止换行 */
|
||||||
overflow: hidden; /* 隐藏溢出内容 */
|
overflow: hidden; /* 隐藏溢出内容 */
|
||||||
text-overflow: ellipsis; /* 显示省略号 */
|
text-overflow: ellipsis; /* 显示省略号 */
|
||||||
}
|
}
|
||||||
.AnchorATime {
|
.AnchorATime {
|
||||||
@@ -405,11 +441,11 @@ export default {
|
|||||||
border-bottom: #5ddadd solid 2rpx;
|
border-bottom: #5ddadd solid 2rpx;
|
||||||
border-right: #5ddadd solid 2rpx;
|
border-right: #5ddadd solid 2rpx;
|
||||||
}
|
}
|
||||||
.Crown{
|
.Crown {
|
||||||
width: 45.8rpx;
|
width: 45.8rpx;
|
||||||
height: 39.12rpx;
|
height: 39.12rpx;
|
||||||
margin-left: -40rpx;
|
margin-left: -40rpx;
|
||||||
margin-top: -100rpx;
|
margin-top: -100rpx;
|
||||||
}
|
}
|
||||||
.vstext {
|
.vstext {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -428,5 +464,4 @@ export default {
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
margin-right: 26rpx;
|
margin-right: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,7 +9,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="Navigation">
|
<view class="Navigation">
|
||||||
<view class="Return" @click="goBack">
|
<view class="Return" @click="goBack">
|
||||||
<image class="Return" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" />
|
<image
|
||||||
|
class="Return"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Content">
|
<view class="Content">
|
||||||
@@ -134,11 +138,18 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 邀请信息 -->
|
<!-- 邀请信息 -->
|
||||||
<view class="button" v-if="PkIDInfodata.pkStatus === 0 && ReceiverData.senderId !== id">
|
<view
|
||||||
|
class="button"
|
||||||
|
v-if="PkIDInfodata.pkStatus === 0 && ReceiverData.senderId !== id"
|
||||||
|
>
|
||||||
<button class="accept" @click="AcceptHint()">接受邀请</button>
|
<button class="accept" @click="AcceptHint()">接受邀请</button>
|
||||||
<button class="reject" @click="RefuseHint()">拒绝邀请</button>
|
<button class="reject" @click="RefuseHint()">拒绝邀请</button>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="ReceiverData.senderId === id && PkIDInfodata.pkStatus === 0" class="button buttontext">等待对方接受邀请</view>
|
<view
|
||||||
|
v-if="ReceiverData.senderId === id && PkIDInfodata.pkStatus === 0"
|
||||||
|
class="button buttontext"
|
||||||
|
>等待对方接受邀请</view
|
||||||
|
>
|
||||||
<view v-if="PkIDInfodata.pkStatus === 1" class="button buttontext">已接受邀请</view>
|
<view v-if="PkIDInfodata.pkStatus === 1" class="button buttontext">已接受邀请</view>
|
||||||
<view v-if="PkIDInfodata.pkStatus === 2" class="button buttontext">已拒绝邀请</view>
|
<view v-if="PkIDInfodata.pkStatus === 2" class="button buttontext">已拒绝邀请</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -188,16 +199,18 @@ export default {
|
|||||||
this.customData = JSON.parse(options.customData);
|
this.customData = JSON.parse(options.customData);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getPkIDInfo();
|
this.getPkIDInfo();
|
||||||
this.getPkyourInfo();
|
this.getPkyourInfo();
|
||||||
this.getPkmineInfo();
|
this.getPkmineInfo();
|
||||||
}, 500);
|
}, 1000);
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
if (res.from === 'menu') {
|
if (res.from === "menu") {
|
||||||
return {
|
return {
|
||||||
title: '分享',
|
title: "分享",
|
||||||
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?customData=${JSON.stringify(this.customData)}`,
|
path: `${
|
||||||
}
|
getCurrentPages()[getCurrentPages().length - 1].route
|
||||||
|
}?customData=${JSON.stringify(this.customData)}`,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -209,7 +222,7 @@ export default {
|
|||||||
data: {
|
data: {
|
||||||
id: this.customData.id,
|
id: this.customData.id,
|
||||||
},
|
},
|
||||||
userInfo: true
|
userInfo: true,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
this.PkIDInfodata = res.data;
|
this.PkIDInfodata = res.data;
|
||||||
@@ -222,11 +235,22 @@ export default {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
id: this.customData.pkIdA,
|
id: this.customData.pkIdA,
|
||||||
|
userId: this.id,
|
||||||
|
from: 2,
|
||||||
},
|
},
|
||||||
userInfo: false,
|
userInfo: false,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res.data);
|
console.log(res);
|
||||||
this.SenderData = res.data;
|
if (res.code === 200) {
|
||||||
|
console.log(res.data);
|
||||||
|
this.SenderData = res.data;
|
||||||
|
}else{
|
||||||
|
wx.showToast({
|
||||||
|
title: "获取发布者信息失败",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//被邀请者
|
//被邀请者
|
||||||
@@ -236,11 +260,21 @@ export default {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
id: this.customData.pkIdB,
|
id: this.customData.pkIdB,
|
||||||
|
userId: this.id,
|
||||||
|
from: 2,
|
||||||
},
|
},
|
||||||
userInfo: false,
|
userInfo: false,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
this.ReceiverData = res.data;
|
this.ReceiverData = res.data;
|
||||||
|
}else{
|
||||||
|
wx.showToast({
|
||||||
|
title: "获取被邀请者信息失败",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//返回上一页
|
//返回上一页
|
||||||
@@ -251,17 +285,17 @@ export default {
|
|||||||
},
|
},
|
||||||
formatDate: formatDate,
|
formatDate: formatDate,
|
||||||
//接受邀请提示
|
//接受邀请提示
|
||||||
AcceptHint(){
|
AcceptHint() {
|
||||||
this.$refs.popups.open('center');
|
this.$refs.popups.open("center");
|
||||||
},
|
},
|
||||||
closeHint(){
|
closeHint() {
|
||||||
this.$refs.popups.close();
|
this.$refs.popups.close();
|
||||||
},
|
},
|
||||||
//拒绝邀请提示
|
//拒绝邀请提示
|
||||||
RefuseHint(){
|
RefuseHint() {
|
||||||
this.$refs.Refusepopup.open('center');
|
this.$refs.Refusepopup.open("center");
|
||||||
},
|
},
|
||||||
RefuseHintcloseHint(){
|
RefuseHintcloseHint() {
|
||||||
this.$refs.Refusepopup.close();
|
this.$refs.Refusepopup.close();
|
||||||
},
|
},
|
||||||
//操作
|
//操作
|
||||||
@@ -277,23 +311,23 @@ export default {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
|
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.getPkIDInfo()
|
this.getPkIDInfo();
|
||||||
this.$refs.popups.close();
|
this.$refs.popups.close();
|
||||||
this.$refs.Refusepopup.close();
|
this.$refs.Refusepopup.close();
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: Hinttext,
|
title: Hinttext,
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
wx.navigateBack({
|
wx.navigateBack({
|
||||||
delta: 1,
|
delta: 1,
|
||||||
});
|
});
|
||||||
}else {
|
} else {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: "操作失败",
|
title: "操作失败",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -457,11 +491,10 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 150rpx;
|
margin-top: 150rpx;
|
||||||
}
|
}
|
||||||
.buttontext{
|
.buttontext {
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
}
|
}
|
||||||
.accept {
|
.accept {
|
||||||
width: 325.38rpx;
|
width: 325.38rpx;
|
||||||
@@ -484,7 +517,7 @@ export default {
|
|||||||
font-size: 28.63rpx;
|
font-size: 28.63rpx;
|
||||||
line-height: 77.29rpx;
|
line-height: 77.29rpx;
|
||||||
}
|
}
|
||||||
.popup-Hintcontent{
|
.popup-Hintcontent {
|
||||||
width: 600rpx;
|
width: 600rpx;
|
||||||
height: 500rpx;
|
height: 500rpx;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@@ -502,7 +535,7 @@ export default {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
}
|
}
|
||||||
.popup-texts{
|
.popup-texts {
|
||||||
margin-left: 50rpx;
|
margin-left: 50rpx;
|
||||||
color: #7e7e7e;
|
color: #7e7e7e;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
@click="onMore(false)"
|
@click="onMore(false)"
|
||||||
:style="{
|
:style="{
|
||||||
bottom:
|
bottom:
|
||||||
MoreStatus || KeyboardHeight != 0 || Elementheight != 0
|
MoreStatus || KeyboardHeight != 0
|
||||||
? MoreStatus
|
? MoreStatus
|
||||||
? 650 + Elementheight + 'rpx'
|
? 650 + Elementheight + 'rpx'
|
||||||
: KeyboardHeight != 0
|
: KeyboardHeight != 0
|
||||||
? KeyboardHeight + Elementheight + 'rpx'
|
? KeyboardHeight + Elementheight + 'rpx'
|
||||||
: Elementheight + 'rpx'
|
:'10vh'
|
||||||
: Elementheight + 'rpx',
|
: '10vh',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<scroll-view
|
<scroll-view
|
||||||
@@ -53,18 +53,47 @@
|
|||||||
<view class="oppositeChatNews" v-if="item.senderId == userId">
|
<view class="oppositeChatNews" v-if="item.senderId == userId">
|
||||||
<image class="chat-avatarImg" :src="avatar" mode="scaleToFill" />
|
<image class="chat-avatarImg" :src="avatar" mode="scaleToFill" />
|
||||||
<view class="oppositesharpCorner">
|
<view class="oppositesharpCorner">
|
||||||
<view class="oppositeSharpCornercion"></view>
|
<view
|
||||||
|
class="oppositeSharpCornercion"
|
||||||
|
v-if="item.type == 'text' || item.type == 'audio'"
|
||||||
|
></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="oppositeChatNewsContent">
|
<view
|
||||||
|
class="oppositeChatNewsContent"
|
||||||
|
:style="{
|
||||||
|
backgroundColor:
|
||||||
|
item.type == 'text' || item.type == 'audio' ? '#7bbd0093' : '#ffffff',
|
||||||
|
}"
|
||||||
|
>
|
||||||
<!-- 消息类型 -->
|
<!-- 消息类型 -->
|
||||||
|
<!-- 文字消息 -->
|
||||||
<textmessage
|
<textmessage
|
||||||
v-if="item.type == 'text'"
|
v-if="item.type == 'text'"
|
||||||
:messagetext="item.payload.text"
|
:messagetext="item.payload.text"
|
||||||
></textmessage>
|
></textmessage>
|
||||||
|
<!-- 自定义PK消息 -->
|
||||||
<customPKMessage
|
<customPKMessage
|
||||||
v-if="item.type == 'pk'"
|
v-if="item.type == 'pk'"
|
||||||
:message="item.payload"
|
:message="item.payload"
|
||||||
></customPKMessage>
|
></customPKMessage>
|
||||||
|
<!-- 图片消息 -->
|
||||||
|
<imageMessage
|
||||||
|
v-if="item.type == 'image'"
|
||||||
|
:message="item.payload"
|
||||||
|
></imageMessage>
|
||||||
|
<!-- 视频消息 -->
|
||||||
|
<videoMessage
|
||||||
|
v-if="item.type == 'video'"
|
||||||
|
:message="item.payload"
|
||||||
|
></videoMessage>
|
||||||
|
<!-- 语音消息 -->
|
||||||
|
<voiceMessage
|
||||||
|
v-if="item.type == 'audio'"
|
||||||
|
:message="item.payload"
|
||||||
|
:senderId="item.senderId"
|
||||||
|
:userId="userinfo.id"
|
||||||
|
>
|
||||||
|
</voiceMessage>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 自己消息 -->
|
<!-- 自己消息 -->
|
||||||
@@ -75,18 +104,49 @@
|
|||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
/>
|
/>
|
||||||
<view class="mysharpCorner">
|
<view class="mysharpCorner">
|
||||||
<view class="mySharpCornercion"></view>
|
<view
|
||||||
|
class="mySharpCornercion"
|
||||||
|
v-if="item.type == 'text' || item.type == 'audio'"
|
||||||
|
></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myChatNewsContent">
|
<view
|
||||||
|
class="myChatNewsContent"
|
||||||
|
:style="{
|
||||||
|
backgroundColor:
|
||||||
|
item.type == 'text' || item.type == 'audio' ? '#7bbd0093' : '#ffffff',
|
||||||
|
}"
|
||||||
|
>
|
||||||
<!-- 消息类型 -->
|
<!-- 消息类型 -->
|
||||||
|
<!-- 文字消息 -->
|
||||||
<textmessage
|
<textmessage
|
||||||
v-if="item.type == 'text'"
|
v-if="item.type == 'text'"
|
||||||
:messagetext="item.payload.text"
|
:messagetext="item.payload.text"
|
||||||
></textmessage>
|
></textmessage>
|
||||||
|
<!-- 自定义PK消息 -->
|
||||||
<customPKMessage
|
<customPKMessage
|
||||||
v-if="item.type == 'pk'"
|
v-if="item.type == 'pk'"
|
||||||
:message="item.payload"
|
:message="item.payload"
|
||||||
></customPKMessage>
|
></customPKMessage>
|
||||||
|
<!-- 图片消息 -->
|
||||||
|
<imageMessage
|
||||||
|
v-if="item.type == 'image'"
|
||||||
|
:message="item.payload"
|
||||||
|
></imageMessage>
|
||||||
|
<!-- 视频消息 -->
|
||||||
|
<videoMessage
|
||||||
|
v-if="item.type == 'video'"
|
||||||
|
:message="item.payload"
|
||||||
|
></videoMessage>
|
||||||
|
<!-- 语音消息 -->
|
||||||
|
<voiceMessage
|
||||||
|
v-if="item.type == 'audio'"
|
||||||
|
:message="item.payload"
|
||||||
|
:senderId="item.senderId"
|
||||||
|
:userId="userinfo.id"
|
||||||
|
:playbackStatus="playbackStatus"
|
||||||
|
@notplayVoice="notplayVoice"
|
||||||
|
>
|
||||||
|
</voiceMessage>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -108,7 +168,33 @@
|
|||||||
: '0',
|
: '0',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<view class="textareacomponent">
|
<view class="Voice">
|
||||||
|
<view class="MicrophoneImg" v-if="!voiceStatus" @click="onVoice(!voiceStatus)">
|
||||||
|
<image
|
||||||
|
class="Microphonepng"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Microphone.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view class="KeyboardImg" v-if="voiceStatus" @click="onVoice(!voiceStatus)">
|
||||||
|
<image
|
||||||
|
class="Keyboardpng"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Keyboard.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="textareacomponent" v-if="voiceStatus">
|
||||||
|
<view
|
||||||
|
class="VoiceInput"
|
||||||
|
@touchstart="voiceTouchstart"
|
||||||
|
@touchend="voiceTouchend"
|
||||||
|
@touchmove="voiceTouchmove"
|
||||||
|
@touchcancel="voiceTouchcancel"
|
||||||
|
>按住 说话</view
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
<view class="textareacomponent" v-if="!voiceStatus">
|
||||||
<textarea
|
<textarea
|
||||||
v-model="content"
|
v-model="content"
|
||||||
@input="SendInput"
|
@input="SendInput"
|
||||||
@@ -117,6 +203,7 @@
|
|||||||
:maxlength="500"
|
:maxlength="500"
|
||||||
cursor-spacing="20"
|
cursor-spacing="20"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
|
:focus="inputfocus"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
:adjust-position="false"
|
:adjust-position="false"
|
||||||
></textarea>
|
></textarea>
|
||||||
@@ -177,23 +264,56 @@
|
|||||||
></InvitationComponents>
|
></InvitationComponents>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 语音组件 -->
|
||||||
|
<view class="popUpVoice" :style="{ top: voicepopUpstart == false ? '100vh' : '0' }">
|
||||||
|
<view
|
||||||
|
class="popUpvoiceContent"
|
||||||
|
:style="{ bottom: voicepopUpstart == false ? '-1000rpx' : '0' }"
|
||||||
|
>
|
||||||
|
<view class="voiceCenter">
|
||||||
|
<view class="gifModule">
|
||||||
|
<video
|
||||||
|
class="video-player"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Recording.mp4"
|
||||||
|
:autoplay="true"
|
||||||
|
:loop="true"
|
||||||
|
:controls="false"
|
||||||
|
></video>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
class="CancelModule"
|
||||||
|
:style="{ backgroundColor: voiceCancelOrSend ? '#ebebeb' : '#000000a9' }"
|
||||||
|
>
|
||||||
|
取消
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
class="btnModule"
|
||||||
|
:style="{ backgroundColor: !voiceCancelOrSend ? '#ebebeb' : '#000000a9' }"
|
||||||
|
>
|
||||||
|
{{ voiceCancelOrSend ? "取消" : "松手发送" }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import textmessage from "./messageComponent/textmessage";
|
import textmessage from "./messageComponent/textmessage";
|
||||||
import customPKMessage from "./messageComponent/customPKMessage";
|
import customPKMessage from "./messageComponent/customPKMessage";
|
||||||
|
import imageMessage from "./messageComponent/imageMessage";
|
||||||
|
import videoMessage from "./messageComponent/videoMessage";
|
||||||
|
import voiceMessage from "./messageComponent/voiceMessage";
|
||||||
import InvitationComponents from "./moreMessageComponents/InvitationComponents";
|
import InvitationComponents from "./moreMessageComponents/InvitationComponents";
|
||||||
import { generateId } from "../../../components/ChatId.js";
|
import { generateId } from "../../../components/ChatId.js";
|
||||||
import TimeFormatting from "../../../components/TimeFormatting.js";
|
import TimeFormatting from "../../../components/TimeFormatting.js";
|
||||||
import picturesVideosMessages from "../../../components/picturesVideosMessages.js";
|
|
||||||
import audioMessages from "../../../components/audioMessages.js";
|
|
||||||
import request from "../../../components/request.js";
|
import request from "../../../components/request.js";
|
||||||
import {
|
import {
|
||||||
getConversationMessages,
|
getConversationMessages,
|
||||||
sendMessage,
|
sendMessage,
|
||||||
messageRead,
|
messageRead,
|
||||||
sendCustomMessage,
|
sendCustomMessage,
|
||||||
|
sendGroupMessage,
|
||||||
} from "../../../components/goEasyTool/tool.js";
|
} from "../../../components/goEasyTool/tool.js";
|
||||||
import GoEasy from "goeasy";
|
import GoEasy from "goeasy";
|
||||||
export default {
|
export default {
|
||||||
@@ -225,12 +345,23 @@ export default {
|
|||||||
myitem: null, //直接发送自定义消息的我的选中主播
|
myitem: null, //直接发送自定义消息的我的选中主播
|
||||||
youritem: null, //直接发送自定义消息的对方选中主播
|
youritem: null, //直接发送自定义消息的对方选中主播
|
||||||
type: null, //直接发送自定义消息的消息类型
|
type: null, //直接发送自定义消息的消息类型
|
||||||
|
voiceStatus: false, // 语音状态
|
||||||
|
inputfocus: false, // 输入框焦点状态
|
||||||
|
voicepopUpstart: false, // 语音长按状态/false关闭/true开启
|
||||||
|
voiceCancelOrSend: false, // 语音取消/发送/false发送/true取消
|
||||||
|
recorderManager: uni.getRecorderManager(),
|
||||||
|
playbackStatus: true, // 语音播放状态
|
||||||
popUpList: [
|
popUpList: [
|
||||||
{
|
{
|
||||||
name: "相册",
|
name: "图片",
|
||||||
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Album.png",
|
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Album.png",
|
||||||
type: "Album",
|
type: "Album",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "视频",
|
||||||
|
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
|
||||||
|
type: "Video",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "邀请",
|
name: "邀请",
|
||||||
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",
|
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",
|
||||||
@@ -249,6 +380,41 @@ export default {
|
|||||||
this.onPage = false;
|
this.onPage = false;
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
this.recorderManager.onStop((res) => {
|
||||||
|
console.log("录音结束", res);
|
||||||
|
if(this.ioshide != 0){
|
||||||
|
if(res.fileSize<20*1024){
|
||||||
|
uni.showToast({
|
||||||
|
title:"您说话太短",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
if (this.voiceCancelOrSend) {
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
}else{
|
||||||
|
this.sendVoice(res)
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(res.fileSize<2*1024){
|
||||||
|
uni.showToast({
|
||||||
|
title:"您说话太短",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
if (this.voiceCancelOrSend) {
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
}else{
|
||||||
|
this.sendVoice(res)
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: "userinfo",
|
key: "userinfo",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -307,6 +473,117 @@ export default {
|
|||||||
this.getscrollviewheight();
|
this.getscrollviewheight();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//暂停所有播放
|
||||||
|
notplayVoice(type) {
|
||||||
|
this.playbackStatus = type;
|
||||||
|
},
|
||||||
|
//发送录音
|
||||||
|
sendVoice(res) {
|
||||||
|
const im = this.$goeasy.im;
|
||||||
|
var message = im.createAudioMessage({
|
||||||
|
file: res,
|
||||||
|
to: {
|
||||||
|
type: GoEasy.IM_SCENE.PRIVATE,
|
||||||
|
id: this.userId, //对方用户id
|
||||||
|
data: { avatar: this.avatar, nickname: this.nickname },
|
||||||
|
},
|
||||||
|
onProgress: function (event) {
|
||||||
|
console.log("file uploading:", event);
|
||||||
|
}, //获取上传进度
|
||||||
|
});
|
||||||
|
sendGroupMessage(this.$goeasy, message).then((ress) => {
|
||||||
|
this.ElementPositioning = ress.id = generateId();
|
||||||
|
ress.timestampStatus = this.checkInterval(ress.timestamp);
|
||||||
|
this.chatList.push(ress);
|
||||||
|
this.judgescrollTop = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//长按语音
|
||||||
|
voiceTouchstart() {
|
||||||
|
console.log("长按语音");
|
||||||
|
this.voicepopUpstart = true;
|
||||||
|
this.recorderManager.start();
|
||||||
|
this.notplayVoice(false);
|
||||||
|
},
|
||||||
|
//松开语音
|
||||||
|
voiceTouchend() {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.recorderManager.stop();
|
||||||
|
}, 100);
|
||||||
|
console.log("松开语音");
|
||||||
|
this.voicepopUpstart = false;
|
||||||
|
},
|
||||||
|
//移动语音
|
||||||
|
voiceTouchmove(event) {
|
||||||
|
const threshold = uni.getSystemInfoSync().windowHeight * 0.86;
|
||||||
|
try {
|
||||||
|
if (event.touches[0].clientY > threshold) {
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
} else {
|
||||||
|
this.voiceCancelOrSend = true;
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
},
|
||||||
|
//中断语音
|
||||||
|
voiceTouchcancel() {
|
||||||
|
console.log("中断语音");
|
||||||
|
this.voicepopUpstart = false;
|
||||||
|
this.voiceCancelOrSend = false;
|
||||||
|
},
|
||||||
|
//语音切换
|
||||||
|
onVoice(status) {
|
||||||
|
this.checkRecordPermission();
|
||||||
|
if (status) {
|
||||||
|
this.inputfocus = false;
|
||||||
|
this.MoreStatus = false;
|
||||||
|
} else {
|
||||||
|
this.inputfocus = true;
|
||||||
|
}
|
||||||
|
this.voiceStatus = status;
|
||||||
|
},
|
||||||
|
//录音权限
|
||||||
|
checkRecordPermission() {
|
||||||
|
// 检查当前录音权限状态
|
||||||
|
uni.getSetting({
|
||||||
|
success: (res) => {
|
||||||
|
const hasPermission = res.authSetting["scope.record"];
|
||||||
|
if (hasPermission === undefined) {
|
||||||
|
this.requestPermission();
|
||||||
|
} else if (!hasPermission) {
|
||||||
|
this.voiceStatus = false;
|
||||||
|
uni.showModal({
|
||||||
|
title: "权限提示",
|
||||||
|
content: "需要录音权限才能正常使用功能,请在设置中开启",
|
||||||
|
confirmText: "去开启",
|
||||||
|
success: (modalRes) => {
|
||||||
|
if (modalRes.confirm) {
|
||||||
|
uni.openSetting({
|
||||||
|
success: (settingRes) => {
|
||||||
|
if (settingRes.authSetting["scope.record"] === true) {
|
||||||
|
this.checkRecordPermission();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//请求录音权限
|
||||||
|
requestPermission() {
|
||||||
|
uni.authorize({
|
||||||
|
scope: "scope.record",
|
||||||
|
fail: (err) => {
|
||||||
|
this.voiceStatus = false;
|
||||||
|
uni.showToast({
|
||||||
|
title: "请授予麦克风权限,否则可能导致语音功能异常",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
//直接发送自定义消息
|
//直接发送自定义消息
|
||||||
sendCustomMessage() {
|
sendCustomMessage() {
|
||||||
request({
|
request({
|
||||||
@@ -493,7 +770,12 @@ export default {
|
|||||||
this.judgescrollTop = false;
|
this.judgescrollTop = false;
|
||||||
}
|
}
|
||||||
this.getscrollviewheight();
|
this.getscrollviewheight();
|
||||||
this.MoreStatus = Status;
|
if (Status) {
|
||||||
|
this.MoreStatus = Status;
|
||||||
|
this.voiceStatus = false;
|
||||||
|
} else {
|
||||||
|
this.MoreStatus = Status;
|
||||||
|
}
|
||||||
const query = uni.createSelectorQuery().in(this);
|
const query = uni.createSelectorQuery().in(this);
|
||||||
query
|
query
|
||||||
.select(".inputComponent")
|
.select(".inputComponent")
|
||||||
@@ -505,35 +787,69 @@ export default {
|
|||||||
//更多消息类型弹窗点击事件
|
//更多消息类型弹窗点击事件
|
||||||
onMoreItem(type) {
|
onMoreItem(type) {
|
||||||
if (type == "Album") {
|
if (type == "Album") {
|
||||||
this.onSendMedia(); //发送图片,视频消息
|
this.onSendMedia(); //发送图片
|
||||||
|
} else if (type == "Video") {
|
||||||
|
this.onSendVideo(); //发送视频
|
||||||
} else {
|
} else {
|
||||||
this.MoreItemStatus = type;
|
this.MoreItemStatus = type;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//发送图片,视频消息
|
//发送视频
|
||||||
onSendMedia() {
|
onSendVideo() {
|
||||||
//picturesVideosMessages
|
var im = this.$goeasy.im;
|
||||||
uni.chooseMedia({
|
uni.chooseVideo({
|
||||||
count: 9,
|
|
||||||
mediaType: ["image", "video"],
|
|
||||||
sourceType: ["album", "camera"],
|
sourceType: ["album", "camera"],
|
||||||
maxDuration: 60,
|
success: (res) => {
|
||||||
camera: "front",
|
var message = im.createVideoMessage({
|
||||||
success(res) {
|
file: res, //H5获得的视频file对象, Uniapp和小程序调用chooseVideo,success时得到的res对象
|
||||||
console.log(res.tempFiles);
|
to: {
|
||||||
if (res.tempFiles.fileType == "image") {
|
type: GoEasy.IM_SCENE.PRIVATE,
|
||||||
|
id: this.userId, //对方用户id
|
||||||
|
data: { avatar: this.avatar, nickname: this.nickname },
|
||||||
}else if (res.tempFiles.fileType == "video") {
|
},
|
||||||
|
onProgress: function (event) {
|
||||||
|
console.log("file uploading:", event);
|
||||||
}
|
}, //获取上传进度
|
||||||
|
});
|
||||||
|
sendGroupMessage(this.$goeasy, message).then((res) => {
|
||||||
|
this.ElementPositioning = res.id = generateId();
|
||||||
|
res.timestampStatus = this.checkInterval(res.timestamp);
|
||||||
|
this.chatList.push(res);
|
||||||
|
this.judgescrollTop = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//发送音频消息
|
//发送图片
|
||||||
onSendAudio() {
|
onSendMedia() {
|
||||||
//audioMessages
|
var im = this.$goeasy.im;
|
||||||
|
uni.chooseImage({
|
||||||
|
count: 9, //默认9
|
||||||
|
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
|
||||||
|
sourceType: ["album", "camera"], //从相册选择
|
||||||
|
success: (res) => {
|
||||||
|
const tempFiles = res.tempFiles;
|
||||||
|
tempFiles.forEach((item, index) => {
|
||||||
|
var message = im.createImageMessage({
|
||||||
|
file: item,
|
||||||
|
to: {
|
||||||
|
type: GoEasy.IM_SCENE.PRIVATE,
|
||||||
|
id: this.userId,
|
||||||
|
data: { avatar: this.avatar, nickname: this.nickname },
|
||||||
|
},
|
||||||
|
onProgress: function (event) {
|
||||||
|
console.log("上传进度", event);
|
||||||
|
}, //获取上传进度
|
||||||
|
});
|
||||||
|
sendGroupMessage(this.$goeasy, message).then((res) => {
|
||||||
|
this.ElementPositioning = res.id = generateId();
|
||||||
|
res.timestampStatus = this.checkInterval(res.timestamp);
|
||||||
|
this.chatList.push(res);
|
||||||
|
this.judgescrollTop = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 获取键盘高度
|
// 获取键盘高度
|
||||||
onFocus(event) {
|
onFocus(event) {
|
||||||
@@ -591,6 +907,9 @@ export default {
|
|||||||
textmessage,
|
textmessage,
|
||||||
InvitationComponents,
|
InvitationComponents,
|
||||||
customPKMessage,
|
customPKMessage,
|
||||||
|
imageMessage,
|
||||||
|
videoMessage,
|
||||||
|
voiceMessage,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -731,7 +1050,6 @@ export default {
|
|||||||
.myChatNewsContent {
|
.myChatNewsContent {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
background-color: #7bbd0093;
|
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
max-width: 450rpx;
|
max-width: 450rpx;
|
||||||
}
|
}
|
||||||
@@ -740,6 +1058,43 @@ export default {
|
|||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
}
|
}
|
||||||
|
.Voice {
|
||||||
|
width: 80rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.KeyboardImg {
|
||||||
|
width: 70rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.Keyboardpng {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
}
|
||||||
|
.MicrophoneImg {
|
||||||
|
margin-top: 5rpx;
|
||||||
|
width: 53rpx;
|
||||||
|
height: 53rpx;
|
||||||
|
border: 4rpx solid #424242;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.Microphonepng {
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
}
|
||||||
.textareacomponent {
|
.textareacomponent {
|
||||||
width: 570rpx;
|
width: 570rpx;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -754,6 +1109,18 @@ export default {
|
|||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
}
|
}
|
||||||
|
.VoiceInput {
|
||||||
|
width: 95%;
|
||||||
|
background-color: #ffffff;
|
||||||
|
height: 60rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
padding: 10rpx;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
text-align: center;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
.sendComponent {
|
.sendComponent {
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
}
|
}
|
||||||
@@ -816,6 +1183,15 @@ export default {
|
|||||||
transition: top 0.25s ease;
|
transition: top 0.25s ease;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
.popUpVoice {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
background-color: #8b8b8bd7;
|
||||||
|
}
|
||||||
|
|
||||||
.popUpInvitationContent {
|
.popUpInvitationContent {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -826,4 +1202,55 @@ export default {
|
|||||||
border-top-left-radius: 40rpx;
|
border-top-left-radius: 40rpx;
|
||||||
border-top-right-radius: 40rpx;
|
border-top-right-radius: 40rpx;
|
||||||
}
|
}
|
||||||
|
.popUpvoiceContent {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 1000rpx;
|
||||||
|
/* transition: bottom 0.1s ease; */
|
||||||
|
/* background-color: #ebebeb; */
|
||||||
|
}
|
||||||
|
.gifModule {
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 120rpx;
|
||||||
|
background-color: #232123;
|
||||||
|
}
|
||||||
|
.voiceCenter {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.video-player {
|
||||||
|
width: 300rpx;
|
||||||
|
height: 300rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
margin-top: -94rpx;
|
||||||
|
}
|
||||||
|
.CancelModule {
|
||||||
|
width: 95%;
|
||||||
|
height: 100rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 100rpx;
|
||||||
|
background-color: #000000a9;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #999999;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
margin-top: 500rpx;
|
||||||
|
}
|
||||||
|
.btnModule {
|
||||||
|
width: 100%;
|
||||||
|
height: 200rpx;
|
||||||
|
background-color: #000000;
|
||||||
|
color: #999999;
|
||||||
|
font-size: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 200rpx;
|
||||||
|
border-top-left-radius: 50%;
|
||||||
|
border-top-right-radius: 50%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
message: {
|
message: {
|
||||||
type: String,
|
type: Object,
|
||||||
default: ''
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
114
pages/index/chat/messageComponent/fullscreen/imagePreview.vue
Normal file
114
pages/index/chat/messageComponent/fullscreen/imagePreview.vue
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
<template>
|
||||||
|
<view class="image-preview" @click="goBack">
|
||||||
|
<view></view>
|
||||||
|
<image class="image" :src="url" mode="aspectFill"></image>
|
||||||
|
<view class="Localbtn" @click.stop>
|
||||||
|
<image
|
||||||
|
class="Local"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
@click="saveImage"
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
url: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
this.url = options.url;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//返回上一页
|
||||||
|
goBack() {
|
||||||
|
wx.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//保存图片
|
||||||
|
saveImage() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '正在下载图片...',
|
||||||
|
mask: true
|
||||||
|
});
|
||||||
|
|
||||||
|
// 下载网络图片到临时文件
|
||||||
|
uni.downloadFile({
|
||||||
|
url: this.url,
|
||||||
|
success: (downloadRes) => {
|
||||||
|
if (downloadRes.statusCode === 200) {
|
||||||
|
// 保存到相册
|
||||||
|
uni.saveImageToPhotosAlbum({
|
||||||
|
filePath: downloadRes.tempFilePath,
|
||||||
|
success: () => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '保存成功',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
},
|
||||||
|
fail: (saveErr) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '保存失败: ' + saveErr.errMsg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '下载失败',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (downloadErr) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '下载失败: ' + downloadErr.errMsg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.image-preview {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: black;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
width: 100vw;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.Localbtn {
|
||||||
|
width: 100vw;
|
||||||
|
height: 50rpx;
|
||||||
|
margin-bottom: 50rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
.Local {
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
margin-right: 50rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
130
pages/index/chat/messageComponent/fullscreen/videoPreview.vue
Normal file
130
pages/index/chat/messageComponent/fullscreen/videoPreview.vue
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
<template>
|
||||||
|
<view class="image-preview">
|
||||||
|
<view class="top">
|
||||||
|
<image
|
||||||
|
class="Fork"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/crossCross.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
@click="goBack() "
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<video class="image" :src="url" mode="aspectFill"></video>
|
||||||
|
<view class="Localbtn" @click.stop>
|
||||||
|
<image
|
||||||
|
class="Local"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
@click="saveImage"
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
url: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
this.url = options.url;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//返回上一页
|
||||||
|
goBack() {
|
||||||
|
wx.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//保存图片
|
||||||
|
saveImage() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: "正在下载视频...",
|
||||||
|
mask: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
// 下载网络图片到临时文件
|
||||||
|
uni.downloadFile({
|
||||||
|
url: this.url,
|
||||||
|
success: (downloadRes) => {
|
||||||
|
if (downloadRes.statusCode === 200) {
|
||||||
|
// 保存到相册
|
||||||
|
uni.saveVideoToPhotosAlbum({
|
||||||
|
filePath: downloadRes.tempFilePath,
|
||||||
|
success: () => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: "保存成功",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
fail: (saveErr) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: "保存失败: " + saveErr.errMsg,
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: "下载失败",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (downloadErr) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: "下载失败: " + downloadErr.errMsg,
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.image-preview {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: black;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
width: 100vw;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.Localbtn {
|
||||||
|
width: 100vw;
|
||||||
|
height: 50rpx;
|
||||||
|
margin-bottom: 50rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
.Local {
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
margin-right: 50rpx;
|
||||||
|
}
|
||||||
|
.Fork{
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
margin-left: 50rpx;
|
||||||
|
}
|
||||||
|
.top{
|
||||||
|
margin-top: 110rpx;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
55
pages/index/chat/messageComponent/imageMessage.vue
Normal file
55
pages/index/chat/messageComponent/imageMessage.vue
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
<template>
|
||||||
|
<view class="image-message" @click="imadeFullScreen">
|
||||||
|
<image class="image" :style="{width: imageWidth + 'rpx', height: imageHeight + 'rpx'}" @load="load" :src="message.url" mode="aspectFit"></image>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
message: {
|
||||||
|
type: Object,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
imageHeight: 0,
|
||||||
|
imageWidth: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
// 页面加载时执行
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
load(event) {
|
||||||
|
if (event.detail.height > 400){
|
||||||
|
this.imageHeight = 400;
|
||||||
|
}else{
|
||||||
|
this.imageHeight = event.detail.height
|
||||||
|
}
|
||||||
|
if (event.detail.width > 400){
|
||||||
|
this.imageWidth = 400;
|
||||||
|
}else{
|
||||||
|
this.imageWidth = event.detail.width
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 点击图片全屏显示
|
||||||
|
imadeFullScreen(){
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/index/chat/messageComponent/fullscreen/imagePreview?url=' + this.message.url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.image-message{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.image{
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
58
pages/index/chat/messageComponent/videoMessage.vue
Normal file
58
pages/index/chat/messageComponent/videoMessage.vue
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<template>
|
||||||
|
<view class="video-message" @click="onTap">
|
||||||
|
<image class="video-player" :src="message.thumbnail.url" mode="scaleToFill" />
|
||||||
|
<image
|
||||||
|
class="Play"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Play.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
message: {
|
||||||
|
type: Object,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: "Hello",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
// 页面加载时执行
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onTap() {
|
||||||
|
wx.navigateTo({
|
||||||
|
url:
|
||||||
|
"/pages/index/chat/messageComponent/fullscreen/videoPreview?url=" +
|
||||||
|
this.message.video.url,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.video-message {
|
||||||
|
width: 450rpx;
|
||||||
|
height: 300rpx;
|
||||||
|
border-radius: 20px;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.video-player {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
.Play {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
margin-left: -330rpx;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
121
pages/index/chat/messageComponent/voiceMessage.vue
Normal file
121
pages/index/chat/messageComponent/voiceMessage.vue
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
<template>
|
||||||
|
<view class="voice-message" @click="Play">
|
||||||
|
<view class="voice-message-content" v-if="senderId == userId">
|
||||||
|
<view>{{ floor(message.duration) }}"</view>
|
||||||
|
<image
|
||||||
|
v-if="NumberClicks == 0"
|
||||||
|
class="voice-message-avatar"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
|
<view class="voice-message-name" v-if="NumberClicks == 1">播放中...</view>
|
||||||
|
<view class="voice-message-name" v-if="NumberClicks == 2">暂停中...</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="voice-message-content" v-else>
|
||||||
|
<image
|
||||||
|
v-if="NumberClicks == 0"
|
||||||
|
class="voice-message-avatar"
|
||||||
|
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
/>
|
||||||
|
<view class="voice-message-name" v-if="NumberClicks == 1">播放中...</view>
|
||||||
|
<view class="voice-message-name" v-if="NumberClicks == 2">暂停中...</view>
|
||||||
|
<view>"{{ floor(message.duration) }}"</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
message: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({}),
|
||||||
|
},
|
||||||
|
senderId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
userId: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
|
playbackStatus: {
|
||||||
|
type: Boolean,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
innerAudioContext: null,
|
||||||
|
NumberClicks: 0,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
playbackStatus(newVal) {
|
||||||
|
if (!newVal) {
|
||||||
|
if (this.innerAudioContext) {
|
||||||
|
this.innerAudioContext.pause();
|
||||||
|
this.innerAudioContext.destroy();
|
||||||
|
this.innerAudioContext = null;
|
||||||
|
this.NumberClicks = 0;
|
||||||
|
this.$emit("notplayVoice", true);
|
||||||
|
} else {
|
||||||
|
this.$emit("notplayVoice", true);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$emit("notplayVoice", true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
floor(num) {
|
||||||
|
return Math.floor(num);
|
||||||
|
},
|
||||||
|
Play() {
|
||||||
|
this.$emit("notplayVoice", false);
|
||||||
|
setTimeout(() => {
|
||||||
|
this.innerAudioContext = uni.createInnerAudioContext();
|
||||||
|
this.innerAudioContext.src = this.message.url;
|
||||||
|
this.innerAudioContext.onEnded(() => {
|
||||||
|
this.NumberClicks = 0;
|
||||||
|
this.innerAudioContext.destroy();
|
||||||
|
this.innerAudioContext = null;
|
||||||
|
});
|
||||||
|
this.innerAudioContext.onError((res) => {
|
||||||
|
this.NumberClicks = 0;
|
||||||
|
this.innerAudioContext.destroy();
|
||||||
|
this.innerAudioContext = null;
|
||||||
|
});
|
||||||
|
|
||||||
|
this.innerAudioContext.play();
|
||||||
|
this.NumberClicks = 1;
|
||||||
|
}, 500);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.voice-message {
|
||||||
|
padding: 0 20rpx 0 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.voice-message-avatar {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.voice-message-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.voice-message-name {
|
||||||
|
height: 80rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999;
|
||||||
|
line-height: 80rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -246,6 +246,7 @@ export default {
|
|||||||
data: {
|
data: {
|
||||||
id: this.inid,
|
id: this.inid,
|
||||||
userId: this.id,
|
userId: this.id,
|
||||||
|
from: 1,
|
||||||
},
|
},
|
||||||
userInfo: true,
|
userInfo: true,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
4
uni_modules/yinrh-menu-popup/changelog.md
Normal file
4
uni_modules/yinrh-menu-popup/changelog.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
## 1.0.1(2021-03-12)
|
||||||
|
上次demo
|
||||||
|
## 1.0.0(2021-03-10)
|
||||||
|
仿IOS长按的悬浮菜单
|
||||||
@@ -0,0 +1,483 @@
|
|||||||
|
<template>
|
||||||
|
<view class="mask" :class="show ? 'mask-show' : ''" :style="{backgroundColor: maskBg}" @tap="tapMask">
|
||||||
|
<view class="popups" :class="[theme]" :style="popupsStyle">
|
||||||
|
<text v-if="triangle" class="triangle" :class="dynPlace" />
|
||||||
|
<scroll-view v-if="direction == 'row'" class="scroll-row" scroll-x="true" :style="{width: scrollWidth}">
|
||||||
|
<view class="scroll-row-view" v-for="(item, idx) in popData" :key="idx" @tap.stop="tapItem(item)">
|
||||||
|
<text :class="'scroll-row-text-' + theme" :disabled="item.disabled">{{item.title}}</text>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<slot></slot>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/**
|
||||||
|
* @property {String} maskBg 遮罩背景颜色,默认 rgba(0,0,0,0),不透明
|
||||||
|
* @property {Boolean} value 显示或隐藏菜单,默认false,true-显示,false-隐藏
|
||||||
|
* @property {Number} x 长按组件的中心值,单位px
|
||||||
|
* @property {Number} y 长按组件的top或bootom值,单位px
|
||||||
|
* @property {String} theme popup的样式,默认light,支持light和dark
|
||||||
|
* @property {Number} gap
|
||||||
|
* @property {Boolean} triangle 是否显示三角图标,默认true,true-显示,false-隐藏
|
||||||
|
* @property {Boolean} dynamic 是否动态显示,默认false,true-是,false-否
|
||||||
|
* @property {Array} popData popup的按钮数据
|
||||||
|
* @property {String} direction 排列方向,默认column,支持column和row
|
||||||
|
* @property {String} placement 三角形图标相对于menu菜单的位置,默认top-start
|
||||||
|
* top-start、top-end
|
||||||
|
* bottom-start、bottom-end
|
||||||
|
* top-center、bottom-center
|
||||||
|
*/
|
||||||
|
let systemInfo = uni.getSystemInfoSync();
|
||||||
|
export default {
|
||||||
|
name: "yinrh-menu-popup",
|
||||||
|
props: {
|
||||||
|
maskBg: {
|
||||||
|
type: String,
|
||||||
|
default: 'rgba(0,0,0,0)'
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
x: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
y: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
theme: {
|
||||||
|
type: String,
|
||||||
|
default: 'light'
|
||||||
|
},
|
||||||
|
gap: {
|
||||||
|
type: Number,
|
||||||
|
default: 20
|
||||||
|
},
|
||||||
|
triangle: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
dynamic: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
popData: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
},
|
||||||
|
direction: {
|
||||||
|
type: String,
|
||||||
|
default: 'column'
|
||||||
|
},
|
||||||
|
placement: {
|
||||||
|
type: String,
|
||||||
|
default: 'top-start'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
value: {
|
||||||
|
immediate: true,
|
||||||
|
handler: async function(newVal, oldVal) {
|
||||||
|
if (newVal) await this.popupsPosition()
|
||||||
|
this.show = newVal
|
||||||
|
}
|
||||||
|
},
|
||||||
|
placement: {
|
||||||
|
immediate: true,
|
||||||
|
handler(newVal, oldVal) {
|
||||||
|
this.dynPlace = newVal
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
/**
|
||||||
|
* 根据menu列表来确定menu的宽度,最大宽度为屏幕宽度的0.8倍
|
||||||
|
* 每个字符串的左右边距是10,单位px
|
||||||
|
* 每个字符串的宽度 = len * 8 + 12,单位px
|
||||||
|
*/
|
||||||
|
scrollWidth() {
|
||||||
|
let width = systemInfo.screenWidth * 0.8,
|
||||||
|
ret = 0;
|
||||||
|
this.popData.forEach((item, index) => {
|
||||||
|
let len = String(item.title).length;
|
||||||
|
ret += len * 8 + 12 + 20;
|
||||||
|
});
|
||||||
|
return (ret > width ? width : ret) + 'px';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
arrowStyle: {}, // triangle的style,确定位置
|
||||||
|
dynPlace: '', // 三角形箭头的class字符串
|
||||||
|
show: false, // 是否显示遮罩,true-显示,false-不显示
|
||||||
|
popupsTop: '0px', // 不用
|
||||||
|
popupsLeft: '0px', // 不用
|
||||||
|
popupsStyle: {} // popups的style,确定位置和方向
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.popupsPosition()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/**
|
||||||
|
* 遮罩显示或隐藏
|
||||||
|
*/
|
||||||
|
tapMask() {
|
||||||
|
this.$emit('input', !this.value);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* menu菜单按钮单击事件
|
||||||
|
* @param {Object} item
|
||||||
|
*/
|
||||||
|
tapItem(item) {
|
||||||
|
if (item.disabled) return;
|
||||||
|
this.$emit('tapPopup', item);
|
||||||
|
this.$emit('input', !this.value);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 动态获得y的值
|
||||||
|
* @param {Object} y
|
||||||
|
* @param {Object} gap
|
||||||
|
*/
|
||||||
|
dynamicGetY(y, gap) {
|
||||||
|
let h = systemInfo.windowHeight;
|
||||||
|
y = y < gap ? gap : y;
|
||||||
|
return h - y < gap ? (h - gap) : y;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 动态获得x的值
|
||||||
|
* @param {Object} x
|
||||||
|
* @param {Object} gap
|
||||||
|
*/
|
||||||
|
dynamicGetX(x, gap) {
|
||||||
|
let w = systemInfo.windowWidth;
|
||||||
|
x = x < gap ? gap : x;
|
||||||
|
return w - x < gap ? (w - gap) : x;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 静态获得x或y的值
|
||||||
|
* @param {Object} v
|
||||||
|
*/
|
||||||
|
transformRpx(v) {
|
||||||
|
return v * systemInfo.screenWidth / 375;
|
||||||
|
},
|
||||||
|
async popupsPosition() {
|
||||||
|
let promise = new Promise((resolve, reject) => {
|
||||||
|
let popups = uni.createSelectorQuery().in(this);
|
||||||
|
popups.select(".popups").fields({
|
||||||
|
size: true,
|
||||||
|
}, (data) => {
|
||||||
|
let x, y;
|
||||||
|
if (this.dynamic) { // 动态
|
||||||
|
x = this.dynamicGetX(this.x, this.gap);
|
||||||
|
y = this.dynamicGetY(this.y, this.gap);
|
||||||
|
} else { // 静态
|
||||||
|
let _v = systemInfo.screenWidth / 375;
|
||||||
|
x = this.x * _v;
|
||||||
|
y = this.y * _v;
|
||||||
|
}
|
||||||
|
let _ssw = systemInfo.screenWidth,
|
||||||
|
_rpx = uni.upx2px(20),
|
||||||
|
_top = y - _rpx - data.height,
|
||||||
|
left = (_ssw - data.width) / 2;
|
||||||
|
this.dynPlace = this.placement; // 三角形箭头
|
||||||
|
switch (this.dynPlace) {
|
||||||
|
case 'top-start': // 上左,y为bottom
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${y + _rpx}px`,
|
||||||
|
left: '15px',
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'top-end': // 上右,y为bottom
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${y + _rpx}px`,
|
||||||
|
right: '15px',
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'top-center': // 上中,y为bottom
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${y + _rpx}px`,
|
||||||
|
left: `${left}px`,
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'bottom-start': // 下左,y为top
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${_top}px`,
|
||||||
|
left: '15px',
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'bottom-end': // 下右,y为top
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${_top}px`,
|
||||||
|
right: '15px',
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'bottom-center': // 下中,y为top
|
||||||
|
this.popupsStyle = {
|
||||||
|
top: `${_top}px`,
|
||||||
|
left: `${left}px`,
|
||||||
|
flexDirection: this.direction
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
resolve()
|
||||||
|
}).exec();
|
||||||
|
})
|
||||||
|
return promise
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
/** mask:遮罩 */
|
||||||
|
.mask {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
visibility: hidden;
|
||||||
|
transition: background 0.3s ease-in-out;
|
||||||
|
|
||||||
|
&.mask-show {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** menu:菜单弹窗 */
|
||||||
|
.popups {
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** scroll-row:支持横向滑动 */
|
||||||
|
.scroll-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 45px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-row-view {
|
||||||
|
width: auto;
|
||||||
|
height: 25px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 10px;
|
||||||
|
border-right: 1px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-row-view:last-child {
|
||||||
|
border-right: 0px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** scroll-view横向滑动dark的文本样式 */
|
||||||
|
.scroll-row-text-dark {
|
||||||
|
width: auto;
|
||||||
|
height: 25px;
|
||||||
|
line-height: 25px;
|
||||||
|
text-align: center;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 30rpx;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** scroll-view横向滑动dark的disabled文本样式 */
|
||||||
|
.scroll-row-text-dark[disabled] {
|
||||||
|
color: #C5C8CE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** scroll-view横向滑动light的文本样式 */
|
||||||
|
.scroll-row-text-light {
|
||||||
|
width: auto;
|
||||||
|
height: 25px;
|
||||||
|
line-height: 25px;
|
||||||
|
text-align: center;
|
||||||
|
color: #515A6E;
|
||||||
|
font-size: 30rpx;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** scroll-view横向滑动light的disabled文本样式 */
|
||||||
|
.scroll-row-text-light[disabled] {
|
||||||
|
color: #C5C8CE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.triangle {
|
||||||
|
width: 0px;
|
||||||
|
height: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** dark:popups的theme值,黑底白字 */
|
||||||
|
.dark {
|
||||||
|
background-color: #4C4C4C;
|
||||||
|
|
||||||
|
.top-start:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
left: 20px;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #4C4C4C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-end:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
right: 20px;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #4C4C4C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-center:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
left: 47%;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #4C4C4C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-start:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
left: 20px;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #4C4C4C transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-end:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
right: 20px;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #4C4C4C transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-center:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
left: 47%;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #4C4C4C transparent transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** light:popups的theme值,白底黑字 */
|
||||||
|
.light {
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0upx 0upx 30upx rgba(0, 0, 0, 0.2);
|
||||||
|
|
||||||
|
.top-start:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
left: 20px;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-end:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
right: 20px;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-center:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
right: 48%;
|
||||||
|
border-width: 0 20rpx 20rpx;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-start:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
left: 20px;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #FFFFFF transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-end:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
right: 20px;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #FFFFFF transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-end:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18rpx;
|
||||||
|
left: 48%;
|
||||||
|
border-width: 20rpx 20rpx 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #FFFFFF transparent transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.popups.item:last-child {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
._right {
|
||||||
|
border-right: 1px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
|
||||||
|
._right:last-child {
|
||||||
|
border-right: 0px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
|
||||||
|
._bottom {
|
||||||
|
border-bottom: 1px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
|
||||||
|
._bottom:last-child {
|
||||||
|
border-bottom: 0px solid #CCCCCC;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
76
uni_modules/yinrh-menu-popup/package.json
Normal file
76
uni_modules/yinrh-menu-popup/package.json
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"id": "yinrh-menu-popup",
|
||||||
|
"displayName": "yinrh-menu-popup仿IOS长按的悬浮菜单",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"description": "仿IOS长按的悬浮菜单",
|
||||||
|
"keywords": [
|
||||||
|
"yinrh-menu-popup"
|
||||||
|
],
|
||||||
|
"repository": "",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"category": [
|
||||||
|
"前端组件",
|
||||||
|
"通用组件"
|
||||||
|
],
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "无",
|
||||||
|
"data": "插件不采集任何数据",
|
||||||
|
"permissions": "无"
|
||||||
|
},
|
||||||
|
"npmurl": ""
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": [],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "y",
|
||||||
|
"aliyun": "y"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"App": {
|
||||||
|
"app-vue": "y",
|
||||||
|
"app-nvue": "y"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "y",
|
||||||
|
"Android Browser": "y",
|
||||||
|
"微信浏览器(Android)": "y",
|
||||||
|
"QQ浏览器(Android)": "y"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "y",
|
||||||
|
"IE": "y",
|
||||||
|
"Edge": "y",
|
||||||
|
"Firefox": "y",
|
||||||
|
"Safari": "y"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "y",
|
||||||
|
"阿里": "y",
|
||||||
|
"百度": "y",
|
||||||
|
"字节跳动": "y",
|
||||||
|
"QQ": "y"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "y",
|
||||||
|
"联盟": "y"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
49
uni_modules/yinrh-menu-popup/readme.md
Normal file
49
uni_modules/yinrh-menu-popup/readme.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
## yinrh-menu-popup
|
||||||
|
仿IOS长按的悬浮菜单
|
||||||
|
|
||||||
|
## 使用方法
|
||||||
|
### 在``template``中直接使用
|
||||||
|
```
|
||||||
|
<yinrh-menu-popup v-model="value" :pop-data="menu" dynamic :x="x" :y="y" direction="row" theme="dark"
|
||||||
|
:placement="place" @tapPopup="tapPopup" />
|
||||||
|
```
|
||||||
|
### 在``template``中,需要出现菜单的 view 上添加 id 和 click 事件
|
||||||
|
```
|
||||||
|
<text id="popup-menu" @longTap="longTap">长按出现悬浮菜单</text>
|
||||||
|
```
|
||||||
|
### 在``script``中,添加 longTap 和 tapPopup 方法
|
||||||
|
```
|
||||||
|
longTap() {
|
||||||
|
let dom = uni.createSelectorQuery().in(this);
|
||||||
|
// popup-menu 为上面添加的 id 值
|
||||||
|
dom.select('#popup-menu').boundingClientRect();
|
||||||
|
dom.exec(data => {
|
||||||
|
// 配置 place、value、x、y 的值
|
||||||
|
let isTop = data[0].top >= 60,
|
||||||
|
place = isTop ? 'bottom' : 'top';
|
||||||
|
this.place = place + '-center';
|
||||||
|
this.value = !this.value;
|
||||||
|
this.x = data[0]['width'] / 2;
|
||||||
|
this.y = data[0][isTop ? 'top' : 'bottom'];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
tapPopup(e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 参数说明
|
||||||
|
+ maskBg:遮罩背景颜色,默认 rgba(0,0,0,0),不透明
|
||||||
|
+ value:显示或隐藏菜单,true-显示,false-隐藏,默认 true
|
||||||
|
+ x:长按组件的中心值,单位px
|
||||||
|
+ y:长按组件的 top 或 bootom 值,单位px
|
||||||
|
+ theme:悬浮菜单的样式,支持 light 和 dark,默认 light
|
||||||
|
+ gap:
|
||||||
|
+ triangle:悬浮菜单的箭头,true-显示,false-隐藏,默认 true
|
||||||
|
+ dynamic:悬浮菜单的显示方式,true-动态,false-静态,默认 true
|
||||||
|
+ popData:悬浮菜单的列表
|
||||||
|
+ direction:悬浮菜单排列方向,支持 column 和 row,默认 column
|
||||||
|
+ placement:悬浮菜单的箭头相对于菜单的位置 top-start、top-end、bottom-start、bottom-end、top-center、bottom-center,默认 top-start
|
||||||
2
unpackage/dist/build/mp-weixin/app.json
vendored
2
unpackage/dist/build/mp-weixin/app.json
vendored
@@ -11,6 +11,8 @@
|
|||||||
"pages/Mine/minecomponents/serviceProtocol",
|
"pages/Mine/minecomponents/serviceProtocol",
|
||||||
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||||
"pages/PKMessageprocessing/PKMessageprocessing",
|
"pages/PKMessageprocessing/PKMessageprocessing",
|
||||||
|
"pages/index/chat/messageComponent/fullscreen/imagePreview",
|
||||||
|
"pages/index/chat/messageComponent/fullscreen/videoPreview",
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/index/chat/chat",
|
"pages/index/chat/chat",
|
||||||
"pages/login/login",
|
"pages/login/login",
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"use strict";const o=require("../../common/vendor.js");exports.conversationDelete=function(o,n){return new Promise(((e,t)=>{o.im.removeConversation({conversation:n,onSuccess:function(){e("删除会话成功")},onFailed:function(o){console.log(o)}})}))},exports.conversationTop=function(o,n,e){return new Promise(((t,s)=>{o.im.topConversation({conversation:n,top:e,onSuccess:function(){t("成功")},onFailed:function(o){console.log("失败:",o)}})}))},exports.getConversationList=function(o){return new Promise(((n,e)=>{o.im.latestConversations({onSuccess:function(o){console.log("获取会话列表成功",o),n(o.content)},onFailed:function(o){console.log("获取会话列表失败, code:"+o.code+" content:"+o.content)}})}))},exports.getConversationMessages=function(n,e,t){return new Promise(((s,c)=>{n.im.history({id:e,type:o.jo.IM_SCENE.PRIVATE,lastTimestamp:t,limit:30,onSuccess:function(o){console.log("获取消息列表成功",o),s(o.content)},onFailed:function(o){console.log("获取消息列表失败, code:"+o.code+" content:"+o.content)}})}))},exports.goEasylogin=function(o,n,e,t){console.log("`````````````````goEasylogin`````````````````",n,e,t),o.connect({id:n,data:{avatar:e,nickname:t},onSuccess:function(){console.log("IM连接成功")},onFailed:function(o){console.log("IM连接失败, code:"+o.code+",error:"+o.content)},onProgress:function(o){console.log("IM连接或自动重连中",o)}})},exports.goEasylogout=function(o){o.disconnect({onSuccess:function(){console.log("IM断开成功")},onFailed:function(o){console.log("IM断开失败, code:"+o.code+",error:"+o.content)}})},exports.messageRead=function(n,e){return new Promise(((t,s)=>{n.im.markMessageAsRead({id:e,type:o.jo.IM_SCENE.PRIVATE,onSuccess:function(){t()},onFailed:function(o){console.log("标记私聊已读失败",o)}})}))},exports.sendCustomMessage=function(n,e,t,s,c,i){return new Promise(((r,a)=>{var l=n.im,u=l.createCustomMessage({type:e,payload:s,to:{type:o.jo.IM_SCENE.PRIVATE,id:t,data:{avatar:c,nickname:i}}});l.sendMessage({message:u,onSuccess:function(){r(u)},onFailed:function(o){console.log("Failed to send message,code:"+o.code+",error"+o.content)}})}))},exports.sendMessage=function(n,e,t,s,c){return new Promise(((i,r)=>{var a=n.im;let l=a.createTextMessage({text:t,to:{type:o.jo.IM_SCENE.PRIVATE,id:e,data:{avatar:s,nickname:c}}});a.sendMessage({message:l,onSuccess:function(){i(l)},onFailed:function(o){console.log("发送消息失败,code:"+o.code+" ,error "+o.content),r(o)}})}))};
|
"use strict";const o=require("../../common/vendor.js");exports.conversationDelete=function(n,e){return new Promise(((t,s)=>{n.im.removeConversation({conversation:e,onSuccess:function(){t("删除会话成功")},onFailed:function(n){console.log(n),o.index.showToast({title:"删除会话失败",icon:"none"})}})}))},exports.conversationTop=function(n,e,t){return new Promise(((s,c)=>{n.im.topConversation({conversation:e,top:t,onSuccess:function(){s("成功")},onFailed:function(n){console.log("失败:",n),o.index.showToast({title:"置顶会话失败",icon:"none"})}})}))},exports.getConversationList=function(n){return new Promise(((e,t)=>{n.im.latestConversations({onSuccess:function(o){console.log("获取会话列表成功",o),e(o.content)},onFailed:function(n){console.log("获取会话列表失败, code:"+n.code+" content:"+n.content),o.index.showToast({title:"获取会话列表失败",icon:"none"})}})}))},exports.getConversationMessages=function(n,e,t){return new Promise(((s,c)=>{n.im.history({id:e,type:o.jo.IM_SCENE.PRIVATE,lastTimestamp:t,limit:30,onSuccess:function(o){console.log("获取消息列表成功",o),s(o.content)},onFailed:function(n){console.log("获取消息列表失败, code:"+n.code+" content:"+n.content),o.index.showToast({title:"获取消息列表失败",icon:"none"})}})}))},exports.goEasylogin=function(o,n,e,t){console.log("`````````````````goEasylogin`````````````````",n,e,t),o.connect({id:n,data:{avatar:e,nickname:t},onSuccess:function(){console.log("IM连接成功")},onFailed:function(o){console.log("IM连接失败, code:"+o.code+",error:"+o.content)},onProgress:function(o){console.log("IM连接或自动重连中",o)}})},exports.goEasylogout=function(o){o.disconnect({onSuccess:function(){console.log("IM断开成功")},onFailed:function(o){console.log("IM断开失败, code:"+o.code+",error:"+o.content)}})},exports.messageRead=function(n,e){return new Promise(((t,s)=>{n.im.markMessageAsRead({id:e,type:o.jo.IM_SCENE.PRIVATE,onSuccess:function(){t()},onFailed:function(n){console.log("标记私聊已读失败",n),o.index.showToast({title:"标记私聊已读失败",icon:"none"})}})}))},exports.sendCustomMessage=function(n,e,t,s,c,i){return new Promise(((a,r)=>{var l=n.im,u=l.createCustomMessage({type:e,payload:s,to:{type:o.jo.IM_SCENE.PRIVATE,id:t,data:{avatar:c,nickname:i}}});l.sendMessage({message:u,onSuccess:function(){a(u)},onFailed:function(n){console.log("Failed to send message,code:"+n.code+",error"+n.content),o.index.showToast({title:"发送自定义消息失败",icon:"none"})}})}))},exports.sendGroupMessage=function(n,e){return new Promise(((t,s)=>{n.im.sendMessage({message:e,onSuccess:()=>{t(e)},onFailed:function(n){o.index.showToast({title:"发送消息失败",icon:"none"})}})}))},exports.sendMessage=function(n,e,t,s,c){return new Promise(((i,a)=>{var r=n.im;let l=r.createTextMessage({text:t,to:{type:o.jo.IM_SCENE.PRIVATE,id:e,data:{avatar:s,nickname:c}}});r.sendMessage({message:l,onSuccess:function(){i(l)},onFailed:function(n){console.log("发送消息失败,code:"+n.code+" ,error "+n.content),o.index.showToast({title:"发送消息失败",icon:"none"}),a(n)}})}))};
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
.page.data-v-2f53d7f7{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-2f53d7f7{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-2f53d7f7{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-2f53d7f7{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:2}.contentList.data-v-2f53d7f7{position:fixed;top:312rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-2f53d7f7{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.scroll.data-v-2f53d7f7 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.content-list.data-v-2f53d7f7{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-2f53d7f7{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-2f53d7f7{display:flex;align-items:center}.cardname.data-v-2f53d7f7{font-size:31rpx;color:#161616;line-height:38rpx;margin-bottom:20rpx}.Genderimg.data-v-2f53d7f7{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-2f53d7f7{color:#fff;font-size:14rpx}.Gendermale.data-v-2f53d7f7{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-2f53d7f7{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-2f53d7f7{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-2f53d7f7{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-2f53d7f7{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-2f53d7f7{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}.popup-container.data-v-2f53d7f7{height:1626px;width:650rpx;background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png);border-radius:15rpx;display:flex;flex-direction:column;align-items:center}.popup-title.data-v-2f53d7f7{font-size:50rpx;line-height:50rpx;margin-top:250rpx;font-weight:700;background:linear-gradient(135deg,#00afb2,#4fcacd);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.p-country.data-v-2f53d7f7{width:500rpx;height:100rpx;margin-top:80rpx}.popup-sex.data-v-2f53d7f7{width:500rpx;height:100rpx;margin-top:40rpx;display:flex;justify-content:space-between}.p-sex.data-v-2f53d7f7{width:420rpx;height:100rpx}.Gendericoncss.data-v-2f53d7f7{display:flex;justify-content:center;align-items:center;width:60rpx;height:60rpx;border-radius:50%;border:1rpx solid #ff9d0067;margin-left:20rpx;margin-top:10rpx}.Gendericon.data-v-2f53d7f7{width:40rpx;height:40rpx}.popup-coin.data-v-2f53d7f7{width:500rpx;margin-top:40rpx;display:flex}.p-coin.data-v-2f53d7f7{width:500rpx;display:flex;flex-direction:column;align-items:center}.p-dar.data-v-2f53d7f7{margin-top:30rpx}.p-coin-title.data-v-2f53d7f7{font-size:20rpx;color:#a3a3a3}.p-time.data-v-2f53d7f7{width:500rpx;margin-top:40rpx}.popup-btn-cancel.data-v-2f53d7f7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.popup-btn-confirm.data-v-2f53d7f7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcd9d,#5fdeba)}.popup-btn-clear.data-v-2f53d7f7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#cd924f,#debc5f)}.Hintcss.data-v-2f53d7f7{font-size:18rpx;color:#f55}.popup-btn.data-v-2f53d7f7{width:600rpx;height:100rpx;display:flex;justify-content:space-around;align-items:center;margin-top:400rpx}
|
.page.data-v-0c7034b7{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-0c7034b7{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-0c7034b7{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-0c7034b7{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:2}.contentList.data-v-0c7034b7{position:fixed;top:312rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-0c7034b7{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.scroll.data-v-0c7034b7 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.content-list.data-v-0c7034b7{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-0c7034b7{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-0c7034b7{display:flex;align-items:center}.cardname.data-v-0c7034b7{font-size:31rpx;color:#161616;line-height:38rpx;margin-bottom:20rpx}.Genderimg.data-v-0c7034b7{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-0c7034b7{color:#fff;font-size:14rpx}.Gendermale.data-v-0c7034b7{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-0c7034b7{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-0c7034b7{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-0c7034b7{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-0c7034b7{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-0c7034b7{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}.popup-container.data-v-0c7034b7{height:1626px;width:650rpx;background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png);border-radius:15rpx;display:flex;flex-direction:column;align-items:center}.popup-title.data-v-0c7034b7{font-size:50rpx;line-height:50rpx;margin-top:250rpx;font-weight:700;background:linear-gradient(135deg,#00afb2,#4fcacd);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.p-country.data-v-0c7034b7{width:500rpx;height:100rpx;margin-top:80rpx}.popup-sex.data-v-0c7034b7{width:500rpx;height:100rpx;margin-top:40rpx;display:flex;justify-content:space-between}.p-sex.data-v-0c7034b7{width:420rpx;height:100rpx}.Gendericoncss.data-v-0c7034b7{display:flex;justify-content:center;align-items:center;width:60rpx;height:60rpx;border-radius:50%;border:1rpx solid #ff9d0067;margin-left:20rpx;margin-top:10rpx}.Gendericon.data-v-0c7034b7{width:40rpx;height:40rpx}.popup-coin.data-v-0c7034b7{width:500rpx;margin-top:40rpx;display:flex}.p-coin.data-v-0c7034b7{width:500rpx;display:flex;flex-direction:column;align-items:center}.p-dar.data-v-0c7034b7{margin-top:30rpx}.p-coin-title.data-v-0c7034b7{font-size:20rpx;color:#a3a3a3}.p-time.data-v-0c7034b7{width:500rpx;margin-top:40rpx}.popup-btn-cancel.data-v-0c7034b7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.popup-btn-confirm.data-v-0c7034b7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcd9d,#5fdeba)}.popup-btn-clear.data-v-0c7034b7{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#cd924f,#debc5f)}.Hintcss.data-v-0c7034b7{font-size:18rpx;color:#f55}.popup-btn.data-v-0c7034b7{width:600rpx;height:100rpx;display:flex;justify-content:space-around;align-items:center;margin-top:400rpx}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
.bg.data-v-f3849681{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-f3849681{width:100%;height:100%}.PersonalInformation.data-v-f3849681{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.PersonalInformationContent.data-v-f3849681{display:flex;flex-direction:column}.nameandSign.data-v-f3849681{display:flex;align-items:center}.header.data-v-f3849681{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-f3849681{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-f3849681{width:100%;height:100%}.level.data-v-f3849681{height:46rpx;margin-top:20rpx;display:flex}.points.data-v-f3849681{display:flex;align-items:center;font-size:28rpx;color:#a4a4a4}.name.data-v-f3849681{width:280rpx;font-size:36.26rpx;font-weight:500;color:#161616;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.Sign.data-v-f3849681{width:100rpx;height:50rpx;background-color:#91e3e4;border-radius:20rpx;font-size:20rpx;color:#fff;text-align:center;line-height:50rpx;margin-left:30rpx}.content.data-v-f3849681{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-f3849681{position:absolute;top:0;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-f3849681 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.PKInformation.data-v-f3849681,.myPkRecord.data-v-f3849681{margin-top:48.5rpx}.title.data-v-f3849681{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-f3849681{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-f3849681{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.AnchorMore.data-v-f3849681{margin-left:390rpx;font-size:28.63rpx;color:#333}.titleMore.data-v-f3849681{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-f3849681{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-f3849681{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-f3849681:first-child{margin-left:30rpx}.cardContent.data-v-f3849681{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-f3849681{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-f3849681,.gold.data-v-f3849681{font-size:20rpx;text-align:center;margin-top:10rpx}.Failure.data-v-f3849681{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-f3849681{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-f3849681{font-weight:700;font-size:20rpx;margin-top:10rpx}.service.data-v-f3849681{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-f3849681{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-f3849681{font-size:23rpx;color:#929292;text-align:center;position:absolute;bottom:0rpx;left:0;right:0;height:50rpx}.no-content.data-v-f3849681{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}.popup-container-expurgate.data-v-f3849681{width:500rpx;height:300rpx;background-color:#fff;border-radius:30rpx;display:flex;flex-direction:column;align-items:center;padding:30rpx}.popup-title.data-v-f3849681{font-size:40rpx;color:#161616;font-weight:700;margin-top:30rpx;text-align:center}.popup-btn.data-v-f3849681{margin-top:80rpx;display:flex;justify-content:center}.uni-primary.data-v-f3849681{width:200rpx;height:70rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde);font-size:25rpx;color:#fff;text-align:center;line-height:70rpx;margin-right:35rpx}.uni-default.data-v-f3849681{width:200rpx;height:70rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#cecece,#d6d6d6);font-size:25rpx;color:#161616;text-align:center;line-height:70rpx}
|
.bg.data-v-d145bb3e{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-d145bb3e{width:100%;height:100%}.PersonalInformation.data-v-d145bb3e{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.PersonalInformationContent.data-v-d145bb3e{display:flex;flex-direction:column}.nameandSign.data-v-d145bb3e{display:flex;align-items:center}.header.data-v-d145bb3e{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-d145bb3e{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-d145bb3e{width:100%;height:100%}.level.data-v-d145bb3e{height:46rpx;margin-top:20rpx;display:flex}.points.data-v-d145bb3e{display:flex;align-items:center;font-size:28rpx;color:#a4a4a4}.name.data-v-d145bb3e{width:280rpx;font-size:36.26rpx;font-weight:500;color:#161616;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.Sign.data-v-d145bb3e{width:100rpx;height:50rpx;background-color:#91e3e4;border-radius:20rpx;font-size:20rpx;color:#fff;text-align:center;line-height:50rpx;margin-left:30rpx}.content.data-v-d145bb3e{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-d145bb3e{position:absolute;top:0;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-d145bb3e ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.PKInformation.data-v-d145bb3e,.myPkRecord.data-v-d145bb3e{margin-top:48.5rpx}.title.data-v-d145bb3e{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-d145bb3e{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-d145bb3e{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.AnchorMore.data-v-d145bb3e{margin-left:390rpx;font-size:28.63rpx;color:#333}.titleMore.data-v-d145bb3e{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-d145bb3e{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-d145bb3e{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-d145bb3e:first-child{margin-left:30rpx}.cardContent.data-v-d145bb3e{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-d145bb3e{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-d145bb3e,.gold.data-v-d145bb3e{font-size:20rpx;text-align:center;margin-top:10rpx}.Failure.data-v-d145bb3e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-d145bb3e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-d145bb3e{font-weight:700;font-size:20rpx;margin-top:10rpx}.service.data-v-d145bb3e{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-d145bb3e{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-d145bb3e{font-size:23rpx;color:#929292;text-align:center;position:absolute;bottom:0rpx;left:0;right:0;height:50rpx}.no-content.data-v-d145bb3e{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}.popup-container-expurgate.data-v-d145bb3e{width:500rpx;height:300rpx;background-color:#fff;border-radius:30rpx;display:flex;flex-direction:column;align-items:center;padding:30rpx}.popup-title.data-v-d145bb3e{font-size:40rpx;color:#161616;font-weight:700;margin-top:30rpx;text-align:center}.popup-btn.data-v-d145bb3e{margin-top:80rpx;display:flex;justify-content:center}.uni-primary.data-v-d145bb3e{width:200rpx;height:70rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde);font-size:25rpx;color:#fff;text-align:center;line-height:70rpx;margin-right:35rpx}.uni-default.data-v-d145bb3e{width:200rpx;height:70rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#cecece,#d6d6d6);font-size:25rpx;color:#161616;text-align:center;line-height:70rpx}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../../../components/request.js"),n=require("../../../../components/formatDate.js"),i={data:()=>({title:"Hello",item:{},coinNumlist:[],triggered:!1,iconNumber:123457}),onLoad(e){this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,this.getCoinNum(this.item)}))},methods:{formatCoinNum(e){if(null==e)return"";if(e<1e3)return String(e);if(e>=1e6)return"1M+";const t=e/1e3,n=t.toFixed(2).match(/^\d+\.\d{0,2}/);if(null===n)return t.toFixed(2)+"k";return`${n[0]}k`},onRefresherRefresh(){this.triggered=!0,this.coinNumlist=[],this.getCoinNum(this.item)},getCoinNum(e){t.request({url:"pk/fetchDetailPkDataWithId",method:"POST",data:{id:e.id},userInfo:!0}).then((e=>{200==e.code?(this.coinNumlist=e.data,this.triggered=!1):console.log("获取金币数量失败")}))},formatDate:n.formatDate,onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const r=e._export_sfc(i,[["render",function(t,n,i,r,o,m){return e.e({a:e.o(((...e)=>m.onBack&&m.onBack(...e))),b:o.item.anchorIconA,c:o.item.winnerAnchorId==o.item.anchorIdA},(o.item.winnerAnchorId,o.item.anchorIdA,{}),{d:e.t(o.item.anchorIdA),e:e.t(m.formatDate(o.item.pkTime)),f:e.t(m.formatCoinNum(o.iconNumber)),g:o.item.anchorIconB,h:o.item.winnerAnchorId==o.item.anchorIdB},(o.item.winnerAnchorId,o.item.anchorIdB,{}),{i:e.t(o.item.anchorIdB),j:e.t(m.formatDate(o.item.pkTime)),k:null!==o.item.userBCoins},null!==o.item.userBCoins?{l:e.t(m.formatCoinNum(o.item.userBCoins))}:{},{m:e.f(o.coinNumlist,((t,n,i)=>({a:e.t(m.formatCoinNum(t.anchorCoinA)),b:t.anchorIdA==t.winnerAnchorId?"#00fbff21":"#ff000011",c:e.t(m.formatCoinNum(t.anchorCoinB)),d:t.anchorIdB==t.winnerAnchorId?"#00fbff21":"#ff000011",e:n,f:"50b361e7-0-"+i}))),n:e.o(((...e)=>m.onRefresherRefresh&&m.onRefresherRefresh(...e))),o:o.triggered})}],["__scopeId","data-v-50b361e7"]]);wx.createPage(r);
|
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../../../components/request.js"),n=require("../../../../components/formatDate.js"),i={data:()=>({title:"Hello",item:{},coinNumlist:[],triggered:!1}),onLoad(e){this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,this.getCoinNum(this.item)}))},methods:{formatCoinNum(e){if(null==e)return"";if(e<1e3)return String(e);if(e>=1e6)return"1M+";const t=e/1e3,n=t.toFixed(2).match(/^\d+\.\d{0,2}/);if(null===n)return t.toFixed(2)+"k";return`${n[0]}k`},onRefresherRefresh(){this.triggered=!0,this.coinNumlist=[],this.getCoinNum(this.item)},getCoinNum(e){t.request({url:"pk/fetchDetailPkDataWithId",method:"POST",data:{id:e.id},userInfo:!0}).then((e=>{200==e.code?(this.coinNumlist=e.data,this.triggered=!1):console.log("获取金币数量失败")}))},formatDate:n.formatDate,onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const r=e._export_sfc(i,[["render",function(t,n,i,r,o,m){return e.e({a:e.o(((...e)=>m.onBack&&m.onBack(...e))),b:o.item.anchorIconA,c:o.item.winnerAnchorId==o.item.anchorIdA},(o.item.winnerAnchorId,o.item.anchorIdA,{}),{d:e.t(o.item.anchorIdA),e:e.t(m.formatDate(o.item.pkTime)),f:null!==o.item.userACoins},null!==o.item.userACoins?{g:e.t(m.formatCoinNum(o.item.userACoins))}:{},{h:o.item.anchorIconB,i:o.item.winnerAnchorId==o.item.anchorIdB},(o.item.winnerAnchorId,o.item.anchorIdB,{}),{j:e.t(o.item.anchorIdB),k:e.t(m.formatDate(o.item.pkTime)),l:null!==o.item.userBCoins},null!==o.item.userBCoins?{m:e.t(m.formatCoinNum(o.item.userBCoins))}:{},{n:e.f(o.coinNumlist,((t,n,i)=>({a:e.t(m.formatCoinNum(t.anchorCoinA)),b:t.anchorIdA==t.winnerAnchorId?"#00fbff21":"#ff000011",c:e.t(m.formatCoinNum(t.anchorCoinB)),d:t.anchorIdB==t.winnerAnchorId?"#00fbff21":"#ff000011",e:n,f:"a64c325c-0-"+i}))),o:e.o(((...e)=>m.onRefresherRefresh&&m.onRefresherRefresh(...e))),p:o.triggered})}],["__scopeId","data-v-a64c325c"]]);wx.createPage(r);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="details-pkrecords data-v-50b361e7"><view class="bg data-v-50b361e7"><image class="bgImg data-v-50b361e7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-50b361e7" bindtap="{{a}}"><image class="ReturnImg data-v-50b361e7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-50b361e7">PK记录详情</view><view class="pkrecords data-v-50b361e7"><view class="card data-v-50b361e7"><view class="AnchorA data-v-50b361e7"><view class="Anchor data-v-50b361e7"><view class="AnchorAImg data-v-50b361e7"><image class="AnchorAImgcss data-v-50b361e7" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-50b361e7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-50b361e7"><view class="AnchorAname data-v-50b361e7">{{d}}</view><view class="AnchorATime data-v-50b361e7">{{e}}</view><view class="AnchorAICon data-v-50b361e7"><view class="AnchorAIContext data-v-50b361e7">实际打金币:</view><view class="AnchorAIConNum data-v-50b361e7">{{f}}</view></view></view></view><view class="vstext data-v-50b361e7"><view class="Vtext data-v-50b361e7">V</view><view class="Stext data-v-50b361e7">S</view></view><view class="AnchorB data-v-50b361e7"><view class="Anchor data-v-50b361e7"><view class="AnchorAImg data-v-50b361e7"><image class="AnchorBImgcss data-v-50b361e7" src="{{g}}" mode="scaleToFill"/></view><image wx:if="{{h}}" class="Crown data-v-50b361e7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-50b361e7"><view class="AnchorAname data-v-50b361e7">{{i}}</view><view class="AnchorATime data-v-50b361e7">{{j}}</view><view wx:if="{{k}}" class="AnchorAICon data-v-50b361e7"><view class="AnchorAIContext data-v-50b361e7">实际打金币:</view><view class="AnchorAIConNum data-v-50b361e7">{{l}}</view></view></view></view></view><view class="pkrecords-content data-v-50b361e7"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-50b361e7" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{n}}" refresher-triggered="{{o}}"><uni-card wx:for="{{m}}" wx:for-item="items" wx:key="e" class="data-v-50b361e7" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-50b361e7"><view class="contentcard-titleA data-v-50b361e7" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-50b361e7">金币数量</view><view class="cion data-v-50b361e7">{{items.a}}</view></view><view class="contentcard-titleB data-v-50b361e7" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-50b361e7">金币数量</view><view class="cion data-v-50b361e7">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
<view class="details-pkrecords data-v-a64c325c"><view class="bg data-v-a64c325c"><image class="bgImg data-v-a64c325c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-a64c325c" bindtap="{{a}}"><image class="ReturnImg data-v-a64c325c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-a64c325c">PK记录详情</view><view class="pkrecords data-v-a64c325c"><view class="card data-v-a64c325c"><view class="AnchorA data-v-a64c325c"><view class="Anchor data-v-a64c325c"><view class="AnchorAImg data-v-a64c325c"><image class="AnchorAImgcss data-v-a64c325c" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-a64c325c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-a64c325c"><view class="AnchorAname data-v-a64c325c">{{d}}</view><view class="AnchorATime data-v-a64c325c">{{e}}</view><view wx:if="{{f}}" class="AnchorAICon data-v-a64c325c"><view class="AnchorAIContext data-v-a64c325c">实际打金币:</view><view class="AnchorAIConNum data-v-a64c325c">{{g}}</view></view></view></view><view class="vstext data-v-a64c325c"><view class="Vtext data-v-a64c325c">V</view><view class="Stext data-v-a64c325c">S</view></view><view class="AnchorB data-v-a64c325c"><view class="Anchor data-v-a64c325c"><view class="AnchorAImg data-v-a64c325c"><image class="AnchorBImgcss data-v-a64c325c" src="{{h}}" mode="scaleToFill"/></view><image wx:if="{{i}}" class="Crown data-v-a64c325c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-a64c325c"><view class="AnchorAname data-v-a64c325c">{{j}}</view><view class="AnchorATime data-v-a64c325c">{{k}}</view><view wx:if="{{l}}" class="AnchorAICon data-v-a64c325c"><view class="AnchorAIContext data-v-a64c325c">实际打金币:</view><view class="AnchorAIConNum data-v-a64c325c">{{m}}</view></view></view></view></view><view class="pkrecords-content data-v-a64c325c"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-a64c325c" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{o}}" refresher-triggered="{{p}}"><uni-card wx:for="{{n}}" wx:for-item="items" wx:key="e" class="data-v-a64c325c" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-a64c325c"><view class="contentcard-titleA data-v-a64c325c" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-a64c325c">金币数量</view><view class="cion data-v-a64c325c">{{items.a}}</view></view><view class="contentcard-titleB data-v-a64c325c" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-a64c325c">金币数量</view><view class="cion data-v-a64c325c">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
||||||
@@ -1 +1 @@
|
|||||||
.bg.data-v-50b361e7{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-50b361e7{width:100%;height:100%}.Return.data-v-50b361e7{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-50b361e7{position:absolute;top:120rpx;left:280rpx;font-size:34rpx;color:#100e0f;font-weight:500}.ReturnImg.data-v-50b361e7{width:100%;height:100%}.pkrecords.data-v-50b361e7{position:absolute;top:200rpx;left:0rpx;right:0rpx}.card.data-v-50b361e7{width:750rpx;height:300rpx;border-radius:15rpx;display:flex;justify-content:space-between;align-items:center;margin-top:20rpx}.AnchorA.data-v-50b361e7{display:flex;flex-direction:column;align-items:center;margin-left:30rpx}.AnchorB.data-v-50b361e7{display:flex;flex-direction:column;align-items:center;margin-right:30rpx}.Anchor.data-v-50b361e7{display:flex;align-items:center}.AnchorAImg.data-v-50b361e7{width:100rpx;height:100rpx;border-radius:50rpx;background-color:#b1b1b1;display:flex}.AnchorAinfo.data-v-50b361e7,.AnchorBinfo.data-v-50b361e7{display:flex;flex-direction:column;justify-content:center;width:250rpx}.AnchorAname.data-v-50b361e7{width:250rpx;font-weight:500;font-size:31rpx;color:#161616;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AnchorATime.data-v-50b361e7{font-weight:400;font-size:23rpx;color:#a3a3a3;margin-top:12rpx;text-align:center}.AnchorAICon.data-v-50b361e7{display:flex;flex-direction:column;margin-top:12rpx;align-items:center}.AnchorAIContext.data-v-50b361e7{font-weight:400;font-size:23rpx;color:#a3a3a3}.AnchorAIConNum.data-v-50b361e7{font-weight:700;font-size:23rpx;color:#161616}.AnchorAImgcss.data-v-50b361e7{width:100rpx;height:100rpx;border-radius:50rpx;border-top:#f7da60 solid 2rpx;border-left:#ffeeab solid 2rpx;border-bottom:#ffeeab solid 2rpx;border-right:#f7da60 solid 2rpx}.AnchorBImgcss.data-v-50b361e7{width:100rpx;height:100rpx;border-radius:50rpx;border-top:#ffc6ba solid 2rpx;border-left:#ffc6ba solid 2rpx;border-bottom:#5ddadd solid 2rpx;border-right:#5ddadd solid 2rpx}.Crown.data-v-50b361e7{width:45.8rpx;height:39.12rpx;margin-left:-40rpx;margin-top:-100rpx}.vstext.data-v-50b361e7{display:flex}.Vtext.data-v-50b361e7{font-size:45.8rpx;color:#f0836c;font-weight:700;font-style:italic}.Stext.data-v-50b361e7{font-size:45.8rpx;color:#58d8db;font-weight:700;font-style:italic}.pkrecords-content.data-v-50b361e7{position:absolute;top:300rpx;left:0;right:0;display:flex;flex-direction:column;align-items:center}.scroll.data-v-50b361e7{width:750rpx;height:1100rpx}.scroll.data-v-50b361e7 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.contentcard.data-v-50b361e7{width:694.66rpx;height:161.26rpx;border-radius:15rpx;background-color:#fff;display:flex;margin-left:28.55rpx;margin-top:25rpx;border:#5ed8db solid 1rpx}.contentcard-titleA.data-v-50b361e7{width:50%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;border-right:#58d8db solid 3rpx;border-top-left-radius:15rpx;border-bottom-left-radius:15rpx}.contentcard-titleB.data-v-50b361e7{width:50%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;border-top-right-radius:15rpx;border-bottom-right-radius:15rpx}.ciontext.data-v-50b361e7{font-size:28rpx;color:#a2a2a2}.cion.data-v-50b361e7{font-size:36rpx;color:#100e0f;font-weight:700}
|
.bg.data-v-a64c325c{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-a64c325c{width:100%;height:100%}.Return.data-v-a64c325c{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-a64c325c{position:absolute;top:120rpx;left:280rpx;font-size:34rpx;color:#100e0f;font-weight:500}.ReturnImg.data-v-a64c325c{width:100%;height:100%}.pkrecords.data-v-a64c325c{position:absolute;top:200rpx;left:0rpx;right:0rpx}.card.data-v-a64c325c{width:750rpx;height:300rpx;border-radius:15rpx;display:flex;justify-content:space-between;align-items:center;margin-top:20rpx}.AnchorA.data-v-a64c325c{display:flex;flex-direction:column;align-items:center;margin-left:30rpx}.AnchorB.data-v-a64c325c{display:flex;flex-direction:column;align-items:center;margin-right:30rpx}.Anchor.data-v-a64c325c{display:flex;align-items:center}.AnchorAImg.data-v-a64c325c{width:100rpx;height:100rpx;border-radius:50rpx;background-color:#b1b1b1;display:flex}.AnchorAinfo.data-v-a64c325c,.AnchorBinfo.data-v-a64c325c{display:flex;flex-direction:column;justify-content:center;width:250rpx}.AnchorAname.data-v-a64c325c{width:250rpx;font-weight:500;font-size:31rpx;color:#161616;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AnchorATime.data-v-a64c325c{font-weight:400;font-size:23rpx;color:#a3a3a3;margin-top:12rpx;text-align:center}.AnchorAICon.data-v-a64c325c{display:flex;flex-direction:column;margin-top:12rpx;align-items:center}.AnchorAIContext.data-v-a64c325c{font-weight:400;font-size:23rpx;color:#a3a3a3}.AnchorAIConNum.data-v-a64c325c{font-weight:700;font-size:23rpx;color:#161616}.AnchorAImgcss.data-v-a64c325c{width:100rpx;height:100rpx;border-radius:50rpx;border-top:#f7da60 solid 2rpx;border-left:#ffeeab solid 2rpx;border-bottom:#ffeeab solid 2rpx;border-right:#f7da60 solid 2rpx}.AnchorBImgcss.data-v-a64c325c{width:100rpx;height:100rpx;border-radius:50rpx;border-top:#ffc6ba solid 2rpx;border-left:#ffc6ba solid 2rpx;border-bottom:#5ddadd solid 2rpx;border-right:#5ddadd solid 2rpx}.Crown.data-v-a64c325c{width:45.8rpx;height:39.12rpx;margin-left:-40rpx;margin-top:-100rpx}.vstext.data-v-a64c325c{display:flex}.Vtext.data-v-a64c325c{font-size:45.8rpx;color:#f0836c;font-weight:700;font-style:italic}.Stext.data-v-a64c325c{font-size:45.8rpx;color:#58d8db;font-weight:700;font-style:italic}.pkrecords-content.data-v-a64c325c{position:absolute;top:300rpx;left:0;right:0;display:flex;flex-direction:column;align-items:center}.scroll.data-v-a64c325c{width:750rpx;height:1100rpx}.scroll.data-v-a64c325c ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.contentcard.data-v-a64c325c{width:694.66rpx;height:161.26rpx;border-radius:15rpx;background-color:#fff;display:flex;margin-left:28.55rpx;margin-top:25rpx;border:#5ed8db solid 1rpx}.contentcard-titleA.data-v-a64c325c{width:50%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;border-right:#58d8db solid 3rpx;border-top-left-radius:15rpx;border-bottom-left-radius:15rpx}.contentcard-titleB.data-v-a64c325c{width:50%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;border-top-right-radius:15rpx;border-bottom-right-radius:15rpx}.ciontext.data-v-a64c325c{font-size:28rpx;color:#a2a2a2}.cion.data-v-a64c325c{font-size:36rpx;color:#100e0f;font-weight:700}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/request.js"),r=require("../../../components/formatDate.js"),o={data:()=>({triggered:!1,current:1,buttonWidth:238.55,gap:0,slidetext:"我发布的PK",pkmyRecordlist:[],pkInvitationRecordlist:[],pkRecordlist:[],userinfo:{},page:0}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.getPkRecordList(1),this.getPkRecordList(2)}})},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:"/pages/Home/Home"}},computed:{sliderPosition(){const{current:e,buttonWidth:t,gap:r}=this;return 0+(t+r)*(e-1)+375}},methods:{onRefresherRefresh(){this.pkRecordlist=[],this.triggered=!0,this.page=0,1===this.current?this.pkmyRecordlist=[]:this.pkInvitationRecordlist=[],this.getPkRecordList(this.current)},onScrollToLower(){this.page++,this.getPkRecordList(this.current)},onItemClick(t){e.index.navigateTo({url:"/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",success:e=>{e.eventChannel.emit("itemDetail",{item:t})}})},onBack(){e.index.navigateBack({delta:1})},formatDate:r.formatDate,getPkRecordList(e){t.request({url:"user/handlePkInfo",method:"POST",data:{type:e,userId:this.userinfo.id,page:this.page,size:10},userInfo:!0}).then((t=>{200===t.code?(this.triggered=!1,1===e?(this.pkmyRecordlist.push(...t.data),1===this.current&&(this.pkRecordlist=this.pkmyRecordlist)):(this.pkInvitationRecordlist.push(...t.data),2===this.current&&(this.pkRecordlist=this.pkInvitationRecordlist))):console.log(t.msg)}))},toggleActive(e){this.current=e,this.slidetext=1===e?"我发布的PK":"我邀请的PK",this.pkRecordlist=1===e?this.pkmyRecordlist:this.pkInvitationRecordlist}}};if(!Array){e.resolveComponent("uni-card")()}const i=e._export_sfc(o,[["render",function(t,r,o,i,s,n){return e.e({a:e.o(((...e)=>n.onBack&&n.onBack(...e))),b:e.o((e=>n.toggleActive(1))),c:1===s.current?1:"",d:e.o((e=>n.toggleActive(2))),e:2===s.current?1:"",f:e.t(s.slidetext),g:n.sliderPosition+"rpx",h:0!==s.pkRecordlist.length},0!==s.pkRecordlist.length?{i:e.f(s.pkRecordlist,((t,r,o)=>e.e({a:t.anchorIconA,b:t.winnerAnchorId==t.anchorIdA},(t.winnerAnchorId,t.anchorIdA,{}),{c:e.t(t.anchorIdA),d:e.t(n.formatDate(t.pkTime)),e:null!==t.userACoins},null!==t.userACoins?{f:e.t(t.userACoins)}:{},{g:e.t(t.anchorIdB),h:e.t(n.formatDate(t.pkTime)),i:null!==t.userBCoins},null!==t.userBCoins?{j:e.t(t.userBCoins)}:{},{k:t.anchorIconB,l:t.winnerAnchorId==t.anchorIdB},(t.winnerAnchorId,t.anchorIdB,{}),{m:e.o((e=>n.onItemClick(t)),r),n:r,o:"668dbe5e-0-"+o}))),j:e.o(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),k:e.o(((...e)=>n.onScrollToLower&&n.onScrollToLower(...e))),l:s.triggered}:{},{m:0===s.pkRecordlist.length},(s.pkRecordlist.length,{}))}],["__scopeId","data-v-668dbe5e"]]);o.__runtimeHooks=2,wx.createPage(i);
|
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/request.js"),r=require("../../../components/formatDate.js"),o={data:()=>({triggered:!1,current:1,buttonWidth:238.55,gap:0,slidetext:"我发布的PK",pkmyRecordlist:[],pkInvitationRecordlist:[],pkRecordlist:[],userinfo:{},page:0}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.getPkRecordList(1),this.getPkRecordList(2)}})},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:"/pages/Home/Home"}},computed:{sliderPosition(){const{current:e,buttonWidth:t,gap:r}=this;return 0+(t+r)*(e-1)+375}},methods:{formatCoinNum(e){if(null==e)return"";if(e<1e3)return String(e);if(e>=1e6)return"1M+";const t=e/1e3,r=t.toFixed(2).match(/^\d+\.\d{0,2}/);if(null===r)return t.toFixed(2)+"k";return`${r[0]}k`},onRefresherRefresh(){this.pkRecordlist=[],this.triggered=!0,this.page=0,1===this.current?this.pkmyRecordlist=[]:this.pkInvitationRecordlist=[],this.getPkRecordList(this.current)},onScrollToLower(){this.page++,this.getPkRecordList(this.current)},onItemClick(t){e.index.navigateTo({url:"/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",success:e=>{e.eventChannel.emit("itemDetail",{item:t})}})},onBack(){e.index.navigateBack({delta:1})},formatDate:r.formatDate,getPkRecordList(e){t.request({url:"user/handlePkInfo",method:"POST",data:{type:e,userId:this.userinfo.id,page:this.page,size:10},userInfo:!0}).then((t=>{200===t.code?(this.triggered=!1,1===e?(this.pkmyRecordlist.push(...t.data),1===this.current&&(this.pkRecordlist=this.pkmyRecordlist)):(this.pkInvitationRecordlist.push(...t.data),2===this.current&&(this.pkRecordlist=this.pkInvitationRecordlist))):console.log(t.msg)}))},toggleActive(e){this.current=e,this.slidetext=1===e?"我发布的PK":"我邀请的PK",this.pkRecordlist=1===e?this.pkmyRecordlist:this.pkInvitationRecordlist}}};if(!Array){e.resolveComponent("uni-card")()}const i=e._export_sfc(o,[["render",function(t,r,o,i,n,s){return e.e({a:e.o(((...e)=>s.onBack&&s.onBack(...e))),b:e.o((e=>s.toggleActive(1))),c:1===n.current?1:"",d:e.o((e=>s.toggleActive(2))),e:2===n.current?1:"",f:e.t(n.slidetext),g:s.sliderPosition+"rpx",h:0!==n.pkRecordlist.length},0!==n.pkRecordlist.length?{i:e.f(n.pkRecordlist,((t,r,o)=>e.e({a:t.anchorIconA,b:t.winnerAnchorId==t.anchorIdA},(t.winnerAnchorId,t.anchorIdA,{}),{c:e.t(t.anchorIdA),d:e.t(s.formatDate(t.pkTime)),e:null!==t.userACoins},null!==t.userACoins?{f:e.t(s.formatCoinNum(t.userACoins))}:{},{g:e.t(t.anchorIdB),h:e.t(s.formatDate(t.pkTime)),i:null!==t.userBCoins},null!==t.userBCoins?{j:e.t(s.formatCoinNum(t.userBCoins))}:{},{k:t.anchorIconB,l:t.winnerAnchorId==t.anchorIdB},(t.winnerAnchorId,t.anchorIdB,{}),{m:e.o((e=>s.onItemClick(t)),r),n:r,o:"b8779fb5-0-"+o}))),j:e.o(((...e)=>s.onRefresherRefresh&&s.onRefresherRefresh(...e))),k:e.o(((...e)=>s.onScrollToLower&&s.onScrollToLower(...e))),l:n.triggered}:{},{m:0===n.pkRecordlist.length},(n.pkRecordlist.length,{}))}],["__scopeId","data-v-b8779fb5"]]);o.__runtimeHooks=2,wx.createPage(i);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="pkRecord data-v-668dbe5e"><view class="bg data-v-668dbe5e"><image class="bgImg data-v-668dbe5e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-668dbe5e" bindtap="{{a}}"><image class="ReturnImg data-v-668dbe5e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-668dbe5e">PK记录</view><view class="navigation data-v-668dbe5e"><view class="navigationItem data-v-668dbe5e"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-668dbe5e', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-668dbe5e', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-668dbe5e" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-668dbe5e"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-668dbe5e" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-668dbe5e" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-668dbe5e" bindtap="{{item.m}}"><view class="AnchorA data-v-668dbe5e"><view class="AnchorAImg data-v-668dbe5e"><image class="AnchorAImgcss data-v-668dbe5e" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-668dbe5e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-668dbe5e"><view class="AnchorAname data-v-668dbe5e">{{item.c}}</view><view class="AnchorATime data-v-668dbe5e">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-668dbe5e"><view class="AnchorAIContext data-v-668dbe5e">实际金币:</view><view class="AnchorAIConNum data-v-668dbe5e">{{item.f}}K</view></view></view></view><view class="vstext data-v-668dbe5e"><view class="Vtext data-v-668dbe5e">V</view><view class="Stext data-v-668dbe5e">S</view></view><view class="AnchorB data-v-668dbe5e"><view class="AnchorBinfo data-v-668dbe5e"><view class="AnchorAname data-v-668dbe5e">{{item.g}}</view><view class="AnchorATime data-v-668dbe5e">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-668dbe5e"><view class="AnchorAIContext data-v-668dbe5e">实际打金币:</view><view class="AnchorAIConNum data-v-668dbe5e">{{item.j}}K</view></view></view><view class="AnchorAImg data-v-668dbe5e"><image class="AnchorBImgcss data-v-668dbe5e" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-668dbe5e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-668dbe5e">暂无内容</view></view></view>
|
<view class="pkRecord data-v-b8779fb5"><view class="bg data-v-b8779fb5"><image class="bgImg data-v-b8779fb5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-b8779fb5" bindtap="{{a}}"><image class="ReturnImg data-v-b8779fb5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-b8779fb5">PK记录</view><view class="navigation data-v-b8779fb5"><view class="navigationItem data-v-b8779fb5"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-b8779fb5', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-b8779fb5', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-b8779fb5" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-b8779fb5"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-b8779fb5" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-b8779fb5" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-b8779fb5" bindtap="{{item.m}}"><view class="AnchorA data-v-b8779fb5"><view class="AnchorAImg data-v-b8779fb5"><image class="AnchorAImgcss data-v-b8779fb5" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-b8779fb5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-b8779fb5"><view class="AnchorAname data-v-b8779fb5">{{item.c}}</view><view class="AnchorATime data-v-b8779fb5">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-b8779fb5"><view class="AnchorAIContext data-v-b8779fb5">实际金币:</view><view class="AnchorAIConNum data-v-b8779fb5">{{item.f}}</view></view></view></view><view class="vstext data-v-b8779fb5"><view class="Vtext data-v-b8779fb5">V</view><view class="Stext data-v-b8779fb5">S</view></view><view class="AnchorB data-v-b8779fb5"><view class="AnchorBinfo data-v-b8779fb5"><view class="AnchorAname data-v-b8779fb5">{{item.g}}</view><view class="AnchorATime data-v-b8779fb5">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-b8779fb5"><view class="AnchorAIContext data-v-b8779fb5">实际打金币:</view><view class="AnchorAIConNum data-v-b8779fb5">{{item.j}}</view></view></view><view class="AnchorAImg data-v-b8779fb5"><image class="AnchorBImgcss data-v-b8779fb5" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-b8779fb5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-b8779fb5">暂无内容</view></view></view>
|
||||||
@@ -1 +1 @@
|
|||||||
.bg.data-v-668dbe5e{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-668dbe5e{width:100%;height:100%}.Return.data-v-668dbe5e{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-668dbe5e{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-668dbe5e{width:100%;height:100%}.navigation.data-v-668dbe5e{position:absolute;top:200rpx;left:0rpx;right:0rpx;height:68.7rpx;display:flex;justify-content:center;align-items:center}.navigationItem.data-v-668dbe5e{width:477.1rpx;height:68.7rpx;border-radius:50rpx;background-color:#4fcacd;display:flex;justify-content:space-around;align-items:center}.navigationItemTitle.data-v-668dbe5e{font-weight:500;font-size:31rpx;color:#fff}.slide.data-v-668dbe5e{position:absolute;width:238.55rpx;height:68.7rpx;background-image:linear-gradient(135deg,#e4ffff,#fff);border-radius:50rpx;text-align:center;line-height:68.7rpx;font-weight:500;font-size:31rpx;color:#4fcacd;margin-left:-238.55rpx}.content.data-v-668dbe5e{position:absolute;top:300rpx;left:0rpx;right:0rpx;bottom:0rpx}.scroll.data-v-668dbe5e{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-668dbe5e ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.nodata.data-v-668dbe5e{width:100%;height:100%;line-height:1300rpx;text-align:center;font-size:30rpx;color:#a3a3a3}.card.data-v-668dbe5e{width:694.66rpx;height:200rpx;background-color:#fff;border-radius:15rpx;display:flex;justify-content:center;align-items:center;margin-left:28.55rpx;margin-top:20rpx;border:1rpx solid #c9f6f6}.AnchorA.data-v-668dbe5e,.AnchorB.data-v-668dbe5e{display:flex;align-items:center}.AnchorAImg.data-v-668dbe5e{width:100rpx;height:100rpx;border-radius:100rpx;margin-left:20rpx;margin-right:20rpx;background-color:#b1b1b1;display:flex}.AnchorAinfo.data-v-668dbe5e,.AnchorBinfo.data-v-668dbe5e{display:flex;flex-direction:column;justify-content:center}.AnchorAname.data-v-668dbe5e{width:161.26rpx;font-weight:500;font-size:31rpx;color:#58d8db;text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AnchorATime.data-v-668dbe5e{font-weight:400;font-size:23rpx;color:#a3a3a3;margin-top:8rpx;text-align:center}.AnchorAICon.data-v-668dbe5e{display:flex;flex-direction:column;margin-top:8rpx;text-align:center}.AnchorAIContext.data-v-668dbe5e{font-weight:400;font-size:23rpx;color:#a3a3a3}.AnchorAIConNum.data-v-668dbe5e{font-weight:700;font-size:23rpx;color:#161616}.AnchorAImgcss.data-v-668dbe5e{width:100rpx;height:100rpx;border-radius:100rpx;border-top:#f7da60 solid 2rpx;border-left:#ffeeab solid 2rpx;border-bottom:#ffeeab solid 2rpx;border-right:#f7da60 solid 2rpx}.AnchorBImgcss.data-v-668dbe5e{width:100rpx;height:100rpx;border-radius:100rpx;border-top:#ffc6ba solid 2rpx;border-left:#ffc6ba solid 2rpx;border-bottom:#5ddadd solid 2rpx;border-right:#5ddadd solid 2rpx}.Crown.data-v-668dbe5e{width:45.8rpx;height:39.12rpx;margin-left:-40rpx;margin-top:-100rpx}.vstext.data-v-668dbe5e{display:flex}.Vtext.data-v-668dbe5e{font-size:45.8rpx;color:#f0836c;font-weight:700;font-style:italic;margin-left:26rpx}.Stext.data-v-668dbe5e{font-size:45.8rpx;color:#58d8db;font-weight:700;font-style:italic;margin-right:26rpx}
|
.bg.data-v-b8779fb5{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-b8779fb5{width:100%;height:100%}.Return.data-v-b8779fb5{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-b8779fb5{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-b8779fb5{width:100%;height:100%}.navigation.data-v-b8779fb5{position:absolute;top:200rpx;left:0rpx;right:0rpx;height:68.7rpx;display:flex;justify-content:center;align-items:center}.navigationItem.data-v-b8779fb5{width:477.1rpx;height:68.7rpx;border-radius:50rpx;background-color:#4fcacd;display:flex;justify-content:space-around;align-items:center}.navigationItemTitle.data-v-b8779fb5{font-weight:500;font-size:31rpx;color:#fff}.slide.data-v-b8779fb5{position:absolute;width:238.55rpx;height:68.7rpx;background-image:linear-gradient(135deg,#e4ffff,#fff);border-radius:50rpx;text-align:center;line-height:68.7rpx;font-weight:500;font-size:31rpx;color:#4fcacd;margin-left:-238.55rpx}.content.data-v-b8779fb5{position:absolute;top:300rpx;left:0rpx;right:0rpx;bottom:0rpx}.scroll.data-v-b8779fb5{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-b8779fb5 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.nodata.data-v-b8779fb5{width:100%;height:100%;line-height:1300rpx;text-align:center;font-size:30rpx;color:#a3a3a3}.card.data-v-b8779fb5{width:694.66rpx;height:200rpx;background-color:#fff;border-radius:15rpx;display:flex;justify-content:center;align-items:center;margin-left:28.55rpx;margin-top:20rpx;border:1rpx solid #c9f6f6}.AnchorA.data-v-b8779fb5,.AnchorB.data-v-b8779fb5{display:flex;align-items:center}.AnchorAImg.data-v-b8779fb5{width:100rpx;height:100rpx;border-radius:100rpx;margin-left:20rpx;margin-right:20rpx;background-color:#b1b1b1;display:flex}.AnchorAinfo.data-v-b8779fb5,.AnchorBinfo.data-v-b8779fb5{display:flex;flex-direction:column;justify-content:center}.AnchorAname.data-v-b8779fb5{width:161.26rpx;font-weight:500;font-size:31rpx;color:#58d8db;text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AnchorATime.data-v-b8779fb5{font-weight:400;font-size:23rpx;color:#a3a3a3;margin-top:8rpx;text-align:center}.AnchorAICon.data-v-b8779fb5{display:flex;flex-direction:column;margin-top:8rpx;text-align:center}.AnchorAIContext.data-v-b8779fb5{font-weight:400;font-size:23rpx;color:#a3a3a3}.AnchorAIConNum.data-v-b8779fb5{font-weight:700;font-size:23rpx;color:#161616}.AnchorAImgcss.data-v-b8779fb5{width:100rpx;height:100rpx;border-radius:100rpx;border-top:#f7da60 solid 2rpx;border-left:#ffeeab solid 2rpx;border-bottom:#ffeeab solid 2rpx;border-right:#f7da60 solid 2rpx}.AnchorBImgcss.data-v-b8779fb5{width:100rpx;height:100rpx;border-radius:100rpx;border-top:#ffc6ba solid 2rpx;border-left:#ffc6ba solid 2rpx;border-bottom:#5ddadd solid 2rpx;border-right:#5ddadd solid 2rpx}.Crown.data-v-b8779fb5{width:45.8rpx;height:39.12rpx;margin-left:-40rpx;margin-top:-100rpx}.vstext.data-v-b8779fb5{display:flex}.Vtext.data-v-b8779fb5{font-size:45.8rpx;color:#f0836c;font-weight:700;font-style:italic;margin-left:26rpx}.Stext.data-v-b8779fb5{font-size:45.8rpx;color:#58d8db;font-weight:700;font-style:italic;margin-right:26rpx}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/request.js"),a=require("../../components/formatDate.js"),o={data:()=>({customData:{},SenderData:{},ReceiverData:{},PkIDInfodata:{},id:""}),onLoad(t){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),this.customData=JSON.parse(t.customData),setTimeout((()=>{this.getPkIDInfo(),this.getPkyourInfo(),this.getPkmineInfo()}),500)},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?customData=${JSON.stringify(this.customData)}`}},methods:{async getPkIDInfo(){await t.request({url:"pk/singleRecord",method:"POST",data:{id:this.customData.id},userInfo:!0}).then((e=>{console.log(e.data),this.PkIDInfodata=e.data}))},async getPkyourInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdA},userInfo:!1}).then((e=>{console.log(e.data),this.SenderData=e.data}))},async getPkmineInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdB},userInfo:!1}).then((e=>{console.log(e.data),this.ReceiverData=e.data}))},goBack(){e.wx$1.navigateBack({delta:1})},formatDate:a.formatDate,AcceptHint(){this.$refs.popups.open("center")},closeHint(){this.$refs.popups.close()},RefuseHint(){this.$refs.Refusepopup.open("center")},RefuseHintcloseHint(){this.$refs.Refusepopup.close()},async operation(a){await t.request({url:"pk/updatePkStatus",method:"POST",data:{id:this.customData.id,pkStatus:a},userInfo:!0}).then((t=>{const o=1===a?"接受邀请成功":"拒绝邀请成功";200===t.code?(this.getPkIDInfo(),this.$refs.popups.close(),this.$refs.Refusepopup.close(),e.wx$1.showToast({title:o,icon:"success",duration:2e3}),e.wx$1.navigateBack({delta:1})):e.wx$1.showToast({title:"操作失败",icon:"none",duration:2e3})}))}}};if(!Array){e.resolveComponent("uni-popup")()}Math;const s=e._export_sfc(o,[["render",function(t,a,o,s,n,r){return e.e({a:e.o(((...e)=>r.goBack&&r.goBack(...e))),b:n.SenderData.anchorIcon,c:e.t(n.SenderData.anchorId),d:"1"===n.SenderData.sex},"1"===n.SenderData.sex?{e:e.t(1==n.SenderData.sex?"男":"女")}:{f:e.t(1==n.SenderData.sex?"男":"女")},{g:e.t(n.SenderData.country),h:e.t(r.formatDate(n.SenderData.pkTime)),i:e.t(n.SenderData.coin),j:e.t(n.SenderData.pkNumber),k:n.ReceiverData.anchorIcon,l:e.t(n.ReceiverData.anchorId),m:"1"===n.ReceiverData.sex},"1"===n.ReceiverData.sex?{n:e.t(1==n.ReceiverData.sex?"男":"女")}:{o:e.t(1==n.ReceiverData.sex?"男":"女")},{p:e.t(n.ReceiverData.country),q:e.t(r.formatDate(n.ReceiverData.pkTime)),r:e.t(n.ReceiverData.coin),s:e.t(n.ReceiverData.pkNumber),t:0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id},0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id?{v:e.o((e=>r.AcceptHint())),w:e.o((e=>r.RefuseHint()))}:{},{x:n.ReceiverData.senderId===n.id&&0===n.PkIDInfodata.pkStatus},(n.ReceiverData.senderId===n.id&&n.PkIDInfodata.pkStatus,{}),{y:1===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{z:2===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{A:e.o((e=>r.operation(1))),B:e.o((e=>r.closeHint())),C:e.sr("popups","14703bbc-0"),D:e.p({type:"center","border-radius":"10px 10px 0 0"}),E:e.o((e=>r.operation(2))),F:e.o((e=>r.RefuseHintcloseHint())),G:e.sr("Refusepopup","14703bbc-1"),H:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-14703bbc"]]);o.__runtimeHooks=2,wx.createPage(s);
|
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/request.js"),a=require("../../components/formatDate.js"),o={data:()=>({customData:{},SenderData:{},ReceiverData:{},PkIDInfodata:{},id:""}),onLoad(t){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),this.customData=JSON.parse(t.customData),setTimeout((()=>{this.getPkIDInfo(),this.getPkyourInfo(),this.getPkmineInfo()}),1e3)},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?customData=${JSON.stringify(this.customData)}`}},methods:{async getPkIDInfo(){await t.request({url:"pk/singleRecord",method:"POST",data:{id:this.customData.id},userInfo:!0}).then((e=>{console.log(e.data),this.PkIDInfodata=e.data}))},async getPkyourInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdA,userId:this.id,from:2},userInfo:!1}).then((t=>{console.log(t),200===t.code?(console.log(t.data),this.SenderData=t.data):e.wx$1.showToast({title:"获取发布者信息失败",icon:"none",duration:2e3})}))},async getPkmineInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdB,userId:this.id,from:2},userInfo:!1}).then((t=>{200===t.code?(console.log(t.data),this.ReceiverData=t.data):e.wx$1.showToast({title:"获取被邀请者信息失败",icon:"none",duration:2e3})}))},goBack(){e.wx$1.navigateBack({delta:1})},formatDate:a.formatDate,AcceptHint(){this.$refs.popups.open("center")},closeHint(){this.$refs.popups.close()},RefuseHint(){this.$refs.Refusepopup.open("center")},RefuseHintcloseHint(){this.$refs.Refusepopup.close()},async operation(a){await t.request({url:"pk/updatePkStatus",method:"POST",data:{id:this.customData.id,pkStatus:a},userInfo:!0}).then((t=>{const o=1===a?"接受邀请成功":"拒绝邀请成功";200===t.code?(this.getPkIDInfo(),this.$refs.popups.close(),this.$refs.Refusepopup.close(),e.wx$1.showToast({title:o,icon:"success",duration:2e3}),e.wx$1.navigateBack({delta:1})):e.wx$1.showToast({title:"操作失败",icon:"none",duration:2e3})}))}}};if(!Array){e.resolveComponent("uni-popup")()}Math;const s=e._export_sfc(o,[["render",function(t,a,o,s,n,r){return e.e({a:e.o(((...e)=>r.goBack&&r.goBack(...e))),b:n.SenderData.anchorIcon,c:e.t(n.SenderData.anchorId),d:"1"===n.SenderData.sex},"1"===n.SenderData.sex?{e:e.t(1==n.SenderData.sex?"男":"女")}:{f:e.t(1==n.SenderData.sex?"男":"女")},{g:e.t(n.SenderData.country),h:e.t(r.formatDate(n.SenderData.pkTime)),i:e.t(n.SenderData.coin),j:e.t(n.SenderData.pkNumber),k:n.ReceiverData.anchorIcon,l:e.t(n.ReceiverData.anchorId),m:"1"===n.ReceiverData.sex},"1"===n.ReceiverData.sex?{n:e.t(1==n.ReceiverData.sex?"男":"女")}:{o:e.t(1==n.ReceiverData.sex?"男":"女")},{p:e.t(n.ReceiverData.country),q:e.t(r.formatDate(n.ReceiverData.pkTime)),r:e.t(n.ReceiverData.coin),s:e.t(n.ReceiverData.pkNumber),t:0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id},0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id?{v:e.o((e=>r.AcceptHint())),w:e.o((e=>r.RefuseHint()))}:{},{x:n.ReceiverData.senderId===n.id&&0===n.PkIDInfodata.pkStatus},(n.ReceiverData.senderId===n.id&&n.PkIDInfodata.pkStatus,{}),{y:1===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{z:2===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{A:e.o((e=>r.operation(1))),B:e.o((e=>r.closeHint())),C:e.sr("popups","a49ecc79-0"),D:e.p({type:"center","border-radius":"10px 10px 0 0"}),E:e.o((e=>r.operation(2))),F:e.o((e=>r.RefuseHintcloseHint())),G:e.sr("Refusepopup","a49ecc79-1"),H:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-a49ecc79"]]);o.__runtimeHooks=2,wx.createPage(s);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
.background.data-v-14703bbc{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.Navigation.data-v-14703bbc{position:fixed;top:0;left:0;right:0;height:200rpx;display:flex;align-items:center;padding:0 60rpx;z-index:1}.Return.data-v-14703bbc{width:60rpx;height:60rpx;margin-top:20rpx}.Content.data-v-14703bbc{position:absolute;top:200rpx;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center}.sender.data-v-14703bbc{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:80rpx}.sengderIcon.data-v-14703bbc{width:150rpx;height:150rpx;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.Icon.data-v-14703bbc{width:100%;height:100%;border-radius:50%}.Individual.data-v-14703bbc{display:flex;justify-content:center;align-items:center;margin-top:34.35rpx}.name.data-v-14703bbc{font-size:30.53rpx;color:#161616;margin-right:16.22rpx}.nation.data-v-14703bbc{width:56.3rpx;height:29.58rpx;font-size:17.18rpx;color:#666;text-align:center;line-height:29.58rpx;background-color:#fff;border-radius:50rpx;padding:6rpx 12rpx;display:flex;justify-content:center;align-items:center}.male.data-v-14703bbc{width:56.3rpx;height:29.58rpx;background-color:#5bced1;border-radius:50rpx;display:flex;justify-content:center;align-items:center;padding:6rpx 12rpx;margin-right:12rpx}.female.data-v-14703bbc{width:56.3rpx;height:29.58rpx;background-color:#f3876f;border-radius:50rpx;display:flex;justify-content:center;align-items:center;padding:6rpx 12rpx;margin-right:12rpx}.age.data-v-14703bbc{font-size:17.18rpx;color:#fff;margin-left:4rpx}.Time.data-v-14703bbc{color:#666;font-size:26.72rpx;margin-top:48.7rpx}.goldCoin.data-v-14703bbc{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Backgroundofgoldcoins.png);width:334.83rpx;height:124.05rpx;margin-right:21rpx;display:flex;align-items:center}.Session.data-v-14703bbc{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fieldnumberbackground.png);width:334.83rpx;height:124.05rpx;display:flex;align-items:center}.SessionAndGoldCoin.data-v-14703bbc{align-items:center;margin-top:60rpx;display:flex;justify-content:center}.goldtext.data-v-14703bbc{font-size:28.63rpx;color:#929292}.goldnumber.data-v-14703bbc{font-size:34.35rpx;color:#161616;font-weight:700}.goldcard.data-v-14703bbc{display:flex;flex-direction:column;align-items:center}.button.data-v-14703bbc{display:flex;justify-content:center;align-items:center;margin-top:150rpx}.buttontext.data-v-14703bbc{font-size:40rpx;color:#666;font-weight:700}.accept.data-v-14703bbc{width:325.38rpx;height:77.29rpx;margin-right:35.5rpx;border-radius:50rpx;background-color:#fff;border:1rpx solid #03aba8;color:#03aba8;font-size:28.63rpx;line-height:77.29rpx}.reject.data-v-14703bbc{width:325.38rpx;height:77.29rpx;border-radius:50rpx;background-color:#03aba8;border:1rpx solid #03aba8;color:#fff;font-size:28.63rpx;line-height:77.29rpx}.popup-Hintcontent.data-v-14703bbc{width:600rpx;height:500rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-text.data-v-14703bbc{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.popup-texts.data-v-14703bbc{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}.popup-btn.data-v-14703bbc{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-14703bbc{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.cancel.data-v-14703bbc{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;margin-left:30rpx;color:#03aba8;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;border:1rpx solid #03aba8}
|
.background.data-v-a49ecc79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.Navigation.data-v-a49ecc79{position:fixed;top:0;left:0;right:0;height:200rpx;display:flex;align-items:center;padding:0 60rpx;z-index:1}.Return.data-v-a49ecc79{width:60rpx;height:60rpx;margin-top:20rpx}.Content.data-v-a49ecc79{position:absolute;top:200rpx;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center}.sender.data-v-a49ecc79{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:80rpx}.sengderIcon.data-v-a49ecc79{width:150rpx;height:150rpx;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.Icon.data-v-a49ecc79{width:100%;height:100%;border-radius:50%}.Individual.data-v-a49ecc79{display:flex;justify-content:center;align-items:center;margin-top:34.35rpx}.name.data-v-a49ecc79{font-size:30.53rpx;color:#161616;margin-right:16.22rpx}.nation.data-v-a49ecc79{width:56.3rpx;height:29.58rpx;font-size:17.18rpx;color:#666;text-align:center;line-height:29.58rpx;background-color:#fff;border-radius:50rpx;padding:6rpx 12rpx;display:flex;justify-content:center;align-items:center}.male.data-v-a49ecc79{width:56.3rpx;height:29.58rpx;background-color:#5bced1;border-radius:50rpx;display:flex;justify-content:center;align-items:center;padding:6rpx 12rpx;margin-right:12rpx}.female.data-v-a49ecc79{width:56.3rpx;height:29.58rpx;background-color:#f3876f;border-radius:50rpx;display:flex;justify-content:center;align-items:center;padding:6rpx 12rpx;margin-right:12rpx}.age.data-v-a49ecc79{font-size:17.18rpx;color:#fff;margin-left:4rpx}.Time.data-v-a49ecc79{color:#666;font-size:26.72rpx;margin-top:48.7rpx}.goldCoin.data-v-a49ecc79{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Backgroundofgoldcoins.png);width:334.83rpx;height:124.05rpx;margin-right:21rpx;display:flex;align-items:center}.Session.data-v-a49ecc79{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fieldnumberbackground.png);width:334.83rpx;height:124.05rpx;display:flex;align-items:center}.SessionAndGoldCoin.data-v-a49ecc79{align-items:center;margin-top:60rpx;display:flex;justify-content:center}.goldtext.data-v-a49ecc79{font-size:28.63rpx;color:#929292}.goldnumber.data-v-a49ecc79{font-size:34.35rpx;color:#161616;font-weight:700}.goldcard.data-v-a49ecc79{display:flex;flex-direction:column;align-items:center}.button.data-v-a49ecc79{display:flex;justify-content:center;align-items:center;margin-top:150rpx}.buttontext.data-v-a49ecc79{font-size:40rpx;color:#666;font-weight:700}.accept.data-v-a49ecc79{width:325.38rpx;height:77.29rpx;margin-right:35.5rpx;border-radius:50rpx;background-color:#fff;border:1rpx solid #03aba8;color:#03aba8;font-size:28.63rpx;line-height:77.29rpx}.reject.data-v-a49ecc79{width:325.38rpx;height:77.29rpx;border-radius:50rpx;background-color:#03aba8;border:1rpx solid #03aba8;color:#fff;font-size:28.63rpx;line-height:77.29rpx}.popup-Hintcontent.data-v-a49ecc79{width:600rpx;height:500rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-text.data-v-a49ecc79{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.popup-texts.data-v-a49ecc79{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}.popup-btn.data-v-a49ecc79{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-a49ecc79{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.cancel.data-v-a49ecc79{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;margin-left:30rpx;color:#03aba8;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;border:1rpx solid #03aba8}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -3,6 +3,9 @@
|
|||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"textmessage": "./messageComponent/textmessage",
|
"textmessage": "./messageComponent/textmessage",
|
||||||
"custom-p-k-message": "./messageComponent/customPKMessage",
|
"custom-p-k-message": "./messageComponent/customPKMessage",
|
||||||
|
"image-message": "./messageComponent/imageMessage",
|
||||||
|
"video-message": "./messageComponent/videoMessage",
|
||||||
|
"voice-message": "./messageComponent/voiceMessage",
|
||||||
"invitation-components": "./moreMessageComponents/InvitationComponents"
|
"invitation-components": "./moreMessageComponents/InvitationComponents"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../../../common/vendor.js"),s={props:{message:{type:String,default:""}},data:()=>({title:"Hello"}),onLoad(){},methods:{onTap(){e.index.navigateTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`})}}};const o=e._export_sfc(s,[["render",function(s,o,t,a,n,r){return{a:t.message.link,b:e.o(((...e)=>r.onTap&&r.onTap(...e)))}}],["__scopeId","data-v-39536460"]]);wx.createComponent(o);
|
"use strict";const e=require("../../../../common/vendor.js"),s={props:{message:{type:Object,default:""}},data:()=>({title:"Hello"}),onLoad(){},methods:{onTap(){e.index.navigateTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`})}}};const o=e._export_sfc(s,[["render",function(s,o,t,a,n,r){return{a:t.message.link,b:e.o(((...e)=>r.onTap&&r.onTap(...e)))}}],["__scopeId","data-v-842d3dd6"]]);wx.createComponent(o);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="custom-pk-message data-v-39536460" bindtap="{{b}}"><image class="data-v-39536460" src="{{a}}" mode="scaleToFill" style="width:100%;height:100%"/></view>
|
<view class="custom-pk-message data-v-842d3dd6" bindtap="{{b}}"><image class="data-v-842d3dd6" src="{{a}}" mode="scaleToFill" style="width:100%;height:100%"/></view>
|
||||||
@@ -1 +1 @@
|
|||||||
.custom-pk-message.data-v-39536460{width:385rpx;height:195rpx;padding:20rpx;background-color:#fff;border-radius:20rpx}
|
.custom-pk-message.data-v-842d3dd6{width:385rpx;height:195rpx;padding:20rpx;background-color:#fff;border-radius:20rpx;margin:19rpx 15rpx}
|
||||||
|
|||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const e=require("../../../../../common/vendor.js"),o={data:()=>({url:""}),onLoad(e){this.url=e.url},methods:{goBack(){e.wx$1.navigateBack({delta:1})},saveImage(){e.index.showLoading({title:"正在下载图片...",mask:!0}),e.index.downloadFile({url:this.url,success:o=>{200===o.statusCode?e.index.saveImageToPhotosAlbum({filePath:o.tempFilePath,success:()=>{e.index.hideLoading(),e.index.showToast({title:"保存成功",icon:"none",duration:2e3})},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"保存失败: "+o.errMsg,icon:"none",duration:2e3})}}):(e.index.hideLoading(),e.index.showToast({title:"下载失败",icon:"none",duration:2e3}))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"下载失败: "+o.errMsg,icon:"none",duration:2e3})}})}}};const i=e._export_sfc(o,[["render",function(o,i,a,n,t,d){return{a:t.url,b:e.o(((...e)=>d.saveImage&&d.saveImage(...e))),c:e.o((()=>{})),d:e.o(((...e)=>d.goBack&&d.goBack(...e)))}}],["__scopeId","data-v-d01cc90d"]]);wx.createPage(i);
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "图片预览",
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<view class="image-preview data-v-d01cc90d" bindtap="{{d}}"><view class="data-v-d01cc90d"></view><image class="image data-v-d01cc90d" src="{{a}}" mode="aspectFill"></image><view class="Localbtn data-v-d01cc90d" catchtap="{{c}}"><image class="Local data-v-d01cc90d" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png" mode="aspectFit" bindtap="{{b}}"></image></view></view>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.image-preview.data-v-d01cc90d{width:100vw;height:100vh;background-color:#000;display:flex;flex-direction:column;justify-content:space-between;align-items:center}.image.data-v-d01cc90d{width:100vw;object-fit:contain}.Localbtn.data-v-d01cc90d{width:100vw;height:50rpx;margin-bottom:50rpx;display:flex;flex-direction:row-reverse}.Local.data-v-d01cc90d{width:50rpx;height:50rpx;margin-right:50rpx}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const e=require("../../../../../common/vendor.js"),o={data:()=>({url:""}),onLoad(e){this.url=e.url},methods:{goBack(){e.wx$1.navigateBack({delta:1})},saveImage(){e.index.showLoading({title:"正在下载视频...",mask:!0}),e.index.downloadFile({url:this.url,success:o=>{200===o.statusCode?e.index.saveVideoToPhotosAlbum({filePath:o.tempFilePath,success:()=>{e.index.hideLoading(),e.index.showToast({title:"保存成功",icon:"none",duration:2e3})},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"保存失败: "+o.errMsg,icon:"none",duration:2e3})}}):(e.index.hideLoading(),e.index.showToast({title:"下载失败",icon:"none",duration:2e3}))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"下载失败: "+o.errMsg,icon:"none",duration:2e3})}})}}};const i=e._export_sfc(o,[["render",function(o,i,n,a,t,d){return{a:e.o((e=>d.goBack())),b:t.url,c:e.o(((...e)=>d.saveImage&&d.saveImage(...e))),d:e.o((()=>{}))}}],["__scopeId","data-v-d6416587"]]);wx.createPage(i);
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "视频预览",
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<view class="image-preview data-v-d6416587"><view class="top data-v-d6416587"><image class="Fork data-v-d6416587" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/crossCross.png" mode="scaleToFill" bindtap="{{a}}"/></view><video class="image data-v-d6416587" src="{{b}}" mode="aspectFill"></video><view class="Localbtn data-v-d6416587" catchtap="{{d}}"><image class="Local data-v-d6416587" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png" mode="aspectFit" bindtap="{{c}}"></image></view></view>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.image-preview.data-v-d6416587{width:100vw;height:100vh;background-color:#000;display:flex;flex-direction:column;justify-content:space-between;align-items:center}.image.data-v-d6416587{width:100vw;object-fit:contain}.Localbtn.data-v-d6416587{width:100vw;height:50rpx;margin-bottom:50rpx;display:flex;flex-direction:row-reverse}.Local.data-v-d6416587{width:50rpx;height:50rpx;margin-right:50rpx}.Fork.data-v-d6416587{width:60rpx;height:60rpx;margin-left:50rpx}.top.data-v-d6416587{margin-top:110rpx;width:100vw}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const e=require("../../../../common/vendor.js"),i={props:{message:{type:Object,default:""}},data:()=>({imageHeight:0,imageWidth:0}),onLoad(){},methods:{load(e){e.detail.height>400?this.imageHeight=400:this.imageHeight=e.detail.height,e.detail.width>400?this.imageWidth=400:this.imageWidth=e.detail.width},imadeFullScreen(){e.wx$1.navigateTo({url:"/pages/index/chat/messageComponent/fullscreen/imagePreview?url="+this.message.url})}}};const t=e._export_sfc(i,[["render",function(i,t,a,d,s,o){return{a:s.imageWidth+"rpx",b:s.imageHeight+"rpx",c:e.o(((...e)=>o.load&&o.load(...e))),d:a.message.url,e:e.o(((...e)=>o.imadeFullScreen&&o.imadeFullScreen(...e)))}}],["__scopeId","data-v-9b2d2c20"]]);wx.createComponent(t);
|
||||||
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<view class="image-message data-v-9b2d2c20" bindtap="{{e}}"><image class="image data-v-9b2d2c20" style="{{'width:' + a + ';' + ('height:' + b)}}" bindload="{{c}}" src="{{d}}" mode="aspectFit"></image></view>
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.image-message.data-v-9b2d2c20{width:100%;height:100%}.image.data-v-9b2d2c20{border-radius:20rpx}
|
||||||
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../../../common/vendor.js"),t={data:()=>({}),onLoad(){},props:{messagetext:{type:String,default:""}},methods:{}};const o=e._export_sfc(t,[["render",function(t,o,s,n,r,a){return{a:e.t(s.messagetext)}}],["__scopeId","data-v-579dfd2b"]]);wx.createComponent(o);
|
"use strict";const e=require("../../../../common/vendor.js"),t={data:()=>({}),onLoad(){},props:{messagetext:{type:String,default:""}},methods:{}};const o=e._export_sfc(t,[["render",function(t,o,s,n,r,a){return{a:e.t(s.messagetext)}}],["__scopeId","data-v-b1c306dd"]]);wx.createComponent(o);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="messagetext data-v-579dfd2b">{{a}}</view>
|
<view class="messagetext data-v-b1c306dd">{{a}}</view>
|
||||||
@@ -1 +1 @@
|
|||||||
.messagetext.data-v-579dfd2b{font-size:34rpx;color:#333;letter-spacing:1rpx}
|
.messagetext.data-v-b1c306dd{font-size:34rpx;color:#333;letter-spacing:1rpx;padding:19rpx 30rpx}
|
||||||
|
|||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const e=require("../../../../common/vendor.js"),o={props:{message:{type:Object,default:""}},data:()=>({title:"Hello"}),onLoad(){},methods:{onTap(){e.wx$1.navigateTo({url:"/pages/index/chat/messageComponent/fullscreen/videoPreview?url="+this.message.video.url})}}};const t=e._export_sfc(o,[["render",function(o,t,a,n,s,r){return{a:a.message.thumbnail.url,b:e.o(((...e)=>r.onTap&&r.onTap(...e)))}}],["__scopeId","data-v-9ffe0c5a"]]);wx.createComponent(t);
|
||||||
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<view class="video-message data-v-9ffe0c5a" bindtap="{{b}}"><image class="video-player data-v-9ffe0c5a" src="{{a}}" mode="scaleToFill"/><image class="Play data-v-9ffe0c5a" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Play.png" mode="scaleToFill"/></view>
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.video-message.data-v-9ffe0c5a{width:450rpx;height:300rpx;border-radius:20px;display:flex}.video-player.data-v-9ffe0c5a{width:100%;height:100%;border-radius:20px}.Play.data-v-9ffe0c5a{width:200rpx;height:200rpx;margin-left:-330rpx;margin-top:50rpx}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const e=require("../../../../common/vendor.js"),t={props:{message:{type:Object,default:()=>({})},senderId:{type:String,default:""},userId:{type:Number},playbackStatus:{type:Boolean}},data:()=>({innerAudioContext:null,NumberClicks:0}),watch:{playbackStatus(e){e?this.$emit("notplayVoice",!0):this.innerAudioContext?(this.innerAudioContext.pause(),this.innerAudioContext.destroy(),this.innerAudioContext=null,this.NumberClicks=0,this.$emit("notplayVoice",!0)):this.$emit("notplayVoice",!0)}},methods:{floor:e=>Math.floor(e),Play(){this.$emit("notplayVoice",!1),setTimeout((()=>{this.innerAudioContext=e.index.createInnerAudioContext(),this.innerAudioContext.src=this.message.url,this.innerAudioContext.onEnded((()=>{this.NumberClicks=0,this.innerAudioContext.destroy(),this.innerAudioContext=null})),this.innerAudioContext.onError((e=>{this.NumberClicks=0,this.innerAudioContext.destroy(),this.innerAudioContext=null})),this.innerAudioContext.play(),this.NumberClicks=1}),500)}}};const i=e._export_sfc(t,[["render",function(t,i,n,o,s,r){return e.e({a:n.senderId==n.userId},n.senderId==n.userId?e.e({b:e.t(r.floor(n.message.duration)),c:0==s.NumberClicks},(s.NumberClicks,{}),{d:1==s.NumberClicks},(s.NumberClicks,{}),{e:2==s.NumberClicks},(s.NumberClicks,{})):e.e({f:0==s.NumberClicks},(s.NumberClicks,{}),{g:1==s.NumberClicks},(s.NumberClicks,{}),{h:2==s.NumberClicks},(s.NumberClicks,{}),{i:e.t(r.floor(n.message.duration))}),{j:e.o(((...e)=>r.Play&&r.Play(...e)))})}],["__scopeId","data-v-e16cb73c"]]);wx.createComponent(i);
|
||||||
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<view class="voice-message data-v-e16cb73c" bindtap="{{j}}"><view wx:if="{{a}}" class="voice-message-content data-v-e16cb73c"><view class="data-v-e16cb73c">{{b}}"</view><image wx:if="{{c}}" class="voice-message-avatar data-v-e16cb73c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png" mode="scaleToFill"/><view wx:if="{{d}}" class="voice-message-name data-v-e16cb73c">播放中...</view><view wx:if="{{e}}" class="voice-message-name data-v-e16cb73c">暂停中...</view></view><view wx:else class="voice-message-content data-v-e16cb73c"><image wx:if="{{f}}" class="voice-message-avatar data-v-e16cb73c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png" mode="scaleToFill"/><view wx:if="{{g}}" class="voice-message-name data-v-e16cb73c">播放中...</view><view wx:if="{{h}}" class="voice-message-name data-v-e16cb73c">暂停中...</view><view class="data-v-e16cb73c">"{{i}}"</view></view></view>
|
||||||
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.voice-message.data-v-e16cb73c{padding:0 20rpx}.voice-message-avatar.data-v-e16cb73c{width:100rpx;height:80rpx;margin-left:10rpx}.voice-message-content.data-v-e16cb73c{display:flex;align-items:center}.voice-message-name.data-v-e16cb73c{height:80rpx;margin-left:10rpx;font-size:28rpx;color:#999;line-height:80rpx}
|
||||||
@@ -1 +1 @@
|
|||||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),s={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,inid:null,chatPartnerinfo:{},style:{backgroundColor:"#ffffff"}}),onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?inid=${this.item.id}`}},onLoad(t){this.inid=t.inid,this.inid&&this.GetonShareAppMessagedata();this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,n.request({url:"user/getUserInfo",method:"POST",data:{id:e.item.senderId},userInfo:!0}).then((e=>{200===e.code&&(this.chatPartnerinfo=e.data)}))})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{GetonShareAppMessagedata(){n.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.inid,userId:this.id},userInfo:!0}).then((t=>{200===t.code?this.item=t.data:e.index.showToast({title:t.msg,icon:"none",duration:2e3})}))},formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1,fail:()=>{e.index.reLaunch({url:"/pages/Home/Home"})}})},open(){this.$refs.popup.open("center"),this.userlist()},invite(){null!==this.InvitingPartyEventindex?this.$refs.popups.open("center"):e.index.showToast({title:"请选择您要参与的PK信息",icon:"none",duration:2e3})},closeHint(){this.$refs.popups.close()},inviteHint(){this.$refs.popups.close();const t=JSON.stringify(this.list[this.InvitingPartyEventindex]),i=JSON.stringify(this.item);e.index.redirectTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}&myitem=${t}&youritem=${i}&type=pk`})},close(){this.$refs.popup.close()},openChat(){e.wx$1.navigateTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`})},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),this.list=t.data):(e.index.hideLoading(),setTimeout((()=>{this.openPopupQuantity(),this.$refs.popup.close()}),2e3)):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-easyinput")+e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math||((()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const o=e._export_sfc(s,[["render",function(t,i,n,s,o,a){return e.e({a:e.o(((...e)=>a.Returnfunc&&a.Returnfunc(...e))),b:o.item.anchorIcon,c:e.t(o.item.disPlayId),d:"1"===o.item.sex},(o.item.sex,{}),{e:e.t(o.item.country),f:e.t(a.formatDate(o.item.pkTime)),g:e.t(o.item.coin),h:e.t(o.item.pkNumber),i:e.s(o.style),j:e.o((e=>o.item.remark=e)),k:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",disabled:"true",modelValue:o.item.remark}),l:o.item.senderId!==o.id},o.item.senderId!==o.id?{m:e.o((e=>a.openChat())),n:e.o((e=>a.open()))}:{},{o:0!==o.list.length},0!==o.list.length?{p:e.f(o.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(a.TimeFormatting(t.pkTime)),d:e.t(t.coin),e:e.o((e=>a.Select(t.id,i)),i),f:o.selectedId===t.id?"#b8ff8c74":"#ffffff",g:i})))}:{},{q:0===o.list.length},(o.list.length,{}),{r:e.o((e=>a.invite())),s:e.o((e=>a.close())),t:e.sr("popup","6a997ddf-1"),v:e.p({type:"center","border-radius":"10px 10px 0 0"}),w:e.sr("createModule","6a997ddf-2"),x:e.o((e=>a.inviteHint())),y:e.o((e=>a.closeHint())),z:e.sr("popups","6a997ddf-3"),A:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-6a997ddf"]]);s.__runtimeHooks=2,wx.createPage(o);
|
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),s={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,inid:null,chatPartnerinfo:{},style:{backgroundColor:"#ffffff"}}),onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?inid=${this.item.id}`}},onLoad(t){this.inid=t.inid,this.inid&&this.GetonShareAppMessagedata();this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,n.request({url:"user/getUserInfo",method:"POST",data:{id:e.item.senderId},userInfo:!0}).then((e=>{200===e.code&&(this.chatPartnerinfo=e.data)}))})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{GetonShareAppMessagedata(){n.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.inid,userId:this.id,from:1},userInfo:!0}).then((t=>{200===t.code?this.item=t.data:e.index.showToast({title:t.msg,icon:"none",duration:2e3})}))},formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1,fail:()=>{e.index.reLaunch({url:"/pages/Home/Home"})}})},open(){this.$refs.popup.open("center"),this.userlist()},invite(){null!==this.InvitingPartyEventindex?this.$refs.popups.open("center"):e.index.showToast({title:"请选择您要参与的PK信息",icon:"none",duration:2e3})},closeHint(){this.$refs.popups.close()},inviteHint(){this.$refs.popups.close();const t=JSON.stringify(this.list[this.InvitingPartyEventindex]),i=JSON.stringify(this.item);e.index.redirectTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}&myitem=${t}&youritem=${i}&type=pk`})},close(){this.$refs.popup.close()},openChat(){e.wx$1.navigateTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`})},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),this.list=t.data):(e.index.hideLoading(),setTimeout((()=>{this.openPopupQuantity(),this.$refs.popup.close()}),2e3)):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-easyinput")+e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math||((()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const o=e._export_sfc(s,[["render",function(t,i,n,s,o,a){return e.e({a:e.o(((...e)=>a.Returnfunc&&a.Returnfunc(...e))),b:o.item.anchorIcon,c:e.t(o.item.disPlayId),d:"1"===o.item.sex},(o.item.sex,{}),{e:e.t(o.item.country),f:e.t(a.formatDate(o.item.pkTime)),g:e.t(o.item.coin),h:e.t(o.item.pkNumber),i:e.s(o.style),j:e.o((e=>o.item.remark=e)),k:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",disabled:"true",modelValue:o.item.remark}),l:o.item.senderId!==o.id},o.item.senderId!==o.id?{m:e.o((e=>a.openChat())),n:e.o((e=>a.open()))}:{},{o:0!==o.list.length},0!==o.list.length?{p:e.f(o.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(a.TimeFormatting(t.pkTime)),d:e.t(t.coin),e:e.o((e=>a.Select(t.id,i)),i),f:o.selectedId===t.id?"#b8ff8c74":"#ffffff",g:i})))}:{},{q:0===o.list.length},(o.list.length,{}),{r:e.o((e=>a.invite())),s:e.o((e=>a.close())),t:e.sr("popup","f4d8645a-1"),v:e.p({type:"center","border-radius":"10px 10px 0 0"}),w:e.sr("createModule","f4d8645a-2"),x:e.o((e=>a.inviteHint())),y:e.o((e=>a.closeHint())),z:e.sr("popups","f4d8645a-3"),A:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-f4d8645a"]]);s.__runtimeHooks=2,wx.createPage(o);
|
||||||
|
|||||||
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\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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":"customPKMessage.js","sources":["pages/index/chat/messageComponent/customPKMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvY3VzdG9tUEtNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <!-- 自定义PK消息组件模板 -->\r\n <view class=\"custom-pk-message\" @click=\"onTap\">\r\n <image\r\n :src=\"message.link\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 100%;height: 100%;\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n onTap() {\r\n uni.navigateTo({\r\n url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`,\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .custom-pk-message{\r\n width: 385rpx;\r\n height: 195rpx;\r\n padding: 20rpx;\r\n background-color: #ffffff;\r\n border-radius: 20rpx;\r\n margin:19rpx 15rpx 19rpx 15rpx;;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/customPKMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAYI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEL,QAAQ;AACJA,oBAAAA,MAAI,WAAW;AAAA,QACX,KAAK,6DAA6D,KAAK,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,MAC7G,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;AClCJ,GAAG,gBAAgB,SAAS;"}
|
{"version":3,"file":"customPKMessage.js","sources":["pages/index/chat/messageComponent/customPKMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvY3VzdG9tUEtNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <!-- 自定义PK消息组件模板 -->\r\n <view class=\"custom-pk-message\" @click=\"onTap\">\r\n <image\r\n :src=\"message.link\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 100%;height: 100%;\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n onTap() {\r\n uni.navigateTo({\r\n url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`,\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .custom-pk-message{\r\n width: 385rpx;\r\n height: 195rpx;\r\n padding: 20rpx;\r\n background-color: #ffffff;\r\n border-radius: 20rpx;\r\n margin:19rpx 15rpx 19rpx 15rpx;;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/customPKMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAYI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEL,QAAQ;AACJA,oBAAAA,MAAI,WAAW;AAAA,QACX,KAAK,6DAA6D,KAAK,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,MAC7G,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;AClCJ,GAAG,gBAAgB,SAAS;"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"imagePreview.js","sources":["pages/index/chat/messageComponent/fullscreen/imagePreview.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvY2hhdC9tZXNzYWdlQ29tcG9uZW50L2Z1bGxzY3JlZW4vaW1hZ2VQcmV2aWV3LnZ1ZQ"],"sourcesContent":["<template>\n <view class=\"image-preview\" @click=\"goBack\">\n <view></view>\n <image class=\"image\" :src=\"url\" mode=\"aspectFill\"></image>\n <view class=\"Localbtn\" @click.stop>\n <image\n class=\"Local\"\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png\"\n mode=\"aspectFit\"\n @click=\"saveImage\"\n ></image>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n url: \"\",\n };\n },\n onLoad(options) {\n this.url = options.url;\n },\n methods: {\n //返回上一页\n goBack() {\n wx.navigateBack({\n delta: 1,\n });\n },\n //保存图片\n saveImage() {\n uni.showLoading({\n title: '正在下载图片...',\n mask: true\n });\n \n // 下载网络图片到临时文件\n uni.downloadFile({\n url: this.url,\n success: (downloadRes) => {\n if (downloadRes.statusCode === 200) {\n // 保存到相册\n uni.saveImageToPhotosAlbum({\n filePath: downloadRes.tempFilePath,\n success: () => {\n uni.hideLoading();\n uni.showToast({\n title: '保存成功',\n icon: 'none',\n duration: 2000\n });\n },\n fail: (saveErr) => {\n uni.hideLoading();\n uni.showToast({\n title: '保存失败: ' + saveErr.errMsg,\n icon: 'none',\n duration: 2000\n });\n }\n });\n } else {\n uni.hideLoading();\n uni.showToast({\n title: '下载失败',\n icon: 'none',\n duration: 2000\n });\n }\n },\n fail: (downloadErr) => {\n uni.hideLoading();\n uni.showToast({\n title: '下载失败: ' + downloadErr.errMsg,\n icon: 'none',\n duration: 2000\n });\n }\n });\n },\n },\n};\n</script>\n\n<style scoped>\n.image-preview {\n width: 100vw;\n height: 100vh;\n background-color: black;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n}\n.image {\n width: 100vw;\n object-fit: contain;\n}\n.Localbtn {\n width: 100vw;\n height: 50rpx;\n margin-bottom: 50rpx;\n display: flex;\n flex-direction: row-reverse;\n}\n.Local {\n width: 50rpx;\n height: 50rpx;\n margin-right: 50rpx;\n}\n</style>","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/fullscreen/imagePreview.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx","uni"],"mappings":";;AAgBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,KAAK;AAAA;EAER;AAAA,EACD,OAAO,SAAS;AACd,SAAK,MAAM,QAAQ;AAAA,EACpB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA;AAAA,IAED,YAAY;AACRC,oBAAAA,MAAI,YAAY;AAAA,QAChB,OAAO;AAAA,QACP,MAAM;AAAA,MACR,CAAC;AAGDA,oBAAAA,MAAI,aAAa;AAAA,QACf,KAAK,KAAK;AAAA,QACV,SAAS,CAAC,gBAAgB;AACxB,cAAI,YAAY,eAAe,KAAK;AAElCA,0BAAAA,MAAI,uBAAuB;AAAA,cACzB,UAAU,YAAY;AAAA,cACtB,SAAS,MAAM;AACbA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,cACD,MAAM,CAAC,YAAY;AACjBA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO,WAAW,QAAQ;AAAA,kBAC1B,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACH;AAAA,YACF,CAAC;AAAA,iBACI;AACLA,0BAAG,MAAC,YAAW;AACfA,0BAAAA,MAAI,UAAU;AAAA,cACZ,OAAO;AAAA,cACP,MAAM;AAAA,cACN,UAAU;AAAA,YACZ,CAAC;AAAA,UACH;AAAA,QACD;AAAA,QACD,MAAM,CAAC,gBAAgB;AACrBA,wBAAG,MAAC,YAAW;AACfA,wBAAAA,MAAI,UAAU;AAAA,YACZ,OAAO,WAAW,YAAY;AAAA,YAC9B,MAAM;AAAA,YACN,UAAU;AAAA,UACZ,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;;;;ACnFA,GAAG,WAAW,eAAe;"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"videoPreview.js","sources":["pages/index/chat/messageComponent/fullscreen/videoPreview.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvY2hhdC9tZXNzYWdlQ29tcG9uZW50L2Z1bGxzY3JlZW4vdmlkZW9QcmV2aWV3LnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"image-preview\">\r\n <view class=\"top\">\r\n <image\r\n class=\"Fork\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/crossCross.png\"\r\n mode=\"scaleToFill\"\r\n @click=\"goBack() \"\r\n />\r\n </view>\r\n <video class=\"image\" :src=\"url\" mode=\"aspectFill\"></video>\r\n <view class=\"Localbtn\" @click.stop>\r\n <image\r\n class=\"Local\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png\"\r\n mode=\"aspectFit\"\r\n @click=\"saveImage\"\r\n ></image>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n url: \"\",\r\n };\r\n },\r\n onLoad(options) {\r\n this.url = options.url;\r\n },\r\n methods: {\r\n //返回上一页\r\n goBack() {\r\n wx.navigateBack({\r\n delta: 1,\r\n });\r\n },\r\n //保存图片\r\n saveImage() {\r\n uni.showLoading({\r\n title: \"正在下载视频...\",\r\n mask: true,\r\n });\r\n\r\n // 下载网络图片到临时文件\r\n uni.downloadFile({\r\n url: this.url,\r\n success: (downloadRes) => {\r\n if (downloadRes.statusCode === 200) {\r\n // 保存到相册\r\n uni.saveVideoToPhotosAlbum({\r\n filePath: downloadRes.tempFilePath,\r\n success: () => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"保存成功\",\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n fail: (saveErr) => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"保存失败: \" + saveErr.errMsg,\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n });\r\n } else {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"下载失败\",\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n }\r\n },\r\n fail: (downloadErr) => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"下载失败: \" + downloadErr.errMsg,\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.image-preview {\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: black;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.image {\r\n width: 100vw;\r\n object-fit: contain;\r\n}\r\n.Localbtn {\r\n width: 100vw;\r\n height: 50rpx;\r\n margin-bottom: 50rpx;\r\n display: flex;\r\n flex-direction: row-reverse;\r\n}\r\n.Local {\r\n width: 50rpx;\r\n height: 50rpx;\r\n margin-right: 50rpx;\r\n}\r\n.Fork{\r\n width: 60rpx;\r\n height: 60rpx;\r\n margin-left: 50rpx;\r\n}\r\n.top{\r\n margin-top: 110rpx;\r\n width: 100vw;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/fullscreen/videoPreview.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx","uni"],"mappings":";;AAuBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,KAAK;AAAA;EAER;AAAA,EACD,OAAO,SAAS;AACd,SAAK,MAAM,QAAQ;AAAA,EACpB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA;AAAA,IAED,YAAY;AACVC,oBAAAA,MAAI,YAAY;AAAA,QACd,OAAO;AAAA,QACP,MAAM;AAAA,MACR,CAAC;AAGDA,oBAAAA,MAAI,aAAa;AAAA,QACf,KAAK,KAAK;AAAA,QACV,SAAS,CAAC,gBAAgB;AACxB,cAAI,YAAY,eAAe,KAAK;AAElCA,0BAAAA,MAAI,uBAAuB;AAAA,cACzB,UAAU,YAAY;AAAA,cACtB,SAAS,MAAM;AACbA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,cACD,MAAM,CAAC,YAAY;AACjBA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO,WAAW,QAAQ;AAAA,kBAC1B,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,YACH,CAAC;AAAA,iBACI;AACLA,0BAAG,MAAC,YAAW;AACfA,0BAAAA,MAAI,UAAU;AAAA,cACZ,OAAO;AAAA,cACP,MAAM;AAAA,cACN,UAAU;AAAA,YACZ,CAAC;AAAA,UACH;AAAA,QACD;AAAA,QACD,MAAM,CAAC,gBAAgB;AACrBA,wBAAG,MAAC,YAAW;AACfA,wBAAAA,MAAI,UAAU;AAAA,YACZ,OAAO,WAAW,YAAY;AAAA,YAC9B,MAAM;AAAA,YACN,UAAU;AAAA,UACZ,CAAC;AAAA,QACF;AAAA,MACH,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;;;;AC1FA,GAAG,WAAW,eAAe;"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"imageMessage.js","sources":["pages/index/chat/messageComponent/imageMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvaW1hZ2VNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"image-message\" @click=\"imadeFullScreen\">\r\n <image class=\"image\" :style=\"{width: imageWidth + 'rpx', height: imageHeight + 'rpx'}\" @load=\"load\" :src=\"message.url\" mode=\"aspectFit\"></image>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n imageHeight: 0,\r\n imageWidth: 0,\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n load(event) {\r\n if (event.detail.height > 400){\r\n this.imageHeight = 400;\r\n }else{\r\n this.imageHeight = event.detail.height\r\n }\r\n if (event.detail.width > 400){\r\n this.imageWidth = 400;\r\n }else{\r\n this.imageWidth = event.detail.width\r\n }\r\n },\r\n // 点击图片全屏显示\r\n imadeFullScreen(){\r\n wx.navigateTo({\r\n url: '/pages/index/chat/messageComponent/fullscreen/imagePreview?url=' + this.message.url\r\n })\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .image-message{\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .image{\r\n border-radius: 20rpx;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/imageMessage.vue'\nwx.createComponent(Component)"],"names":["wx"],"mappings":";;AAOI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,aAAa;AAAA,MACb,YAAY;AAAA,IAChB;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACL,KAAK,OAAO;AACR,UAAI,MAAM,OAAO,SAAS,KAAI;AAC1B,aAAK,cAAc;AAAA,aAClB;AACD,aAAK,cAAc,MAAM,OAAO;AAAA,MACpC;AACA,UAAI,MAAM,OAAO,QAAQ,KAAI;AACzB,aAAK,aAAa;AAAA,aACjB;AACD,aAAK,aAAa,MAAM,OAAO;AAAA,MACnC;AAAA,IACH;AAAA;AAAA,IAED,kBAAiB;AACbA,oBAAAA,KAAG,WAAW;AAAA,QACV,KAAK,oEAAoE,KAAK,QAAQ;AAAA,OACzF;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;;;;AC1CJ,GAAG,gBAAgB,SAAS;"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"videoMessage.js","sources":["pages/index/chat/messageComponent/videoMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvdmlkZW9NZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"video-message\" @click=\"onTap\">\r\n <image class=\"video-player\" :src=\"message.thumbnail.url\" mode=\"scaleToFill\" />\r\n <image\r\n class=\"Play\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Play.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: \"\",\r\n },\r\n },\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n onTap() {\r\n wx.navigateTo({\r\n url:\r\n \"/pages/index/chat/messageComponent/fullscreen/videoPreview?url=\" +\r\n this.message.video.url,\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.video-message {\r\n width: 450rpx;\r\n height: 300rpx;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n.video-player {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 20px;\r\n}\r\n.Play {\r\n width: 200rpx;\r\n height: 200rpx;\r\n margin-left: -330rpx;\r\n margin-top: 50rpx;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/videoMessage.vue'\nwx.createComponent(Component)"],"names":["wx"],"mappings":";;AAYA,MAAK,YAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA;EAEV;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,QAAQ;AACNA,oBAAAA,KAAG,WAAW;AAAA,QACZ,KACE,oEACA,KAAK,QAAQ,MAAM;AAAA,MACvB,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;ACnCA,GAAG,gBAAgB,SAAS;"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"voiceMessage.js","sources":["pages/index/chat/messageComponent/voiceMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvdm9pY2VNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"voice-message\" @click=\"Play\">\r\n <view class=\"voice-message-content\" v-if=\"senderId == userId\">\r\n <view>{{ floor(message.duration) }}\"</view>\r\n <image\r\n v-if=\"NumberClicks == 0\"\r\n class=\"voice-message-avatar\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 1\">播放中...</view>\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 2\">暂停中...</view>\r\n </view>\r\n\r\n <view class=\"voice-message-content\" v-else>\r\n <image\r\n v-if=\"NumberClicks == 0\"\r\n class=\"voice-message-avatar\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 1\">播放中...</view>\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 2\">暂停中...</view>\r\n <view>\"{{ floor(message.duration) }}\"</view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: () => ({}),\r\n },\r\n senderId: {\r\n type: String,\r\n default: \"\",\r\n },\r\n userId: {\r\n type: Number,\r\n },\r\n playbackStatus: {\r\n type: Boolean,\r\n },\r\n },\r\n data() {\r\n return {\r\n innerAudioContext: null,\r\n NumberClicks: 0,\r\n };\r\n },\r\n watch: {\r\n playbackStatus(newVal) {\r\n if (!newVal) {\r\n if (this.innerAudioContext) {\r\n this.innerAudioContext.pause();\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n this.NumberClicks = 0;\r\n this.$emit(\"notplayVoice\", true);\r\n } else {\r\n this.$emit(\"notplayVoice\", true);\r\n }\r\n } else {\r\n this.$emit(\"notplayVoice\", true);\r\n }\r\n },\r\n },\r\n methods: {\r\n floor(num) {\r\n return Math.floor(num);\r\n },\r\n Play() {\r\n this.$emit(\"notplayVoice\", false);\r\n setTimeout(() => {\r\n this.innerAudioContext = uni.createInnerAudioContext();\r\n this.innerAudioContext.src = this.message.url;\r\n this.innerAudioContext.onEnded(() => {\r\n this.NumberClicks = 0;\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n });\r\n this.innerAudioContext.onError((res) => {\r\n this.NumberClicks = 0;\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n });\r\n\r\n this.innerAudioContext.play();\r\n this.NumberClicks = 1;\r\n }, 500);\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.voice-message {\r\n padding: 0 20rpx 0 20rpx;\r\n}\r\n\r\n.voice-message-avatar {\r\n width: 100rpx;\r\n height: 80rpx;\r\n margin-left: 10rpx;\r\n}\r\n\r\n.voice-message-content {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.voice-message-name {\r\n height: 80rpx;\r\n margin-left: 10rpx;\r\n font-size: 28rpx;\r\n color: #999;\r\n line-height: 80rpx;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/voiceMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AA6BA,MAAK,YAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IACD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,QAAQ;AAAA,MACN,MAAM;AAAA,IACP;AAAA,IACD,gBAAgB;AAAA,MACd,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,mBAAmB;AAAA,MACnB,cAAc;AAAA;EAEjB;AAAA,EACD,OAAO;AAAA,IACL,eAAe,QAAQ;AACrB,UAAI,CAAC,QAAQ;AACX,YAAI,KAAK,mBAAmB;AAC1B,eAAK,kBAAkB;AACvB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AACzB,eAAK,eAAe;AACpB,eAAK,MAAM,gBAAgB,IAAI;AAAA,eAC1B;AACL,eAAK,MAAM,gBAAgB,IAAI;AAAA,QACjC;AAAA,aACK;AACL,aAAK,MAAM,gBAAgB,IAAI;AAAA,MACjC;AAAA,IACD;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,MAAM,KAAK;AACT,aAAO,KAAK,MAAM,GAAG;AAAA,IACtB;AAAA,IACD,OAAO;AACL,WAAK,MAAM,gBAAgB,KAAK;AAChC,iBAAW,MAAM;AACf,aAAK,oBAAoBA,oBAAI;AAC7B,aAAK,kBAAkB,MAAM,KAAK,QAAQ;AAC1C,aAAK,kBAAkB,QAAQ,MAAM;AACnC,eAAK,eAAe;AACpB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AAAA,QAC3B,CAAC;AACD,aAAK,kBAAkB,QAAQ,CAAC,QAAQ;AACtC,eAAK,eAAe;AACpB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AAAA,QAC3B,CAAC;AAED,aAAK,kBAAkB;AACvB,aAAK,eAAe;AAAA,MACrB,GAAE,GAAG;AAAA,IACP;AAAA,EACF;AACH;;;;;;;;;;;;;;;;;;;;;;;;AC7FA,GAAG,gBAAgB,SAAS;"}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/mp-weixin/app.js
vendored
2
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -13,6 +13,8 @@ if (!Math) {
|
|||||||
"./pages/Mine/minecomponents/serviceProtocol.js";
|
"./pages/Mine/minecomponents/serviceProtocol.js";
|
||||||
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
|
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
|
||||||
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
||||||
|
"./pages/index/chat/messageComponent/fullscreen/imagePreview.js";
|
||||||
|
"./pages/index/chat/messageComponent/fullscreen/videoPreview.js";
|
||||||
"./pages/index/index.js";
|
"./pages/index/index.js";
|
||||||
"./pages/index/chat/chat.js";
|
"./pages/index/chat/chat.js";
|
||||||
"./pages/login/login.js";
|
"./pages/login/login.js";
|
||||||
|
|||||||
2
unpackage/dist/dev/mp-weixin/app.json
vendored
2
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -11,6 +11,8 @@
|
|||||||
"pages/Mine/minecomponents/serviceProtocol",
|
"pages/Mine/minecomponents/serviceProtocol",
|
||||||
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||||
"pages/PKMessageprocessing/PKMessageprocessing",
|
"pages/PKMessageprocessing/PKMessageprocessing",
|
||||||
|
"pages/index/chat/messageComponent/fullscreen/imagePreview",
|
||||||
|
"pages/index/chat/messageComponent/fullscreen/videoPreview",
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/index/chat/chat",
|
"pages/index/chat/chat",
|
||||||
"pages/login/login",
|
"pages/login/login",
|
||||||
|
|||||||
@@ -7362,7 +7362,7 @@ function isConsoleWritable() {
|
|||||||
function initRuntimeSocketService() {
|
function initRuntimeSocketService() {
|
||||||
const hosts = "192.168.1.112,127.0.0.1";
|
const hosts = "192.168.1.112,127.0.0.1";
|
||||||
const port = "8090";
|
const port = "8090";
|
||||||
const id = "mp-weixin_q8yHR6";
|
const id = "mp-weixin_Ck4vXb";
|
||||||
const lazy = typeof swan !== "undefined";
|
const lazy = typeof swan !== "undefined";
|
||||||
let restoreError = lazy ? () => {
|
let restoreError = lazy ? () => {
|
||||||
} : initOnError();
|
} : initOnError();
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
const common_vendor = require("../common/vendor.js");
|
|
||||||
new common_vendor.COS({
|
|
||||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
|
|
||||||
// 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
|
|
||||||
// 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/audioMessages.js.map
|
|
||||||
@@ -38,6 +38,10 @@ function getConversationList(goeasy) {
|
|||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:43", "获取会话列表失败, code:" + error.code + " content:" + error.content);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:43", "获取会话列表失败, code:" + error.code + " content:" + error.content);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "获取会话列表失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -55,12 +59,16 @@ function getConversationMessages(goeasy, userid, imestamp) {
|
|||||||
limit: 30,
|
limit: 30,
|
||||||
//可选项,返回的消息条数,默认为10条,最多30条
|
//可选项,返回的消息条数,默认为10条,最多30条
|
||||||
onSuccess: function(result) {
|
onSuccess: function(result) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:59", "获取消息列表成功", result);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:63", "获取消息列表成功", result);
|
||||||
resolve(result.content);
|
resolve(result.content);
|
||||||
},
|
},
|
||||||
//查询成功
|
//查询成功
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:63", "获取消息列表失败, code:" + error.code + " content:" + error.content);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:67", "获取消息列表失败, code:" + error.code + " content:" + error.content);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "获取消息列表失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//查询失败
|
//查询失败
|
||||||
});
|
});
|
||||||
@@ -87,7 +95,11 @@ function sendMessage(goeasy, userid, message, avatar, nickname) {
|
|||||||
resolve(textMessage);
|
resolve(textMessage);
|
||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:90", "发送消息失败,code:" + error.code + " ,error " + error.content);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:98", "发送消息失败,code:" + error.code + " ,error " + error.content);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "发送消息失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -104,7 +116,11 @@ function messageRead(goeasy, userid) {
|
|||||||
resolve();
|
resolve();
|
||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:109", "标记私聊已读失败", error);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:121", "标记私聊已读失败", error);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "标记私聊已读失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -131,7 +147,11 @@ function sendCustomMessage(goeasy, type, userid, order, avatar, nickname) {
|
|||||||
resolve(customMessage);
|
resolve(customMessage);
|
||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:137", "Failed to send message,code:" + error.code + ",error" + error.content);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:153", "Failed to send message,code:" + error.code + ",error" + error.content);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "发送自定义消息失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -147,7 +167,11 @@ function conversationTop(goeasy, conversation, top) {
|
|||||||
resolve("成功");
|
resolve("成功");
|
||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:154", "失败:", error);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:174", "失败:", error);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "置顶会话失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -161,7 +185,28 @@ function conversationDelete(goeasy, conversation) {
|
|||||||
resolve("删除会话成功");
|
resolve("删除会话成功");
|
||||||
},
|
},
|
||||||
onFailed: function(error) {
|
onFailed: function(error) {
|
||||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:169", error);
|
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:193", error);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "删除会话失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function sendGroupMessage(goeasy, message) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
var im = goeasy.im;
|
||||||
|
im.sendMessage({
|
||||||
|
message,
|
||||||
|
onSuccess: () => {
|
||||||
|
resolve(message);
|
||||||
|
},
|
||||||
|
onFailed: function(error) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "发送消息失败",
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -174,5 +219,6 @@ exports.goEasylogin = goEasylogin;
|
|||||||
exports.goEasylogout = goEasylogout;
|
exports.goEasylogout = goEasylogout;
|
||||||
exports.messageRead = messageRead;
|
exports.messageRead = messageRead;
|
||||||
exports.sendCustomMessage = sendCustomMessage;
|
exports.sendCustomMessage = sendCustomMessage;
|
||||||
|
exports.sendGroupMessage = sendGroupMessage;
|
||||||
exports.sendMessage = sendMessage;
|
exports.sendMessage = sendMessage;
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/goEasyTool/tool.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/goEasyTool/tool.js.map
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
const common_vendor = require("../common/vendor.js");
|
|
||||||
new common_vendor.COS({
|
|
||||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
|
|
||||||
// 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
|
|
||||||
// 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/picturesVideosMessages.js.map
|
|
||||||
@@ -266,7 +266,8 @@ const _sfc_main = {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
userId: this.info.id
|
userId: this.info.id,
|
||||||
|
from: 1
|
||||||
},
|
},
|
||||||
userInfo: true
|
userInfo: true
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -161,8 +161,9 @@ const _sfc_main = {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.myPkRecorddata = res.data;
|
this.myPkRecorddata = res.data;
|
||||||
|
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:393", "this.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddata", JSON.stringify(this.myPkRecorddata));
|
||||||
} else {
|
} else {
|
||||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:394", res.msg);
|
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:395", res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -303,7 +304,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||||||
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null ? {} : item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null ? {} : {}, {
|
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null ? {} : item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null ? {} : {}, {
|
||||||
c: item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null,
|
c: item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null,
|
||||||
d: common_vendor.t(item.pkNumber),
|
d: common_vendor.t(item.pkNumber),
|
||||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
e: common_vendor.t($options.TimeFormatting(item.pkTime * 1e3)),
|
||||||
f: index,
|
f: index,
|
||||||
g: common_vendor.o(($event) => $options.onItemClick(item), index)
|
g: common_vendor.o(($event) => $options.onItemClick(item), index)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ const _sfc_main = {
|
|||||||
title: "Hello",
|
title: "Hello",
|
||||||
item: {},
|
item: {},
|
||||||
coinNumlist: [],
|
coinNumlist: [],
|
||||||
triggered: false,
|
triggered: false
|
||||||
iconNumber: 123457
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@@ -60,7 +59,7 @@ const _sfc_main = {
|
|||||||
this.coinNumlist = res.data;
|
this.coinNumlist = res.data;
|
||||||
this.triggered = false;
|
this.triggered = false;
|
||||||
} else {
|
} else {
|
||||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:180", "获取金币数量失败");
|
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:177", "获取金币数量失败");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -85,17 +84,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||||||
}, $data.item.winnerAnchorId == $data.item.anchorIdA ? {} : {}, {
|
}, $data.item.winnerAnchorId == $data.item.anchorIdA ? {} : {}, {
|
||||||
d: common_vendor.t($data.item.anchorIdA),
|
d: common_vendor.t($data.item.anchorIdA),
|
||||||
e: common_vendor.t($options.formatDate($data.item.pkTime)),
|
e: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||||
f: common_vendor.t($options.formatCoinNum($data.iconNumber)),
|
f: $data.item.userACoins !== null
|
||||||
g: $data.item.anchorIconB,
|
}, $data.item.userACoins !== null ? {
|
||||||
h: $data.item.winnerAnchorId == $data.item.anchorIdB
|
g: common_vendor.t($options.formatCoinNum($data.item.userACoins))
|
||||||
}, $data.item.winnerAnchorId == $data.item.anchorIdB ? {} : {}, {
|
|
||||||
i: common_vendor.t($data.item.anchorIdB),
|
|
||||||
j: common_vendor.t($options.formatDate($data.item.pkTime)),
|
|
||||||
k: $data.item.userBCoins !== null
|
|
||||||
}, $data.item.userBCoins !== null ? {
|
|
||||||
l: common_vendor.t($options.formatCoinNum($data.item.userBCoins))
|
|
||||||
} : {}, {
|
} : {}, {
|
||||||
m: common_vendor.f($data.coinNumlist, (items, index, i0) => {
|
h: $data.item.anchorIconB,
|
||||||
|
i: $data.item.winnerAnchorId == $data.item.anchorIdB
|
||||||
|
}, $data.item.winnerAnchorId == $data.item.anchorIdB ? {} : {}, {
|
||||||
|
j: common_vendor.t($data.item.anchorIdB),
|
||||||
|
k: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||||
|
l: $data.item.userBCoins !== null
|
||||||
|
}, $data.item.userBCoins !== null ? {
|
||||||
|
m: common_vendor.t($options.formatCoinNum($data.item.userBCoins))
|
||||||
|
} : {}, {
|
||||||
|
n: common_vendor.f($data.coinNumlist, (items, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: common_vendor.t($options.formatCoinNum(items.anchorCoinA)),
|
a: common_vendor.t($options.formatCoinNum(items.anchorCoinA)),
|
||||||
b: items.anchorIdA == items.winnerAnchorId ? "#00fbff21" : "#ff000011",
|
b: items.anchorIdA == items.winnerAnchorId ? "#00fbff21" : "#ff000011",
|
||||||
@@ -105,8 +107,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||||||
f: "414631de-0-" + i0
|
f: "414631de-0-" + i0
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
n: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
o: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||||
o: $data.triggered
|
p: $data.triggered
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-414631de"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-414631de"]]);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-414631de">PK记录详情</view><view class="pkrecords data-v-414631de"><view class="card data-v-414631de"><view class="AnchorA data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorAImgcss data-v-414631de" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{f}}</view></view></view></view><view class="vstext data-v-414631de"><view class="Vtext data-v-414631de">V</view><view class="Stext data-v-414631de">S</view></view><view class="AnchorB data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{g}}" mode="scaleToFill"/></view><image wx:if="{{h}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{i}}</view><view class="AnchorATime data-v-414631de">{{j}}</view><view wx:if="{{k}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{l}}</view></view></view></view></view><view class="pkrecords-content data-v-414631de"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-414631de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{n}}" refresher-triggered="{{o}}"><uni-card wx:for="{{m}}" wx:for-item="items" wx:key="e" class="data-v-414631de" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-414631de"><view class="contentcard-titleA data-v-414631de" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.a}}</view></view><view class="contentcard-titleB data-v-414631de" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-414631de">PK记录详情</view><view class="pkrecords data-v-414631de"><view class="card data-v-414631de"><view class="AnchorA data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorAImgcss data-v-414631de" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view wx:if="{{f}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{g}}</view></view></view></view><view class="vstext data-v-414631de"><view class="Vtext data-v-414631de">V</view><view class="Stext data-v-414631de">S</view></view><view class="AnchorB data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{h}}" mode="scaleToFill"/></view><image wx:if="{{i}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{j}}</view><view class="AnchorATime data-v-414631de">{{k}}</view><view wx:if="{{l}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{m}}</view></view></view></view></view><view class="pkrecords-content data-v-414631de"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-414631de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{o}}" refresher-triggered="{{p}}"><uni-card wx:for="{{n}}" wx:for-item="items" wx:key="e" class="data-v-414631de" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-414631de"><view class="contentcard-titleA data-v-414631de" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.a}}</view></view><view class="contentcard-titleB data-v-414631de" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
||||||
@@ -54,6 +54,26 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//金币数量格式化
|
||||||
|
formatCoinNum(coin) {
|
||||||
|
if (coin === null || coin === void 0) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (coin < 1e3) {
|
||||||
|
return String(coin);
|
||||||
|
}
|
||||||
|
if (coin >= 1e6) {
|
||||||
|
return "1M+";
|
||||||
|
}
|
||||||
|
const kValue = coin / 1e3;
|
||||||
|
const formattedString = kValue.toFixed(2);
|
||||||
|
const matchResult = formattedString.match(/^\d+\.\d{0,2}/);
|
||||||
|
if (matchResult === null) {
|
||||||
|
return kValue.toFixed(2) + "k";
|
||||||
|
}
|
||||||
|
const formatted = matchResult[0];
|
||||||
|
return `${formatted}k`;
|
||||||
|
},
|
||||||
onRefresherRefresh() {
|
onRefresherRefresh() {
|
||||||
this.pkRecordlist = [];
|
this.pkRecordlist = [];
|
||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
@@ -80,11 +100,9 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onBack() {
|
onBack() {
|
||||||
common_vendor.index.navigateBack(
|
common_vendor.index.navigateBack({
|
||||||
{
|
delta: 1
|
||||||
delta: 1
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
formatDate: components_formatDate.formatDate,
|
formatDate: components_formatDate.formatDate,
|
||||||
//获取我发布的PK记录列表
|
//获取我发布的PK记录列表
|
||||||
@@ -114,7 +132,7 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:200", res.msg);
|
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:236", res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -154,13 +172,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||||||
d: common_vendor.t($options.formatDate(item.pkTime)),
|
d: common_vendor.t($options.formatDate(item.pkTime)),
|
||||||
e: item.userACoins !== null
|
e: item.userACoins !== null
|
||||||
}, item.userACoins !== null ? {
|
}, item.userACoins !== null ? {
|
||||||
f: common_vendor.t(item.userACoins)
|
f: common_vendor.t($options.formatCoinNum(item.userACoins))
|
||||||
} : {}, {
|
} : {}, {
|
||||||
g: common_vendor.t(item.anchorIdB),
|
g: common_vendor.t(item.anchorIdB),
|
||||||
h: common_vendor.t($options.formatDate(item.pkTime)),
|
h: common_vendor.t($options.formatDate(item.pkTime)),
|
||||||
i: item.userBCoins !== null
|
i: item.userBCoins !== null
|
||||||
}, item.userBCoins !== null ? {
|
}, item.userBCoins !== null ? {
|
||||||
j: common_vendor.t(item.userBCoins)
|
j: common_vendor.t($options.formatCoinNum(item.userBCoins))
|
||||||
} : {}, {
|
} : {}, {
|
||||||
k: item.anchorIconB,
|
k: item.anchorIconB,
|
||||||
l: item.winnerAnchorId == item.anchorIdB
|
l: item.winnerAnchorId == item.anchorIdB
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="pkRecord data-v-6fa696de"><view class="bg data-v-6fa696de"><image class="bgImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6fa696de" bindtap="{{a}}"><image class="ReturnImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6fa696de">PK记录</view><view class="navigation data-v-6fa696de"><view class="navigationItem data-v-6fa696de"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-6fa696de', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-6fa696de', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-6fa696de" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-6fa696de"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-6fa696de" bindtap="{{item.m}}"><view class="AnchorA data-v-6fa696de"><view class="AnchorAImg data-v-6fa696de"><image class="AnchorAImgcss data-v-6fa696de" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.c}}</view><view class="AnchorATime data-v-6fa696de">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.f}}K</view></view></view></view><view class="vstext data-v-6fa696de"><view class="Vtext data-v-6fa696de">V</view><view class="Stext data-v-6fa696de">S</view></view><view class="AnchorB data-v-6fa696de"><view class="AnchorBinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.g}}</view><view class="AnchorATime data-v-6fa696de">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.j}}K</view></view></view><view class="AnchorAImg data-v-6fa696de"><image class="AnchorBImgcss data-v-6fa696de" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-6fa696de">暂无内容</view></view></view>
|
<view class="pkRecord data-v-6fa696de"><view class="bg data-v-6fa696de"><image class="bgImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6fa696de" bindtap="{{a}}"><image class="ReturnImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6fa696de">PK记录</view><view class="navigation data-v-6fa696de"><view class="navigationItem data-v-6fa696de"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-6fa696de', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-6fa696de', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-6fa696de" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-6fa696de"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-6fa696de" bindtap="{{item.m}}"><view class="AnchorA data-v-6fa696de"><view class="AnchorAImg data-v-6fa696de"><image class="AnchorAImgcss data-v-6fa696de" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.c}}</view><view class="AnchorATime data-v-6fa696de">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.f}}</view></view></view></view><view class="vstext data-v-6fa696de"><view class="Vtext data-v-6fa696de">V</view><view class="Stext data-v-6fa696de">S</view></view><view class="AnchorB data-v-6fa696de"><view class="AnchorBinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.g}}</view><view class="AnchorATime data-v-6fa696de">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.j}}</view></view></view><view class="AnchorAImg data-v-6fa696de"><image class="AnchorBImgcss data-v-6fa696de" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-6fa696de">暂无内容</view></view></view>
|
||||||
@@ -143,8 +143,8 @@
|
|||||||
color: #58d8db;
|
color: #58d8db;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
white-space: nowrap; /* 防止换行 */
|
white-space: nowrap; /* 防止换行 */
|
||||||
overflow: hidden; /* 隐藏溢出内容 */
|
overflow: hidden; /* 隐藏溢出内容 */
|
||||||
text-overflow: ellipsis; /* 显示省略号 */
|
text-overflow: ellipsis; /* 显示省略号 */
|
||||||
}
|
}
|
||||||
.AnchorATime.data-v-6fa696de {
|
.AnchorATime.data-v-6fa696de {
|
||||||
@@ -188,11 +188,11 @@
|
|||||||
border-bottom: #5ddadd solid 2rpx;
|
border-bottom: #5ddadd solid 2rpx;
|
||||||
border-right: #5ddadd solid 2rpx;
|
border-right: #5ddadd solid 2rpx;
|
||||||
}
|
}
|
||||||
.Crown.data-v-6fa696de{
|
.Crown.data-v-6fa696de {
|
||||||
width: 45.8rpx;
|
width: 45.8rpx;
|
||||||
height: 39.12rpx;
|
height: 39.12rpx;
|
||||||
margin-left: -40rpx;
|
margin-left: -40rpx;
|
||||||
margin-top: -100rpx;
|
margin-top: -100rpx;
|
||||||
}
|
}
|
||||||
.vstext.data-v-6fa696de {
|
.vstext.data-v-6fa696de {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -211,4 +211,3 @@
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
margin-right: 26rpx;
|
margin-right: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user