main
Wkang921 2 years ago
parent 8e6fe82f34
commit 6ded150933

@ -18,6 +18,7 @@ Page({
minutes:0,
pickerValue: [0, 0],
prayTime:0, //祈祷时间
prayTimeStr: '选择祈祷时长' ,
prayerContent:'', //祈祷内容
showSexLogo:false,//不展示形象修改按钮
showPray:false, //显示祈祷弹层
@ -28,7 +29,8 @@ Page({
showEnergyFail:false, //赠送成功提示
showInject:false, //显示注入能量
showInEnergy:false, //显示能量注入中
showScsEnergy:false //显示注册成功提示
showScsEnergy:false, //显示注册成功提示
showTiming:false //显示祈祷时间弹层
},
ShowOrNotLogoS(){
this.setData({singleShow:!this.data.singleShow})
@ -42,6 +44,7 @@ Page({
doSetXxtMale(){
this.doSetXxt('male')
},
showTiming(){this.setData({showTiming : !this.data.showTiming})},
doSetXxtFemale(){
this.doSetXxt('female')
},
@ -130,8 +133,12 @@ Page({
prayerContent:''
})
}
this.setData({showTiming: false})
},
onPickerChange(e){
console.log(e.detail.value);
const time = e.detail.value[0] + '小时' + e.detail.value[1] + '分钟'
this.setData({prayTimeStr: time})
if(e.detail.value[0] === this.data.hours){
this.setData({
minutes:this.data.minute
@ -207,6 +214,11 @@ Page({
minutes:59
})
}
if(hours<=0){
this.setData({
minutes:minute
})
}
this.setData({
userInfo:res.data.data,
hours:hours,
@ -227,13 +239,20 @@ Page({
},
btnOK(){
const prayerEnergy = (this.data.pickerValue[0]*60 + this.data.pickerValue[1])/6
if(prayerEnergy < 1){
if(this.data.userInfo.crystallineEnergy < 1){
return Toast({
context: this,
selector: '#t-toast',
message: '能量不足',
});
}
if(this.data.prayerContent === ''){
return Toast({
context: this,
selector: '#t-toast',
message: '祈祷内容不能为空',
});
}
if(this.data.prayerContent.length > 11){
return Toast({
context: this,
@ -263,6 +282,7 @@ Page({
}).catch((err) => {
console.log('祈祷失败',err);
})
this.setData({showTiming: false})
},
btnCancel(){
console.log('111');

@ -5,6 +5,7 @@
"t-rate": "tdesign-miniprogram/rate/rate",
"t-image": "tdesign-miniprogram/image/image",
"t-icon": "tdesign-miniprogram/icon/icon",
"t-toast": "tdesign-miniprogram/toast/toast"
"t-toast": "tdesign-miniprogram/toast/toast",
"t-input": "tdesign-miniprogram/input/input"
}
}

@ -167,28 +167,32 @@
</view>
<view class="dialog-item">
<text>祈祷时长</text>
<view class="duration">选择祈祷时长<t-icon name="chevron-down" size="48rpx"/></view>
<view class="duration" bindtap="showTiming">{{prayTimeStr}}<t-icon name="chevron-down" size="48rpx"/></view>
</view>
<view class="dialog-btn">
<button bindtap="openPray">取消</button>
<button bindtap="btnOK">发起祈祷</button>
</view>
</view>
</view>
<!-- 祈祷时间弹层 -->
<t-popup placement="bottom" visible="{{showTiming}}" showOverlay="{{false}}">
<view class="timing">
<view class="timing-title">你还有{{userInfo.crystallineEnergy}}%水晶能量,可为对方祈祷{{hours}}小时{{minute}}分</view>
<t-toast id="t-toast" />
<view class="picker">
<picker-view value="{{pickerValue}}" bindchange="onPickerChange" indicator-class="active">
<picker-view-column>
<view wx:for="{{hours + 1}}" wx:key="item" class="picker-item"> {{ item }} </view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{minutes + 1}}" wx:key="item" class="picker-item"> {{ item }} </view>
</picker-view-column>
</picker-view>
</view>
<view class="timing-title">你还有{{userInfo.crystallineEnergy}}%水晶能量,可为对方祈祷{{hours}}小时{{minute}}分</view>
<t-toast id="t-toast" />
<view class="picker">
<picker-view value="{{pickerValue}}" bindchange="onPickerChange" indicator-class="active">
<picker-view-column>
<view wx:for="{{hours + 1}}" wx:key="item" class="picker-item"> {{ item }} </view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{minutes + 1}}" wx:key="item" class="picker-item"> {{ item }} </view>
</picker-view-column>
</picker-view>
</view>
</view>
</view>
</t-popup>
<!-- 已祈祷弹层 -->
<view class="pray" wx:if="{{showIsPray}}">

@ -311,7 +311,10 @@ page {
.yan1{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 837.33rpx;
@ -321,7 +324,10 @@ page {
.yan2{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 837.33rpx;
@ -366,30 +372,25 @@ page {
.yan11{
position: absolute;
width:46.67rpx;
height:46.67rpx;
width:46rpx;
height:46rpx;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 33.33rpx;
margin-left:34.33rpx;
background-image: url(https://oss.wish.ydxxkj.top/xy/paw.png);
}
.yan12{
position: absolute;
width:46.67rpx;
height:46.67rpx;
/* position: absolute; */
width:46rpx;
height:46rpx;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 33.33rpx;
margin-left:34.33rpx;
background-image: url(https://oss.wish.ydxxkj.top/xy/male.png);
}
.yan13{
/* position: absolute; */
width:36rpx;
height:46.67rpx;
height:46rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-size: contain;
@ -398,9 +399,9 @@ page {
.xxtl{
position: absolute;
width:326.67rpx;
height:771.33rpx;
margin-top: 326.67rpx;
width:326rpx;
height:772rpx;
margin-top: 326rpx;
margin-left: 88rpx;
background-repeat: no-repeat;
background-size:100% 100%;
@ -413,10 +414,10 @@ page {
.xxtr{
position: absolute;
width:323.33rpx;
height:787.33rpx;
margin-top: 308.67rpx;
margin-left: 355.33rpx;
width:326rpx;
height:782rpx;
margin-top: 326rpx;
margin-left: 356rpx;
background-repeat: no-repeat;
background-size:100% 100%;
}
@ -429,7 +430,10 @@ page {
.yanql1{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 492rpx;
@ -440,7 +444,10 @@ page {
.yanql2{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 663.33rpx;
@ -451,7 +458,10 @@ page {
.yanql4{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 492rpx;
@ -462,7 +472,10 @@ page {
.yanql5{
position: absolute;
width:114rpx;
height:116.67rpx;
height:116rpx;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 663.33rpx;
@ -818,7 +831,6 @@ background-image: url(https://oss.wish.ydxxkj.top/xy/ysfgx.png);
bottom: 0;
width: 100%;
height: 434rpx;
padding: 0 28px;
z-index: 999;
line-height: 20px;
background-color: rgba(255, 255, 255, 1);

@ -1,4 +1,10 @@
/* pages/home/jl/jlai/jlai.wxss */
page {
width: 100%;
height: 100%;
overflow: hidden;
}
.reback{
position: absolute;
margin-left: 20rpx;

@ -24,7 +24,7 @@ Page({
minute: 0, // 分
second: 0 , // 秒
millisecond:0,
dsQTime:'000000',
dsQTime:'00:00:00',
luYinStatus:0,//录音状态0代表还没开始1代表进行中2代表录音完毕
delId:'',
luyinVisible:false,
@ -38,7 +38,6 @@ Page({
loverInfo:{},
hasLover:false,// 是否单身
userInfo:{}
},
doLuYINBoF(e){
//先判断是开是关
@ -176,7 +175,7 @@ Page({
}
hm = res.duration - fz*60*1000-mz*1000
let sec = Math.floor(res.duration/1000)
let ssec = fz+'\''+mz+'\'\''+hm+'\'\'\''
let ssec = fz+'\''+mz+'\'\''
console.log(ssec)
wx.uploadFile({
url: 'https://xzjl-api.windymuse.cn/api/resource',
@ -434,9 +433,20 @@ Page({
})
},
doMessageInfo(){/**查询聊天信息 */
req.getRequest('/api/user/curt/message/lover',{}).then((res)=>{
req.getRequest('/api/user/curt/message/lover',{ limit:-1}).then((res)=>{
if(res.data.code==200){
this.setData({messages:res.data.data.records.reverse()})
const list = res.data.data.records
// 格式化时间
list.forEach(item => {
const date = new Date(item.createdAt)
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hours = date.getHours()
const minutes = date.getMinutes()
item.createdAt = `${year}${month}${day}${hours}:${minutes}`
})
this.setData({messages:list.reverse()})
}
}).catch((err)=>{
console.log(err);
@ -517,7 +527,7 @@ Page({
})
},
doClickYx(){
this.setData({luyinVisible:true,luYinStatus:0,dsQTime:'000000'})
this.setData({luyinVisible:true,luYinStatus:0,dsQTime:'00:00:00'})
console.log('点击了音讯')
},
quxiaoLuyin(){/**取消录音 */

@ -26,70 +26,111 @@
<view wx:if="{{item.isSelf}}" >
<!--发送图片消息-->
<view class="zjtableatp1" wx:if="{{item.type=='graphic'}}">
<!--自己的头像框-->
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image>
<!--聊天图片&已读未读-->
<view class="zttp11" data-id="{{item.id}}" id="{{'id001'+index}}" data-index="{{'id001'+index}}"
bindlongpress="changAn">
<view class="zttp11" data-id="{{item.id}}" id="{{'id001'+index}}" data-index="{{'id001'+index}}" bindlongpress="changAn">
<view class="zjydwdtp2">{{item.status=='unread'?'未读':'已读'}}</view>
<!--聊天图片-->
<t-image src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp2" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
<t-image src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp2" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
</view>
<!--自己的头像框-->
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image>
</view>
<!--发送信件消息-->
<view class="zjtablea1" wx:if="{{item.type=='xj'}}">
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
<view class="zjxf1"></view>
<view class="zjydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
</view>
<!--发送音频消息-->
<view class="zjtablea2" wx:if="{{item.type=='audio'}}">
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
<view data-bf="{{!item.extra.isBf}}" class="zjypk1" wx:if="{{!item.extra.isBf}}" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
data-index="{{index}}" bindtap="doLuYINBoF"><view class="zjypt1"></view>
<view class="zjypydwd" >{{item.status=='unread'?'未读':'已读'}}</view>
<view
data-bf="{{!item.extra.isBf}}"
class="zjypk1" wx:if="{{!item.extra.isBf}}"
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
data-index="{{index}}"
bindtap="doLuYINBoF"
>
<view class="zjypt1"></view>
<view class="zjypwz1">{{item.extra.ssec}}</view>
</view>
<view data-bf="{{!item.extra.isBf}}" class="zjypk1" wx:if="{{item.extra.isBf}}" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
data-index="{{index}}" bindtap="doLuYINBoF">
<view class="zjypt11"><view class="box2" style="float: left; height: 60rpx; width: 1000px; " >
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 60rpx;width: 60rpx;" src="https://oss.wish.ydxxkj.top/xy/yppic.png" mode=""/>
</view></view>
<view class="zjypwz1">1{{item.extra.ssec}}</view>
<view
data-bf="{{!item.extra.isBf}}"
class="zjypk1" wx:if="{{item.extra.isBf}}"
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
data-index="{{index}}"
bindtap="doLuYINBoF"
>
<view class="zjypt11">
<view class="box2" style="float: left; height: 60rpx; width: 1000px;">
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 60rpx;width: 60rpx;"
src="https://oss.wish.ydxxkj.top/xy/yppic.png" mode=""/>
</view>
</view>
<view class="zjypwz1">{{item.extra.ssec}}</view>
</view>
<view class="zjypydwd" >{{item.status=='unread'?'未读':'已读'}}</view>
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
</view>
<!--发送文字消息-->
<view class="zjtable3" wx:if="{{item.type=='text'}}">
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
<view class="zjxxbox1" bindlongpress="changAn" id="{{'idtext001'+index}}" data-index="{{'idtext001'+index}}" data-id="{{item.id}}" bindtap="dKztDetial" data-xq="{{item}}"><view class="zjtextcontent"><text>{{item.content}}</text></view></view>
<view class="zjtextydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
<view class="zjxxbox1"
bindlongpress="changAn"
id="{{'idtext001'+index}}"
data-index="{{'idtext001'+index}}"
data-id="{{item.id}}"
bindtap="dKztDetial"
data-xq="{{item}}"
>
<view class="zjtextcontent">
<text>{{item.content}}</text>
</view>
</view>
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
</view>
</view>
<!--对方发的消息-->
<view wx:if="{{!item.isSelf}}" >
<!--聊天信息-->
<view wx:if="{{item.type=='graphic'}}" class="zjtableatp1">
<t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框-->
<!--图片信息-->
<view wx:if="{{item.type=='graphic'}}" class="zjtableatp2">
<view class="zttp12" wx:if="{{item.type=='graphic'}}">
<view class="zjxftp3" >
</view>
<!---->
<t-image bindlongpress="changAn" src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp3" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
<t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框-->
<!-- <view class="zjxftp3"></view> -->
<t-image
bindlongpress="changAn"
src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
class="zjxftp3" mode="heightFix"
bindtap="go2SeeHxDetail"
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
></t-image>
<view class="zjydwdtp3">{{item.status=='unread'?'未读':'已读'}}</view>
</view>
</view>
<t-image wx:if="{{item.type!='graphic'}}" src="{{loverInfo.avatar}}" class="wchattxk1" shape="circle" ></t-image><!--对方的的头像框-->
<t-image
wx:if="{{item.type!='graphic'}}"
src="{{loverInfo.avatar}}"
class="wchattxk1"
shape="circle"
></t-image><!--对方的的头像框-->
<!--图片-->
<!--信件-->
<view class="dfxf" wx:if="{{item.type=='xj'}}"></view>
<view class="dfxfydwd" wx:if="{{item.type=='xj'}}">{{item.status=='unread'?'未读':'已读'}}</view>
<!--文本-->
<view bindtap="dKztDetial" data-xq="{{item}}" class="dftext" wx:if="{{item.type=='text'}}"><view class="xjtext">{{item.content}}</view></view>
<view
bindtap="dKztDetial"
data-xq="{{item}}"
class="dftext"
wx:if="{{item.type=='text'}}"
>
<view class="xjtext">{{item.content}}</view>
</view>
<view class="dftextwd" wx:if="{{item.type=='text'}}">{{item.status=='unread'?'未读':'已读'}}</view>
<!--音频-->
<view class="dfaudio" wx:if="{{item.type=='audio'}}">
<view class="dfaudiologo"></view>

@ -248,16 +248,15 @@ text-align: center;
}
.wchatfor{
width: 750rpx;
padding: 0 64rpx;
box-sizing: border-box;
}
.wchattime{
left: 131px;
top: 256px;
width: 750rpx;
height: 28px;
margin-top: 32rpx;
color: rgba(153, 153, 153, 1);
font-size: 12px;
font-size: 24rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.wchattxk{
display: inline-block;
@ -369,15 +368,14 @@ text-align: center;
font-family: SourceHanSansSC-regular;
}
.zjtablea1{
width: 750rpx;
width: 100%;
height: 176rpx;
}
.zjtx1{
position: absolute;
margin-left: 317px;
margin-top: 19rpx;
width: 36px;
height: 36px;
width: 84rpx;
height: 84rpx;
margin-left: 24rpx;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
}
.zjxf1{
position: absolute;
@ -398,94 +396,80 @@ text-align: center;
font-family: SourceHanSansSC-regular;
}
.zjtablea2{
width: 750rpx;
height:134rpx;
width: 100%;
height: 134rpx;
display: flex;
align-items: center;
justify-content: flex-end;
}
.zjypk1{
position: absolute;
left: 160px;
margin-top: 7px;
width: 150px;
height: 42px;
line-height: 20px;
border-radius: 10px;
width: 300rpx;
height: 84rpx;
padding-left: 32rpx;
box-sizing: border-box;
display: flex;
align-items: center;
border-radius: 20rpx;
background-color: rgba(255, 255, 255, 1);
color: rgba(16, 16, 16, 1);
font-size: 14px;
text-align: center;
font-family: Arial;
font-size: 28rpx;
border: 1px solid rgba(239, 239, 239, 1);
}
.zjypt1{
position: absolute;
left: 16px;
top: 6px;
width: 30px;
height: 30px;
width: 60rpx;
height: 60rpx;
margin-right: 20rpx;
background-size: cover;
background-image: url(https://oss.wish.ydxxkj.top/xy/yppic.png);
}
.zjypt11{
position: absolute;
left: 16px;
top: 6px;
width: 30px;
height: 30px;
width: 60rpx;
height: 60rpx;
margin-right: 20rpx;
overflow: hidden;
}
.zjypwz1{
position: absolute;
left: 56px;
top: 24rpx;
width: 45px;
height: 18px;
color: rgba(154, 154, 154, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
color: rgba(154, 154, 154, 1);
font-size: 24rpx;
}
.zjypydwd{
position: absolute;
margin-left: 250rpx;
margin-top: 30px;
width: 28px;
height: 20px;
height: 100%;
padding: 0 20rpx 20rpx 0;
box-sizing: border-box;
color: rgba(206, 206, 206, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
font-size: 24rpx;
display: flex;
align-items: flex-end;
}
.zjtable3{
width: 750rpx;
width: 100%;
height: 150rpx;
display: flex;
align-items: center;
justify-content: flex-end;
}
.zjxxbox1{
position: absolute;
margin-left: 260rpx;
width: 180px;
height: 60px;
width: 360rpx;
height: 120rpx;
line-height: 60px;
background-size: contain;
background-image: url(https://oss.wish.ydxxkj.top/xy/%E7%BA%B8%E6%9D%A1.png);
color: rgba(51, 51, 51, 1);
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
}
.zjtextydwd1{
position: absolute;
margin-left: 210rpx;
margin-top: 30px;
width: 28px;
height: 20px;
height: 100%;
display: flex;
align-items: flex-end;
color: rgba(206, 206, 206, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
font-size: 24rpx;
margin: 0 10rpx 60rpx 0;
}
.zjtextcontent{
@ -566,7 +550,7 @@ top: 568px;
.cqlgd{
width: 750rpx;
height: 530rpx;
height: 280rpx;
}
.fhan11{
border-radius: 58rpx;
@ -596,9 +580,24 @@ background-image: url(https://oss.wish.ydxxkj.top/xy/xtreturn.png);
background-color: transparent!important;
}
.zjtableatp1{
width: 750rpx;
width: 100%;
height: 220rpx;
padding: 0 32rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-end;
}
.zjtableatp2{
width: 100%;
height: 220rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-start;
}
.zjxftp1{
float: right;
margin-right:130rpx;
@ -619,14 +618,11 @@ background-image: url(https://oss.wish.ydxxkj.top/xy/xtreturn.png);
}
.zjydwdtp2{
display: inline-block;
margin-top: 50px;
width: 28px;
height: 20px;
height: 100%;
color: rgba(206, 206, 206, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
font-size: 24rpx;
display: flex;
align-items: flex-end;
}
.zjxftp2{
display: inline-block;
@ -636,38 +632,37 @@ background-image: url(https://oss.wish.ydxxkj.top/xy/xtreturn.png);
max-width: 500rpx;
}
.zttp11{
float: right;
margin-right: 130rpx;
/* margin-right: 130rpx; */
height: 200rpx;
flex: 1;
display: flex;
justify-content: flex-end;
}
.zttp11 .t-image{
height: 200rpx;
max-width: 440rpx;
}
.zttp12{
float: left;
margin-left: 10rpx;
height: 200rpx;
display: flex;
align-items: center;
}
.zjydwdtp3{
display: inline-block;
margin-top: 80px;
margin-left: 10rpx;
width: 28px;
height: 20px;
height: 100%;
display: flex;
align-items: flex-end;
color: rgba(206, 206, 206, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
font-size: 24rpx;
}
.zjxftp3{
display: inline-block;
margin-left:10rpx;
height: 200rpx;
background-repeat: no-repeat;
max-width: 500rpx;
max-width: 480rpx;
}
.wchattxk11{
float: left;
margin-left: 19px;
margin-top: 7rpx;
width: 36px;
height: 36px;
background-color: chartreuse;
width: 72rpx;
height: 72rpx;
}
.tppp1{

@ -141,7 +141,7 @@ Page({
resourceId: data.data.id,
duration: this.data.duration,
videoSrc: this.data.videoSrc,
extra: {duration : this.data.duration}
extra: {duration : this.data.ssec}
})
this.setData({audioList: list})
}
@ -225,7 +225,17 @@ Page({
time = time + ':' + millisecond
}
this.setData({soundTime: time})
let ssec = minute + '\''
if (second < 10) {
ssec = ssec + '0' + second + '\'\''
}else {
ssec = ssec + second
}
this.setData({
soundTime: time,
ssec: ssec
})
},
endSound(){
console.log('结束录音');

@ -22,7 +22,7 @@
<!-- 信件语音 -->
<view class="{{Preview ? 'xinfo-ltqp-yl' : 'xinfo-ltqp'}}" wx:for="{{audioList}}" wx:key="index" bindtap="listen" data-url="{{item}}">
<image class="xinfo-yuying" src="https://oss.wish.ydxxkj.top/xy/%E8%AF%AD%E9%9F%B3.png"></image>
<view class="xinfo-ltqp-text">{{item.duration}}</view>
<view class="xinfo-ltqp-text">{{item.extra.duration}}</view>
<t-icon class="xinfo-close" name="close-circle" size="48rpx" wx:if="{{!Preview}}" bindtap="ClearYl" data-id="{{item.resourceId}}"/>
</view>
<!-- 信件图片 -->

@ -141,7 +141,7 @@ Page({
resourceId: data.data.id,
duration: this.data.duration,
videoSrc: this.data.videoSrc,
extra: {duration : this.data.duration}
extra: {duration : this.data.ssec}
})
this.setData({audioList: list})
}
@ -225,7 +225,17 @@ Page({
time = time + ':' + millisecond
}
this.setData({soundTime: time})
let ssec = minute + '\''
if (second < 10) {
ssec = ssec + '0' + second + '\'\''
}else {
ssec = ssec + second
}
this.setData({
soundTime: time,
ssec: ssec
})
},
endSound(){
console.log('结束录音');

@ -22,7 +22,7 @@
<!-- 信件语音 -->
<view class="{{Preview ? 'xinfo-ltqp-yl' : 'xinfo-ltqp'}}" wx:for="{{audioList}}" wx:key="index" bindtap="listen" data-url="{{item}}">
<image class="xinfo-yuying" src="https://oss.wish.ydxxkj.top/xy/%E8%AF%AD%E9%9F%B3.png"></image>
<view class="xinfo-ltqp-text">{{item.duration}}</view>
<view class="xinfo-ltqp-text">{{item.extra.duration}}</view>
<t-icon class="xinfo-close" name="close-circle" size="48rpx" wx:if="{{!Preview}}" bindtap="ClearYl" data-id="{{item.resourceId}}"/>
</view>
<!-- 信件图片 -->

@ -405,7 +405,7 @@ textarea {
width: 100%;
height: 50rpx;
margin-top: 40rpx;
background-image: url(https://oss.wish.ydxxkj.top/xy/iconPark-acoustic%20Copy%203%401x.png);
background-image: url(https://oss.wish.ydxxkj.top/xy/iconPark-acoustic%20Copy%203%401x%20%281%29.png);
}
.sound-box-img2 {

@ -22,9 +22,22 @@
<view class="xylj">许愿链接</view>
<view class="xytp">许愿图片</view>
<t-textarea class="xynrf" model:value="{{xyContent}}" t-class="external-class" placeholder="内容限制30个字" />
<t-textarea class="qwsjt" placeholder="请选择到期时间" bindtap="doXzTime" value="{{note}}" disabled />
<view class="xltb"></view>
<t-textarea class="xyljt" model:value="{{xyLink}}" placeholder="愿望链接(可不填)" />
<!-- <t-textarea class="qwsjt" placeholder="请选择到期时间" bindtap="doXzTime" value="{{note}}" disabled /> -->
<t-input
class="qwsjt"
placeholder="请选择到期时间"
bindtap="doXzTime"
value="{{note}}"
disabled
suffixIcon="{{ 'chevron-down'}}"
/>
<t-input
class="xyljt"
placeholder="愿望链接(可不填)"
bindtap="doXzTime"
model:value="{{xyLink}}"
/>
<!-- <t-textarea class="xyljt" placeholder="愿望链接(可不填)" /> -->
<view >
<t-upload class="xytpt"
@ -33,6 +46,7 @@
files="{{fileList}}"
bind:add="handleAdd"
bind:remove="handleRemove"
gutter="130 * 130"
>
</t-upload>

@ -305,18 +305,16 @@ font-family: SourceHanSansSC-medium;
}
.xyljt{
padding: 20rpx 0 0 20rpx !important;
position: absolute;
left: 250rpx;
top: 572rpx;
left: 218rpx;
top: 490rpx;
padding: 0 0 0 20rpx !important;
box-sizing: border-box;
width: 350rpx!important;
height: 80rpx!important;
line-height: 80rpx!important;
border-radius: 20rpx;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid rgba(187, 187, 187, 1);
}
@ -326,9 +324,10 @@ font-family: SourceHanSansSC-medium;
.qwsjt{
position: absolute;
left: 250rpx;
left: 220rpx;
top: 448rpx;
padding: 20rpx 0 0 20rpx !important;
padding: 0 20rpx !important;
box-sizing: border-box;
width: 350rpx!important;
height: 80rpx!important;
border-radius: 20rpx;
@ -337,25 +336,18 @@ font-family: SourceHanSansSC-medium;
border: 1px solid rgba(187, 187, 187, 1);
}
.xltb{
position: absolute;
right: 130rpx;
top:478rpx;
width:26rpx;
height:26rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://oss.wish.ydxxkj.top/xy/xltb.png);
}
.xytpt{
position: absolute;
width:600rpx;
height:600rpx;
margin-top:700rpx;
margin-top:530rpx;
margin-left: 210rpx!important;
}
.t-upload__add-icon {
background-color: #FFFFFF !important;
}
.t-grid {
background-color: transparent!important;
}
@ -414,8 +406,8 @@ font-family: SourceHanSansSC-medium;
/* 许愿成功回显 */
.wishdetail{
position: absolute;
width:750rpx;
height:1624rpx;
width:100%;
height:100%;
background-color: rgba(255, 255, 255, 0.7);
}
.popbox{
@ -539,6 +531,7 @@ font-family: SourceHanSansSC-medium;
.popup-main {
height: 462rpx;
margin-bottom: 68rpx;
background-color: #fff;
}

@ -10,9 +10,18 @@ Page({
showDelDialog:false,
detail:{},
visible:false,
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"}],
shareVisible:false, //分享弹层
wishes:[]
},
// 分享微信
shareWx(){
console.log('分享微信')
},
showShare(){
this.setData({
shareVisible:!this.data.shareVisible
})
},
go2DelDialog(){
this.setData({showDelDialog:true})
},
@ -33,6 +42,10 @@ Page({
icon: 'none',
duration: 1000
})
this.getMyWish()
this.setData({
visible: false
})
}
}).catch((err)=>{
console.log(err);
@ -64,8 +77,8 @@ Page({
})
},
go2WishDetail(e){/**查看愿望详情 */
this.setData({visible:true,detail:e.target.dataset.wish})
this.setData({detail:e.target.dataset.wish})
this.setData({visible:true,detail:e.currentTarget.dataset.wish})
this.setData({detail:e.currentTarget.dataset.wish})
},
onVisibleChange(e) {
this.setData({
@ -80,7 +93,7 @@ Page({
},
getMyWish(){
req.getRequest('/api/user/curt/lover/wish',{}).then((res)=>{
console.log(res)
console.log(res,'11111111')
if(res.data.code==200){
this.setData({wishes:res.data.data.records})
}
@ -143,5 +156,8 @@ Page({
*/
onShareAppMessage() {
},
onShareTimeline(){
}
})

@ -56,14 +56,13 @@
left: -48rpx;
top: 232rpx;
width: 880rpx;
height: 1270rpx;
height: 1370rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://oss.wish.ydxxkj.top/xy/xycbg3.png);
}
.boxitem{
margin-left: 16px;
margin: 0 auto;
top: 104px;
width: 343px;
height: 94px;
@ -104,13 +103,13 @@
.qwsjbox{
float:initial;
margin-left: 174rpx;
top: 153px;
width: 143px;
height: 17px;
color: rgba(108, 108, 108, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
top: 306rpx;
width: 286rpx;
height: 34rpx;
color: rgba(108, 108, 108, 1);
font-size: 12px;
text-align: left;
font-family: SourceHanSansSC-regular;
}
.wczt{
@ -151,10 +150,10 @@ font-family: SourceHanSansSC-regular;
}
.popbox{
position: absolute;
left: 33px;
top: 83px;
width: 310px;
height: 540px;
left: 66rpx;
top: 166rpx;
width: 620rpx;
height: 1080rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://oss.wish.ydxxkj.top/xy/detailbkg.png);
@ -162,61 +161,61 @@ font-family: SourceHanSansSC-regular;
.yximg{
position: absolute;
left: 73px;
top: 165px;
width: 230px;
height: 154px;
left: 146rpx;
top: 330rpx;
width: 460rpx;
height: 308rpx;
border-radius: 10px;
background-color: #767686;
}
.ywwz{
position: absolute;
left: 164px;
top: 353px;
width: 48px;
height: 33px;
color: rgba(248, 99, 42, 1);
font-size: 24px;
text-align: left;
font-family: SourceHanSansSC-bold;
left: 328rpx;
top: 706rpx;
/* width: 96rpx; */
height: 66rpx;
color: rgba(248, 99, 42, 1);
font-size: 48rpx;
text-align: left;
font-family: SourceHanSansSC-bold;
}
.ywxq{
position: absolute;
left: 91px;
top: 399px;
width: 194px;
height: 150rpx;
color: rgba(108, 108, 108, 1);
font-size: 18px;
text-align: center;
font-family: SourceHanSansSC-regular;
left: 182rpx;
top: 798rpx;
width: 388rpx;
height: 150rpx;
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.qwsj{
position: absolute;
left: 140px;
top: 490px;
width: 96px;
height: 33px;
color: rgba(248, 99, 42, 1);
font-size: 24px;
text-align: center;
font-family: SourceHanSansSC-regular;
left: 280rpx;
top: 980rpx;
/* width: 192rpx; */
height: 66rpx;
color: rgba(248, 99, 42, 1);
font-size: 48rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.qwsjtxt{
position: absolute;
left: 125px;
top: 536px;
width: 127px;
height: 25px;
color: rgba(108, 108, 108, 1);
font-size: 18px;
text-align: center;
font-family: SourceHanSansSC-regular;
left: 250rpx;
top: 1072rpx;
width: 254rpx;
height: 50rpx;
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.yqq{/*圆圈*/
border-radius: 64rpx;
border-radius: 50%;
position: absolute;
width: 60px;
height:60px;
@ -234,16 +233,16 @@ font-family: SourceHanSansSC-regular;
border-radius: 64rpx;
position: absolute;
left: 21px;
top: 644px;
width: 60px;
height: 60px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
color: rgba(16, 16, 16, 1);
font-size: 12px;
text-align: center;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
font-family: Arial;
border: 3px solid rgba(255, 255, 255, 1);
top: 644px;
width: 60px;
height: 60px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
color: rgba(16, 16, 16, 1);
font-size: 12px;
text-align: center;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
font-family: Arial;
border: 3px solid rgba(255, 255, 255, 1);
}
.ywcczk{
@ -251,13 +250,20 @@ border: 3px solid rgba(255, 255, 255, 1);
height:192rpx;
top:1290rpx;
width:750rpx;
display: flex;
justify-content: center;
}
.anwz1{
position: absolute;
width:120rpx;
width: 120rpx;
height: 192rpx;
margin-right: 40rpx;
}
.anwz1:last-child {
margin-right: 0;
}
.anwztxt1{
position: absolute;
width:120rpx;
@ -274,21 +280,99 @@ border: 3px solid rgba(255, 255, 255, 1);
width: 42px;
height: 42px;
}
.sc1{
margin-left: 42rpx;
.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;
}
.xg1{
margin-left: 112px;
.popup-main .main-box .box-item .item-text {
font-size: 12px;
color: #A2A2A2;
}
.cyan {
background-color: #A8E450 !important;
}
.wc1{
margin-left: 203px;
.orange {
background-color: #FF9900 !important;
}
.fx1{
margin-left: 294px;
.blue {
background-color: #3CCDFF !important;
}
.sc2{
margin-left: 112px;
.yellow {
background-color: #FFCE41 !important;
}
.fx2{
margin-left: 203px;
.cyan {
background-color: #A8E450 !important;
}
.all-img {
position: absolute;
top: 192rpx;
left: 336rpx;
width: 80rpx;
height: 64rpx;
z-index: 1;
}
.all-img-processing {
position: absolute;
top: 192rpx;
left: 336rpx;
width: 80rpx;
height: 64rpx;
z-index: 1;
}

@ -11,7 +11,6 @@ Page({
detail:{},
visible:false,
shareVisible:false, //分享弹层
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:[]
},
// 分享微信

@ -59,7 +59,6 @@
height: 1370rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://oss.wish.ydxxkj.top/xy/xycbg3.png);
}
.boxitem{

@ -14,7 +14,7 @@
display: flex;
flex-direction: column;
align-items: center;
background-image: url(https://oss.wish.ydxxkj.top/xy/bkg.png);
background-image: url(https://oss.wish.ydxxkj.top/xy/index-bgc.png);
background-repeat: no-repeat;
background-size: contain;
}

@ -10,35 +10,14 @@
"list": [
{
"name": "",
"pathName": "pages/xz/index",
"pathName": "pages/home/jl/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/xx/lindex/lxz/lxz",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/xx/xz/xz",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/xz/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/me/indexx",
"pathName": "pages/home/xx/lindex/lindex",
"query": "",
"launchMode": "default",
"scene": null

Loading…
Cancel
Save