wk-dev
Wkang921 2 years ago
parent 4284fee34e
commit 8343976940

@ -13,7 +13,9 @@ Page({
hasLover:false,// 是否单身 hasLover:false,// 是否单身
userInfo:{}, userInfo:{},
Send:false, Send:false,
SendScs:false SendScs:false,
isBoundLove: false,
mac:''
}, },
closeSend(){ closeSend(){
@ -39,28 +41,42 @@ Page({
}) })
}, },
doQueryInit(){ doQueryInit(){
req.getRequest('/api/user/curt',{}).then((res)=>{ // 获取个人信息
if(res.data.code==200){ req.getRequest('/api/user/curt',{}).then(res => {
this.setData({hasLover:res.data.data.hasLover}) if (res.data.code === 200) {
this.setData({userInfo:res.data.data}) const userInfo = res.data.data
if(res.data.data.hasLover){
wx.navigateTo({ // 是单身显示当前页面
url: '/pages/home/xx/lindex/lindex' if (!userInfo.hasLover) {
}) this.setData({hasLover: true})
} }
// 绑定情侣判断
if (this.data.mac) {
if (userInfo.hasLover) {
return this.setData({isBoundLove:true})
}else{
return this.bandingLove()
} }
}).catch((err)=>{ }
console.log(err);
// 是情侣页面跳转
if (userInfo.hasLover) {
wx.redirectTo({
url: '/pages/home/xx/lindex/lindex'
}) })
}
req.getRequest('/api/user/curt/lover',{}).then((res)=>{ this.setData({
if(res.data.code==200){ userInfo: userInfo
this.setData({loverInfo:res.data.data}) })
} }
}).catch((err)=>{
console.log(err);
}) })
}, },
// 关闭分享成功弹层 // 关闭分享成功弹层
closeScsBtn(){ closeScsBtn(){
@ -69,10 +85,41 @@ Page({
}) })
}, },
closeBoundLove(){
this.setData({
isBoundLove:false,
mac: ''
})
wx.switchTab({
url: '/pages/home/jl/index'
})
},
// 绑定情侣
bandingLove(){
req.patchRequest('/api/user/curt/lover/binding',{
mac: this.data.mac
}).then(res => {
this.setData({mac: ''}),
this.doQueryInit()
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
// 获取绑定情侣的mac
if (options.mac) {
// 判断是否登入
const token = wx.getStorageSync('token')
if (token) {
this.setData({mac : options.mac})
}else{
wx.redirectTo({
url: '/pages/index/index?loveMac=' + options.mac
})
}
}
this.doQueryInit() this.doQueryInit()
}, },
@ -122,10 +169,15 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
const mac = wx.getStorageSync('mac-key')
console.log(mac,'111');
this.setData({ this.setData({
Send: false, Send: false,
SendScs: true SendScs: true
}) })
return {
path: '/pages/home/xx/index?mac=' + mac
}
}, },
toSend(){ toSend(){
wx.navigateTo({ wx.navigateTo({

@ -1,5 +1,5 @@
<!--pages/home/xx/index.wxml--> <!--pages/home/xx/index.wxml-->
<view class="bkg" wx:if="{{!hasLover}}"> <view class="bkg" wx:if="{{hasLover}}">
<view class="xzt"></view> <view class="xzt"></view>
<view class="fgx"></view> <view class="fgx"></view>
<view class="xzbtn" bindtap="toSend"></view> <view class="xzbtn" bindtap="toSend"></view>
@ -38,3 +38,18 @@
<button class="btn" bindtap="closeScsBtn">好的</button> <button class="btn" bindtap="closeScsBtn">好的</button>
</view> </view>
</view> </view>
<!-- 已绑定情侣弹层 -->
<view class="openSend" wx:if="{{isBoundLove}}">
<view class="openSend-main">
<view class="openSend-main-img">
</view>
<view class="openSend-main-text6">您已绑定情侣</view>
<view class="openSend-main-text7">不可多次绑定</view>
<view class="openSend-main-text8">需要绑定其他人</view>
<view class="openSend-main-text9">需要先与当前用户解绑</view>
</view>
<view class="openSend-btn">
<button class="btn" bindtap="closeBoundLove">好的</button>
</view>
</view>

@ -614,3 +614,41 @@ font-family: SourceHanSansSC-regular;
align-items: center; align-items: center;
margin-top: 20rpx; margin-top: 20rpx;
} }
.openSend-main-text6 {
width: 100%;
display: flex;
justify-content: center;
color: rgba(248, 99, 42, 1);
font-size: 24px;
margin-top: 80rpx;
font-weight: 700;
}
.openSend-main-text7 {
width: 100%;
display: flex;
justify-content: center;
color: rgba(248, 99, 42, 1);
font-size: 24px;
margin-top: 10rpx;
font-weight: 700;
}
.openSend-main-text8 {
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
display: flex;
justify-content: center;
align-items: center;
margin-top: 42rpx;
}
.openSend-main-text9 {
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
display: flex;
justify-content: center;
align-items: center;
margin-top: 10rpx;
}

@ -1,6 +1,4 @@
<!--pages/home/xx/lindex/lindex.wxml 星讯:非情侣页面--> <!--pages/home/xx/lindex/lindex.wxml 星讯:非情侣页面-->
<view catchtap="allTap" class="allTap">
<!-- 头部导航 --> <!-- 头部导航 -->
<view class="allTap-header"> <view class="allTap-header">
<view class="hybtn" bindtap="go2Huiyi">回忆</view> <view class="hybtn" bindtap="go2Huiyi">回忆</view>
@ -8,6 +6,8 @@
<view class="title">星讯</view> <view class="title">星讯</view>
</view> </view>
<view catchtap="allTap" class="allTap">
<!--聊天内容-可以滑动--> <!--聊天内容-可以滑动-->
<view class="ltinfo"> <view class="ltinfo">
@ -104,7 +104,7 @@
<!--对方发的消息--> <!--对方发的消息-->
<view wx:if="{{!item.isSelf}}" > <view wx:if="{{!item.isSelf}}" >
<!--图片信息--> <!--图片信息-->
<view wx:if="{{item.type=='graphic'}}" class="zjtableatp2"> <view wx:if="{{item.type=='graphic'}}" class="zjtableatp3">
<view class="zttp12" wx:if="{{item.type=='graphic'}}"> <view class="zttp12" wx:if="{{item.type=='graphic'}}">
<t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框--> <t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框-->
<!-- <view class="zjxftp3"></view> --> <!-- <view class="zjxftp3"></view> -->
@ -223,10 +223,24 @@
</t-popup> </t-popup>
<!--录音弹窗--> <!--录音弹窗-->
<t-popup visible="{{luyinVisible}}" bind:visible-change="onVisibleChange" placement="bottom"> <view class="luying-box" wx:if="{{luyinVisible}}">
<!-- <t-popup visible="{{luyinVisible}}" bind:visible-change="onVisibleChange" placement="bottom"> -->
<view class="luyinblock"> <view class="luyinblock">
<view class="header">
<view class="qxly" aria-role="button" bindtap="quxiaoLuyin">取消</view>
<view class="qrfs qrfs1" aria-role="button" wx:if="{{luYinStatus!=2}}">发送</view>
<view class="qrfs qrfs2" aria-role="button" wx:if="{{luYinStatus==2}}" bindtap="do2FsLuyin">发送</view>
</view>
<!--计时器--> <!--计时器-->
<view class="luyinjishiqi">{{dsQTime}}</view> <view class="luyinjishiqi">{{dsQTime}}</view>
<!--轮播图位置-->
<view class="luyinlbt" wx:if="{{luYinStatus==1}}">
<view class="box2" style="float: left; height: 50rpx; width: 1000px; " >
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 50rpx;width: 50rpx;" src="https://wish-assets.windymuse.com.cn/xy/lylbt.png" mode=""/>
</view>
</view>
<view class="luyinlbt1" wx:if="{{luYinStatus!=1}}"></view>
<!--录音按钮--> <!--还没有开始--> <!--录音按钮--> <!--还没有开始-->
<view class="weiluyinanniu" wx:if="{{luYinStatus==0}}" bindtap="doStartLuyin"> <view class="weiluyinanniu" wx:if="{{luYinStatus==0}}" bindtap="doStartLuyin">
<view class="wlyan1" ></view> <view class="wlyan1" ></view>
@ -243,23 +257,9 @@
<view class="weiluyinanniu" wx:if="{{luYinStatus==3}}" bindtap="doStopListen"> <view class="weiluyinanniu" wx:if="{{luYinStatus==3}}" bindtap="doStopListen">
<view class="wlyan4"></view> <view class="wlyan4"></view>
</view> </view>
<!--轮播图位置-->
<view class="luyinlbt" wx:if="{{luYinStatus==1}}">
<view class="box2" style="float: left; height: 50rpx; width: 1000px; " >
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 50rpx;width: 50rpx;" src="https://wish-assets.windymuse.com.cn/xy/lylbt.png" mode=""/>
</view>
</view>
<view class="luyinlbt1" wx:if="{{luYinStatus!=1}}">
</view>
<view class="lyhx"></view>
<view class="header">
<view class="qxly" aria-role="button" bindtap="quxiaoLuyin">取消</view>
<view class="qrfs qrfs1" aria-role="button" wx:if="{{luYinStatus!=2}}">发送</view>
<view class="qrfs qrfs2" aria-role="button" wx:if="{{luYinStatus==2}}" bindtap="do2FsLuyin">发送</view>
</view> </view>
<!-- </t-popup> -->
</view> </view>
</t-popup>
<popover id='popover'> <popover id='popover'>

@ -6,6 +6,9 @@
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-top: 224rpx;
box-sizing: border-box;
overflow: hidden;
} }
.allTap-header { .allTap-header {
@ -59,7 +62,8 @@
.ltinfo{ .ltinfo{
width: 100%; width: 100%;
margin-top: 224rpx; height: 100%;
overflow-y: scroll;
} }
.bkgfs{ .bkgfs{
@ -599,6 +603,16 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
} }
.zjtableatp2{ .zjtableatp2{
width: 100%;
height: 150rpx;
padding: 0 32rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-start;
}
.zjtableatp3{
width: 100%; width: 100%;
height: 220rpx; height: 220rpx;
padding: 0 32rpx; padding: 0 32rpx;
@ -759,10 +773,15 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
display: block; display: block;
} }
.header { .luying-box .header {
width: 100%;
height: 74rpx;
padding: 0 36rpx;
box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
height: 116rpx; justify-content: space-between;
border-bottom: 2rpx solid #E9E9E8;
} }
.btn { .btn {
@ -784,22 +803,19 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
max-width: 500rpx; max-width: 500rpx;
} }
.luyinblock{ .luyinblock{
left: 0px; /* left: 0px;
top: 547px; top: 547px; */
width: 375px; width: 100%;
height: 231px; height: 462rpx;
line-height: 20px; line-height: 20px;
border-radius: 10px 10px 0px 0px; border-radius: 10px 10px 0px 0px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
color: rgba(16, 16, 16, 1); color: rgba(16, 16, 16, 1);
font-size: 14px; font-size: 28rpx;
text-align: center; text-align: center;
font-family: Arial; font-family: Arial;
} }
.qxly{ .qxly{
position: absolute;
left: 32rpx;
top: 12rpx;
width: 64rpx; width: 64rpx;
height: 50rpx; height: 50rpx;
color: rgba(108, 108, 108, 1); color: rgba(108, 108, 108, 1);
@ -808,9 +824,6 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
font-family: SourceHanSansSC-regular; font-family: SourceHanSansSC-regular;
} }
.qrfs{ .qrfs{
position: absolute;
left: 650rpx;
top: 12rpx;
width: 64rpx; width: 64rpx;
height: 50rpx; height: 50rpx;
font-size: 32rpx; font-size: 32rpx;
@ -823,29 +836,18 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
.qrfs2{ .qrfs2{
color: rgba(108, 108, 108, 1); color: rgba(108, 108, 108, 1);
} }
.lyhx{
position: absolute;
left: 0px;
top: 72rpx;
width: 100%;
height: NaNpx;
border: 1px solid rgba(233, 233, 232, 1);
}
.luyinjishiqi{ .luyinjishiqi{
position: absolute; width: 100%;
left: 286rpx; height: 128rpx;
top: 114rpx;
width: 180rpx;
height: 44rpx;
color: rgba(108, 108, 108, 1); color: rgba(108, 108, 108, 1);
font-size: 32rpx; font-size: 32rpx;
text-align: center; display: flex;
font-family: SourceHanSansSC-regular; justify-content: center;
align-items: center;
} }
.weiluyinanniu{ .weiluyinanniu{
position: absolute; margin: 0 auto;
left: 316rpx; margin-top: 42rpx;
top: 300rpx;
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
border-radius: 50%; border-radius: 50%;
@ -857,9 +859,6 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
border: 3px solid rgba(255, 255, 255, 1); border: 3px solid rgba(255, 255, 255, 1);
} }
.wlyan1{ .wlyan1{
position: absolute;
left: 15rpx;
top: 15rpx;
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
border-radius: 45rpx; border-radius: 45rpx;
@ -868,14 +867,9 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
text-align: center; text-align: center;
} }
.luyinlbt{ .luyinlbt{
position: absolute;
width: 750rpx; width: 750rpx;
height: 50rpx; height: 50rpx;
top:198rpx;
overflow: hidden; overflow: hidden;
/* scroll-snap-type: x mandatory;
scroll-snap-align: start; */
} }
.box2{ .box2{
animation: move 5s infinite linear; animation: move 5s infinite linear;
@ -900,9 +894,6 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
animation-play-state: paused; animation-play-state: paused;
} */ } */
.wlyan2{ .wlyan2{
position: absolute;
left: 30rpx;
top: 30rpx;
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
line-height: 17px; line-height: 17px;
@ -912,34 +903,20 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
} }
.wlyan3{ .wlyan3{
/* position: absolute;
left: 40rpx;
top: 20rpx; */
width: 70rpx; width: 70rpx;
height: 70rpx; height: 70rpx;
/* border-top: 50rpx solid transparent;
border-left: 60rpx solid rgba(248,99,42,1);
border-bottom: 35rpx solid transparent; */
background-size: cover; background-size: cover;
background-image: url(https://wish-assets.windymuse.com.cn/xy/if-ui-play%20Copy%401x.png); background-image: url(https://wish-assets.windymuse.com.cn/xy/if-ui-play%20Copy%401x.png);
} }
.wlyan4{ .wlyan4{
/* position: absolute;
left: 40rpx;
top: 20rpx; */
width: 70rpx; width: 70rpx;
height: 70rpx; height: 70rpx;
/* border-top: 50rpx solid transparent;
border-left: 60rpx solid rgba(248,99,42,1);
border-bottom: 35rpx solid transparent; */
background-size: cover; background-size: cover;
background-image: url(https://wish-assets.oss-cn-hangzhou.aliyuncs.com/xy/semiDesign.png); background-image: url(https://wish-assets.oss-cn-hangzhou.aliyuncs.com/xy/semiDesign.png);
} }
.luyinlbt1{ .luyinlbt1{
position: absolute;
width: 750rpx; width: 750rpx;
height: 50rpx; height: 50rpx;
top:198rpx;
overflow: hidden; overflow: hidden;
background-image: url(https://wish-assets.windymuse.com.cn/xy/lylbt.png); background-image: url(https://wish-assets.windymuse.com.cn/xy/lylbt.png);
} }
@ -1141,5 +1118,15 @@ background-image: url(https://wish-assets.windymuse.com.cn/xy/xtreturn.png);
font-size: 14px!important; font-size: 14px!important;
text-align: left; text-align: left;
font-family: SourceHanSansSC-regular; font-family: SourceHanSansSC-regular;
}
.luying-box {
position: absolute;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
background-color: rgba(255, 255, 255, 0.9);
z-index: 99999;
} }

@ -13,8 +13,25 @@ Page({
visible:false, visible:false,
shareVisible:false, //分享弹层 shareVisible:false, //分享弹层
wishes:[], wishes:[],
showCanvas: true showCanvas: true,
ywUrl: '' //愿望链接
}, },
// 复制链接
handerCopy(){
if (this.data.ywUrl) {
wx.setClipboardData({
data: this.data.ywUrl,
success() {
wx.showToast({
title: '已复制',
icon: 'success',
duration: 1500
});
}
});
}
},
// 分享微信 // 分享微信
shareWx(){ shareWx(){
console.log('分享微信') console.log('分享微信')
@ -192,8 +209,29 @@ startDraw() {
}) })
}, },
go2WishDetail(e){/**查看愿望详情 */ go2WishDetail(e){/**查看愿望详情 */
this.setData({visible:true,detail:e.currentTarget.dataset.wish}) const status = e.currentTarget.dataset.wish.status
this.setData({detail:e.currentTarget.dataset.wish}) // 获取分享链接
if (status === 'processing') {
const token = wx.getStorageSync('token')
req.postRequest('/api/v1/wx/generate-url-link',{
path: '/pages/home/xyc/tdyw/tdyw',
query: `token=${token}`
}).then(res => {
console.log(res);
if (res.data.code === 200) {
this.setData({
ywUrl : res.data.data.urlLink,
visible:true,detail:e.currentTarget.dataset.wish,
detail:e.currentTarget.dataset.wish
})
}
})
}else {
this.setData({
visible:true,detail:e.currentTarget.dataset.wish,
detail:e.currentTarget.dataset.wish
})
}
}, },
onVisibleChange(e) { onVisibleChange(e) {
this.setData({ this.setData({
@ -221,7 +259,12 @@ startDraw() {
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
if (options.token) {
wx.setStorageSync('token', options.token)
this.getMyWish() this.getMyWish()
}else {
this.getMyWish()
}
}, },
/** /**

@ -2,6 +2,8 @@
"usingComponents": { "usingComponents": {
"t-image": "tdesign-miniprogram/image/image", "t-image": "tdesign-miniprogram/image/image",
"t-popup": "tdesign-miniprogram/popup/popup", "t-popup": "tdesign-miniprogram/popup/popup",
"t-dialog": "tdesign-miniprogram/dialog/dialog" "t-dialog": "tdesign-miniprogram/dialog/dialog",
"t-input": "tdesign-miniprogram/input/input",
"t-icon": "tdesign-miniprogram/icon/icon"
} }
} }

@ -50,7 +50,7 @@
<canvas canvas-id="myCanvas" class="myCanvas" wx:if="{{showCanvas}}"></canvas> <canvas canvas-id="myCanvas" class="myCanvas" wx:if="{{showCanvas}}"></canvas>
<view id="my-canvas" class="my_canvas" bindtap="changeVisible"> <view id="my-canvas" class="my_canvas" bindtap="changeVisible">
<image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/ywc.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/ywc.png" wx:if="{{detail.status=='completed'}}"></image> <image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/ywc.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/ywc.png" wx:if="{{detail.status=='completed'}}"></image>
<image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/jxzdt.gif" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/jxzdt.gif" wx:if="{{detail.status=='processing'}}"></image> <image class="logosta my_draw_canvas" src="https://oss.wish.ydxxkj.top/xy/jt.gif" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/jxzdt.gif" wx:if="{{detail.status=='processing'}}"></image>
<image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/ygq.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/ygq.png" wx:if="{{detail.status=='expired'}}"></image> <image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/ygq.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/ygq.png" wx:if="{{detail.status=='expired'}}"></image>
<image class="popbox my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/detailbkg.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/detailbkg.png"/> <image class="popbox my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/detailbkg.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/detailbkg.png"/>
<view class="yximg-box my_draw_canvas" data-type="image" data-url="{{detail.img}}"> <view class="yximg-box my_draw_canvas" data-type="image" data-url="{{detail.img}}">
@ -63,25 +63,19 @@
</view> </view>
</view> </view>
<!--进行中按钮展示-->
<view class="ywcczk" wx:if="{{detail.status=='processing'}}"><!--进行中按钮展示--> <view class="ywcczk1" wx:if="{{detail.status=='processing'}}">
<view class="anwz1"> <t-input class="ywcczk-input" value="{{ywUrl}}" disabled align="center"/>
<view class="yqq"></view> <view class="ywcczk-btn">
<view class="anwztxt1">修改</view> <view class="btn" bindtap="handerCopy">
<t-image class="anzmlogo1" src="https://wish-assets.windymuse.com.cn/xy/lxg.png"></t-image> <image src="https://wish-assets.oss-cn-hangzhou.aliyuncs.com/xy/semiDesign-semi-icons-link.png" />
</view>
<view class="anwz1">
<view class="yqq" bindtap="doFinishWish"></view>
<view class="anwztxt1" >已达成</view>
<t-image bindtap="doFinishWish" class="anzmlogo1" src="https://wish-assets.windymuse.com.cn/xy/lydc.png"></t-image>
</view> </view>
<view class="anwz1" bindtap="showShare"> <view class="text">愿望链接,点击复制</view>
<view class="yqq"></view>
<view class="anwztxt1">分享</view>
<t-image class="anzmlogo1" src="https://wish-assets.windymuse.com.cn/xy/lfc.png"></t-image>
</view> </view>
</view> </view>
<view class="ywcczk" wx:if="{{detail.status=='completed'}}"><!--已完成按钮展示-->
<!--已完成按钮展示-->
<view class="ywcczk" wx:if="{{detail.status=='completed'}}">
<view class="anwz1" bindtap="showShare"> <view class="anwz1" bindtap="showShare">
<view class="yqq"></view> <view class="yqq"></view>
<view class="anwztxt1">分享</view> <view class="anwztxt1">分享</view>
@ -105,7 +99,7 @@
<view class="main-top"> <view class="main-top">
<view></view> <view></view>
<view class="text">分享到</view> <view class="text">分享到</view>
<t-icon name="close" size="32" bindtap="showShare"/> <t-icon name="close" size="32" catchtap="showShare"/>
</view> </view>
<view class="main-box"> <view class="main-box">
<view class="box-item"> <view class="box-item">

@ -408,3 +408,60 @@
width: 620rpx; width: 620rpx;
height: 1080rpx; height: 1080rpx;
} }
.ywcczk1{
position: absolute;
height:192rpx;
top:1290rpx;
width:750rpx;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.ywcczk-input {
width: 496rpx !important;
height: 70rpx !important;
padding: 0 !important;
flex: none !important;
border: 2rpx solid #EFEFEF;
border-radius: 20rpx;
background-color: rgba(255, 255, 255, 1);
font-size: 28rpx;
color: #000000 !important;
}
.ywcczk-btn {
width: 100%;
height: 84rpx;
margin-top: 32rpx;
display: flex;
align-items: center;
justify-content: center;
}
.ywcczk-btn .btn {
width: 84rpx;
height: 84rpx;
border-radius: 50%;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
box-shadow: 0px 4rpx 12rpx 0px rgba(0, 0, 0, 0.4);
border: 6rpx solid rgba(255, 255, 255, 1);
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.ywcczk-btn .btn image {
width: 50rpx;
height: 50rpx;
}
.ywcczk-btn .text {
margin-left: 32rpx;
color: rgba(108, 108, 108, 1);
font-size: 28rpx;
}

@ -7,13 +7,26 @@ import WxmpRsa from 'wxmp-rsa'
Page({ Page({
data: { data: {
showFail: false
}, },
// 此处为周期事件 // 此处为周期事件
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
closeShowFail(){
this.setData({
showFail: false
})
},
onLoad(options) { onLoad(options) {
// 绑定情侣时为未登入状态
if (options.loveMac) {
this.setData({
showFail: true
})
}
if(options&&options.sn&&options.sn!=null&&options.sn!=''){ if(options&&options.sn&&options.sn!=null&&options.sn!=''){
console.log('有数据'+options.sn) console.log('有数据'+options.sn)
wx.showToast({ wx.showToast({

@ -15,3 +15,17 @@
</view> </view>
<t-toast id="t-toast" /> <t-toast id="t-toast" />
<!-- 绑定情侣未登入弹层 -->
<view class="binding-fail" wx:if="{{showFail}}">
<view class="binding-top">
<view class="top-img"></view>
<view class="top-text1">绑定失败</view>
<view class="top-text2">需要先唤醒精灵</view>
<view class="top-text3">绑定情侣用户需要先使用</view>
<view class="top-text4">晶石设备唤醒精灵</view>
</view>
<view class="binding-btm">
<view class="btm-btn">获取晶石</view>
<view class="btm-btn" bindtap="closeShowFail">好的</view>
</view>
</view>

@ -97,3 +97,91 @@
background-size:100% 100%; background-size:100% 100%;
background-image: url(https://wish-assets.windymuse.com.cn/xy/yx.png); background-image: url(https://wish-assets.windymuse.com.cn/xy/yx.png);
} }
.binding-fail {
position: relative;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.9);
z-index: 1;
display: flex;
align-items: center;
flex-direction: column;
}
.binding-top {
width: 620rpx;
height: 1080rpx;
margin-top: 188rpx;
background-size: cover;
background-image: url(https://wish-assets.windymuse.com.cn/xy/%E7%BB%91%E5%AE%9A%E6%83%85%E4%BE%A3%E8%83%8C%E6%99%AF.png);
}
.top-img {
width: 404rpx;
height: 404rpx;
margin: 0 auto;
margin-top: 110rpx;
background-size: cover;
background-image: url(https://wish-assets.windymuse.com.cn/xy/%E9%92%BB%E7%9F%B3.png);
}
.top-text1 {
width: 100%;
margin-top: 52rpx;
display: flex;
justify-content: center;
color: rgba(248, 99, 42, 1);
font-size: 48rpx;
font-weight: 700;
}
.top-text2 {
width: 100%;
margin-top: 10rpx;
display: flex;
justify-content: center;
color: rgba(248, 99, 42, 1);
font-size: 48rpx;
font-weight: 700;
}
.top-text3 {
width: 100%;
margin-top: 42rpx;
display: flex;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
}
.top-text4 {
width: 100%;
margin-top: 10rpx;
display: flex;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 36rpx;
}
.binding-btm {
width: 100%;
margin-top: 42rpx;
display: flex;
justify-content: space-evenly;
}
.btm-btn {
width: 210rpx;
height: 70rpx;
border-radius: 20rpx;
background: linear-gradient(233.49deg, rgba(248,99,42,1) 10.48%,rgba(249,135,89,1) 89.2%);
text-align: center;
box-shadow: 0px 4rpx 12rpx 0px rgba(0, 0, 0, 0.4);
border: 6rpx solid rgba(255, 255, 255, 1);
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}

@ -10,7 +10,7 @@
"list": [ "list": [
{ {
"name": "", "name": "",
"pathName": "pages/home/me/indexx", "pathName": "pages/home/xx/index",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null

Loading…
Cancel
Save