优化页面
This commit is contained in:
53
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
53
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -2,6 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_formatDate = require("../../components/formatDate.js");
|
||||
const components_TimeFormatting = require("../../components/TimeFormatting.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = {
|
||||
@@ -17,7 +18,7 @@ const _sfc_main = {
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:132", this.userinfo);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:133", this.userinfo);
|
||||
this.getpkInformation();
|
||||
this.getmyPkRecord();
|
||||
}
|
||||
@@ -25,6 +26,7 @@ const _sfc_main = {
|
||||
},
|
||||
methods: {
|
||||
formatDate: components_formatDate.formatDate,
|
||||
TimeFormatting: components_TimeFormatting.TimeFormatting,
|
||||
//获取pk信息
|
||||
getpkInformation() {
|
||||
components_request.request({
|
||||
@@ -39,9 +41,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkInformationdata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:154", this.pkInformationdata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:156", this.pkInformationdata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:156", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:158", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -60,9 +62,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.myPkRecorddata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:175", this.myPkRecorddata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:177", this.myPkRecorddata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:177", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:179", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -90,20 +92,15 @@ const _sfc_main = {
|
||||
url: "/pages/Setting/Setting"
|
||||
});
|
||||
},
|
||||
// 跳转到服务协议页面
|
||||
serviceProtocol() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/serviceProtocol"
|
||||
});
|
||||
},
|
||||
// 退出登录
|
||||
logout() {
|
||||
common_vendor.index.removeStorage({
|
||||
key: "chatInfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userinfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userSig"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "lastPage"
|
||||
});
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
@@ -140,11 +137,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
i: common_assets._imports_2$1,
|
||||
j: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
|
||||
k: common_assets._imports_3$1,
|
||||
l: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
m: common_assets._imports_4,
|
||||
n: common_assets._imports_5,
|
||||
o: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
||||
k: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIconA,
|
||||
b: item.winnerAnchorId !== item.anchorIdA
|
||||
}, item.winnerAnchorId !== item.anchorIdA ? {} : item.winnerAnchorId === item.anchorIdA ? {} : {}, {
|
||||
c: item.winnerAnchorId === item.anchorIdA,
|
||||
d: common_vendor.t(item.pkNumber),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
f: index
|
||||
});
|
||||
}),
|
||||
l: common_assets._imports_3$1,
|
||||
m: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
n: common_assets._imports_4,
|
||||
o: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
|
||||
p: common_assets._imports_5,
|
||||
q: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-402ad917"]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="container data-v-402ad917"><view class="bg data-v-402ad917"><image class="bgImg data-v-402ad917" src="{{a}}" mode="scaleToFill"/></view><view class="PersonalInformation data-v-402ad917"><view class="header data-v-402ad917"><image src="{{b}}" mode="scaleToFill" class="headerIcon data-v-402ad917"/></view><view class="data-v-402ad917"><view class="name data-v-402ad917">{{c}}</view></view><view class="Settings data-v-402ad917" bindtap="{{e}}"><image class="SettingsIcon data-v-402ad917" src="{{d}}" mode="scaleToFill"/></view></view><view class="content data-v-402ad917"><view class="PKInformation data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">PK信息</view><view class="titleLine data-v-402ad917"></view><view class="titleMore data-v-402ad917" bindtap="{{g}}">更多PK信息<image class="data-v-402ad917" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="{{f}}" mode="scaleToFill"/></view></view><view class="card data-v-402ad917"><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="cardContent data-v-402ad917"><view class="cardImg data-v-402ad917"><image class="data-v-402ad917" src="{{item.a}}" mode="scaleToFill"/></view><view class="Time data-v-402ad917">{{item.b}}</view><view class="gold data-v-402ad917">{{item.c}}K</view></view></view></view><view class="myPkRecord data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">我的PK记录</view><view class="titleLine data-v-402ad917"></view><view class="myPkRecordMore data-v-402ad917" bindtap="{{j}}">更多PK记录<image class="data-v-402ad917" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="{{i}}" mode="scaleToFill"/></view></view><view class="card data-v-402ad917"><view class="cardContent data-v-402ad917"><view class="cardImg data-v-402ad917"><image class="data-v-402ad917" src="{{''}}" mode="scaleToFill"/></view><view class="Result data-v-402ad917"> 胜利 </view><view class="Session data-v-402ad917"> 共一场 </view><view class="Time data-v-402ad917"> 20:30 </view></view></view></view><view class="PKInformation data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">专属客服</view><view class="titleLine data-v-402ad917"></view></view></view><view class="card data-v-402ad917"><view class="service data-v-402ad917" bindtap="{{l}}"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{k}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">联系客服</view></view><view class="service data-v-402ad917"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{m}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">服务协议</view></view><view class="service data-v-402ad917" bindtap="{{o}}"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{n}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">退出登录</view></view></view></view></view><view class="copyright data-v-402ad917">版权所有 © 2025 ...................</view><view class="tabBar data-v-402ad917"><tab-bar class="data-v-402ad917" u-i="402ad917-0" bind:__l="__l"></tab-bar></view>
|
||||
<view class="container data-v-402ad917"><view class="bg data-v-402ad917"><image class="bgImg data-v-402ad917" src="{{a}}" mode="scaleToFill"/></view><view class="PersonalInformation data-v-402ad917"><view class="header data-v-402ad917"><image src="{{b}}" mode="scaleToFill" class="headerIcon data-v-402ad917"/></view><view class="data-v-402ad917"><view class="name data-v-402ad917">{{c}}</view></view><view class="Settings data-v-402ad917" bindtap="{{e}}"><image class="SettingsIcon data-v-402ad917" src="{{d}}" mode="scaleToFill"/></view></view><view class="content data-v-402ad917"><view class="PKInformation data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">PK信息</view><view class="titleLine data-v-402ad917"></view><view class="titleMore data-v-402ad917" bindtap="{{g}}">更多PK信息<image class="data-v-402ad917" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="{{f}}" mode="scaleToFill"/></view></view><view class="card data-v-402ad917"><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="cardContent data-v-402ad917"><view class="cardImg data-v-402ad917"><image class="data-v-402ad917" src="{{item.a}}" mode="scaleToFill"/></view><view class="Time data-v-402ad917">{{item.b}}</view><view class="gold data-v-402ad917">{{item.c}}K</view></view></view></view><view class="myPkRecord data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">我的PK记录</view><view class="titleLine data-v-402ad917"></view><view class="myPkRecordMore data-v-402ad917" bindtap="{{j}}">更多PK记录<image class="data-v-402ad917" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="{{i}}" mode="scaleToFill"/></view></view><view class="card data-v-402ad917"><view wx:for="{{k}}" wx:for-item="item" wx:key="f" class="cardContent data-v-402ad917"><view class="cardImg data-v-402ad917"><image class="data-v-402ad917" src="{{item.a}}" mode="scaleToFill"/></view><view wx:if="{{item.b}}" class="Failure data-v-402ad917"> 失败 </view><view wx:elif="{{item.c}}" class="Result data-v-402ad917"> 胜利 </view><view class="Session data-v-402ad917"> 共{{item.d}}场 </view><view class="Time data-v-402ad917">{{item.e}}</view></view></view></view><view class="PKInformation data-v-402ad917"><view class="title data-v-402ad917"><view class="titleText data-v-402ad917">专属客服</view><view class="titleLine data-v-402ad917"></view></view></view><view class="card data-v-402ad917"><view class="service data-v-402ad917" bindtap="{{m}}"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{l}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">联系客服</view></view><view class="service data-v-402ad917" bindtap="{{o}}"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{n}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">服务协议</view></view><view class="service data-v-402ad917" bindtap="{{q}}"><image class="data-v-402ad917" style="width:48.28rpx;height:48.09rpx" src="{{p}}" mode="scaleToFill"/><view class="cardtext data-v-402ad917">退出登录</view></view></view></view></view><view class="copyright data-v-402ad917">版权所有 © 2025 ...................</view><view class="tabBar data-v-402ad917"><tab-bar class="data-v-402ad917" u-i="402ad917-0" bind:__l="__l"></tab-bar></view>
|
||||
@@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
@@ -9,11 +10,19 @@ const _sfc_main = {
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
onBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
return {
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2f1f017b"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="contact data-v-2f1f017b"><view class="data-v-2f1f017b">联系方式</view></view>
|
||||
<view class="contact data-v-2f1f017b"><view class="bg data-v-2f1f017b"><image class="bgImg data-v-2f1f017b" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-2f1f017b" bindtap="{{c}}"><image class="ReturnImg data-v-2f1f017b" src="{{b}}" mode="scaleToFill"/></view><view class="title data-v-2f1f017b">联系客服</view></view>
|
||||
@@ -1,8 +1,32 @@
|
||||
|
||||
.contact.data-v-2f1f017b{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.bg.data-v-2f1f017b {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-2f1f017b {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-2f1f017b {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title.data-v-2f1f017b {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg.data-v-2f1f017b {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -20,32 +20,7 @@ const _sfc_main = {
|
||||
// PK记录列表
|
||||
pkInvitationRecordlist: [],
|
||||
// PK记录列表
|
||||
pkRecordlist: [
|
||||
{
|
||||
winnerId: "1",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "123",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "456",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "123",
|
||||
senderB: "456"
|
||||
},
|
||||
{
|
||||
winnerId: "2",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "789",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "101",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "789",
|
||||
senderB: "101"
|
||||
}
|
||||
],
|
||||
pkRecordlist: [],
|
||||
// PK记录列表
|
||||
userinfo: {},
|
||||
// 用户信息
|
||||
@@ -116,19 +91,19 @@ const _sfc_main = {
|
||||
this.triggered = false;
|
||||
if (type === 1) {
|
||||
this.pkmyRecordlist.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:197", this.pkRecordlist);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:173", this.pkRecordlist);
|
||||
if (this.current === 1) {
|
||||
this.pkRecordlist = this.pkmyRecordlist;
|
||||
}
|
||||
} else {
|
||||
this.pkInvitationRecordlist.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:203", this.pkInvitationRecordlist);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:179", this.pkInvitationRecordlist);
|
||||
if (this.current === 2) {
|
||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:209", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:185", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
29
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.js
vendored
Normal file
29
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-38749331"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/serviceProtocol.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "服务协议",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="service-protocol data-v-38749331"><view class="bg data-v-38749331"><image class="bgImg data-v-38749331" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-38749331" bindtap="{{c}}"><image class="ReturnImg data-v-38749331" src="{{b}}" mode="scaleToFill"/></view><view class="title data-v-38749331">服务协议</view></view>
|
||||
32
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.wxss
vendored
Normal file
32
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/serviceProtocol.wxss
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
.bg.data-v-38749331 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-38749331 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-38749331 {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title.data-v-38749331 {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg.data-v-38749331 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user