优化代码

This commit is contained in:
pengxiaolong
2025-07-29 14:23:27 +08:00
parent 36005c9604
commit 3eddd94922
38 changed files with 4423 additions and 20192 deletions

View File

@@ -148,6 +148,7 @@
type="textarea"
v-model="remarks"
placeholder="备注"
:maxlength="50"
></uni-easyinput>
</view>

View File

@@ -133,7 +133,7 @@
type="textarea"
v-model="remarks"
placeholder="备注"
maxlength="-1"
:maxlength="50"
></uni-easyinput>
</view>

View File

@@ -29,7 +29,7 @@ export default {
name: "",
id: "",
info: {},
userSig: "",
useravatar: "",
};
},
onLoad(option) {
@@ -38,13 +38,7 @@ export default {
success: (res) => {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = res.data.headerIcon;
},
});
uni.getStorage({
key: "userSig",
success: (res) => {
this.userSig = res.data;
this.userinfo = this.useravatar = res.data.headerIcon;
},
});
},
@@ -70,7 +64,36 @@ export default {
title: "修改中...",
mask: true,
});
if (this.useravatar == this.userinfo) {
request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: this.userinfo.split("/").pop(),
nickName: this.name,
},
userInfo: true,
}).then((ress) => {
if (ress.code === 200) {
uni.showToast({
title: "修改成功",
icon: "success",
});
uni.setStorageSync("userinfo", ress.data.info);
goEasylogin(this.$goeasy,String(ress.data.info.id),ress.data.info.headerIcon,ress.data.info.nickName);
uni.hideLoading();
uni.navigateBack({
delta: 1,
});
} else {
uni.showToast({
title: "修改失败",
icon: "none",
});
}
});
}else{
postFile({
path: this.userinfo,
name: generateFileName(),
@@ -83,10 +106,10 @@ export default {
id: this.id,
headerIcon: res.split("/").pop(),
nickName: this.name,
usersig: this.userSig.userSig,
},
userInfo: true,
}).then((ress) => {
console.log("修改调用返回",ress);
if (ress.code === 200) {
uni.showToast({
title: "修改成功",
@@ -109,8 +132,9 @@ export default {
});
})
.catch((err) => {
console.log(err);
console.log('上传失败', err);
});
}
},
},
};

View File

@@ -379,6 +379,9 @@ export default {
onHide() {
this.onPage = false;
},
onUnload() {
this.onPage = false;
},
onLoad(options) {
this.recorderManager.onStop((res) => {
console.log("录音结束", res);
@@ -933,12 +936,14 @@ export default {
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 1;
z-index: 2;
}
.title {
position: fixed;
top: 120rpx;
left: 325rpx;
left:0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;

View File

@@ -77,20 +77,17 @@
</view>
</view>
<view class="remark">
<uni-easyinput
type="textarea"
v-model="item.remark"
placeholder="备注"
maxlength="-1"
disabled="true"
:style="style"
></uni-easyinput>
<scroll-view show-scrollbar="false" scroll-y="true" class="Remarkscroll">
<view class="Remarkscss">{{ item.remark }}</view>
</scroll-view>
</view>
<view class="buttonflex">
<view class="button" v-if="item.senderId !== id">
<button class="accept" @click="openChat()">聊了个天</button>
<button class="reject" @click="open()">立即邀请</button>
</view>
</view>
</view>
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
@@ -122,7 +119,7 @@
mode="scaleToFill"
/>
</view>
<view>{{ TimeFormatting(item.pkTime) }}</view>
<view>{{ TimeFormatting(item.pkTime*1000) }}</view>
<view class="goldimg">
<image
style="width: 31.49rpx; height: 31.49rpx; margin-top: 4rpx"
@@ -166,12 +163,6 @@ import formatDate from "../../components/formatDate.js";
import TimeFormatting from "../../components/TimeFormatting.js";
import NewAddedPk from "../../pages/NewAddedPk/NewAddedPk.vue";
import request from "../../components/request.js";
// import Recompose from "../Mine/minecomponents/recompose/recompose.vue";
import TUIChatEngine, {
TUIStore,
StoreName,
TUIChatService,
} from "@tencentcloud/chat-uikit-engine";
export default {
data() {
return {
@@ -185,10 +176,6 @@ export default {
currentConversation: null,
inid: null,
chatPartnerinfo: {},
// parentMessage: null,
style: {
backgroundColor: "#ffffff",
},
};
},
onShareAppMessage(res) {
@@ -683,11 +670,33 @@ export default {
margin-top: 60rpx;
width: 90%;
}
.Remarkscroll{
width: 100%;
height: 300rpx;
}
.Remarkscroll ::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}
.Remarkscss{
padding: 20rpx;
word-break: break-all; /* 强制换行 */
white-space: pre-line; /* 保留空白符并换行 */
width: 100%;
font-size: 28rpx;
}
.buttonflex{
position: fixed;
left: 0;
right: 0;
bottom: 40rpx;
}
.button {
display: flex;
justify-content: center;
align-items: center;
margin-top: 500rpx;
}
.accept {
width: 325.38rpx;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-a01de091', F, 'Mask']}}" bindtap="{{G}}"><view catchtap="{{E}}" class="containers data-v-a01de091"><view class="container data-v-a01de091"><image class="Fork data-v-a01de091" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-a01de091"><view class="Star data-v-a01de091"></view><view class="Title data-v-a01de091"></view><view class="Star data-v-a01de091"></view></view><view class="AnchorSelection data-v-a01de091"><view class="NameAnchor data-v-a01de091"><input class="NameAnchorcss data-v-a01de091" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-a01de091">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-a01de091" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-a01de091"><view class="Coins country data-v-a01de091"><wht-select wx:if="{{j}}" class="data-v-a01de091" style="width:350rpx" bindchange="{{h}}" bindblur="{{i}}" u-i="a01de091-0" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-a01de091">请选择国家</view></view><view class="Gender data-v-a01de091"><view class="Gendercs data-v-a01de091"><view class="Gendercss data-v-a01de091"><wht-select wx:if="{{m}}" class="data-v-a01de091" style="width:300rpx" bindchange="{{l}}" u-i="a01de091-1" bind:__l="__l" u-p="{{m}}"/></view><view class="Gendericoncss data-v-a01de091"><image wx:if="{{n}}" class="Gendericon data-v-a01de091" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-a01de091" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{p}}" class="Gendericon data-v-a01de091" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-a01de091">请选择性别</view></view></view><view class="goldCoin data-v-a01de091"><view class="number-box data-v-a01de091"><view class="number-box-title data-v-a01de091">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-a01de091" u-i="a01de091-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-a01de091">单位:</view><view class="number-box-unit data-v-a01de091">K</view></view><view wx:if="{{t}}" class="Hint data-v-a01de091">请填写金币数量</view></view><view class="time data-v-a01de091"><uni-datetime-picker wx:if="{{w}}" class="data-v-a01de091" u-i="a01de091-3" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/><view wx:if="{{x}}" class="Hint data-v-a01de091">请选择日期</view></view><view class="goldCoin data-v-a01de091"><view class="number-box data-v-a01de091"><view class="number-box-title data-v-a01de091">选择场数:</view><uni-number-box wx:if="{{z}}" class="data-v-a01de091" u-i="a01de091-4" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-number-box><view class="number-box-title data-v-a01de091">次</view></view><view wx:if="{{A}}" class="Hint data-v-a01de091">请填写场数</view></view><view class="Remarkscss data-v-a01de091"><uni-easyinput wx:if="{{C}}" class="data-v-a01de091" u-i="a01de091-5" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></uni-easyinput></view><view class="Publish data-v-a01de091"><button bindtap="{{D}}" class="Publishcss data-v-a01de091">发布</button></view></view></view></view><uni-popup wx:if="{{N}}" class="r data-v-a01de091" u-s="{{['d']}}" u-r="popup" u-i="a01de091-6" bind:__l="__l" u-p="{{N}}"><view class="popup-container data-v-a01de091"><view class="popup-title data-v-a01de091">点击选择我的主播</view><scroll-view wx:if="{{H}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-a01de091"><view wx:for="{{I}}" wx:for-item="item" wx:key="f" class="card data-v-a01de091"><view class="card-content data-v-a01de091" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-a01de091"><image class="avatar data-v-a01de091" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-a01de091"><view class="TimeMoney data-v-a01de091"><view class="NameMoney_Name data-v-a01de091">{{item.b}}</view></view><view class="TimeMoney data-v-a01de091"><view class="TimeMoney_country data-v-a01de091">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{J}}" class="no-data data-v-a01de091"><view class="no-data-text data-v-a01de091">暂无数据</view></view><view class="popup-btn data-v-a01de091"><button class="invite data-v-a01de091" type="primary" bindtap="{{K}}">确认</button><button class="cancel data-v-a01de091" type="default" bindtap="{{L}}">取消</button></view></view></uni-popup>
<view wx:if="{{a}}" class="{{['data-v-0aab313b', F, 'Mask']}}" bindtap="{{G}}"><view catchtap="{{E}}" class="containers data-v-0aab313b"><view class="container data-v-0aab313b"><image class="Fork data-v-0aab313b" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-0aab313b"><view class="Star data-v-0aab313b"></view><view class="Title data-v-0aab313b"></view><view class="Star data-v-0aab313b"></view></view><view class="AnchorSelection data-v-0aab313b"><view class="NameAnchor data-v-0aab313b"><input class="NameAnchorcss data-v-0aab313b" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-0aab313b">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-0aab313b" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-0aab313b"><view class="Coins country data-v-0aab313b"><wht-select wx:if="{{j}}" class="data-v-0aab313b" style="width:350rpx" bindchange="{{h}}" bindblur="{{i}}" u-i="0aab313b-0" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-0aab313b">请选择国家</view></view><view class="Gender data-v-0aab313b"><view class="Gendercs data-v-0aab313b"><view class="Gendercss data-v-0aab313b"><wht-select wx:if="{{m}}" class="data-v-0aab313b" style="width:300rpx" bindchange="{{l}}" u-i="0aab313b-1" bind:__l="__l" u-p="{{m}}"/></view><view class="Gendericoncss data-v-0aab313b"><image wx:if="{{n}}" class="Gendericon data-v-0aab313b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-0aab313b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{p}}" class="Gendericon data-v-0aab313b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-0aab313b">请选择性别</view></view></view><view class="goldCoin data-v-0aab313b"><view class="number-box data-v-0aab313b"><view class="number-box-title data-v-0aab313b">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-0aab313b" u-i="0aab313b-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-0aab313b">单位:</view><view class="number-box-unit data-v-0aab313b">K</view></view><view wx:if="{{t}}" class="Hint data-v-0aab313b">请填写金币数量</view></view><view class="time data-v-0aab313b"><uni-datetime-picker wx:if="{{w}}" class="data-v-0aab313b" u-i="0aab313b-3" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/><view wx:if="{{x}}" class="Hint data-v-0aab313b">请选择日期</view></view><view class="goldCoin data-v-0aab313b"><view class="number-box data-v-0aab313b"><view class="number-box-title data-v-0aab313b">选择场数:</view><uni-number-box wx:if="{{z}}" class="data-v-0aab313b" u-i="0aab313b-4" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-number-box><view class="number-box-title data-v-0aab313b">次</view></view><view wx:if="{{A}}" class="Hint data-v-0aab313b">请填写场数</view></view><view class="Remarkscss data-v-0aab313b"><uni-easyinput wx:if="{{C}}" class="data-v-0aab313b" u-i="0aab313b-5" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></uni-easyinput></view><view class="Publish data-v-0aab313b"><button bindtap="{{D}}" class="Publishcss data-v-0aab313b">发布</button></view></view></view></view><uni-popup wx:if="{{N}}" class="r data-v-0aab313b" u-s="{{['d']}}" u-r="popup" u-i="0aab313b-6" bind:__l="__l" u-p="{{N}}"><view class="popup-container data-v-0aab313b"><view class="popup-title data-v-0aab313b">点击选择我的主播</view><scroll-view wx:if="{{H}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-0aab313b"><view wx:for="{{I}}" wx:for-item="item" wx:key="f" class="card data-v-0aab313b"><view class="card-content data-v-0aab313b" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-0aab313b"><image class="avatar data-v-0aab313b" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-0aab313b"><view class="TimeMoney data-v-0aab313b"><view class="NameMoney_Name data-v-0aab313b">{{item.b}}</view></view><view class="TimeMoney data-v-0aab313b"><view class="TimeMoney_country data-v-0aab313b">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{J}}" class="no-data data-v-0aab313b"><view class="no-data-text data-v-0aab313b">暂无数据</view></view><view class="popup-btn data-v-0aab313b"><button class="invite data-v-0aab313b" type="primary" bindtap="{{K}}">确认</button><button class="cancel data-v-0aab313b" type="default" bindtap="{{L}}">取消</button></view></view></uni-popup>

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-ce54c7bb', E, 'Mask']}}" bindtap="{{F}}"><view catchtap="{{D}}" class="containers data-v-ce54c7bb"><view class="container data-v-ce54c7bb"><image class="Fork data-v-ce54c7bb" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-ce54c7bb"><view class="Star data-v-ce54c7bb"></view><view class="Title data-v-ce54c7bb"></view><view class="Star data-v-ce54c7bb"></view></view><view class="AnchorSelection data-v-ce54c7bb"><view class="NameAnchor data-v-ce54c7bb"><input class="NameAnchorcss data-v-ce54c7bb" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-ce54c7bb">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-ce54c7bb" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-ce54c7bb"><view class="Coins country data-v-ce54c7bb"><wht-select wx:if="{{i}}" class="data-v-ce54c7bb" style="width:350rpx" bindchange="{{h}}" u-i="ce54c7bb-0" bind:__l="__l" u-p="{{i}}"/><view wx:if="{{j}}" class="Hint data-v-ce54c7bb">请选择国家</view></view><view class="Gender data-v-ce54c7bb"><view class="Gendercs data-v-ce54c7bb"><view class="Gendercss data-v-ce54c7bb"><wht-select wx:if="{{l}}" class="data-v-ce54c7bb" style="width:300rpx" bindchange="{{k}}" u-i="ce54c7bb-1" bind:__l="__l" u-p="{{l}}"/></view><view class="Gendericoncss data-v-ce54c7bb"><image wx:if="{{m}}" class="Gendericon data-v-ce54c7bb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-ce54c7bb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-ce54c7bb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{p}}" class="Hintcss data-v-ce54c7bb">请选择性别</view></view></view><view class="goldCoin data-v-ce54c7bb"><view class="number-box data-v-ce54c7bb"><view class="number-box-title data-v-ce54c7bb">金币数量:</view><uni-number-box wx:if="{{r}}" class="data-v-ce54c7bb" u-i="ce54c7bb-2" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></uni-number-box><view class="number-box-title data-v-ce54c7bb">单位:</view><view class="number-box-unit data-v-ce54c7bb">K</view></view><view wx:if="{{s}}" class="Hint data-v-ce54c7bb">请填写金币数量</view></view><view class="time data-v-ce54c7bb"><uni-datetime-picker wx:if="{{v}}" class="data-v-ce54c7bb" u-i="ce54c7bb-3" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"/><view wx:if="{{w}}" class="Hint data-v-ce54c7bb">请选择日期</view></view><view class="goldCoin data-v-ce54c7bb"><view class="number-box data-v-ce54c7bb"><view class="number-box-title data-v-ce54c7bb">选择场数:</view><uni-number-box wx:if="{{y}}" class="data-v-ce54c7bb" u-i="ce54c7bb-4" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></uni-number-box><view class="number-box-title data-v-ce54c7bb">次</view></view><view wx:if="{{z}}" class="Hint data-v-ce54c7bb">请填写场数</view></view><view class="Remarkscss data-v-ce54c7bb"><uni-easyinput wx:if="{{B}}" class="data-v-ce54c7bb" u-i="ce54c7bb-5" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"></uni-easyinput></view><view class="Publish data-v-ce54c7bb"><button bindtap="{{C}}" class="Publishcss data-v-ce54c7bb">发布</button></view></view></view></view><uni-popup wx:if="{{M}}" class="r data-v-ce54c7bb" u-s="{{['d']}}" u-r="popup" u-i="ce54c7bb-6" bind:__l="__l" u-p="{{M}}"><view class="popup-container data-v-ce54c7bb"><view class="popup-title data-v-ce54c7bb">点击选择我的主播</view><scroll-view wx:if="{{G}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-ce54c7bb"><view wx:for="{{H}}" wx:for-item="item" wx:key="f" class="card data-v-ce54c7bb"><view class="card-content data-v-ce54c7bb" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-ce54c7bb"><image class="avatar data-v-ce54c7bb" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-ce54c7bb"><view class="TimeMoney data-v-ce54c7bb"><view class="NameMoney_Name data-v-ce54c7bb">{{item.b}}</view></view><view class="TimeMoney data-v-ce54c7bb"><view class="TimeMoney_country data-v-ce54c7bb">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{I}}" class="no-data data-v-ce54c7bb"><view class="no-data-text data-v-ce54c7bb">暂无数据</view></view><view class="popup-btn data-v-ce54c7bb"><button class="invite data-v-ce54c7bb" type="primary" bindtap="{{J}}">确认</button><button class="cancel data-v-ce54c7bb" type="default" bindtap="{{K}}">取消</button></view></view></uni-popup>
<view wx:if="{{a}}" class="{{['data-v-1cddacd5', E, 'Mask']}}" bindtap="{{F}}"><view catchtap="{{D}}" class="containers data-v-1cddacd5"><view class="container data-v-1cddacd5"><image class="Fork data-v-1cddacd5" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-1cddacd5"><view class="Star data-v-1cddacd5"></view><view class="Title data-v-1cddacd5"></view><view class="Star data-v-1cddacd5"></view></view><view class="AnchorSelection data-v-1cddacd5"><view class="NameAnchor data-v-1cddacd5"><input class="NameAnchorcss data-v-1cddacd5" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-1cddacd5">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-1cddacd5" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-1cddacd5"><view class="Coins country data-v-1cddacd5"><wht-select wx:if="{{i}}" class="data-v-1cddacd5" style="width:350rpx" bindchange="{{h}}" u-i="1cddacd5-0" bind:__l="__l" u-p="{{i}}"/><view wx:if="{{j}}" class="Hint data-v-1cddacd5">请选择国家</view></view><view class="Gender data-v-1cddacd5"><view class="Gendercs data-v-1cddacd5"><view class="Gendercss data-v-1cddacd5"><wht-select wx:if="{{l}}" class="data-v-1cddacd5" style="width:300rpx" bindchange="{{k}}" u-i="1cddacd5-1" bind:__l="__l" u-p="{{l}}"/></view><view class="Gendericoncss data-v-1cddacd5"><image wx:if="{{m}}" class="Gendericon data-v-1cddacd5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-1cddacd5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-1cddacd5" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{p}}" class="Hintcss data-v-1cddacd5">请选择性别</view></view></view><view class="goldCoin data-v-1cddacd5"><view class="number-box data-v-1cddacd5"><view class="number-box-title data-v-1cddacd5">金币数量:</view><uni-number-box wx:if="{{r}}" class="data-v-1cddacd5" u-i="1cddacd5-2" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></uni-number-box><view class="number-box-title data-v-1cddacd5">单位:</view><view class="number-box-unit data-v-1cddacd5">K</view></view><view wx:if="{{s}}" class="Hint data-v-1cddacd5">请填写金币数量</view></view><view class="time data-v-1cddacd5"><uni-datetime-picker wx:if="{{v}}" class="data-v-1cddacd5" u-i="1cddacd5-3" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"/><view wx:if="{{w}}" class="Hint data-v-1cddacd5">请选择日期</view></view><view class="goldCoin data-v-1cddacd5"><view class="number-box data-v-1cddacd5"><view class="number-box-title data-v-1cddacd5">选择场数:</view><uni-number-box wx:if="{{y}}" class="data-v-1cddacd5" u-i="1cddacd5-4" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></uni-number-box><view class="number-box-title data-v-1cddacd5">次</view></view><view wx:if="{{z}}" class="Hint data-v-1cddacd5">请填写场数</view></view><view class="Remarkscss data-v-1cddacd5"><uni-easyinput wx:if="{{B}}" class="data-v-1cddacd5" u-i="1cddacd5-5" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"></uni-easyinput></view><view class="Publish data-v-1cddacd5"><button bindtap="{{C}}" class="Publishcss data-v-1cddacd5">发布</button></view></view></view></view><uni-popup wx:if="{{M}}" class="r data-v-1cddacd5" u-s="{{['d']}}" u-r="popup" u-i="1cddacd5-6" bind:__l="__l" u-p="{{M}}"><view class="popup-container data-v-1cddacd5"><view class="popup-title data-v-1cddacd5">点击选择我的主播</view><scroll-view wx:if="{{G}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-1cddacd5"><view wx:for="{{H}}" wx:for-item="item" wx:key="f" class="card data-v-1cddacd5"><view class="card-content data-v-1cddacd5" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-1cddacd5"><image class="avatar data-v-1cddacd5" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-1cddacd5"><view class="TimeMoney data-v-1cddacd5"><view class="NameMoney_Name data-v-1cddacd5">{{item.b}}</view></view><view class="TimeMoney data-v-1cddacd5"><view class="TimeMoney_country data-v-1cddacd5">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{I}}" class="no-data data-v-1cddacd5"><view class="no-data-text data-v-1cddacd5">暂无数据</view></view><view class="popup-btn data-v-1cddacd5"><button class="invite data-v-1cddacd5" type="primary" bindtap="{{J}}">确认</button><button class="cancel data-v-1cddacd5" type="default" bindtap="{{K}}">取消</button></view></view></uni-popup>

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../components/request.js"),i=require("../../components/postFile.js"),n=require("../../components/generateFileName.js"),o=require("../../components/goEasyTool/tool.js"),t={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},userSig:""}),onLoad(a){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=e.data.headerIcon}}),e.index.getStorage({key:"userSig",success:e=>{this.userSig=e.data}})},methods:{cancel(){e.index.navigateBack({delta:1})},inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:a}=e.detail;this.userinfo=a},wxLogin(t){o.goEasylogout(this.$goeasy),e.index.showLoading({title:"修改中...",mask:!0}),i.uploadFile({path:this.userinfo,name:n.generateFileName()}).then((i=>{a.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:i.split("/").pop(),nickName:this.name,usersig:this.userSig.userSig},userInfo:!0}).then((a=>{200===a.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",a.data.info),o.goEasylogin(this.$goeasy,String(a.data.info.id),a.data.info.headerIcon,a.data.info.nickName),e.index.hideLoading(),e.index.navigateBack({delta:1})):e.index.showToast({title:"修改失败",icon:"none"})}))})).catch((e=>{console.log(e)}))}}};const s=e._export_sfc(t,[["render",function(a,i,n,o,t,s){return{a:t.userinfo,b:e.o(((...e)=>s.Userinfo&&s.Userinfo(...e))),c:e.o(((...e)=>s.inputName&&s.inputName(...e))),d:t.name,e:e.o((e=>t.name=e.detail.value)),f:e.o(((...e)=>s.wxLogin&&s.wxLogin(...e))),g:e.o(((...e)=>s.cancel&&s.cancel(...e)))}}],["__scopeId","data-v-76be1a10"]]);wx.createPage(s);
"use strict";const e=require("../../common/vendor.js"),a=require("../../components/request.js"),n=require("../../components/postFile.js"),i=require("../../components/generateFileName.js"),o=require("../../components/goEasyTool/tool.js"),t={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},useravatar:""}),onLoad(a){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=this.useravatar=e.data.headerIcon}})},methods:{cancel(){e.index.navigateBack({delta:1})},inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:a}=e.detail;this.userinfo=a},wxLogin(t){o.goEasylogout(this.$goeasy),e.index.showLoading({title:"修改中...",mask:!0}),this.useravatar==this.userinfo?a.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:this.userinfo.split("/").pop(),nickName:this.name},userInfo:!0}).then((a=>{200===a.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",a.data.info),o.goEasylogin(this.$goeasy,String(a.data.info.id),a.data.info.headerIcon,a.data.info.nickName),e.index.hideLoading(),e.index.navigateBack({delta:1})):e.index.showToast({title:"修改失败",icon:"none"})})):n.uploadFile({path:this.userinfo,name:i.generateFileName()}).then((n=>{a.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:n.split("/").pop(),nickName:this.name},userInfo:!0}).then((a=>{console.log("修改调用返回",a),200===a.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",a.data.info),o.goEasylogin(this.$goeasy,String(a.data.info.id),a.data.info.headerIcon,a.data.info.nickName),e.index.hideLoading(),e.index.navigateBack({delta:1})):e.index.showToast({title:"修改失败",icon:"none"})}))})).catch((e=>{console.log("上传失败",e)}))}}};const s=e._export_sfc(t,[["render",function(a,n,i,o,t,s){return{a:t.userinfo,b:e.o(((...e)=>s.Userinfo&&s.Userinfo(...e))),c:e.o(((...e)=>s.inputName&&s.inputName(...e))),d:t.name,e:e.o((e=>t.name=e.detail.value)),f:e.o(((...e)=>s.wxLogin&&s.wxLogin(...e))),g:e.o(((...e)=>s.cancel&&s.cancel(...e)))}}],["__scopeId","data-v-4a0e99e4"]]);wx.createPage(s);

View File

@@ -1 +1 @@
<view class="container data-v-76be1a10"><button class="login-btn data-v-76be1a10" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-76be1a10" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-76be1a10" placeholder="请输入昵称" bindblur="{{c}}" value="{{d}}" bindinput="{{e}}"/><button class="weui-btn data-v-76be1a10" bindtap="{{f}}">修改</button><button class="weui-btn data-v-76be1a10" bindtap="{{g}}">取消</button></view>
<view class="container data-v-4a0e99e4"><button class="login-btn data-v-4a0e99e4" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-4a0e99e4" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-4a0e99e4" placeholder="请输入昵称" bindblur="{{c}}" value="{{d}}" bindinput="{{e}}"/><button class="weui-btn data-v-4a0e99e4" bindtap="{{f}}">修改</button><button class="weui-btn data-v-4a0e99e4" bindtap="{{g}}">取消</button></view>

View File

@@ -1 +1 @@
.container.data-v-76be1a10{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-76be1a10{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-76be1a10{width:100%;height:100%;border-radius:50%}.weui-input.data-v-76be1a10{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-76be1a10{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}
.container.data-v-4a0e99e4{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-4a0e99e4{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-4a0e99e4{width:100%;height:100%;border-radius:50%}.weui-input.data-v-4a0e99e4{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-4a0e99e4{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}

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

View File

@@ -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,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);
"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:{}}),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-popup")+e.resolveComponent("NewAddedPk"))()}Math;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.t(o.item.remark),j:o.item.senderId!==o.id},o.item.senderId!==o.id?{k:e.o((e=>a.openChat())),l:e.o((e=>a.open()))}:{},{m:0!==o.list.length},0!==o.list.length?{n:e.f(o.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(a.TimeFormatting(1e3*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})))}:{},{o:0===o.list.length},(o.list.length,{}),{p:e.o((e=>a.invite())),q:e.o((e=>a.close())),r:e.sr("popup","1ffdb2fe-0"),s:e.p({type:"center","border-radius":"10px 10px 0 0"}),t:e.sr("createModule","1ffdb2fe-1"),v:e.o((e=>a.inviteHint())),w:e.o((e=>a.closeHint())),x:e.sr("popups","1ffdb2fe-2"),y:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-1ffdb2fe"]]);s.__runtimeHooks=2,wx.createPage(o);

View File

@@ -2,7 +2,6 @@
"navigationBarTitleText": "PK详情",
"usingComponents": {
"new-added-pk": "../NewAddedPk/NewAddedPk",
"uni-easyinput": "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -335,7 +335,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
B: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: "-1",
maxlength: 50,
modelValue: $data.remarks
}),
C: common_vendor.o(($event) => $options.Publish()),

File diff suppressed because one or more lines are too long

View File

@@ -12,7 +12,7 @@ const _sfc_main = {
name: "",
id: "",
info: {},
userSig: ""
useravatar: ""
};
},
onLoad(option) {
@@ -21,13 +21,7 @@ const _sfc_main = {
success: (res) => {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = res.data.headerIcon;
}
});
common_vendor.index.getStorage({
key: "userSig",
success: (res) => {
this.userSig = res.data;
this.userinfo = this.useravatar = res.data.headerIcon;
}
});
},
@@ -53,18 +47,14 @@ const _sfc_main = {
title: "修改中...",
mask: true
});
components_postFile.uploadFile({
path: this.userinfo,
name: components_generateFileName.generateFileName()
}).then((res) => {
if (this.useravatar == this.userinfo) {
components_request.request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: res.split("/").pop(),
nickName: this.name,
usersig: this.userSig.userSig
headerIcon: this.userinfo.split("/").pop(),
nickName: this.name
},
userInfo: true
}).then((ress) => {
@@ -86,9 +76,44 @@ const _sfc_main = {
});
}
});
}).catch((err) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:112", err);
});
} else {
components_postFile.uploadFile({
path: this.userinfo,
name: components_generateFileName.generateFileName()
}).then((res) => {
components_request.request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: res.split("/").pop(),
nickName: this.name
},
userInfo: true
}).then((ress) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:112", "修改调用返回", ress);
if (ress.code === 200) {
common_vendor.index.showToast({
title: "修改成功",
icon: "success"
});
common_vendor.index.setStorageSync("userinfo", ress.data.info);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(ress.data.info.id), ress.data.info.headerIcon, ress.data.info.nickName);
common_vendor.index.hideLoading();
common_vendor.index.navigateBack({
delta: 1
});
} else {
common_vendor.index.showToast({
title: "修改失败",
icon: "none"
});
}
});
}).catch((err) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:135", "上传失败", err);
});
}
}
}
};

View File

@@ -104,9 +104,12 @@ const _sfc_main = {
onHide() {
this.onPage = false;
},
onUnload() {
this.onPage = false;
},
onLoad(options) {
this.recorderManager.onStop((res) => {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:384", "录音结束", res);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:387", "录音结束", res);
if (this.ioshide != 0) {
if (res.fileSize < 20 * 1024) {
common_vendor.index.showToast({
@@ -183,7 +186,7 @@ const _sfc_main = {
}).exec();
});
components_goEasyTool_tool.messageRead(this.$goeasy, this.userId).then((res) => {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:466", "已读对方的消息");
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:469", "已读对方的消息");
});
this.getIOSDeviceType();
var im = this.$goeasy.im;
@@ -208,7 +211,7 @@ const _sfc_main = {
data: { avatar: this.avatar, nickname: this.nickname }
},
onProgress: function(event) {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:491", "file uploading:", event);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:494", "file uploading:", event);
}
//获取上传进度
});
@@ -221,7 +224,7 @@ const _sfc_main = {
},
//长按语音
voiceTouchstart() {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:503", "长按语音");
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:506", "长按语音");
this.voicepopUpstart = true;
this.recorderManager.start();
this.notplayVoice(false);
@@ -231,7 +234,7 @@ const _sfc_main = {
setTimeout(() => {
this.recorderManager.stop();
}, 100);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:513", "松开语音");
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:516", "松开语音");
this.voicepopUpstart = false;
},
//移动语音
@@ -248,7 +251,7 @@ const _sfc_main = {
},
//中断语音
voiceTouchcancel() {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:529", "中断语音");
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:532", "中断语音");
this.voicepopUpstart = false;
this.voiceCancelOrSend = false;
},
@@ -407,14 +410,14 @@ const _sfc_main = {
});
setTimeout(() => {
this.chatList = [...this.MoreMessageList, ...this.chatList];
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:695", "获取更多聊天记录", this.chatList);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:698", "获取更多聊天记录", this.chatList);
this.LastTime = this.chatList[0].timestamp;
this.ElementPositioning = this.Record;
}, 300);
},
//监听已读消息
onMessageRead(message) {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:702", "1已读消息", message);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:705", "1已读消息", message);
},
//监听接受消息
onPrivateMessageReceived(message) {
@@ -429,7 +432,7 @@ const _sfc_main = {
this.chatList.push(message);
if (this.onPage) {
components_goEasyTool_tool.messageRead(this.$goeasy, this.userId).then((res) => {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:717", "已读对方的消息");
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:720", "已读对方的消息");
});
}
},
@@ -443,7 +446,7 @@ const _sfc_main = {
this.avatar,
this.nickname
).then((res) => {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:731", "发送成功", res);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:734", "发送成功", res);
this.ElementPositioning = res.id = components_ChatId.generateId();
res.timestampStatus = this.checkInterval(res.timestamp);
this.chatList.push(res);
@@ -521,7 +524,7 @@ const _sfc_main = {
data: { avatar: this.avatar, nickname: this.nickname }
},
onProgress: function(event) {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:811", "file uploading:", event);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:814", "file uploading:", event);
}
//获取上传进度
});
@@ -555,7 +558,7 @@ const _sfc_main = {
data: { avatar: this.avatar, nickname: this.nickname }
},
onProgress: function(event) {
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:841", "上传进度", event);
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:844", "上传进度", event);
}
//获取上传进度
});

View File

@@ -17,12 +17,14 @@
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 1;
z-index: 2;
}
.title.data-v-f4b42ac4 {
position: fixed;
top: 120rpx;
left: 325rpx;
left:0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;

View File

@@ -16,11 +16,7 @@ const _sfc_main = {
chatInfo: {},
currentConversation: null,
inid: null,
chatPartnerinfo: {},
// parentMessage: null,
style: {
backgroundColor: "#ffffff"
}
chatPartnerinfo: {}
};
},
onShareAppMessage(res) {
@@ -194,15 +190,13 @@ const _sfc_main = {
}
};
if (!Array) {
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
const _component_NewAddedPk = common_vendor.resolveComponent("NewAddedPk");
(_easycom_uni_easyinput2 + _easycom_uni_popup2 + _component_NewAddedPk)();
(_easycom_uni_popup2 + _component_NewAddedPk)();
}
const _easycom_uni_easyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_uni_easyinput + _easycom_uni_popup)();
_easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -215,27 +209,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: common_vendor.t($options.formatDate($data.item.pkTime)),
g: common_vendor.t($data.item.coin),
h: common_vendor.t($data.item.pkNumber),
i: common_vendor.s($data.style),
j: common_vendor.o(($event) => $data.item.remark = $event),
k: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: "-1",
disabled: "true",
modelValue: $data.item.remark
}),
l: $data.item.senderId !== $data.id
i: common_vendor.t($data.item.remark),
j: $data.item.senderId !== $data.id
}, $data.item.senderId !== $data.id ? {
m: common_vendor.o(($event) => $options.openChat()),
n: common_vendor.o(($event) => $options.open())
k: common_vendor.o(($event) => $options.openChat()),
l: common_vendor.o(($event) => $options.open())
} : {}, {
o: $data.list.length !== 0
m: $data.list.length !== 0
}, $data.list.length !== 0 ? {
p: common_vendor.f($data.list, (item, index, i0) => {
n: common_vendor.f($data.list, (item, index, i0) => {
return {
a: item.anchorIcon,
b: common_vendor.t(item.anchorId),
c: common_vendor.t($options.TimeFormatting(item.pkTime)),
c: common_vendor.t($options.TimeFormatting(item.pkTime * 1e3)),
d: common_vendor.t(item.coin),
e: common_vendor.o(($event) => $options.Select(item.id, index), index),
f: $data.selectedId === item.id ? "#b8ff8c74" : "#ffffff",
@@ -243,20 +229,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
q: $data.list.length === 0
o: $data.list.length === 0
}, $data.list.length === 0 ? {} : {}, {
r: common_vendor.o(($event) => $options.invite()),
s: common_vendor.o(($event) => $options.close()),
t: common_vendor.sr("popup", "9639f721-1"),
v: common_vendor.p({
p: common_vendor.o(($event) => $options.invite()),
q: common_vendor.o(($event) => $options.close()),
r: common_vendor.sr("popup", "9639f721-0"),
s: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
}),
w: common_vendor.sr("createModule", "9639f721-2"),
x: common_vendor.o(($event) => $options.inviteHint()),
y: common_vendor.o(($event) => $options.closeHint()),
z: common_vendor.sr("popups", "9639f721-3"),
A: common_vendor.p({
t: common_vendor.sr("createModule", "9639f721-1"),
v: common_vendor.o(($event) => $options.inviteHint()),
w: common_vendor.o(($event) => $options.closeHint()),
x: common_vendor.sr("popups", "9639f721-2"),
y: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
})

View File

@@ -2,7 +2,6 @@
"navigationBarTitleText": "PK详情",
"usingComponents": {
"new-added-pk": "../NewAddedPk/NewAddedPk",
"uni-easyinput": "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -310,11 +310,33 @@
margin-top: 60rpx;
width: 90%;
}
.Remarkscroll.data-v-9639f721{
width: 100%;
height: 300rpx;
}
.Remarkscroll.data-v-9639f721 ::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}
.Remarkscss.data-v-9639f721{
padding: 20rpx;
word-break: break-all; /* 强制换行 */
white-space: pre-line; /* 保留空白符并换行 */
width: 100%;
font-size: 28rpx;
}
.buttonflex.data-v-9639f721{
position: fixed;
left: 0;
right: 0;
bottom: 40rpx;
}
.button.data-v-9639f721 {
display: flex;
justify-content: center;
align-items: center;
margin-top: 500rpx;
}
.accept.data-v-9639f721 {
width: 325.38rpx;

View File

@@ -109,7 +109,7 @@ const _sfc_main = {
if (res.code == 200) {
this.AnchorList = res.data;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:300", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:301", res.msg);
}
});
},
@@ -344,6 +344,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
C: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: 50,
modelValue: $data.remarks
}),
D: common_vendor.o(($event) => $options.Publish()),