优化代码
This commit is contained in:
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-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}
|
||||
.page.data-v-cf83be1e{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-cf83be1e{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-cf83be1e{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-cf83be1e{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:2}.contentList.data-v-cf83be1e{position:fixed;top:312rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-cf83be1e{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.scroll.data-v-cf83be1e ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.content-list.data-v-cf83be1e{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-cf83be1e{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-cf83be1e{display:flex;align-items:center}.cardname.data-v-cf83be1e{font-size:31rpx;color:#161616;line-height:38rpx;margin-bottom:20rpx}.Genderimg.data-v-cf83be1e{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-cf83be1e{color:#fff;font-size:14rpx}.Gendermale.data-v-cf83be1e{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-cf83be1e{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-cf83be1e{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-cf83be1e{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-cf83be1e{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-cf83be1e{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-cf83be1e{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-cf83be1e{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-cf83be1e{width:500rpx;height:100rpx;margin-top:80rpx}.popup-sex.data-v-cf83be1e{width:500rpx;height:100rpx;margin-top:40rpx;display:flex;justify-content:space-between}.p-sex.data-v-cf83be1e{width:420rpx;height:100rpx}.Gendericoncss.data-v-cf83be1e{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-cf83be1e{width:40rpx;height:40rpx}.popup-coin.data-v-cf83be1e{width:500rpx;margin-top:40rpx;display:flex}.p-coin.data-v-cf83be1e{width:500rpx;display:flex;flex-direction:column;align-items:center}.p-dar.data-v-cf83be1e{margin-top:30rpx}.p-coin-title.data-v-cf83be1e{font-size:20rpx;color:#a3a3a3}.p-time.data-v-cf83be1e{width:500rpx;margin-top:40rpx}.popup-btn-cancel.data-v-cf83be1e{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-cf83be1e{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-cf83be1e{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-cf83be1e{font-size:18rpx;color:#f55}.popup-btn.data-v-cf83be1e{width:600rpx;height:100rpx;display:flex;justify-content:space-around;align-items:center;margin-top:400rpx}
|
||||
|
||||
@@ -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()}),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);
|
||||
"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.disPlayId),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.disPlayId),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","14285ba9-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","14285ba9-1"),H:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-14285ba9"]]);o.__runtimeHooks=2,wx.createPage(s);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
.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}
|
||||
.background.data-v-14285ba9{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.Navigation.data-v-14285ba9{position:fixed;top:0;left:0;right:0;height:200rpx;display:flex;align-items:center;padding:0 60rpx;z-index:1}.Return.data-v-14285ba9{width:60rpx;height:60rpx;margin-top:20rpx}.Content.data-v-14285ba9{position:absolute;top:200rpx;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center}.sender.data-v-14285ba9{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:10rpx}.sengderIcon.data-v-14285ba9{width:150rpx;height:150rpx;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.Icon.data-v-14285ba9{width:100%;height:100%;border-radius:50%}.Individual.data-v-14285ba9{display:flex;justify-content:center;align-items:center;margin-top:34.35rpx}.name.data-v-14285ba9{font-size:30.53rpx;color:#161616;margin-right:16.22rpx}.nation.data-v-14285ba9{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-14285ba9{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-14285ba9{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-14285ba9{font-size:17.18rpx;color:#fff;margin-left:4rpx}.Time.data-v-14285ba9{color:#666;font-size:26.72rpx;margin-top:48.7rpx}.goldCoin.data-v-14285ba9{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-14285ba9{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-14285ba9{align-items:center;margin-top:60rpx;display:flex;justify-content:center}.goldtext.data-v-14285ba9{font-size:28.63rpx;color:#929292}.goldnumber.data-v-14285ba9{font-size:34.35rpx;color:#161616;font-weight:700}.goldcard.data-v-14285ba9{display:flex;flex-direction:column;align-items:center}.flex.data-v-14285ba9{position:fixed;left:0;right:0;bottom:15px}.button.data-v-14285ba9{display:flex;justify-content:center;align-items:center}.buttontext.data-v-14285ba9{font-size:40rpx;color:#666;font-weight:700}.accept.data-v-14285ba9{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-14285ba9{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-14285ba9{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-14285ba9{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.popup-texts.data-v-14285ba9{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}.popup-btn.data-v-14285ba9{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-14285ba9{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-14285ba9{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
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"),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);
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),s=require("../../components/VerifyLogin.js"),o={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,console.log(this.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:!1}).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(){s.VerifyLogin(this.item.id).then((e=>{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(){s.VerifyLogin(this.item.id).then((t=>{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 r=e._export_sfc(o,[["render",function(t,i,n,s,o,r){return e.e({a:e.o(((...e)=>r.Returnfunc&&r.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(r.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=>r.openChat())),l:e.o((e=>r.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(r.TimeFormatting(1e3*t.pkTime)),d:e.t(t.coin),e:e.o((e=>r.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=>r.invite())),q:e.o((e=>r.close())),r:e.sr("popup","523c3f03-0"),s:e.p({type:"center","border-radius":"10px 10px 0 0"}),t:e.sr("createModule","523c3f03-1"),v:e.o((e=>r.inviteHint())),w:e.o((e=>r.closeHint())),x:e.sr("popups","523c3f03-2"),y:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-523c3f03"]]);o.__runtimeHooks=2,wx.createPage(r);
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user