main
Wkang921 2 years ago
parent ca996b2e56
commit 5d41aaa4a6

@ -41,6 +41,15 @@ Page({
Preview: false Preview: false
}) })
}, },
leavetext(){
console.log('离开了');
if (this.data.img !== '' || this.data.duration !== '') {
this.setData({
showImg: true,
showLtqp: true
})
}
},
already(){ already(){
console.log('确定寄出'); console.log('确定寄出');
this.setData({showAlready:true}) this.setData({showAlready:true})
@ -297,6 +306,12 @@ Page({
}) })
} }
}) })
// wx.showToast({
// title: 'ok了',
// })
},
modify(){
this.setData({showAlready: false, showSend: false})
}, },
getLetter(){ getLetter(){
console.log('获取当前用户信札内容'); console.log('获取当前用户信札内容');

@ -18,7 +18,7 @@
</view> </view>
</view> </view>
<view class="xinfo-main" bindtap="writeLetters"> <view class="xinfo-main" bindtap="writeLetters">
<t-textarea model:value="{{content}}" maxlength="300" placeholder="信件正文" /> <t-textarea bindblur="leavetext" model:value="{{content}}" maxlength="300" placeholder="信件正文" />
</view> </view>
<view class="{{Preview ? 'xinfo-ltqp-yl' : 'xinfo-ltqp'}}" wx:if="{{showLtqp}}"> <view class="{{Preview ? 'xinfo-ltqp-yl' : 'xinfo-ltqp'}}" wx:if="{{showLtqp}}">
<image src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/ltqp.png"></image> <image src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/ltqp.png"></image>
@ -107,7 +107,7 @@
<view class="already-text2">点击OK回到未激活初始页面</view> <view class="already-text2">点击OK回到未激活初始页面</view>
<view class="already-text2">如果误打开信件,需要再次寄出哦!</view> <view class="already-text2">如果误打开信件,需要再次寄出哦!</view>
<view class="already-btn"> <view class="already-btn">
<view class="btn">修改</view> <view class="btn" bindtap="modify">修改</view>
<view class="btn" bindtap="logout">OK</view> <view class="btn" bindtap="logout">OK</view>
</view> </view>
</view> </view>

@ -561,4 +561,5 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #fff; color: #fff;
z-index: 999;
} }

@ -43,7 +43,7 @@
<image src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/md-more_horiz%20Copy%401x.png" /> <image src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/md-more_horiz%20Copy%401x.png" />
</view> </view>
<view class="btm-img-more modify" wx:if="{{showMore}}" bindtap="openDel">烧毁</view> <view class="btm-img-more modify" wx:if="{{showMore}}" bindtap="openDel">烧毁</view>
<view class="btm-img-more del" wx:if="{{showMore}}">修改</view> <!-- <view class="btm-img-more del" wx:if="{{showMore}}">修改</view> -->
</view> </view>
</view> </view>

@ -73,6 +73,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #fff; color: #fff;
z-index: 999;
} }
.body { .body {

@ -28,6 +28,20 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "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
} }
] ]
} }

Loading…
Cancel
Save