分享微信好友

main
Wkang921 3 years ago
parent 2dcf5c6a02
commit 1976506b55

@ -157,13 +157,13 @@ Page({
}) })
req.patchRequest('/api/user/curt/inject-energy-to-pendant',{}).then((res)=>{ req.patchRequest('/api/user/curt/inject-energy-to-pendant',{}).then((res)=>{
console.log('能量注入成功'); console.log('能量注入成功');
this.getUserInfo()
}) })
setTimeout(()=>{ setTimeout(()=>{
this.setData({ this.setData({
showInEnergy:!this.data.showInEnergy, showInEnergy:!this.data.showInEnergy,
showScsEnergy:true showScsEnergy:true
}) })
this.getUserInfo()
},2000) },2000)
}, },
getUserInfo(){ getUserInfo(){
@ -183,12 +183,13 @@ Page({
const TimeDiff = endTime.getTime() - nowTime.getTime(); const TimeDiff = endTime.getTime() - nowTime.getTime();
this.setData({ this.setData({
prayTime: formattedTime, prayTime: formattedTime,
energy:Math.floor(TimeDiff / 36000) energy: Math.floor(TimeDiff / 360000)
}) })
const pendantEnergy = res.data.data.pendantEnergy const pendantEnergy = res.data.data.pendantEnergy
const minute = pendantEnergy * 6 const hours = Math.floor(pendantEnergy * 6 / 60); // 计算小时数
const hours = Math.floor(pendantEnergy / 60); // 计算小时数 const minute = pendantEnergy * 6 - hours * 60
console.log(pendantEnergy);
if(hours>0){ if(hours>0){
this.setData({ this.setData({
minutes:59 minutes:59
@ -271,6 +272,8 @@ Page({
showEnergySuccess:!this.data.showEnergySuccess, showEnergySuccess:!this.data.showEnergySuccess,
showEnergy:!this.data.showEnergy showEnergy:!this.data.showEnergy
}) })
this.getUserInfo()
this.getUserLoverInfo()
return setTimeout(()=>{ return setTimeout(()=>{
this.setData({ this.setData({
showEnergySuccess:!this.data.showEnergySuccess, showEnergySuccess:!this.data.showEnergySuccess,

@ -103,7 +103,8 @@
</view><!--下方左侧块--> </view><!--下方左侧块-->
<!--下方左侧块--> <!--下方左侧块-->
<view class="lovepic"></view> <view class="lovepic"></view>
<view class="dchxtxtql" bindtap="openPray">祈祷</view> <view class="dchxtxtql" bindtap="openPray" wx:if="{{ !userInfo.prayerEndTime }}">祈祷</view>
<view class="dchxtxtql" bindtap="openPray" wx:else>结束祈祷</view>
<view class="dcrightql"> <view class="dcrightql">
<t-progress class="dcleft1" theme="circle" percentage="{{loverInfo.crystallineEnergy}}" color="#00A7FF" label="" t-class-bar="dcleft1" /> <t-progress class="dcleft1" theme="circle" percentage="{{loverInfo.crystallineEnergy}}" color="#00A7FF" label="" t-class-bar="dcleft1" />
<view class="dcrbs" bindtap="openEnergy"></view> <view class="dcrbs" bindtap="openEnergy"></view>
@ -258,7 +259,8 @@
</view> </view>
<!-- 能量注入中 --> <!-- 能量注入中 -->
<view class="in-energy" wx:if="{{showInEnergy}}"> <view class="in-energy" wx:if="{{showInEnergy}}">
能量注入中…… <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/hourglass.gif"/>
<view>能量注入中……</view>
</view> </view>
<div class="jltxt" bindtap="go2Jlai">精灵 AI</div> <div class="jltxt" bindtap="go2Jlai">精灵 AI</div>

@ -885,6 +885,8 @@ picker-view-column {
right: 130rpx; right: 130rpx;
width: 484rpx; width: 484rpx;
height: 434rpx; height: 434rpx;
padding-top: 80rpx;
box-sizing: border-box;
font-size: 18px; font-size: 18px;
color: #6C6C6C; color: #6C6C6C;
border-radius: 15px; border-radius: 15px;
@ -893,6 +895,11 @@ picker-view-column {
box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4); box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4);
} }
.in-energy .t-image {
width: 200rpx;
height: 200rpx;
}
.dcright1 { .dcright1 {
position: absolute; position: absolute;
bottom: 270rpx; bottom: 270rpx;

@ -25,9 +25,9 @@
.mfcs{ .mfcs{
position: absolute; position: absolute;
left: 0px; left: 0px;
top: 88px; top: 188rpx;
width: 375px; width: 100%;
height: 44px; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
opacity: 0.8; opacity: 0.8;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%); background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
@ -37,11 +37,11 @@ font-size: 14px;
} }
.ltkjj{ .ltkjj{
position: absolute; position: absolute;
left: 16px; left: 32rpx;
top: 164px; top: 328rpx;
width: 343px; width: 686rpx;
height: 382px; height: 764rpx;
line-height: 20px; line-height: 40rpx;
opacity: 0.9; opacity: 0.9;
border-radius: 15px; border-radius: 15px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
@ -55,9 +55,9 @@ font-family: Arial;
.ltkjj1{ .ltkjj1{
position: absolute; position: absolute;
left: 16px; left: 32rpx;
top: 164px; top: 328rpx;
width: 343px; width: 686rpx;
height: 1000rpx; height: 1000rpx;
line-height: 20px; line-height: 20px;
opacity: 0.9; opacity: 0.9;
@ -72,10 +72,10 @@ font-family: Arial;
.ltat{ .ltat{
position: absolute; position: absolute;
height: 50px; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
opacity: 0.9; opacity: 0.9;
border-radius: 24px; border-radius: 50rpx;
background: linear-gradient(222.69deg, rgba(248,99,42,1) 14.04%,rgba(249,135,89,1) 88.56%); background: linear-gradient(222.69deg, rgba(248,99,42,1) 14.04%,rgba(249,135,89,1) 88.56%);
color: rgba(16, 16, 16, 1); color: rgba(16, 16, 16, 1);
font-size: 12px; font-size: 12px;
@ -91,57 +91,57 @@ font-family: Arial;
.ltxzys{ .ltxzys{
left: 38rpx; left: 38rpx;
top: 64rpx; top: 64rpx;
width: 88px; width: 196rpx;
} }
.ltxzzb{ .ltxzzb{
left: 128px; left: 250rpx;
top: 64rpx; top: 64rpx;
width: 88px; width: 196rpx;
} }
.lttlzb{ .lttlzb{
top: 64rpx; top: 64rpx;
width: 88px; width: 196rpx;
left:237px; left: 462rpx;
} }
.ltqgqs{ .ltqgqs{
width:118px; width:236rpx;
left:38rpx; left:38rpx;
top:228rpx; top:228rpx;
} }
.ltwm{ .ltwm{
left:158px; left:320rpx;
top:228rpx; top:228rpx;
width:167px; width:335rpx;
} }
.wzmxyx{ .wzmxyx{
left:38rpx; left:38rpx;
width:137px; width:274rpx;
top:392rpx; top:392rpx;
} }
.ltqs{ .ltqs{
left:172px; left:344rpx;
width:153px; width:306rpx;
top:392rpx; top:392rpx;
} }
.tximg{ .tximg{
position: absolute; position: absolute;
left: 38rpx; left: 38rpx;
top: 278px; top: 556rpx;
width: 42px; width: 84rpx;
height: 42px; height: 84rpx;
border: 3px solid rgba(161, 134, 81, 1); border: 3px solid rgba(161, 134, 81, 1);
background-color: coral; background-color: coral;
} }
.ltwzk{ .ltwzk{
position: absolute; position: absolute;
left: 154rpx; left: 154rpx;
top: 278px; top: 556rpx;
width: 241px; width: 482rpx;
height: 72px; height: 144rpx;
color: rgba(108, 108, 108, 1); color: rgba(108, 108, 108, 1);
font-size: 17px; font-size: 17px;
line-height: 43rpx; line-height: 43rpx;
@ -152,9 +152,9 @@ font-family: Arial;
.ltk1{ .ltk1{
position: absolute; position: absolute;
left: 0px; left: 0px;
top: 722px; top: 1444rpx;
width: 375px; width: 100%;
height: 90px; height: 180rpx;
line-height: 20px; line-height: 20px;
background-color: rgba(248, 248, 248, 1); background-color: rgba(248, 248, 248, 1);
text-align: center; text-align: center;
@ -163,9 +163,9 @@ border: 1px solid rgba(255, 0, 0, 0);
.ltk1txt{ .ltk1txt{
position: absolute; position: absolute;
left: 16px; left: 32rpx;
top: 14rpx; top: 14rpx;
width: 265px; width: 530rpx;
height: 84rpx; height: 84rpx;
border-radius: 5px; border-radius: 5px;
color: rgba(136, 136, 136, 1); color: rgba(136, 136, 136, 1);
@ -181,11 +181,8 @@ border: 1px solid rgba(255, 0, 0, 0);
line-height: 84rpx!important; line-height: 84rpx!important;
} }
.ltk1txt1{ .ltk1txt1{
width: 265px; width: 530rpx;
height: 84rpx; height: 84rpx;
}
.t-textarea__wrapper-inner{
} }
.t-textarea__label{ .t-textarea__label{
height:84rpx; height:84rpx;
@ -194,10 +191,10 @@ border: 1px solid rgba(255, 0, 0, 0);
.fsan{ .fsan{
position: absolute; position: absolute;
left: 332px; left: 664rpx;
top: 32rpx; top: 32rpx;
width: 27px; width: 54rpx;
height: 27px; height: 54rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/chatbtn.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/chatbtn.png);
@ -205,10 +202,10 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/cha
.addbtn{ .addbtn{
position: absolute; position: absolute;
left: 293px; left: 586rpx;
top: 30rpx; top: 30rpx;
width: 27px; width: 54rpx;
height: 27px; height: 54rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/addbtn.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/addbtn.png);
@ -216,7 +213,7 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/add
.chatbox{ .chatbox{
position: absolute; position: absolute;
top:132px; top:264rpx;
width:750rpx; width:750rpx;
height:1360rpx; height:1360rpx;
overflow: auto; overflow: auto;
@ -255,8 +252,8 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/add
position: absolute; position: absolute;
left: 224rpx; left: 224rpx;
top: 826rpx; top: 826rpx;
width: 120px; width: 240rpx;
height: 35px; height: 70rpx;
line-height: 70rpx; line-height: 70rpx;
border-radius: 10px; border-radius: 10px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%); background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
@ -272,8 +269,8 @@ font-family: SourceHanSansSC-medium;
.kthytips{ .kthytips{
position: absolute; position: absolute;
top: 448px; top: 898rpx;
width: 343px; width: 686rpx;
height: 20px; height: 20px;
color: rgba(108, 108, 108, 1); color: rgba(108, 108, 108, 1);
font-size: 12px; font-size: 12px;
@ -283,17 +280,17 @@ font-family: SourceHanSansSC-regular;
.hyhgtx{ .hyhgtx{
position: absolute; position: absolute;
left: 196px; left: 392rpx;
top: 371px; top: 742rpx;
width: 59.8px; width: 120rpx;
height: 66.45px; height: 127rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/hyhg.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/jl/hyhg.png);
} }
.ltk112{ .ltk112{
position: absolute; position: absolute;
left: 0px; left: 0;
top: 1224rpx; top: 1224rpx;
width: 375px; width: 375px;
height: 90px; height: 90px;

@ -29,7 +29,8 @@ Page({
xyNfc:true, xyNfc:true,
xyInfo:{}, xyInfo:{},
showXyz:false, //显示许愿中弹层 showXyz:false, //显示许愿中弹层
showDetail:false //许愿成功回显弹层 showDetail:false, //许愿成功回显弹层
shareVisible:false //显示分享页面
}, },
handleAdd(e){/**添加图片 */ handleAdd(e){/**添加图片 */
const { fileList } = this.data; const { fileList } = this.data;
@ -90,7 +91,6 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: '/pages/home/xyc/wdyw/wdyw' url: '/pages/home/xyc/wdyw/wdyw'
}) })
}, },
go2TaYw(){ go2TaYw(){
wx.navigateTo({ wx.navigateTo({
@ -229,7 +229,23 @@ Page({
}, },
// 分享 // 分享
openShare(){ openShare(){
console.log('分享'); this.setData({
shareVisible:!this.data.shareVisible
})
},
shareQQ(){
console.log('分享到qq')
},
downLoad(){
console.log('下载图片');
wx.downloadFile({
url: 'https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg',
success: (res) => {
wx.showShareImageMenu({
path: res.tempFilePath
})
}
})
}, },
// 获取我的许愿 // 获取我的许愿
getMyWish(){ getMyWish(){
@ -263,15 +279,12 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
console.log('隐藏了')
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {
console.log('隐藏了')
}, },
/** /**
@ -299,6 +312,8 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
},
} // 分享到朋友圈
onShareTimeline(){}
}) })

@ -7,6 +7,7 @@
"t-calendar": "tdesign-miniprogram/calendar/calendar", "t-calendar": "tdesign-miniprogram/calendar/calendar",
"t-upload": "tdesign-miniprogram/upload/upload", "t-upload": "tdesign-miniprogram/upload/upload",
"t-dialog": "tdesign-miniprogram/dialog/dialog", "t-dialog": "tdesign-miniprogram/dialog/dialog",
"t-image": "tdesign-miniprogram/image/image" "t-image": "tdesign-miniprogram/image/image",
"t-icon": "tdesign-miniprogram/icon/icon"
} }
} }

@ -1,12 +1,12 @@
<t-toast id="t-toast" /> <t-toast id="t-toast" />
<!--单身情况下--> <!--单身情况下-->
<view class="xybtn2" wx:if="{{single}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view> <view class="xybtn2" wx:if="{{!userInfo.loverId}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view>
<view class="xybtn3" wx:if="{{single}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view> <view class="xybtn3" wx:if="{{!userInfo.loverId}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view>
<!--非单身情况下--> <!--非单身情况下-->
<view class="qlxybtn2" wx:if="{!{single}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view> <view class="qlxybtn2" wx:if="{{userInfo.loverId}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view>
<view class="qlxybtn21" wx:if="{!{single}}" bindtap="go2TaYw">Ta的愿望</view> <view class="qlxybtn21" wx:if="{{userInfo.loverId}}" bindtap="go2TaYw">Ta的愿望</view>
<view class="qlxybtn22" wx:if="{!{single}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view> <view class="qlxybtn22" wx:if="{{userInfo.loverId}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view>
<view class="bgt3" ></view> <view class="bgt3" ></view>
<view class="bgt2" ></view> <view class="bgt2" ></view>
<view class="bgt1" ></view> <view class="bgt1" ></view>
@ -37,8 +37,6 @@
</t-upload> </t-upload>
</view> </view>
<view class="qx" bindtap="doCancelXy">取消</view> <view class="qx" bindtap="doCancelXy">取消</view>
<view data-fs="{{form}}" data-note="{{note}}" class="wc" bindtap="doFinishXy">完成</view> <view data-fs="{{form}}" data-note="{{note}}" class="wc" bindtap="doFinishXy">完成</view>
</view> </view>
@ -53,7 +51,8 @@
<!-- 许愿祝福中 --> <!-- 许愿祝福中 -->
<view class="xyc-process" wx:if="{{showXyz}}"> <view class="xyc-process" wx:if="{{showXyz}}">
愿望祝福中…… <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/hourglass.gif"/>
<view>愿望祝福中……</view>
</view> </view>
<!--愿望详情--> <!--愿望详情-->
@ -65,11 +64,59 @@
<view class="ywxq2">{{item.content}}</view> <view class="ywxq2">{{item.content}}</view>
<view class="qwsj2">期望时间</view> <view class="qwsj2">期望时间</view>
<view class="qwsjtxt2">{{item.deadline}}</view> <view class="qwsjtxt2">{{item.deadline}}</view>
<view class="anwz1" > <view class="anwz1" bindtap="openShare">
<view class="anwz1-tb" bindtap="openShare"> <view class="anwz1-tb">
<t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lfc.png"></t-image> <t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lfc.png"></t-image>
</view> </view>
<view class="anwztxt1">分享</view> <view class="anwztxt1">分享</view>
</view> </view>
</view> </view>
<!-- 分享 -->
<t-popup visible="{{shareVisible}}" placement="bottom">
<view class="popup-main">
<view class="main-top">
<view></view>
<view class="text">分享到</view>
<t-icon name="close" size="32" bindtap="openShare"/>
</view>
<view class="main-box">
<view class="box-item">
<button open-type="share" class="item-icon">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/wechat.png"></t-image>
</button>
<view class="item-text">微信</view>
</view>
<view class="box-item">
<view class="item-icon cyan">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/pyq.png"></t-image>
</view>
<view class="item-text">朋友圈</view>
</view>
<view class="box-item">
<view class="item-icon orange">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/weibo.png"></t-image>
</view>
<view class="item-text">微博</view>
</view>
<view class="box-item">
<view class="item-icon blue" bindtap="shareQQ">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qq.png"></t-image>
</view>
<view class="item-text">QQ</view>
</view>
<view class="box-item">
<view class="item-icon yellow">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qqkj.png"></t-image>
</view>
<view class="item-text">QQ空间</view>
</view>
<view class="box-item">
<view class="item-icon orange" bindtap="downLoad">
<t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/tupian.png"></t-image>
</view>
<view class="item-text">生成图片</view>
</view>
</view>
</view>
</t-popup>

@ -397,13 +397,23 @@ border: 1px solid rgba(187, 187, 187, 1);
width: 484rpx; width: 484rpx;
height: 434rpx; height: 434rpx;
line-height: 20px; line-height: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
border-radius: 15px; border-radius: 15px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
color: #6c6c6c; color: #6c6c6c;
text-align: center; font-size: 18px;
box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4); box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4);
} }
.xyc-process .t-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 26rpx;
}
/* 许愿成功回显 */ /* 许愿成功回显 */
.wishdetail{ .wishdetail{
position: absolute; position: absolute;
@ -522,5 +532,88 @@ border: 1px solid rgba(187, 187, 187, 1);
height: 40rpx; height: 40rpx;
border-radius: 50%; border-radius: 50%;
background-color: #F73535; background-color: #F73535;
}
.shareBtn {
position: absolute;
bottom: 100px;
left: 100px;
}
.popup-main {
height: 462rpx;
background-color: #fff;
}
.popup-main .main-top {
height: 80rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30rpx;
box-sizing: border-box;
border-bottom: 1px solid #E9E9E8;
}
.t-icon-close {
color: #6c6c6c;
}
.popup-main .main-top .text {
font-size: 16px;
color: #6c6c6c;
}
.popup-main .main-box {
height: 100%;
padding-top:70rpx;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
}
.popup-main .main-box .box-item {
width: 100rpx;
height: 150rpx;
margin-left: 70rpx;
display: flex;
align-items: center;
flex-direction: column;
}
.popup-main .main-box .box-item .item-icon {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
margin-bottom: 10rpx;
display: flex;
justify-content: center;
align-items: center;
background-color: #1AAD19;
}
.popup-main .main-box .box-item .item-icon .t-image {
width: 56rpx;
height: 56rpx;
}
.popup-main .main-box .box-item .item-text {
font-size: 12px;
color: #A2A2A2;
}
.cyan {
background-color: #A8E450 !important;
}
.orange {
background-color: #FF9900 !important;
}
.blue {
background-color: #3CCDFF !important;
}
.yellow {
background-color: #FFCE41 !important;
}
.cyan {
background-color: #A8E450 !important;
} }

@ -79,7 +79,7 @@ Page({
wx.navigateBack({ changed: true }); wx.navigateBack({ changed: true });
}, },
getMyWish(){ getMyWish(){
req.getRequest('/api/user/curt/wish/lover',{}).then((res)=>{ req.getRequest('/api/user/curt/lover/wish',{}).then((res)=>{
console.log(res) console.log(res)
if(res.data.code==200){ if(res.data.code==200){
this.setData({wishes:res.data.data.records}) this.setData({wishes:res.data.data.records})

@ -1,7 +1,7 @@
<!--pages/home/xyc/wdyw/wdyw.wxml--> <!--pages/home/xyc/wdyw/wdyw.wxml-->
<!--返回图标--> <!--返回图标-->
<view class="reback" bindtap="go2Reback"></view> <view class="reback" bindtap="go2Reback"></view>
<view class="title">的愿望</view> <view class="title">ta的愿望</view>
<view class="ywbjt1"></view> <view class="ywbjt1"></view>
<view class="xycbg2"></view> <view class="xycbg2"></view>

@ -24,10 +24,10 @@
.ywbjt1{ .ywbjt1{
position: absolute; position: absolute;
left: -22px; left: -44rpx;
top: 140px; top: 280rpx;
width: 421px; width: 842rpx;
height: 584px; height: 1168rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg111.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg111.png);
@ -35,10 +35,10 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg
.xycbg2{ .xycbg2{
position: absolute; position: absolute;
left: -14px; left: -28rpx;
top: 342px; top: 684rpx;
width: 399px; width: 798rpx;
height: 341px; height: 682rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg2.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg2.png);
@ -53,10 +53,10 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg
.xycbg3{ .xycbg3{
position: absolute; position: absolute;
left: -24px; left: -48rpx;
top: 116px; top: 232rpx;
width: 440px; width: 880rpx;
height: 635px; height: 1270rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg3.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg3.png);

@ -14,6 +14,10 @@ Page({
rrs:[{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"processing","deadline":"2024-04-16"},{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"completed","deadline":"2024-04-16"},{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"expired","deadline":"2024-04-16"}], rrs:[{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"processing","deadline":"2024-04-16"},{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"completed","deadline":"2024-04-16"},{"lastModifiedDate":"2023-03-29T14:49:58.000+08:00","createdAt":"2023-03-14T15:44:16.000+08:00","id":1,"userid":1,"link":"http://www.baidu.com","img":"http://oss.wish.ydxxkj.top/resource/24130a65-ec5e-4c48-86d1-e964859f8532-1680072583657.jpg","content":"我希望明年去富士山下的樱花.","status":"expired","deadline":"2024-04-16"}],
wishes:[] wishes:[]
}, },
// 分享微信
shareWx(){
console.log('分享微信')
},
showShare(){ showShare(){
this.setData({ this.setData({
shareVisible:!this.data.shareVisible shareVisible:!this.data.shareVisible
@ -153,5 +157,8 @@ Page({
*/ */
onShareAppMessage() { onShareAppMessage() {
},
onShareTimeline(){
} }
}) })

@ -108,38 +108,38 @@ data-del="{{detail.id}}"
</view> </view>
<view class="main-box"> <view class="main-box">
<view class="box-item"> <view class="box-item">
<view class="item-icon"> <button open-type="share" class="item-icon" bindtap="shareWx">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/wechat.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/wechat.png"></t-image>
</view> </button>
<view class="item-text">微信</view> <view class="item-text">微信</view>
</view> </view>
<view class="box-item"> <view class="box-item">
<view class="item-icon cyan"> <view class="item-icon cyan">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/pyq.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/pyq.png"></t-image>
</view> </view>
<view class="item-text">朋友圈</view> <view class="item-text">朋友圈</view>
</view> </view>
<view class="box-item"> <view class="box-item">
<view class="item-icon orange"> <view class="item-icon orange">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/weibo.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/weibo.png"></t-image>
</view> </view>
<view class="item-text">微博</view> <view class="item-text">微博</view>
</view> </view>
<view class="box-item"> <view class="box-item">
<view class="item-icon blue"> <view class="item-icon blue">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qq.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qq.png"></t-image>
</view> </view>
<view class="item-text">QQ</view> <view class="item-text">QQ</view>
</view> </view>
<view class="box-item"> <view class="box-item">
<view class="item-icon yellow"> <view class="item-icon yellow">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qqkj.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/qqkj.png"></t-image>
</view> </view>
<view class="item-text">QQ空间</view> <view class="item-text">QQ空间</view>
</view> </view>
<view class="box-item"> <view class="box-item">
<view class="item-icon orange"> <view class="item-icon orange">
<t-image bindtap="doFinishWish" src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/tupian.png"></t-image> <t-image src="cloud://cloud1-2geqetnm309fb1b9.636c-cloud1-2geqetnm309fb1b9-1318421017/tupian.png"></t-image>
</view> </view>
<view class="item-text">生成图片</view> <view class="item-text">生成图片</view>
</view> </view>

@ -24,10 +24,10 @@
.ywbjt1{ .ywbjt1{
position: absolute; position: absolute;
left: -22px; left: -44rpx;
top: 140px; top: 280rpx;
width: 421px; width: 842rpx;
height: 584px; height: 1168rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg111.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg111.png);
@ -35,10 +35,10 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg
.xycbg2{ .xycbg2{
position: absolute; position: absolute;
left: -14px; left: -28rpx;
top: 342px; top: 684rpx;
width: 399px; width: 798rpx;
height: 341px; height: 682rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg2.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg2.png);
@ -53,10 +53,10 @@ background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/bg
.xycbg3{ .xycbg3{
position: absolute; position: absolute;
left: -24px; left: -48rpx;
top: 116px; top: 232rpx;
width: 440px; width: 880rpx;
height: 635px; height: 1370rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg3.png); background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/xycbg3.png);
@ -335,14 +335,8 @@ border: 3px solid rgba(255, 255, 255, 1);
} }
.popup-main .main-box .box-item .item-icon .t-image { .popup-main .main-box .box-item .item-icon .t-image {
width: 70rpx; width: 56rpx;
height: 70rpx; height: 56rpx;
}
.popup-main .main-box .box-item .item-icon image {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
} }
.popup-main .main-box .box-item .item-text { .popup-main .main-box .box-item .item-text {

Loading…
Cancel
Save