diff --git a/.DS_Store b/.DS_Store index c99eb79..c2aab69 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app.json b/app.json index 62e5cf2..6958926 100644 --- a/app.json +++ b/app.json @@ -9,6 +9,7 @@ "pages/home/jl/index", "pages/index/index", "pages/index/out/out", + "pages/xz/index", "pages/home/xx/xz/xz", "pages/home/xx/xz/index", "pages/home/me/manual/manual", @@ -29,7 +30,7 @@ "pages/home/jl/jlai/jlai", "pages/home/xx/hy/index", "pages/home/xx/hy/hx/hx", - "pages/home/xx/hy/xz/zt", + "pages/home/xx/hy/yx/yx", "pages/home/xx/hy/zt/zt", "pages/home/xx/lindex/lindex", "pages/home/xx/lindex/xz/xz", diff --git a/images/hourglass.gif b/images/hourglass.gif new file mode 100644 index 0000000..2cf578a Binary files /dev/null and b/images/hourglass.gif differ diff --git a/pages/home/jl/index.wxml b/pages/home/jl/index.wxml index f7d0298..bdd87a8 100644 --- a/pages/home/jl/index.wxml +++ b/pages/home/jl/index.wxml @@ -259,7 +259,7 @@ - + 能量注入中…… diff --git a/pages/home/xx/hy/hx/hx.js b/pages/home/xx/hy/hx/hx.js index 47f9c69..31835db 100644 --- a/pages/home/xx/hy/hx/hx.js +++ b/pages/home/xx/hy/hx/hx.js @@ -7,21 +7,22 @@ Page({ * 页面的初始数据 */ data: { - + visible:false, + image: [] }, go2Reback(){ wx.navigateTo({ - url: '/pages/home/xx/lindex/lindex' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Xz(){ wx.navigateTo({ - url: '/pages/home/xx/hy/xz/zt' + url: '/pages/home/xx/hy/index' }) }, go2Yx(){ wx.navigateTo({ - url: '/pages/home/xx/hy/index' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Hx(){ @@ -34,11 +35,70 @@ Page({ url: '/pages/home/xx/hy/zt/zt' }) }, + blockClick(e){ + console.log(e.target.dataset.url); + this.setData({ + visible: true, + image: [e.target.dataset.url] + }) + }, + onClose(){ + this.setData({visible: false}) + }, + delBtn(e){ + console.log(this.data.image); + const regex = /\d+/; + const matchResult = this.data.image.match(regex); + const number = matchResult[0]; + console.log(number); // 输出:254 + req.deleteRequest(`/api/user/curt/message/${number}`,{}).then(res => { + console.log(res,'删除成功'); + }) + }, + closeViewer(){this.setData({visible: false})}, + getList(){ + req.getRequest('/api/user/curt/message/lover',{ + limit:-1, + type: 'graphic' + }).then(res => { + const list = res.data.data.records + list.forEach(item => { + // 将时间字符串转为Date对象 + const date = new Date(item.createdAt); + + // 获取年月日时分秒 + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + // 格式化时间 + const formattedDate = `${year}年${month}月${day}日`; + item.createdAt = formattedDate + }) + console.log(list); + const treeData = list.reduce((result, item) => { + const group = result.find(group => group.createdAt === item.createdAt); + if (group) { + // group.list.push(item.resourceId); + group.list.push(`https://xzjl-api.windymuse.cn/api/resource/${item.resourceId}?k=${item.fromUserid}`); + } else { + result.push({ + createdAt: item.createdAt, + list: [`https://xzjl-api.windymuse.cn/api/resource/${item.resourceId}?k=${item.fromUserid}`] + }); + } + return result; + }, []); + + console.log(treeData); + + this.setData({list: treeData}) + }) + }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { - + this.getList() }, /** diff --git a/pages/home/xx/hy/hx/hx.json b/pages/home/xx/hy/hx/hx.json index 3928faa..6881d98 100644 --- a/pages/home/xx/hy/hx/hx.json +++ b/pages/home/xx/hy/hx/hx.json @@ -1,3 +1,9 @@ { - "usingComponents": {} -} \ No newline at end of file + "component": true, + "usingComponents": { + "t-grid": "tdesign-miniprogram/grid/grid", + "t-grid-item": "tdesign-miniprogram/grid-item/grid-item", + "t-image-viewer": "tdesign-miniprogram/image-viewer/image-viewer" + } + } + \ No newline at end of file diff --git a/pages/home/xx/hy/hx/hx.wxml b/pages/home/xx/hy/hx/hx.wxml index 921b632..9738c8e 100644 --- a/pages/home/xx/hy/hx/hx.wxml +++ b/pages/home/xx/hy/hx/hx.wxml @@ -1,12 +1,39 @@ - + - + 画像 + + + + {{ item.createdAt }} + + + + + + + + + + + + + -信札 -音讯 -画像 -纸条 +信札 +音讯 +画像 +纸条 diff --git a/pages/home/xx/hy/hx/hx.wxss b/pages/home/xx/hy/hx/hx.wxss index 042c227..cb05339 100644 --- a/pages/home/xx/hy/hx/hx.wxss +++ b/pages/home/xx/hy/hx/hx.wxss @@ -1,10 +1,11 @@ -/* pages/home/xx/hy/index.wxss */ + .reback{ position: fixed; margin-left: 20rpx; - margin-top:108rpx; + top: 108rpx; width:48rpx; height:48rpx; + z-index: 2; background-repeat: no-repeat; background-size:100% 100%; background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/reback.png); @@ -19,48 +20,109 @@ color: rgba(108, 108, 108, 1); font-size: 32rpx; text-align: center; + z-index: 1; font-family: SourceHanSansSC-regular; } .xfgjl{ position: fixed; + top: 0; left: 0px; + display: flex; + justify-content: space-evenly; margin-top: 1416rpx; width: 750rpx; - height: 87px; - line-height: 20px; - opacity: 0.7; - background-color: rgba(255, 255, 255, 1); - text-align: center; + height: 174rpx; + line-height: 40rpx; + z-index: 99; } .xxqlcd{ - position: absolute; - - top: 32rpx; - width: 55px; - height: 55px; - border-radius: 56rpx; + 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); - font-size: 12px; + font-size: 32rpx; text-align: center; box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4); font-family: Arial; border: 5rpx solid rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1); -font-size: 16px; -text-align: center; -font-family: SourceHanSansSC-medium; + text-align: center; + font-family: SourceHanSansSC-medium; +} + +.body { + padding-top:188rpx ; + padding-bottom: 200rpx; +} + +.block { + display: block; + margin-bottom: 32rpx; +} + +.block-item { + display: flex; + flex-wrap: wrap; +} + +.block-text { + color: rgba(108, 108, 108, 1); + font-size: 14px; + margin: 24rpx 32rpx; } -.xxqlcd1{ - left: 21px; + +.block-item .item { + width: 182rpx; + height: 182rpx; + margin: 4rpx 0 0 4rpx; + background-color: #e8e8e8; } -.xxqlcd2{ - left: 114px; + +.block-item .item image{ + width: 100%; + height: 100%; } -.xxqlcd3{ - left: 206px; + +.viewer { + position: absolute; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; } -.xxqlcd4{ - left: 299px; + +.viewer image { + width: 100%; + margin-top: 400rpx; + z-index: 999; +} + +.viewer-btn { + width: 100%; + height: 160rpx; + position: absolute; + bottom: 0; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 32rpx; + box-sizing: border-box; +} + +.viewer-btn .btn { + width: 110rpx; + height: 70rpx; + border-radius: 20rpx; + box-sizing: border-box; + color: #fff; + display: flex; + justify-content: center; + align-items: center; + 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); + z-index: 999; } \ No newline at end of file diff --git a/pages/home/xx/hy/index.js b/pages/home/xx/hy/index.js index 47f9c69..07ec2bd 100644 --- a/pages/home/xx/hy/index.js +++ b/pages/home/xx/hy/index.js @@ -7,21 +7,21 @@ Page({ * 页面的初始数据 */ data: { - + list: [] }, go2Reback(){ wx.navigateTo({ - url: '/pages/home/xx/lindex/lindex' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Xz(){ wx.navigateTo({ - url: '/pages/home/xx/hy/xz/zt' + url: '/pages/home/xx/hy/index' }) }, go2Yx(){ wx.navigateTo({ - url: '/pages/home/xx/hy/index' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Hx(){ @@ -34,11 +34,52 @@ Page({ url: '/pages/home/xx/hy/zt/zt' }) }, + delLetter(){ + console.log('删除'); + }, + getList(){ + req.getRequest('/api/user/curt/message/lover',{ + limit:-1, + type: 'letter' + }).then(res => { + const list = res.data.data.records + list.forEach(item => { + // 将时间字符串转为Date对象 + const date = new Date(item.createdAt); + + // 获取年月日时分秒 + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const hour = date.getHours(); + const minute = date.getMinutes(); + const second = date.getSeconds(); + + // 格式化时间 + const formattedDate = `${year}年${month}月${day}日 ${hour}:${minute}`; + item.createdAt = formattedDate + }) + + console.log(list); + this.setData({list: list}) + }) + }, + getLoveInfo(){ + req.getRequest('/api/user/curt/lover',{}).then(res => { + console.log(res); + this.setData({ + avatar: res.data.data.avatar, + nick: res.data.data.nick + }) + }) + }, + /** * 生命周期函数--监听页面加载 */ onLoad(options) { - + this.getList() + this.getLoveInfo() }, /** diff --git a/pages/home/xx/hy/index.json b/pages/home/xx/hy/index.json index bea53a8..c9aa53a 100644 --- a/pages/home/xx/hy/index.json +++ b/pages/home/xx/hy/index.json @@ -1,5 +1,5 @@ { "usingComponents": { - "t-image": "tdesign-miniprogram/image/image" + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" } } \ No newline at end of file diff --git a/pages/home/xx/hy/index.wxml b/pages/home/xx/hy/index.wxml index 114f7ba..66eaf5a 100644 --- a/pages/home/xx/hy/index.wxml +++ b/pages/home/xx/hy/index.wxml @@ -1,7 +1,26 @@ -音讯 +信札 + + + + + + + + + + + 昵称七个字昵称 + {{item.createdAt}} + + + + + 删除 + + diff --git a/pages/home/xx/hy/index.wxss b/pages/home/xx/hy/index.wxss index 042c227..0800f94 100644 --- a/pages/home/xx/hy/index.wxss +++ b/pages/home/xx/hy/index.wxss @@ -7,6 +7,7 @@ height:48rpx; background-repeat: no-repeat; background-size:100% 100%; + z-index: 1; background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/reback.png); } @@ -19,48 +20,107 @@ color: rgba(108, 108, 108, 1); font-size: 32rpx; text-align: center; + z-index: 1; font-family: SourceHanSansSC-regular; } .xfgjl{ position: fixed; left: 0px; + display: flex; + justify-content: space-evenly; margin-top: 1416rpx; width: 750rpx; - height: 87px; - line-height: 20px; - opacity: 0.7; - background-color: rgba(255, 255, 255, 1); - text-align: center; + height: 174rpx; + line-height: 40rpx; } .xxqlcd{ - position: absolute; - - top: 32rpx; - width: 55px; - height: 55px; - border-radius: 56rpx; + 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); - font-size: 12px; + font-size: 32rpx; text-align: center; box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4); font-family: Arial; border: 5rpx solid rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1); -font-size: 16px; -text-align: center; -font-family: SourceHanSansSC-medium; + text-align: center; + font-family: SourceHanSansSC-medium; +} + +.main { + position: absolute; + width: 100%; + height: 100%; + padding-top: 208rpx; + box-sizing: border-box; + background-size: contain; } -.xxqlcd1{ - left: 21px; + +.main-bgc { + position: fixed; + top: 334rpx; + width: 100%; + height: 1000rpx; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/%E4%BF%A1%E6%9C%AD%E8%83%8C%E6%99%AF.png); } -.xxqlcd2{ - left: 114px; + +.main-item { + width: 100%; + height: 120rpx; + display: flex; + align-items: center; + padding: 20rpx 48rpx 20rpx 32rpx; + box-sizing: border-box; + margin-bottom: 32rpx; } -.xxqlcd3{ - left: 206px; + +.item-left { + width: 80rpx; + height: 80rpx; + border-radius: 50%; + box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4); } -.xxqlcd4{ - left: 299px; + +.item-text { + flex: 1; + height: 100%; +} + +.item-right { + width: 148rpx; + height: 102rpx; + background-size: contain; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/%E4%BF%A1%E5%B0%81.png); +} + +.item-text-name { + color: rgba(108, 108, 108, 1); + font-size: 28rpx; + margin-left: 32rpx; + margin-bottom: 10rpx; +} + +.item-text-time { + color: rgba(153, 153, 153, 1); + font-size: 24rpx; + margin-left: 32rpx; +} + +.delete-btn { + height: 100%; + width: 146rpx; + background-color: #FF562C; + display: flex; + justify-content: center; + align-items: center; + color: #fff; +} + +.item-left image { + width: 100%; + height: 100%; + border-radius: 50%; } \ No newline at end of file diff --git a/pages/home/xx/hy/xz/zt.js b/pages/home/xx/hy/xz/zt.js deleted file mode 100644 index 47f9c69..0000000 --- a/pages/home/xx/hy/xz/zt.js +++ /dev/null @@ -1,92 +0,0 @@ -// pages/home/xx/hy/index.js -const app = getApp();//新建页面时 默认引入 -const req = app.xzjlReq();//初始化一个的request() 实例 -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - go2Reback(){ - wx.navigateTo({ - url: '/pages/home/xx/lindex/lindex' - }) - }, - go2Xz(){ - wx.navigateTo({ - url: '/pages/home/xx/hy/xz/zt' - }) - }, - go2Yx(){ - wx.navigateTo({ - url: '/pages/home/xx/hy/index' - }) - }, - go2Hx(){ - wx.navigateTo({ - url: '/pages/home/xx/hy/hx/hx' - }) - }, - go2Zt(){ - wx.navigateTo({ - url: '/pages/home/xx/hy/zt/zt' - }) - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file diff --git a/pages/home/xx/hy/xz/zt.json b/pages/home/xx/hy/xz/zt.json deleted file mode 100644 index 3928faa..0000000 --- a/pages/home/xx/hy/xz/zt.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/home/xx/hy/xz/zt.wxml b/pages/home/xx/hy/xz/zt.wxml deleted file mode 100644 index b64471c..0000000 --- a/pages/home/xx/hy/xz/zt.wxml +++ /dev/null @@ -1,12 +0,0 @@ - - - -信札 - - - -信札 -音讯 -画像 -纸条 - diff --git a/pages/home/xx/hy/xz/zt.wxss b/pages/home/xx/hy/xz/zt.wxss deleted file mode 100644 index 042c227..0000000 --- a/pages/home/xx/hy/xz/zt.wxss +++ /dev/null @@ -1,66 +0,0 @@ -/* pages/home/xx/hy/index.wxss */ -.reback{ - position: fixed; - margin-left: 20rpx; - margin-top:108rpx; - width:48rpx; - height:48rpx; - background-repeat: no-repeat; - background-size:100% 100%; - background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/reback.png); -} - -.title{ - position: fixed; - left: 278rpx; - top: 108rpx; - width: 196rpx; - height: 48rpx; - color: rgba(108, 108, 108, 1); - font-size: 32rpx; - text-align: center; - font-family: SourceHanSansSC-regular; -} -.xfgjl{ - position: fixed; - left: 0px; - margin-top: 1416rpx; - width: 750rpx; - height: 87px; - line-height: 20px; - opacity: 0.7; - background-color: rgba(255, 255, 255, 1); - text-align: center; -} -.xxqlcd{ - position: absolute; - - top: 32rpx; - width: 55px; - height: 55px; - border-radius: 56rpx; - 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); - font-size: 12px; - text-align: center; - box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4); - font-family: Arial; - border: 5rpx solid rgba(255, 255, 255, 1); - color: rgba(255, 255, 255, 1); -font-size: 16px; -text-align: center; -font-family: SourceHanSansSC-medium; -} -.xxqlcd1{ - left: 21px; -} -.xxqlcd2{ - left: 114px; -} -.xxqlcd3{ - left: 206px; -} -.xxqlcd4{ - left: 299px; -} \ No newline at end of file diff --git a/pages/home/xx/hy/yx/yx.js b/pages/home/xx/hy/yx/yx.js new file mode 100644 index 0000000..adde1ce --- /dev/null +++ b/pages/home/xx/hy/yx/yx.js @@ -0,0 +1,140 @@ +// pages/home/xx/hy/index.js +const app = getApp();//新建页面时 默认引入 +const req = app.xzjlReq();//初始化一个的request() 实例 +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + go2Reback(){ + wx.navigateTo({ + url: '/pages/home/xx/hy/yx/yx' + }) + }, + go2Xz(){ + wx.navigateTo({ + url: '/pages/home/xx/hy/index' + }) + }, + go2Yx(){ + wx.navigateTo({ + url: '/pages/home/xx/hy/yx/yx' + }) + }, + go2Hx(){ + wx.navigateTo({ + url: '/pages/home/xx/hy/hx/hx' + }) + }, + go2Zt(){ + wx.navigateTo({ + url: '/pages/home/xx/hy/zt/zt' + }) + }, + delLetter(e){ + const id = e.target.dataset.id + req.deleteRequest(`/api/user/curt/message/${id}`,{}).then(res => { + console.log(res); + if(res.data.code === 200){ + wx.showToast({ + title: '删除成功', + }) + this.getList() + } + }) + }, + getList(){ + req.getRequest('/api/user/curt/message/lover',{ + limit:-1, + type: 'audio' + }).then(res => { + const list = res.data.data.records + list.forEach(item => { + // 将时间字符串转为Date对象 + const date = new Date(item.createdAt); + + // 获取年月日时分秒 + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const hour = date.getHours(); + const minute = date.getMinutes(); + const second = date.getSeconds(); + + // 格式化时间 + const formattedDate = `${year}年${month}月${day}日 ${hour}:${minute}`; + item.createdAt = formattedDate + }) + console.log(list); + this.setData({list: list}) + }) + }, + getLoveInfo(){ + req.getRequest('/api/user/curt/lover',{}).then(res => { + console.log(res); + this.setData({ + avatar: res.data.data.avatar, + nick: res.data.data.nick + }) + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + this.getList() + this.getLoveInfo() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/home/xx/hy/yx/yx.json b/pages/home/xx/hy/yx/yx.json new file mode 100644 index 0000000..c9aa53a --- /dev/null +++ b/pages/home/xx/hy/yx/yx.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + } +} \ No newline at end of file diff --git a/pages/home/xx/hy/yx/yx.wxml b/pages/home/xx/hy/yx/yx.wxml new file mode 100644 index 0000000..539a83a --- /dev/null +++ b/pages/home/xx/hy/yx/yx.wxml @@ -0,0 +1,31 @@ + + + +音讯 + + + + + + + + + {{nick}} + {{item.createdAt}} + + + + 2′24″ + + + 删除 + + + + + +信札 +音讯 +画像 +纸条 + \ No newline at end of file diff --git a/pages/home/xx/hy/yx/yx.wxss b/pages/home/xx/hy/yx/yx.wxss new file mode 100644 index 0000000..6fbb51d --- /dev/null +++ b/pages/home/xx/hy/yx/yx.wxss @@ -0,0 +1,136 @@ +/* pages/home/xx/hy/index.wxss */ +.reback{ + position: fixed; + margin-left: 20rpx; + margin-top:108rpx; + width:48rpx; + height:48rpx; + background-repeat: no-repeat; + background-size:100% 100%; + z-index: 1; + background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/reback.png); +} + +.title{ + position: fixed; + left: 278rpx; + top: 108rpx; + width: 196rpx; + height: 48rpx; + color: rgba(108, 108, 108, 1); + font-size: 32rpx; + text-align: center; + z-index: 1; + font-family: SourceHanSansSC-regular; +} +.xfgjl{ + position: fixed; + left: 0px; + display: flex; + justify-content: space-evenly; + margin-top: 1416rpx; + width: 750rpx; + height: 174rpx; + line-height: 40rpx; +} +.xxqlcd{ + 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); + font-size: 32rpx; + text-align: center; + box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4); + font-family: Arial; + border: 5rpx solid rgba(255, 255, 255, 1); + color: rgba(255, 255, 255, 1); + text-align: center; + font-family: SourceHanSansSC-medium; +} + +.main { + position: absolute; + width: 100%; + height: 100%; + padding-top: 208rpx; + box-sizing: border-box; + background-size: contain; +} + +.main-bgc { + position: fixed; + top: 334rpx; + width: 100%; + height: 1000rpx; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/%E4%BF%A1%E6%9C%AD%E8%83%8C%E6%99%AF.png); +} + +.main-item { + width: 100%; + height: 120rpx; + display: flex; + align-items: center; + padding: 20rpx 48rpx 20rpx 32rpx; + box-sizing: border-box; + margin-bottom: 32rpx; +} + +.item-left { + width: 80rpx; + height: 80rpx; + border-radius: 50%; + box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4); +} + +.item-left image { + width: 100%; + height: 100%; + border-radius: 50%; +} + +.item-text { + flex: 1; + height: 100%; +} + +.item-right { + width: 148rpx; + height: 102rpx; + border-radius: 20rpx; + padding-left: 46rpx; + box-sizing: border-box; + background-color: rgba(255, 252, 243, 1); + border: 1px solid rgba(239, 239, 239, 1); +} + +.item-right-icon { + width: 60rpx; + height: 60rpx; + background-size: contain; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/iconPark-voicemail%20Copy%401x.png); +} + +.item-text-name { + color: rgba(108, 108, 108, 1); + font-size: 28rpx; + margin-left: 32rpx; + margin-bottom: 10rpx; +} + +.item-text-time { + color: rgba(153, 153, 153, 1); + font-size: 24rpx; + margin-left: 32rpx; +} + +.delete-btn { + height: 100%; + width: 146rpx; + background-color: #FF562C; + display: flex; + justify-content: center; + align-items: center; + color: #fff; +} \ No newline at end of file diff --git a/pages/home/xx/hy/zt/zt.js b/pages/home/xx/hy/zt/zt.js index 47f9c69..4347f89 100644 --- a/pages/home/xx/hy/zt/zt.js +++ b/pages/home/xx/hy/zt/zt.js @@ -11,17 +11,17 @@ Page({ }, go2Reback(){ wx.navigateTo({ - url: '/pages/home/xx/lindex/lindex' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Xz(){ wx.navigateTo({ - url: '/pages/home/xx/hy/xz/zt' + url: '/pages/home/xx/hy/index' }) }, go2Yx(){ wx.navigateTo({ - url: '/pages/home/xx/hy/index' + url: '/pages/home/xx/hy/yx/yx' }) }, go2Hx(){ @@ -34,11 +34,56 @@ Page({ url: '/pages/home/xx/hy/zt/zt' }) }, + delLetter(e){ + const id = e.target.dataset.id + req.deleteRequest(`/api/user/curt/message/${id}`,{}).then(res => { + console.log(res, '删除成功'); + this.getList() + }) + }, + getList(){ + req.getRequest('/api/user/curt/message/lover',{ + limit:-1, + type: 'text' + }).then(res => { + const list = res.data.data.records + list.forEach(item => { + // 将时间字符串转为Date对象 + const date = new Date(item.createdAt); + + // 获取年月日时分秒 + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const hour = date.getHours(); + const minute = date.getMinutes(); + const second = date.getSeconds(); + + // 格式化时间 + const formattedDate = `${year}年${month}月${day}日 ${hour}:${minute}`; + item.createdAt = formattedDate + }) + + console.log(list); + this.setData({list: list}) + }) + }, + getLoveInfo(){ + req.getRequest('/api/user/curt/lover',{}).then(res => { + console.log(res); + this.setData({ + avatar: res.data.data.avatar, + nick: res.data.data.nick + }) + }) + }, + /** * 生命周期函数--监听页面加载 */ onLoad(options) { - + this.getList() + this.getLoveInfo() }, /** diff --git a/pages/home/xx/hy/zt/zt.json b/pages/home/xx/hy/zt/zt.json index 3928faa..c9aa53a 100644 --- a/pages/home/xx/hy/zt/zt.json +++ b/pages/home/xx/hy/zt/zt.json @@ -1,3 +1,5 @@ { - "usingComponents": {} + "usingComponents": { + "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" + } } \ No newline at end of file diff --git a/pages/home/xx/hy/zt/zt.wxml b/pages/home/xx/hy/zt/zt.wxml index 8a5938d..3755a34 100644 --- a/pages/home/xx/hy/zt/zt.wxml +++ b/pages/home/xx/hy/zt/zt.wxml @@ -1,12 +1,30 @@ - + - + 纸条 + + + + + + + + {{nick}} + {{ item.createdAt }} + + + {{item.content}} + + + 删除 + + + 信札 音讯 画像 纸条 - + \ No newline at end of file diff --git a/pages/home/xx/hy/zt/zt.wxss b/pages/home/xx/hy/zt/zt.wxss index 042c227..02f92bc 100644 --- a/pages/home/xx/hy/zt/zt.wxss +++ b/pages/home/xx/hy/zt/zt.wxss @@ -7,6 +7,7 @@ height:48rpx; background-repeat: no-repeat; background-size:100% 100%; + z-index: 1; background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/me/reback.png); } @@ -19,48 +20,109 @@ color: rgba(108, 108, 108, 1); font-size: 32rpx; text-align: center; + z-index: 1; font-family: SourceHanSansSC-regular; } .xfgjl{ position: fixed; left: 0px; + display: flex; + justify-content: space-evenly; margin-top: 1416rpx; width: 750rpx; - height: 87px; - line-height: 20px; - opacity: 0.7; - background-color: rgba(255, 255, 255, 1); - text-align: center; + height: 174rpx; + line-height: 40rpx; } .xxqlcd{ - position: absolute; - - top: 32rpx; - width: 55px; - height: 55px; - border-radius: 56rpx; + 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); - font-size: 12px; + font-size: 32rpx; text-align: center; box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4); font-family: Arial; border: 5rpx solid rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1); -font-size: 16px; -text-align: center; -font-family: SourceHanSansSC-medium; + text-align: center; + font-family: SourceHanSansSC-medium; } -.xxqlcd1{ - left: 21px; + +.main { + position: absolute; + width: 100%; + padding-top: 208rpx; + padding-bottom: 200rpx; + box-sizing: border-box; + background-size: contain; } -.xxqlcd2{ - left: 114px; + +.main-bgc { + position: fixed; + top: 334rpx; + width: 100%; + height: 1000rpx; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/%E4%BF%A1%E6%9C%AD%E8%83%8C%E6%99%AF.png); } -.xxqlcd3{ - left: 206px; + +.main-item { + width: 100%; + height: 120rpx; + display: flex; + align-items: center; + box-sizing: border-box; + margin-bottom: 32rpx; +} + +.item-left { + width: 80rpx; + height: 80rpx; + border-radius: 50%; + margin-left: 32rpx; + box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4); } -.xxqlcd4{ - left: 299px; + +.item-text { + flex: 1; + height: 100%; + margin-top: 48rpx; +} + +.item-right { + width: 366rpx; + height: 120rpx; + box-sizing: border-box; + background-size: contain; + color: rgba(51, 51, 51, 1); + font-size: 28rpx; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xy/%E7%BA%B8%E6%9D%A1.png); +} + +.item-text-name { + color: rgba(108, 108, 108, 1); + font-size: 28rpx; + margin-left: 32rpx; + margin-bottom: 10rpx; +} + +.item-text-time { + color: rgba(153, 153, 153, 1); + font-size: 24rpx; + margin-left: 32rpx; +} + +.delete-btn { + height: 100%; + width: 146rpx; + background-color: #FF562C; + display: flex; + justify-content: center; + align-items: center; + color: #fff; } \ No newline at end of file diff --git a/pages/home/xx/lindex/lindex.wxss b/pages/home/xx/lindex/lindex.wxss index 4393aa7..64d5c2a 100644 --- a/pages/home/xx/lindex/lindex.wxss +++ b/pages/home/xx/lindex/lindex.wxss @@ -151,13 +151,11 @@ font-family: SourceHanSansSC-regular; .xfgjl{ position: fixed; bottom: 30rpx; - left: 0px; + left: 0; width: 100%; height: 174rpx; - opacity: 0.7; display: flex; justify-content: space-evenly; - background-color: rgba(255, 255, 255, 1); } .ltinfo{ diff --git a/pages/home/xx/xz/xz.js b/pages/home/xx/xz/xz.js index 77d0e2b..ecdf787 100644 --- a/pages/home/xx/xz/xz.js +++ b/pages/home/xx/xz/xz.js @@ -43,14 +43,20 @@ Page({ type: 'text', content: this.data.content }) - const formData = { + const fromData = { from: this.data.from, to: this.data.to, - messageList: list + messageList: list, + status:'unread' } - console.log(formData); - req.putRequest('/api/user/curt/letter',{formData}).then(res => { - console.log(res); + console.log(fromData); + // 修改信札 + req.putRequest('/api/user/curt/letter',fromData).then(res => { + console.log(res,'修改信札内容成功'); + // 修改状态 + req.patchRequest('/api/user/curt/letter/send',{}).then(res => { + console.log(res,'信札状态修改成功'); + }) }) }, closeShowImgBig(){ @@ -251,6 +257,11 @@ Page({ console.log('获取当前用户信札内容'); req.getRequest('/api/user/curt/letter',{}).then(res => { console.log(res); + res.data.data.messageList.forEach(item => { + if(item.type === 'text'){ + this.setData({content: item.content}) + } + }) this.setData({ to: res.data.data.to, from: res.data.data.from, diff --git a/pages/home/xx/xz/xz.wxss b/pages/home/xx/xz/xz.wxss index 2f28763..08639ee 100644 --- a/pages/home/xx/xz/xz.wxss +++ b/pages/home/xx/xz/xz.wxss @@ -481,7 +481,7 @@ 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); + background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xzt.png); } .already-text { diff --git a/pages/home/xyc/index.wxml b/pages/home/xyc/index.wxml index 54b87d8..7fed1e1 100644 --- a/pages/home/xyc/index.wxml +++ b/pages/home/xyc/index.wxml @@ -51,7 +51,7 @@ - + 愿望祝福中…… diff --git a/pages/home/xyc/wdyw/wdyw.wxml b/pages/home/xyc/wdyw/wdyw.wxml index 517ea7a..d17ca3e 100644 --- a/pages/home/xyc/wdyw/wdyw.wxml +++ b/pages/home/xyc/wdyw/wdyw.wxml @@ -27,6 +27,9 @@ + + + diff --git a/pages/home/xyc/wdyw/wdyw.wxss b/pages/home/xyc/wdyw/wdyw.wxss index 6442c71..b3c6365 100644 --- a/pages/home/xyc/wdyw/wdyw.wxss +++ b/pages/home/xyc/wdyw/wdyw.wxss @@ -358,4 +358,22 @@ border: 3px solid rgba(255, 255, 255, 1); } .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; } \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 207b117..c17a712 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -122,9 +122,6 @@ Page({ duration: 1000 }) this.getLetter() - wx.switchTab({ - url: '/pages/home/xy/index' - }) }else if(res.data.code==500){ this.loginErrorToast(mode) }else{ @@ -143,16 +140,27 @@ Page({ console.log(err); }) }, - // 获取当前用户信札 + // 判断是否用未读信札 getLetter(){ console.log(wx.getStorageSync('token')); wx.request({ - url: 'https://xzjl-api.windymuse.cn/api/user/curt/lover/letter', + url: 'https://xzjl-api.windymuse.cn/api/user/curt', header: {'Authorization': wx.getStorageSync('token')}, method: 'GET', success: res => { - console.log(res); + console.log(res.data.data.letterStatus); + const letterStatus = res.data.data.letterStatus // 这里可以判断是否有未读信札 + if (letterStatus === 'sending') { + console.log('跳转信札页面'); + wx.redirectTo({ + url: '/pages/xz/index' + }) + }else { + wx.switchTab({ + url: '/pages/home/xy/index' + }) + } } }) } diff --git a/pages/xz/index.js b/pages/xz/index.js new file mode 100644 index 0000000..1469421 --- /dev/null +++ b/pages/xz/index.js @@ -0,0 +1,156 @@ +// pages/xz/index.js +const app = getApp();//新建页面时 默认引入 +const req = app.xzjlReq();//初始化一个的request() 实例 + +Page({ + + /** + * 页面的初始数据 + */ + data: { + img:'https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/xzimg.png', + letterMsg:{}, + showLetter: true, + showMore: false, + showDel:false + }, + openLetter(){ + this.setData({showLetter: !this.data.showLetter}), + req.patchRequest('/api/user/curt/letter/read',{}).then(res => { + console.log(res,'已读信札'); + }) + }, + openMore(){this.setData({showMore: !this.data.showMore})}, + openDel(){this.setData({showDel: !this.data.showDel})}, + getLetterMsg(id){ + console.log('获取信札'); + req.getRequest('/api/user/curt/letter',{}).then(res => { + console.log(res); + const { messageList } = res.data.data + // 获取创建时间 + const date = new Date(res.header.Date); + // 获取年月日时分秒等信息 + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const hour = date.getHours(); + const minute = date.getMinutes(); + const formattedDate = `${year}年${month}月${day}日 ${hour}:${minute}`; + this.setData({ + letterMsg: res.data.data, + time: formattedDate + }) + // 判断是否有图片 + console.log(messageList); + messageList.forEach(item => { + if (item.type === 'text') { + this.setData({content: item.content}) + }else if(item.type === 'graphic') { + this.getResource(id, item.resourceId, 'graphic') + }else if(item.type === 'audio') { + this.getResource(id, item.resourceId, 'audio') + } + }) + }) + }, + getUserInfo(){ + req.getRequest('/api/user/curt',{}).then(res => { + const id = res.data.data.id + // console.log(res.data.data.id,'当前用户id'); + this.getLetterMsg(id) + }) + }, + // 获取文件 + getResource(id,k,type){ + if(type === 'graphic'){ + this.setData({ + img: `https://xzjl-api.windymuse.cn/api/resource/${k}?k=${id}` + }) + }else if(type === 'audio'){ + this.setData({ + videos: `https://xzjl-api.windymuse.cn/api/resource/${k}?k=${id}` + }) + console.log(this.data.videos,'语音路径'); + } + }, + // 播放录音 + playVideos(){ + console.log('播放录音'); + wx.playVoice({ + filePath: this.data.videos, + complete: () => { + console.log('录音播放结束'); + } + }); + }, + // 重置信札 + resetLetter(){ + req.putRequest('/api/user/curt/letter/reset',{}).then( res => { + console.log(res, '重置成功'); + }) + wx.switchTab({ + url: '/pages/home/xy/index' + }) + }, + go2Back(){ + wx.switchTab({ + url: '/pages/home/xy/index' + }) + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + this.getUserInfo() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/xz/index.json b/pages/xz/index.json new file mode 100644 index 0000000..3279322 --- /dev/null +++ b/pages/xz/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "t-icon": "tdesign-miniprogram/icon/icon" + } +} \ No newline at end of file diff --git a/pages/xz/index.wxml b/pages/xz/index.wxml new file mode 100644 index 0000000..d6ec793 --- /dev/null +++ b/pages/xz/index.wxml @@ -0,0 +1,63 @@ + + + + + + + + + Hi~ + 这里有一封来自 + 【{{letterMsg.from}}】 + 寄给你的信! + 快点击信封打开看看吧! + + + 打开 + + + + + + + + + To:{{letterMsg.to}} + {{content}} + + + 2′24″ + + + + + Form:{{letterMsg.from}} + {{time}} + + + + + + + + + + 烧毁 + 修改 + + + + + + + + 确定要烧毁信件吗? + 烧毁后信件将彻底消失 + + 取消 + 确认 + + + + + \ No newline at end of file diff --git a/pages/xz/index.wxss b/pages/xz/index.wxss new file mode 100644 index 0000000..f04f50c --- /dev/null +++ b/pages/xz/index.wxss @@ -0,0 +1,288 @@ +.already { + position: absolute; + 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: cover; +} + +.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=AKIDfvpcLTNuapJJHUt0Z2rbBMp4k2pff5pWzlB5o9--17jbvIhKwVSQfyquVN8nNxo8&q-sign-time=1686534496;1686538096&q-key-time=1686534496;1686538096&q-header-list=host&q-url-param-list=ci-process&q-signature=0b0d7bf20a2353114083673bdd497b5fd18d0a9f&x-cos-security-token=A0Hm0aVxi1d56hf0mChBZ7Edq8QG89uac5b83c45bef2b85a205521b986a97c6cQJmRBPRfeIpaoWvsyFmIxmdsaVt0UDGCkVi9Ydxb2ErOZqsBa_JJDPzxfBOZdg6Yj8M8FOqnsqp1Uy1UOt2o02Z6sW2LqFMMV4DxsAYO5xqjoTZ530uZhKuZ9jYMk_fc_VF9viosxMHtAR9nAFDUR0XfaNxiQABXw3xTSFDbF8K0BT9RI3X-Weotpg7BsqSnAlr5a5NuSk0Xi68873kz7A&ci-process=originImage); + background-size: cover; +} + +.already-img { + margin: 0 auto; + width: 660rpx; + height: 522rpx; + background-size: contain; + background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xzt.png); +} + +.already-text { + width: 100%; + margin-top: 80rpx; +} + +.already-text0 { + width: 100%; + padding-left: 178rpx; + box-sizing: border-box; + color: rgba(108, 108, 108, 1); + font-size: 18px; + margin-bottom: 30rpx; +} + +.already-text1 { + width: 100%; + display: flex; + justify-content: center; + color: rgba(108, 108, 108, 1); + font-size: 18px; + margin-bottom: 10rpx; +} + +.already-btn { + width: 100%; + margin-top: 96rpx; + display: flex; + justify-content: center; +} + +.already-btn .btn { + width: 210rpx; + height: 70rpx; + box-sizing: border-box; + 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; +} + +.body { + position: absolute; + top: 0; + width: 100%; + height: 100%; + padding-top: 114rpx; + box-sizing: border-box; +} + +.xinfo{ + background-color: #FFFCF3; + margin: 0 auto; + width: 616rpx; + height: 1300rpx; + padding-top: 50rpx; + border-radius: 20rpx; + box-sizing: border-box; + box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4); +} + +.xinfo-title { + margin-left: 60rpx; + color: rgba(108, 108, 108, 1); + font-size: 32rpx; + text-align: left; + font-weight: 700; +} + +.xinfo-main { + color: rgba(108, 108, 108, 1); + font-size: 14px; + margin: 32rpx 50rpx; +} + +.xinfo-voice { + width: 384rpx; + height: 84rpx; + display: flex; + align-items: center; + margin:0 0 48rpx 50rpx; + padding-left: 48rpx; + box-sizing: border-box; + background-size: cover; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/ltqp.png); +} + +.xinfo-icon { + width: 60rpx; + height: 60rpx; + background-size: cover; + margin-right: 20rpx; + background-image: url(https://wk921-1316969570.cos.ap-nanjing.myqcloud.com/%E8%AF%AD%E9%9F%B3.png); +} + +.xinfo-img { + width: 100%; + height: 448rpx; + margin-bottom: 44rpx; + display: flex; + align-items: center; + justify-content: center; +} + +.xinfo-img image { + height: 100%; + width: 480rpx; +} + +.xinfo-sign { + color: rgba(108, 108, 108, 1); + font-size: 32rpx; + font-weight: 700; + text-align: right; + margin-right: 60rpx; +} + +.xinfo-time { + color: rgba(108, 108, 108, 1); + font-size: 14px; + text-align: right; + margin-right: 60rpx; + margin-top: 16rpx; +} + +.body-btm-img { + position: absolute; + top: 790rpx; + width: 100%; + height: 900rpx; + background-size: cover; + background-image: url(https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xx/xz/bgt2.png); +} + +.btm-img-icon { + position: absolute; + top: 508rpx; + left: 308rpx; + 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; +} + +.btm-img-goback { + position: absolute; + 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; +} + +.btm-img-goback image { + width: 60rpx; + height: 60rpx; +} + +.btm-img-more { + position: absolute; + 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; + z-index: 1; +} + +.btm-img-more image { + width: 80rpx; + height: 80rpx; + z-index: 2; +} + +.modify { + position: absolute; + top: 500rpx; + right: 32rpx; + color: #fff; +} + +.del { + position: absolute; + top: 350rpx; + right: 32rpx; + color: #fff; +} + +.delete { + position: absolute; + top: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + z-index: 99; + background-color: rgba(255, 255, 255, 0.9); +} + +.delete-box { + width: 586rpx; + height: 434rpx; + border-radius: 30rpx; + padding-top: 104rpx; + box-sizing: border-box; + background-color: rgba(255, 255, 255, 1); + color: rgba(16, 16, 16, 1); + box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.4); +} + +.box-text { + width: 100%; + text-align: center; + color: rgba(108, 108, 108, 1); + font-size: 36rpx; + margin-bottom: 10rpx; +} + +.box-btn { + width: 100%; + margin-top: 100rpx; + display: flex; + justify-content: space-evenly; +} + +.box-btn .btn { + width: 210rpx; + height: 70rpx; + border-radius: 20rpx; + box-sizing: border-box; + 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: 3px solid rgba(255, 255, 255, 1); + color: #fff; + display: flex; + justify-content: center; + align-items: center; +} \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index 324e41e..f5da2c1 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -31,14 +31,28 @@ }, { "name": "", - "pathName": "pages/home/me/jcjb/jcjb", + "pathName": "pages/home/xx/xz/xz", "query": "", "launchMode": "default", "scene": null }, { "name": "", - "pathName": "pages/home/xx/xz/xz", + "pathName": "pages/xz/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "", + "pathName": "pages/home/xx/hy/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "", + "pathName": "pages/home/xx/hy/hx/hx", "query": "", "launchMode": "default", "scene": null