main
Wkang921 3 years ago
parent 34af96c41e
commit 7c52a50e99

@ -186,10 +186,10 @@ Page({
energy: Math.floor(TimeDiff / 360000)
})
const pendantEnergy = res.data.data.pendantEnergy
const pendantEnergy = res.data.data.crystallineEnergy
const hours = Math.floor(pendantEnergy * 6 / 60); // 计算小时数
const minute = pendantEnergy * 6 - hours * 60
console.log(pendantEnergy);
console.log(pendantEnergy, '11111');
if(hours>0){
this.setData({
minutes:59

@ -167,7 +167,7 @@
</view>
</view>
<view class="timing">
<view class="timing-title">你还有{{userInfo.pendantEnergy}}%水晶能量,可为对方祈祷{{hours}}小时{{minute}}分</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">

@ -9,46 +9,47 @@
<view class="hydqr" wx:if="{{userInfo.isChatVip}}"> 还有21天到期</view><!--会员图标-->
<view class="gnk">
<view class="smst" >说明书</view><!--说明书文字-->
<view class="jrsqt">加入社群</view><!--加入社群文字-->
<view class="wdsbt">我的设备</view><!--我的设备文字-->
<view class="smst" >说明书</view>
<view class="jrsqt">加入社群</view>
<view class="wdsbt">我的设备</view>
<view class="sx"></view>
<view class="circle k1" bindtap="go2Manual"><!--框1-->
<view class="circle k1" bindtap="go2Manual">
<view class="sms"></view>
</view>
<view class="circle k2" bindtap="go2Device"><!--框2-->
<view class="circle k2" bindtap="go2Device">
<view class="sq"></view>
</view>
<view class="circle k3" bindtap="go2Sq"><!--框3-->
<view class="circle k3" bindtap="go2Sq">
<view class="sb"></view>
</view>
</view><!--功能操作框-->
<view class="mycell" bindtap="ljXzjl" ><!--cell菜单单元格-->
<t-cell hover arrow bindtap="go2Gw">
</view>
<!--功能操作框-->
<view class="mycell" bindtap="ljXzjl" >
<!-- <t-cell hover arrow bindtap="go2Gw">
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/xzjl.png" size="50rpx"/>
<text slot="title" class="mycelltext" >了解星座精灵</text>
</t-cell>
</t-cell> -->
<t-cell hover bindtap="doBdsjh" >
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/phone.png" size="50rpx"/>
<text slot="title" class="mycelltext" >绑定手机号</text>
<text slot="note" wx:if="{{userInfo.hasPhone}}">{{userInfo.phone}}</text>
</t-cell>
<t-cell hover arrow bindtap="go2Cjwt">
<!-- <t-cell hover arrow bindtap="go2Cjwt">
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/cjwt.png" size="50rpx"/>
<text slot="title" class="mycelltext" >常见问题</text>
</t-cell>
</t-cell> -->
<t-cell hover arrow bindtap="go2Yjfk">
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/yjfk.png" size="50rpx"/>
<text slot="title" class="mycelltext" >意见反馈</text>
</t-cell>
<t-cell hover arrow bindtap="go2Yhsyxy">
<!-- <t-cell hover arrow bindtap="go2Yhsyxy">
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/yhsyxy.png" size="50rpx"/>
<text slot="title" class="mycelltext" >用户使用协议</text>
</t-cell>
<t-cell hover arrow bindtap="go2Ysxy">
</t-cell> -->
<!-- <t-cell hover arrow bindtap="go2Ysxy">
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/ysxy.png" size="50rpx"/>
<text slot="title" class="mycelltext" >隐私协议</text>
</t-cell>
</t-cell> -->
<t-cell hover>
<t-icon slot="left-icon" name="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/xcxbb.png" size="50rpx"/>
<text slot="title" class="mycelltext" >小程序版本</text>
@ -68,6 +69,7 @@
<t-dialog id="t-dialog" />
</view>
<t-popup visible="{{bdsjhVisible}}" placement="center">
<view class="bdsjh">
<view class="bdsjhm1">绑定手机号码</view>

@ -86,8 +86,8 @@
.gnk{
position: absolute;
margin-left: 32rpx;
margin-top: 412rpx;
top: 412rpx;
left: 32rpx;
width: 686rpx;
height: 234rpx;
line-height: 52rpx;
@ -104,11 +104,9 @@
position: absolute;
width: 90rpx;
height: 90rpx;
line-height: 34rpx;
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: 24rpx;
text-align: center;
font-family: Arial;
border-radius: 50%;
margin-top:42rpx;
@ -201,8 +199,8 @@
.mycell{
position: absolute;
margin-top: 720rpx;
width:730rpx;
margin-left: 10rpx;
width:100%;
/* margin-left: 10rpx; */
overflow-x:hidden;
}

@ -534,10 +534,10 @@
.shtp{
position: absolute;
left: 121px;
top: 120px;
width: 134px;
height: 134px;
left: 242rpx;
top: 240rpx;
width: 268rpx;
height: 268rpx;
border-radius: 134rpx;
line-height: 17px;
opacity: 0.5;
@ -550,10 +550,10 @@
.shimg{
position: absolute;
left: 131px;
top: 131px;
width: 113px;
height: 113px;
left: 262rpx;
top: 262rpx;
width: 226rpx;
height: 226rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/shimg.png);
@ -561,33 +561,33 @@
.shmz{
position: absolute;
top: 270px;
top: 540rpx;
width: 750rpx;
height: 24px;
height: 48rpx;
color: rgba(248, 99, 42, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-medium;
}
.sbwysbm{
position: absolute;
top: 349px;
top: 698rpx;
width: 750rpx;
height: 24px;
height: 48rpx;
color: rgba(108, 108, 108, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-medium;
}
.intr1{
position: absolute;
top: 728px;
top: 1456rpx;
width: 750rpx;
height: 18px;
height: 36rpx;
color: rgba(154, 154, 154, 1);
font-size: 12px;
font-size: 24rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
@ -595,51 +595,51 @@
.intr2{
position: absolute;
top: 746px;
top: 1492rpx;
width: 750rpx;
height: 18px;
height: 36rpx;
color: rgba(154, 154, 154, 1);
font-size: 12px;
font-size: 24rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.sbmm{
position: absolute;
top: 449px;
top: 898rpx;
width: 750rpx;
height: 18px;
height: 36rpx;
color: rgba(154, 154, 154, 1);
font-size: 12px;
font-size: 24rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.sbewmt{
position: absolute;
top: 522px;
top: 1044rpx;
width: 750rpx;
height: 24px;
height: 48rpx;
color: rgba(108, 108, 108, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-medium;
}
.sbewm{
position: absolute;
left: 113px;
top: 562px;
width: 150px;
height: 150px;
left: 226rpx;
top: 1124rpx;
width: 300rpx;
height: 300rpx;
}
.sbsbmk{
position: absolute;
left: 44px;
top: 389px;
width: 288px;
height: 44px;
line-height: 20px;
border-radius: 15px;
left: 88rpx;
top: 778rpx;
width: 576rpx;
height: 88rpx;
line-height: 40rpx;
border-radius: 30rpx;
background-color: rgba(239, 239, 239, 0.5);
text-align: center;
border: 1px solid rgba(187, 187, 187, 1);
@ -647,23 +647,23 @@ font-family: SourceHanSansSC-medium;
.sbsbmkt{
position: absolute;
left: 76px;
top: 389px;
width: 185px;
height: 44px;
line-height: 44px;
left: 152rpx;
top: 778rpx;
width: 370rpx;
height: 88rpx;
line-height: 88rpx;
color: rgba(108, 108, 108, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.fz{
position: absolute;
left: 296px;
top: 401px;
width: 20px;
height: 20px;
left: 592rpx;
top: 802rpx;
width: 40rpx;
height: 40rpx;
background-repeat: no-repeat;
background-size:100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/copy.png);

@ -122,7 +122,7 @@ Page({
},
toSend(){
wx.redirectTo({
wx.navigateTo({
url: 'xz/xz'
})
}

@ -25,12 +25,12 @@
}
.bkgfs{
position: absolute;
left: 48px;
left: 96rpx;
top: 70rpx;
width: 279px;
height: 128px;
line-height: 20px;
border-radius: 15px;
width: 558rpx;
height: 256rpx;
line-height: 40rpx;
border-radius: 30rpx;
background-color: rgba(253, 190, 196, 1);
text-align: center;
}
@ -150,14 +150,14 @@ font-family: SourceHanSansSC-regular;
.xfgjl{
position: fixed;
bottom: 30rpx;
left: 0px;
margin-top: 1416rpx;
width: 750rpx;
height: 87px;
line-height: 20px;
width: 100%;
height: 174rpx;
opacity: 0.7;
display: flex;
justify-content: space-evenly;
background-color: rgba(255, 255, 255, 1);
text-align: center;
}
.ltinfo{
@ -178,24 +178,24 @@ text-align: center;
.txl{
position: absolute;
left: 122px;
left: 244rpx;
top: 30rpx;
width: 36px;
height: 36px;
width: 72rpx;
height: 72rpx;
}
.txr{
position: absolute;
top: 30rpx;
left:434rpx;
width: 36px;
height: 36px;
width: 72rpx;
height: 72rpx;
}
.qlzjt{
position: absolute;
left: 173px;
left: 346rpx;
top: 50rpx;
width: 30px;
height: 16px;
width: 60rpx;
height: 32rpx;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/qlzjt.png);
color:#9A9A9A;
text-align: center;
@ -203,22 +203,21 @@ text-align: center;
}
.bkgfstxt{
position: absolute;
left: 28px;
left: 56rpx;
top: 74rpx;
width: 223px;
height: 73px;
width: 446rpx;
height: 146rpx;
color: rgba(255, 255, 255, 1);
font-size: 14px;
font-size: 28rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.xxqlcd{
position: absolute;
top: 32rpx;
width: 55px;
height: 55px;
border-radius: 56rpx;
/* position: absolute; */
/* top: 32rpx; */
width: 110rpx;
height: 110rpx;
border-radius: 50%;
line-height: 110rpx;
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);
@ -228,9 +227,8 @@ font-family: SourceHanSansSC-regular;
font-family: Arial;
border: 5rpx solid rgba(255, 255, 255, 1);
color: rgba(255, 255, 255, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-medium;
}
.xxqlcd1{
left: 21px;
@ -770,23 +768,22 @@ top: 727px;
}
.qxly{
position: absolute;
left: 16px;
left: 32rpx;
top: 12rpx;
width: 32px;
height: 25px;
width: 64rpx;
height: 50rpx;
color: rgba(108, 108, 108, 1);
font-size: 16px;
font-size: 32rpx;
text-align: left;
font-family: SourceHanSansSC-regular;
}
.qrfs{
position: absolute;
left: 325px;
left: 650rpx;
top: 12rpx;
width: 32px;
height: 25px;
font-size: 16px;
width: 64rpx;
height: 50rpx;
font-size: 32rpx;
text-align: left;
font-family: SourceHanSansSC-regular;
}
@ -800,31 +797,32 @@ top: 727px;
position: absolute;
left: 0px;
top: 72rpx;
width: 375px;
width: 100%;
height: NaNpx;
border: 1px solid rgba(233, 233, 232, 1);
}
.luyinjishiqi{
position: absolute;
left: 143px;
left: 286rpx;
top: 114rpx;
width: 89px;
height: 22px;
width: 180rpx;
height: 44rpx;
color: rgba(108, 108, 108, 1);
font-size: 16px;
font-size: 32rpx;
text-align: center;
font-family: SourceHanSansSC-regular;
}
.weiluyinanniu{
position: absolute;
left: 158px;
left: 316rpx;
top: 300rpx;
width: 60px;
height: 60px;
border-radius: 60rpx;
line-height: 17px;
width: 120rpx;
height: 120rpx;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 1);
text-align: center;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
}
@ -832,8 +830,8 @@ font-family: SourceHanSansSC-regular;
position: absolute;
left: 15rpx;
top: 15rpx;
width: 45px;
height: 45px;
width: 90rpx;
height: 90rpx;
border-radius: 45rpx;
line-height: 17px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
@ -874,28 +872,27 @@ font-family: SourceHanSansSC-regular;
} */
.wlyan2{
position: absolute;
left: 15px;
top: 15px;
width: 30px;
height: 30px;
left: 30rpx;
top: 30rpx;
width: 60rpx;
height: 60rpx;
line-height: 17px;
border-radius: 5px;
border-radius: 10rpx;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
text-align: center;
}
.wlyan3{
position: absolute;
/* position: absolute;
left: 40rpx;
top: 10px;
width: 35px;
height: 35px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
width: 0;
height: 0;
border-top: 50rpx solid transparent;
top: 20rpx; */
width: 70rpx;
height: 70rpx;
/* border-top: 50rpx solid transparent;
border-left: 60rpx solid rgba(248,99,42,1);
border-bottom: 35rpx solid transparent;
border-bottom: 35rpx solid transparent; */
background-size: cover;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/if-ui-play%20Copy%401x.png);
}
.luyinlbt1{
position: absolute;

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

@ -1,5 +0,0 @@
<template name="foot">
<navigator class="page-foot" openType="switchTab" url="/page/component/index" hover-class="none">
<image class="icon-foot" src="../../../../image/icon_foot.png"></image>
</navigator>
</template>

@ -1,7 +0,0 @@
<template name="head">
<view class="page-head">
<view class="page-head-title">{{title}}</view>
<view class="page-head-line"></view>
<view wx:if="{{desc}}" class="page-head-desc">{{desc}}</view>
</view>
</template>

@ -1,111 +0,0 @@
.index-hd {
padding: 80rpx;
text-align: center;
}
.index-bd {
padding: 0 30rpx 40rpx;
}
.index-ft {
padding-bottom: 20rpx;
text-align: center;
}
.index-logo {
width: 86rpx;
height: 86rpx;
}
.index-desc {
margin-top: 20rpx;
color: #888888;
font-size: 28rpx;
}
.navigator-box {
opacity: 0;
position: relative;
background-color: #FFFFFF;
line-height: 1.41176471;
font-size: 34rpx;
transform: translateY(-50%);
transition: .3s;
}
.navigator-box-show {
opacity: 1;
transform: translateY(0);
}
.navigator {
padding: 20rpx 30rpx;
position: relative;
display: flex;
align-items: center;
}
.navigator:before {
content: " ";
position: absolute;
left: 30rpx;
top: 0;
right: 30rpx;
height: 1px;
border-top: 1rpx solid #D8D8D8;
color: #D8D8D8;
}
.navigator:first-child:before {
display: none;
}
.navigator-text {
flex: 1;
}
.navigator-arrow {
padding-right: 26rpx;
position: relative;
}
.navigator-arrow:after {
content: " ";
display: inline-block;
height: 18rpx;
width: 18rpx;
border-width: 2rpx 2rpx 0 0;
border-color: #888888;
border-style: solid;
transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
position: absolute;
top: 50%;
margin-top: -8rpx;
right: 28rpx;
}
.kind-list-item {
margin: 20rpx 0;
background-color: #FFFFFF;
border-radius: 4rpx;
overflow: hidden;
}
.kind-list-item:first-child {
margin-top: 0;
}
.kind-list-text{
flex: 1;
}
.kind-list-img {
width: 60rpx;
height: 60rpx;
}
.kind-list-item-hd {
padding: 30rpx;
display: flex;
align-items: center;
transition: opacity .3s;
}
.kind-list-item-hd-show {
opacity: .2;
}
.kind-list-item-bd {
height: 0;
overflow: hidden;
}
.kind-list-item-bd-show {
height: auto;
}

File diff suppressed because it is too large Load Diff

@ -1,154 +1,315 @@
// pages/home/xx/xz/xz.js
const app = getApp();//新建页面时 默认引入
const req = app.xzjlReq();//初始化一个的request() 实例
Page({
/**
* 页面的初始数据
*/
data: {
isYuLan:false,//是否是预览状态
to:'',
from:'',
form:{
to:'',
from:''
content:'',
img:'https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xzimg.png',
messageList:[],
sound:'',
soundTime:0,
showBtn:true,
showImg:true,
showLtqp:true,
showImgBig:false, //图片太大弹层
showSoundMore:false, //语音太多提示
showSend:false, //寄出提示
Preview:false, //预览
showSound:false,
showAlready:false,
btn1:true,
btn2:false,
btn3:false
},
yxVisible:false,//音讯弹窗
formats: {},
readOnly: false,
placeholder: '开始输入...',
editorHeight: 300,
keyboardHeight: 0,
isIOS: false
writeLetters(){
console.log('写信');
this.setData({
showImg:false,
showLtqp:false,
})
},
bINput(e){
console.log(e)
already(){
console.log('确定寄出');
this.setData({showAlready:true})
const list = this.data.messageList
list.push({
type: 'text',
content: this.data.content
})
const formData = {
from: this.data.from,
to: this.data.to,
messageList: list
}
console.log(formData);
req.putRequest('/api/user/curt/letter',{formData}).then(res => {
console.log(res);
})
},
sqjdSj: function(e) {
console.log('到这里了。。。。')
console.log(e.detail.value);
console.log(this.editorCtx)
closeShowImgBig(){
this.setData({showImgBig:false})
},
doYulan(){
console.log('点击了预览!!!')
this.setData({isYuLan:true})
closeShowSoundMore(){
this.setData({showSoundMore:false})
},
doCancelYuLan(){
console.log('取消了预览')
this.setData({isYuLan:false})
openShowSend(){
this.setData({showSend:true})
},
doSend(){
console.log(this.data.to)
console.log('点击了发送!!!')
closeShowSend(){
this.setData({showSend:false})
},
doClickYinXun(){
this.setData({yxVisible:true})
openPreview(){
console.log('预览');
this.setData({Preview:true})
},
doCancelLuyin(){
this.setData({yxVisible:false})
ClearYl(){
console.log('清除语音');
// this.setData({showLtqp:false})
},
doCancelXz(){
wx.navigateTo({
url: '/pages/home/xx/lindex/lindex'
goBack(){
console.log('返回');
wx.navigateBack()
},
ClearImg(){
console.log('清除图片');
const list = this.data.messageList.filter(item => {
return item.type !== "graphic"
})
this.setData({
img:'https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xzimg.png',
messageList: list
})
console.log(this.data.messageList);
},
readOnlyChange() {
// 上传图片
addImg(){
console.log('添加图片');
this.setData({
readOnly: !this.data.readOnly
})
},
onLoad() {
const platform = wx.getSystemInfoSync().platform
const isIOS = platform === 'ios'
this.setData({ isIOS})
const that = this
this.updatePosition(0)
let keyboardHeight = 0
wx.onKeyboardHeightChange(res => {
if (res.height === keyboardHeight) return
const duration = res.height > 0 ? res.duration * 1000 : 0
keyboardHeight = res.height
setTimeout(() => {
wx.pageScrollTo({
scrollTop: 0,
success() {
that.updatePosition(keyboardHeight)
that.editorCtx.scrollIntoView()
}
showImg:true
})
}, duration)
wx.chooseMedia({
mediaType: 'image',
success: (res) => {
const files = res.tempFiles[0]
if(files.size > 5 * 1024 * 1024 ){
this.setData({showImgBig:true})
}
this.uploadFile(res.tempFiles[0].tempFilePath,'poster')
}
})
},
updatePosition(keyboardHeight) {
const toolbarHeight = 50
const { windowHeight, platform } = wx.getSystemInfoSync()
let editorHeight = keyboardHeight > 0 ? (windowHeight - keyboardHeight - toolbarHeight) : windowHeight
this.setData({ editorHeight, keyboardHeight })
},
calNavigationBarAndStatusBar() {
const systemInfo = wx.getSystemInfoSync()
const { statusBarHeight, platform } = systemInfo
const isIOS = platform === 'ios'
const navigationBarHeight = isIOS ? 44 : 48
return statusBarHeight + navigationBarHeight
uploadFile(file,type) {
wx.uploadFile({
url: 'https://xzjl-api.windymuse.cn/api/resource',
filePath: file,
name: 'file',
header: {
'Authorization': wx.getStorageSync('token'),
'Content-Type': 'multipart/form-data'
},
onEditorReady() {
const that = this
wx.createSelectorQuery().select('#editor').context(function (res) {
that.editorCtx = res.context
}).exec()
formData: {
type: type
},
blur() {
this.editorCtx.blur()
},
format(e) {
let { name, value } = e.target.dataset
if (!name) return
// console.log('format', name, value)
this.editorCtx.format(name, value)
success: (async(res) => {
const data = JSON.parse(res.data);
console.log(data);
if (data.data.type === 'audio') {
console.log('添加音频');
const list = this.data.messageList
const audio = this.data.messageList.filter(item => {
return item.type === 'audio'
})
// 判断语音条数大于3条
if(audio.length >= 3){
this.setData({showSoundMore:true})
}else {
list.push({
type: 'audio',
resourceId: data.data.id,
})
this.setData({
messageList: list
})
}
console.log(this.data.messageList);
} else if (data.data.type === 'poster') {
console.log('添加图片');
const list = this.data.messageList
list.push({
type: 'graphic',
resourceId: data.data.id
})
this.setData({
img:data.data.abUrl,
messageList:list
})
console.log(this.data.messageList);
}
}),
// success: async res => {
// let data = JSON.parse(res.data);
// console.log(data, '111111');
// if (data.code == 200) {
// this.setData({imgUrl:data.data.abUrl})
// console.log('打印1111')
// console.log(this.data.imgUrl)
// res.data = JSON.parse(res.data);
// console.log(res.data);
// if (res.data.code == 1) {
// console.log(res.data.data.url);
// this.img = this.baseUrl + res.data.data.url;
// 图片路径
// this.userinfo.avatar = res.data.data.url;
// let n = await this.$api.upload({ file: res.data.fullurl });
// console.log(n, '上传后');
// }
// }
// },
fail(res) {
console.log('上传失败');
}
});
},
onStatusChange(e) {
const formats = e.detail
this.setData({ formats })
openSound(){
console.log('添加声音');
this.setData({showSound:true,showLtqp:true})
},
insertDivider() {
this.editorCtx.insertDivider({
success: function () {
console.log('insert divider success')
}
})
closeSound(){
this.setData({showSound:false})
},
clear() {
this.editorCtx.clear({
success: function (res) {
console.log("clear success")
startSound(){
console.log('开始录音');
const time = setInterval(()=>{
this.setData({soundTime:this.data.soundTime + 1})
},1000)
this.setData({ timeId: time })
wx.startRecord({
success: (res) => {
console.log(res.tempFilePath);
this.setData({sound:res.tempFilePath,btn1:false,btn2:true})
}
})
},
removeFormat() {
this.editorCtx.removeFormat()
endSound(){
console.log('结束录音');
wx.stopRecord()
clearInterval(this.data.timeId)
},
playVoice(){
console.log('播放录音');
this.setData({btn2:false,btn3:true})
wx.playVoice({
filePath: this.data.sound,
complete: () => {
console.log('录音播放结束');
this.setData({btn2:true,btn3:false})
}
});
},
insertDate() {
const date = new Date()
const formatDate = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`
this.editorCtx.insertText({
text: formatDate
addSound(){
console.log('添加录音');
this.uploadFile(this.data.sound,'audio')
this.setData({
btn1:true,
btn2:false,
btn3:false,
soundTime:0
})
// console.log(this.data.messageList);
},
insertImage() {
const that = this
wx.chooseImage({
count: 1,
success: function (res) {
that.editorCtx.insertImage({
src: res.tempFilePaths[0],
data: {
id: 'abcd',
role: 'god'
delSound(){
console.log('不添加该条语音');
this.setData({
sound:'',
btn1:true,
btn2:false,
btn3:false,
soundTime:0
})
},
width: '100%',
success: function () {
console.log('insert image success')
}
logout(){
req.deleteRequest('/api/user/logout',{}).then((res)=>{
if(res.data.code===200){
wx.navigateTo({
url: '/pages/index/index'
})
}
wx.showToast({
title:'寄出成功'
})
}
})
},
getLetter(){
console.log('获取当前用户信札内容');
req.getRequest('/api/user/curt/letter',{}).then(res => {
console.log(res);
this.setData({
to: res.data.data.to,
from: res.data.data.from,
})
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getLetter()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,7 +1,7 @@
{
"navigationBarTitleText": "发表文章",
"disableScroll": true,
"usingComponents": {
"t-popup": "tdesign-miniprogram/popup/popup"
"t-icon": "tdesign-miniprogram/icon/icon",
"t-textarea": "tdesign-miniprogram/textarea/textarea",
"t-input": "tdesign-miniprogram/input/input"
}
}

@ -1,68 +1,108 @@
<!--pages/home/xx/lindex/lxz/lxz.wxml-->
<view class="container" style="height:{{editorHeight}}px;">
<view class="xzsfhl"></view><!--信封上方花篮框-->
<view class="xzxfnr">
<!--预览状态下的信封头部-->
<view class="ylto" wx:if="{{isYuLan}}">To{{to}} </view>
<!--信件写给谁的框-->
<view class="xzxjto" wx:if="{{!isYuLan}}">
<view class="xzxjto111">
<view class="toText111">To</view>
<view class="xzxjtoipt">
<input type="text" model:value="{{to}}" placeholder="" />
<!--pages/home/xx/xz/xz.wxml-->
<view class="bgt1"></view>
<view class="xinfo">
<view class="xinfo-yl-title" wx:if="{{Preview}}">
To: {{to}}
</view>
<view class="xinfo-yl-form" wx:if="{{Preview}}">
From: {{from}}
</view>
<view class="xinfo-title" wx:if="{{!Preview}}">
<view class="title-to">
<view class="text">To:</view>
<t-input model:value="{{to}}" />
</view>
<!--信件写给谁的框-->
<view class="xzxjfrom" wx:if="{{!isYuLan}}" >
<view class="xzxjto111">
<view class="toText111">From</view>
<view class="xzxjtoiptfrom">
<input type="text" model:value="{{from}}" placeholder="" />
<view class="title-form">
<view class="text">From:</view>
<t-input model:value="{{from}}"/>
</view>
</view>
<view class="xinfo-main" bindtap="writeLetters">
<t-textarea model:value="{{content}}" maxlength="300" placeholder="信件正文" />
</view>
<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 class="xinfo-yuying" src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/%E8%AF%AD%E9%9F%B3.png"></image>
<view class="xinfo-ltqp-text">224″</view>
<t-icon class="xinfo-close" name="close-circle" size="48rpx" wx:if="{{!Preview}}" bindtap="ClearYl"/>
</view>
<view class="{{Preview ? 'xinfo-img-yl' : 'xinfo-img'}}" wx:if="{{showImg}}">
<image src="{{img}}"></image>
<view class="xinfo-img-close" bindtap="ClearImg"><t-icon name="close-circle" size="48rpx" wx:if="{{!Preview}}"/></view>
</view>
</view>
<view class="bgt2" wx:if="{{showBtn}}">
<view class="bgt2-btn1" bindtap="goBack">
<image src="https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/iconPark-return%401x.png"></image>
</view>
<view class="bgt2-btn2" bindtap="openSound" wx:if="{{!Preview}}">音讯</view>
<view class="bgt2-btn3" bindtap="addImg" wx:if="{{!Preview}}">画像</view>
<view class="bgt2-btn4" bindtap="openPreview" wx:if="{{!Preview}}">预览</view>
<view class="bgt2-btn5" bindtap="openShowSend" wx:if="{{!Preview}}">寄出</view>
<view class="bgt2-yz"></view>
</view>
<view class="taost" wx:if="{{showImgBig}}">
<view class="taost-box">
<view class="taost-box-text">图片太大了</view>
<view class="taost-box-text">请上传5M以内的图片</view>
<view class="taost-box-btn" bindtap="closeShowImgBig">好的</view>
</view>
</view>
<editor bindblur="sqjdSj" read-only="{{isYuLan}}" id="editor" class="ql-container" placeholder="{{placeholder}}" bindstatuschange="onStatusChange" bindinput="bINput" bindready="onEditorReady">
</editor>
<!--预览状态下的信封头部-->
<view class="ylfrom" wx:if="{{isYuLan}}"><view class="ylfrom1">From{{from}}</view> </view>
<view class="ylfrombtm" wx:if="{{isYuLan}}"> </view>
<view class="sound" wx:if="{{showSound}}">
<view class="closeSound" bindtap="closeSound"></view>
<view class="sound-box">
<view class="sound-box-top">
<view bindtap="delSound">取消</view>
<view bindtap="addSound">添加</view>
</view>
<view class="sound-box-time">{{soundTime}}</view>
<view class="sound-box-img"></view>
<view class="sound-box-btn">
<view class="btn1">
<view wx:if="{{btn1}}" class="btn-being" bindlongpress="startSound" bindtouchend="endSound"></view>
<view wx:if="{{btn2}}" class="btn-over" bindtap="playVoice"></view>
<view wx:if="{{btn3}}" class="btn-audition"></view>
</view>
</view>
</view>
</view>
<view class="taost" wx:if="{{showSoundMore}}">
<view class="taost-box">
<view class="taost-box-text">最多只能添加</view>
<view class="taost-box-text">3条语言</view>
<view class="taost-box-btn" bindtap="closeShowSoundMore">好的</view>
</view>
</view>
<view class="taost" wx:if="{{showSend}}">
<view class="taost-box">
<view class="taost-box-text">确定要寄出吗?</view>
<view class="taost-box-text">信件寄出后,再次使用晶石激活</view>
<view class="taost-box-text">将直接提示打开信件</view>
<view class="Send-btn">
<view class="taost-box-btn" bindtap="closeShowSend">取消</view>
<view class="taost-box-btn" bindtap="already">确定</view>
</view>
</view>
</view>
<!--信封花篮分块-->
<view class="lzxzs1"></view>
<view class="lzxzz1"></view>
<view class="xfxc1"></view>
<view class="lzxyz1"></view>
<view class="lzxys1"></view>
<!--信封中间徽章-->
<view class="xfzjhz"></view>
<!--返回按钮-->
<view class="xzfhan xzfhan1" bindtap="doCancelXz" wx:if="{{!isYuLan}}">
<view class="fan11r2"></view>
</view>
<!--预览返回按钮-->
<view class="xzfhan xzfhan1" bindtap="doCancelYuLan" wx:if="{{isYuLan}}">
<view class="fan11r2"></view>
</view>
<!--音讯按钮-->
<view class="xzfhan xzfhan2" bindtap="doClickYinXun" wx:if="{{!isYuLan}}">音讯</view>
<!--画像按钮-->
<view class="xzfhan xzfhan3" bindtap="insertImage" wx:if="{{!isYuLan}}">画像</view>
<!--预览按钮-->
<view class="xzylanbtn xzylan1" bindtap="doYulan" wx:if="{{!isYuLan}}">预览</view>
<!--发送按钮-->
<view class="xzylanbtn xzylan2" bindtap="doSend" wx:if="{{!isYuLan}}">发送</view>
<t-popup visible="{{yxVisible}}">
<view class="yxtc">
<view class="yxtcqxan" bindtap="doCancelLuyin">取消</view>
<view class="yxtctjan">添加</view>
<view class="yxtchx"></view>
</view>
</t-popup>
<view class="already" wx:if="{{showAlready}}">
<view class="already-top"></view>
<view class="already-img"></view>
<view class="already-text">
<view class="already-text1">你的信件已打包好!</view>
<view class="already-text1">快把晶石送给收信人吧!</view>
<view class="already-text3">收信人首次将晶石贴近手机</view>
<view class="already-text2">将会提示打开信件</view>
<view class="already-text2">点击OK回到未激活初始页面</view>
<view class="already-text2">如果误打开信件,需要再次寄出哦!</view>
<view class="already-btn">
<view class="btn">修改</view>
<view class="btn" bindtap="logout">OK</view>
</view>
</view>
<view class="already-bom"></view>
</view>

@ -1,333 +1,538 @@
/* pages/home/xx/lindex/lxz/lxz.wxss */
@import "./common/lib/weui.wxss";
@import "./assets/iconfont.wxss"
/* pages/home/xx/xz/xz.wxss */
.bgt1{
position: absolute;
width: 690rpx;
height: 227.33rpx;
display: flex;
flex-direction: column;
background-repeat: no-repeat;
background-size:100% 100%;
margin-left:30rpx;
margin-top: 104.67rpx;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xz/bgt1.png);
color:#9A9A9A;
text-align: center;
font-size: 27rpx;
}
.bgt2{
position: absolute;
width: 750rpx;
height: 1081.33rpx;
display: flex;
flex-direction: column;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 608.67rpx;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xz/bgt2.png);
color:#9A9A9A;
text-align: center;
font-size: 27rpx;
}
.container {
.xinfo{
background-color: #FFFCF3;
position: absolute;
top: 0;
left: 0;
width: 616rpx;
height: 1242rpx;
display: flex;
flex-direction: column;
background-repeat: no-repeat;
background-size:100% 100%;
margin-top: 132rpx;
margin-left: 66rpx;
border-radius: 6rpx;
}
.xinfo-title {
width: 100%;
height: 100rpx;
margin-top: 60rpx;
padding-left: 64rpx;
/* background-color: pink; */
font-size: 28rpx;
color: rgba(108, 108, 108, 1);
}
.xzsfhl{
position: fixed;
left: 15px;
top: 52px;
width: 345px;
height: 115px;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xzhlpic.png);
.xinfo-yl-title {
margin: 60rpx 0 0 50rpx;
font-size: 32rpx;
color: rgba(108, 108, 108, 1);
}
.xzxfnr{
.xinfo-yl-form {
position: absolute;
left: 31px;
top: 64px;
width: 315px;
height: 657px;
overflow: auto;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xznrpic.png);
top: 980rpx;
right: 200rpx;
font-size: 32rpx;
color: rgba(108, 108, 108, 1);
}
.ql-container {
box-sizing: border-box;
width: 264px;
margin-left: 52rpx;
height: 100%;
font-size: 16px;
line-height: 1.5;
overflow: auto;
top: 50rpx;
.title-to {
display: flex;
margin-bottom: 10rpx;
width: 200rpx;
}
.ql-active {
color: #22C704;
.title-to .text {
padding-top: 14rpx;
margin-right: 20rpx;
}
.iconfont {
display: inline-block;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 20px;
.title-to .t-input {
padding: 0;
height: 46rpx;
background-color: rgba(0, 0, 0, 0);
border-bottom: 1px solid #444444;
}
.toolbar {
box-sizing: border-box;
padding: 0 10px;
height: 50px;
width: 100%;
position: fixed;
left: 0;
right: 100%;
bottom: 0;
.title-form {
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid #ECECEC;
border-left: none;
border-right: none;
width: 250rpx;
}
.xfxfhl{
position: fixed;
left: 0px;
top: 331px;
width: 375px;
height: 462px;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xfxfhlpic.png);
.title-form .t-input {
padding: 0;
height: 46rpx;
background-color: rgba(0, 0, 0, 0);
border-bottom: 1px solid #444444;
}
.xzxfnr{
position: absolute;
left: 31px;
top: 64px;
width: 315px;
height: 657px;
overflow: auto;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xznrpic.png);
}
.xfzjhz{
position: absolute;
left: 154px;
top: 1144rpx;
width: 73px;
height: 71px;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xfzjhzpic.png);
.title-form .text {
padding-top: 14rpx;
margin-right: 20rpx;
}
.xzfhan{
position: absolute;
width: 55px;
height: 55px;
line-height: 110rpx;
border-radius: 59rpx;
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);
color: rgba(255, 255, 255, 1);
font-size: 16px;
text-align: center;
font-family: SourceHanSansSC-medium;
.xinfo-main {
width: 100%;
height: 800rpx;
padding: 0 48rpx;
box-sizing: border-box;
}
.xzfhan1{
left: 16px;
top: 1252rpx;
.xinfo-main .t-textarea {
width: 100%;
height: 100%;
font-size: 28rpx;
background-color: rgba(0, 0, 0, 0);
}
.xzfhan2{
left: 608rpx;
top: 1102rpx;
.t-textarea__wrapper-inner {
color: rgba(108, 108, 108, 1) !important;
}
.xzfhan3{
left: 608rpx;
top: 1252rpx;
.xinfo-ltqp {
position: absolute;
top: 470rpx;
left: 44rpx;
width: 384rpx;
height: 84rpx;
z-index: 9;
}
.xzylanbtn{
.xinfo-ltqp-yl {
position: absolute;
top: 1452rpx;
width: 105px;
height: 35px;
line-height: 70rpx;
border-radius: 10px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
text-align: center;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
color: rgba(255, 255, 255, 1);
font-size: 14px;
text-align: center;
font-family: SourceHanSansSC-medium;
top: 300rpx;
left: 44rpx;
width: 384rpx;
height: 84rpx;
}
.xzylan1{
left: 62px;
.xinfo-ltqp-yl image {
width: 100%;
height: 100%;
}
.xzylan2{
left: 448rpx;
.xinfo-ltqp image {
width: 100%;
height: 100%;
}
.fan11r2{
.xinfo-ltqp-text {
position: absolute;
left: 26rpx;
top: 24rpx;
width: 30px;
height: 30px;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xtreturn.png);
top: 28rpx;
left: 160rpx;
color: rgba(79, 79, 79, 1);
font-size: 14px;
}
.xfxc1{
.xinfo-yuying {
position: absolute;
width: 750rpx;
height: 472rpx;
top: 1113rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/lxz/lxzzxf.png);
top: 8rpx;
left: 40rpx;
width: 70rpx !important;
height: 70rpx !important;
}
.lzxzz1{
.xinfo-close {
position: absolute;
width: 154rpx;
height: 184rpx;
top: 929rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/lxz/lzxzz1.png);
top: 22rpx;
right: -76rpx;
color: #6c6c6c;
}
.lzxzs1{
.xinfo-img {
position: absolute;
width: 74rpx;
height: 211rpx;
top: 718rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/lxz/lzxzs1.png);
top: 600rpx;
padding: 60rpx 0 0 30rpx;
box-sizing: border-box;
width: 100%;
height: 682rpx;
display: flex;
justify-content: center;
}
.lzxyz1{
.xinfo-img-yl {
position: absolute;
width: 100rpx;
left: 650rpx;
height: 140.67rpx;
top: 972.07rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/lxz/lzxyz1.png);
top: 400rpx;
box-sizing: border-box;
width: 100%;
height: 682rpx;
display: flex;
justify-content: center;
}
.lzxys1{
.xinfo-img-yl image {
width: 480rpx;
height: 550rpx;
}
.xinfo-img image {
width: 480rpx;
height: 550rpx;
}
.xinfo-img-close {
color: #6c6c6c;
z-index: 1;
}
.bgt2-btn1 {
position: absolute;
width: 47.33rpx;
left: 702.67rpx;
height: 311.33rpx;
top: 662.07rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/lxz/lzxys1.png);
top: 648rpx;
left: 32rpx;
width: 110rpx;
height: 110rpx;
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 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
.xzxjto{
margin-left: 50rpx;
margin-top: 68rpx;
width: 147px;
height: 21px;
color: rgba(108, 108, 108, 1);
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
.bgt2-btn1 image {
width: 60rpx;
height: 60rpx;
}
.xzxjto111{
.bgt2-btn2 {
position: absolute;
width: 147px;
height: 21px;
color: rgba(108, 108, 108, 1);
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
top: 460rpx;
right: 32rpx;
width: 110rpx;
height: 110rpx;
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 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.toText111{
.bgt2-btn3 {
position: absolute;
height: 21px;
line-height: 42rpx;
}
.xzxjfrom{
margin-left: 50rpx;
margin-top: 30rpx;
width: 147px;
height: 21px;
color: rgba(108, 108, 108, 1);
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
top: 648rpx;
right: 32rpx;
width: 110rpx;
height: 110rpx;
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 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.bgt2-btn4 {
position: absolute;
top: 900rpx;
left: 124rpx;
width: 210rpx;
height: 70rpx;
border-radius: 20rpx;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
}
.xzxjtot1{
display: inline-block;
width: 30rpx;
background-color: blue;
.bgt2-btn5 {
position: absolute;
top: 900rpx;
right: 124rpx;
width: 210rpx;
height: 70rpx;
border-radius: 20rpx;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
}
.xzxjtoipt{
.bgt2-yz {
position: absolute;
margin-left: 60rpx;
width: 110px;
height: 21px;
border-bottom: 1rpx solid #000;
top: 550rpx;
left: 310rpx;
width: 146rpx;
height: 146rpx;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/%E5%8D%B0%E7%AB%A0.png);
background-size: cover;
}
.xzxjtoiptfrom{
display: inline-block;
.taost, .sound {
position: absolute;
margin-left: 90rpx;
width: 90px;
height: 21px;
border-bottom: 1rpx solid #000;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 9;
background-color: rgba(255, 255, 255, 0.9);
}
.yxtc{
.taost-box {
width: 586rpx;
height: 434rpx;
padding-top: 104rpx;
box-sizing: border-box;
border-radius: 15px;
background-color: rgba(255, 255, 255, 1);
text-align: center;
box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4);
}
.closeSound {
width: 100%;
height: 40%;
}
.sound-box {
position: absolute;
top: 1162rpx;
width: 750rpx;
bottom: 0;
width: 100%;
height: 462rpx;
line-height: 20px;
line-height: 40rpx;
border-radius: 10px 10px 0px 0px;
background-color: rgba(255, 255, 255, 1);
color: rgba(16, 16, 16, 1);
font-size: 14px;
z-index: 100;
text-align: center;
font-family: Arial;
}
.yxtchx{
position: absolute;
left: 0px;
top: 72rpx;
width: 375px;
border: 1rpx solid rgba(233, 233, 232, 1);
}
.yxtcqxan{
position: absolute;
left: 16px;
width: 32px;
.sound-box-top {
width: 100%;
height: 72rpx;
line-height:72rpx;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
padding: 0 64rpx;
box-sizing: border-box;
color: rgba(108, 108, 108, 1);
border-bottom: 1px solid #e9e9e9;
}
.sound-box-time {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #6c6c6c;
font-size: 16px;
text-align: left;
font-family: SourceHanSansSC-regular;
margin-top: 40rpx;
}
.sound-box-img {
width: 100%;
height: 50rpx;
margin-top: 40rpx;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/iconPark-acoustic%20Copy%203%401x.png);
}
.sound-box-btn {
width: 100%;
height: 120rpx;
margin-top: 52rpx;
display: flex;
justify-content: center;
align-items: center;
}
.sound-box-btn .btn1 {
width: 120rpx;
height: 120rpx;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.btn-being {
width: 60rpx;
height: 60rpx;
border-radius: 5px;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
}
.btn-over {
width: 60rpx;
height: 60rpx;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/if-ui-play%20Copy%401x.png);
background-size: contain;
}
.btn-audition {
width: 60rpx;
height: 60rpx;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/semiDesign-semi-icons-pause%20Copy%401x.png);
background-size: contain;
}
.taost-box-text {
width: 100%;
display: flex;
margin-bottom: 20rpx;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 18px;
}
.taost-box-btn {
width: 210rpx;
height: 64rpx;
margin: 80rpx auto;
border-radius: 20rpx;
background: linear-gradient(233.49deg, rgba(248,99,42,1) 10.48%,rgba(249,135,89,1) 89.2%);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 6rpx solid rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 28rpx;
}
.Send-btn {
width: 100%;
justify-content: space-around;
display: flex;
}
.yxtctjan{
.Send-btn .taost-box-btn{
margin: 20rpx 0;
}
.already {
position: absolute;
left: 325px;
width: 32px;
height: 72rpx;
line-height:72rpx;
color: rgba(206, 206, 206, 1);
font-size: 16px;
text-align: left;
font-family: SourceHanSansSC-regular;
}
.ylto{
display: inline-block;
margin-left: 60rpx;
margin-top: 50rpx;
width: 300rpx;
height: 48rpx;
line-height: 48rpx;
width: 100%;
height: 100%;
z-index: 999;
background-color: #fff;
}
.already-top {
width: 100%;
height: 230rpx;
margin-top: 104rpx;
background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xz/bgt1.png);
background-size: contain;
}
.already-bom {
position: absolute;
bottom: 0;
width: 100%;
height: 230rpx;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/bottom.png?q-sign-algorithm=sha1&q-ak=AKIDA26Gi2QT6eEFH9w1Ci79jJA6qhcjEj6PtTFNKg7m94uF8G9C09W87_G3j4xur0YP&q-sign-time=1686215079;1686218679&q-key-time=1686215079;1686218679&q-header-list=host&q-url-param-list=ci-process&q-signature=6770b3e91ac3eef3f4ccc1454d8a3a62f974a2ad&x-cos-security-token=liea1KCZaPvP7X7AVEMsUpo4E4n0UJsa215000c747614340a2e2c022d52647652gmo41jTDzQWkJ-8pNsYx46n3W1z9Nw4nnW4jYpNr6G83Ignhr68mAZMB7ui3jLNZe9HUwbfutXw758m6NvzPKwKHH_CLeWZs9epshc-cEGwMHqijiv6mQx7gHCdB5DEvYea29JaI3rbis13K6tUXyUQrP5V6l9KA20noFJkeTeWJ0gNWmp5uVA_9disJ2aq&ci-process=originImage);
background-size: contain;
}
.already-img {
margin: 0 auto;
width: 660rpx;
height: 522rpx;
background-size: contain;
background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/%E4%BF%A1.png?q-sign-algorithm=sha1&q-ak=AKID75iKvt6pKeBH6kmQmugG7VsgGfLQq1lreUvTebnOcOYJjuHMexmmTv6BLsv8wnp7&q-sign-time=1686215487;1686219087&q-key-time=1686215487;1686219087&q-header-list=host&q-url-param-list=ci-process&q-signature=69197c8ac4f07d2037248bca09f6c0c5b0eabe5b&x-cos-security-token=liea1KCZaPvP7X7AVEMsUpo4E4n0UJsaba5cb9901edd2b22e04025e2028d4d1a2gmo41jTDzQWkJ-8pNsYx9bPLid0N78p6o0Zp4VO8m2JYh70Nq7Jr5BMVkX2pkZNiRDwUyYeXWYGXbihjwO2JK5NItEL5Y2E5av5GWTJlPw4E-pIGHqTSN0T5oZ1oDybeWI33Vx8EPpYf12eFO-5RLRgQcmXyI9i8YDkSF_bNKRVLVGe7n0cbNcVIk0QqECF&ci-process=originImage);
}
.already-text {
width: 100%;
margin-top: 80rpx;
}
.already-text1 {
width: 100%;
display: flex;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 16px;
text-align: left;
font-family: SourceHanSansSC-medium;
font-size: 18px;
margin-bottom: 10rpx;
}
.ylfrom{
box-sizing: border-box;
margin-top: 10rpx;
width: 630rpx;
height: 48rpx;
line-height: 48rpx;
.already-text2 {
width: 100%;
display: flex;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 16px;
text-align: left;
font-family: SourceHanSansSC-medium;
padding-bottom: 200rpx;
font-size: 14px;
margin-top: 20rpx;
}
.ylfrom1{
text-align: right;
margin-right: 50rpx;
.already-text3 {
width: 100%;
display: flex;
justify-content: center;
color: rgba(108, 108, 108, 1);
font-size: 14px;
margin-top: 72rpx;
}
.already-btn {
width: 100%;
margin-top: 48rpx;
display: flex;
justify-content: space-around;
}
.ylfrombtm{
.already-btn .btn {
width: 210rpx;
height: 70rpx;
box-sizing: border-box;
width: 750rpx;
height: 200rpx;
border-radius: 20rpx;
background: linear-gradient(222.54deg, rgba(248,99,42,1) 14.03%,rgba(249,135,89,1) 85.21%);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
border: 3px solid rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}

@ -74,9 +74,8 @@ Page({
// this.setData({showLtqp:false})
},
goBack(){
wx.redirectTo({
url: '/pages/home/xx/index',
})
console.log('返回');
wx.navigateBack()
},
ClearImg(){
console.log('清除图片');

@ -172,8 +172,9 @@
}
.xinfo-img {
position: relative;
padding-top: 60rpx;
position: absolute;
top: 600rpx;
padding: 60rpx 0 0 30rpx;
box-sizing: border-box;
width: 100%;
height: 682rpx;
@ -202,9 +203,6 @@
}
.xinfo-img-close {
position: absolute;
top: 66rpx;
right: 0rpx;
color: #6c6c6c;
z-index: 1;
}
@ -222,6 +220,7 @@
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
.bgt2-btn1 image {

@ -43,9 +43,10 @@ Page({
//以下为自定义事件
/**跳转到获取晶石页面 */
go2Get(){
wx.navigateTo({
url: '/pages/index/out/out'
})
// wx.navigateTo({
// url: '/pages/index/out/out'
// })
console.log('跳转获取晶石页面');
},
/**
* 登录失败提示
@ -98,6 +99,7 @@ Page({
var DEV_CODE = code
var PUBLIC_KEY = ""
req.getRequest('/api/dict/value/login-public-key',{}).then((res)=>{
console.log(res,'11111111');
if(res.data.code==200){//获取公钥成功
PUBLIC_KEY = res.data.data
// 实例化rsa
@ -119,6 +121,7 @@ Page({
icon: 'none',
duration: 1000
})
this.getLetter()
wx.switchTab({
url: '/pages/home/xy/index'
})
@ -127,9 +130,7 @@ Page({
}else{
this.loginErrorToast(mode)
}
}
)
}else{
wx.showToast({
@ -141,11 +142,18 @@ Page({
}).catch((err)=>{
console.log(err);
})
},
// 获取当前用户信札
getLetter(){
console.log(wx.getStorageSync('token'));
wx.request({
url: 'https://xzjl-api.windymuse.cn/api/user/curt/lover/letter',
header: {'Authorization': wx.getStorageSync('token')},
method: 'GET',
success: res => {
console.log(res);
// 这里可以判断是否有未读信札
}
})
}
})

@ -41,7 +41,7 @@ class request {
}
/**
* patch类型的网络请求
* POST类型的网络请求
*/
patchRequest(url, data, header = this._header) {
return this.requestAll(url, data, header, 'PATCH')

Loading…
Cancel
Save