111
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</div>
|
||||
<div class="common" v-if="myUserId == equData.userId && equData.isAppr == 1">
|
||||
<span>
|
||||
◈<Abutton @click="UpOrDownEqu">穿戴装备</Abutton><br>
|
||||
◈<Abutton @click="UpOrDownEqu">{{equData.isOn==1?"卸下装备":"穿戴装备"}}</Abutton><br>
|
||||
</span>
|
||||
<span>
|
||||
◈<Abutton>洗练</Abutton><br>
|
||||
@@ -188,7 +188,16 @@ const BindData = async (): Promise<void> => {
|
||||
|
||||
/**穿/卸装备 */
|
||||
const UpOrDownEqu = async () => {
|
||||
alert(ueId);
|
||||
MessageExtend.LoadingToast("操作中...");
|
||||
let result = await EquService.DownOrUpEqu(ueId,"");
|
||||
MessageExtend.LoadingClose();
|
||||
if (result.code == 0) {
|
||||
await BindData();
|
||||
MessageExtend.Notify(result.msg, "success");
|
||||
}
|
||||
else {
|
||||
MessageExtend.ShowDialog("穿/卸装备", result.msg);
|
||||
}
|
||||
}
|
||||
|
||||
/**绑定装备 */
|
||||
|
||||
Reference in New Issue
Block a user