cyl/develop
wangxia 1 year ago
parent ff3cdb0a7d
commit 658d045a95

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1741661064794" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1958" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z" fill="#25C251" p-id="1959"></path><path d="M622.933333 328.533333c-4.266667 0-8.533333-2.133333-10.666666-4.266666-2.133333-2.133333-6.4-6.4-6.4-10.666667-2.133333-4.266667-4.266667-8.533333-4.266667-12.8 0-4.266667-2.133333-8.533333-2.133333-10.666667v-72.533333h2.133333c4.266667 0 6.4 0 10.666667 2.133333s6.4 2.133333 10.666666 6.4 10.666667 6.4 17.066667 12.8c6.4 4.266667 14.933333 12.8 23.466667 21.333334 10.666667 8.533333 19.2 17.066667 25.6 23.466666s10.666667 12.8 14.933333 17.066667c4.266667 4.266667 6.4 8.533333 6.4 10.666667 0 2.133333 2.133333 6.4 2.133333 8.533333v8.533333h-89.6z m183.466667 275.2c2.133333 2.133333 2.133333 6.4 2.133333 12.8 0 4.266667-2.133333 8.533333-6.4 12.8-2.133333 2.133333-4.266667 4.266667-4.266666 6.4-2.133333 2.133333-2.133333 4.266667-4.266667 4.266667l-4.266667 4.266667-49.066666-49.066667c2.133333-2.133333 4.266667-4.266667 8.533333-6.4 2.133333-2.133333 6.4-4.266667 6.4-6.4 4.266667-4.266667 10.666667-6.4 14.933333-6.4 6.4 0 10.666667 2.133333 12.8 4.266667 4.266667 2.133333 8.533333 6.4 12.8 10.666666 4.266667 2.133333 8.533333 8.533333 10.666667 12.8z m-206.933333 55.466667c8.533333 0 14.933333-2.133333 21.333333-6.4l-113.066667 119.466667h-162.133333c-6.4 0-14.933333-2.133333-23.466667-6.4s-17.066667-10.666667-25.6-17.066667c-8.533333-6.4-14.933333-14.933333-19.2-23.466667-4.266667-8.533333-8.533333-19.2-8.533333-27.733333V294.4c0-8.533333 2.133333-17.066667 6.4-25.6 4.266667-8.533333 8.533333-17.066667 14.933333-23.466667 6.4-6.4 12.8-12.8 21.333334-19.2 8.533333-4.266667 17.066667-6.4 25.6-6.4h224v72.533334c0 6.4 2.133333 14.933333 4.266666 23.466666s6.4 17.066667 10.666667 23.466667c4.266667 6.4 10.666667 12.8 19.2 19.2s17.066667 6.4 27.733333 6.4h85.333334v194.133333l-81.066667 83.2c4.266667-6.4 6.4-12.8 6.4-21.333333 0-10.666667-4.266667-19.2-10.666667-25.6-6.4-6.4-14.933333-10.666667-25.6-10.666667H379.733333c-10.666667 0-19.2 4.266667-25.6 10.666667-6.4 6.4-10.666667 14.933333-10.666666 25.6s4.266667 19.2 10.666666 25.6c6.4 6.4 14.933333 10.666667 25.6 10.666667 0 2.133333 219.733333 2.133333 219.733334 2.133333zM379.733333 439.466667c-10.666667 0-19.2 4.266667-25.6 10.666666-6.4 6.4-10.666667 14.933333-10.666666 25.6s4.266667 19.2 10.666666 25.6c6.4 6.4 14.933333 10.666667 25.6 10.666667h219.733334c10.666667 0 19.2-4.266667 25.6-10.666667 6.4-6.4 10.666667-14.933333 10.666666-25.6s-4.266667-19.2-10.666666-25.6c-6.4-6.4-14.933333-10.666667-25.6-10.666666H379.733333z m219.733334 292.266666l8.533333-8.533333 14.933333-14.933333 19.2-19.2 21.333334-21.333334c17.066667-17.066667 36.266667-36.266667 57.6-55.466666l49.066666 49.066666-57.6 57.6-21.333333 21.333334-19.2 19.2c-6.4 6.4-10.666667 10.666667-12.8 14.933333l-6.4 6.4c-2.133333 2.133333-4.266667 4.266667-6.4 4.266667-2.133333 2.133333-4.266667 4.266667-6.4 4.266666-2.133333 2.133333-6.4 2.133333-10.666667 4.266667s-10.666667 4.266667-14.933333 4.266667c-4.266667 2.133333-10.666667 2.133333-14.933333 4.266666-4.266667 2.133333-8.533333 2.133333-10.666667 2.133334-4.266667 0-8.533333 0-8.533333-2.133334-4.266667 0-4.266667-4.266667-4.266667-8.533333 0-2.133333 2.133333-6.4 2.133333-10.666667 2.133333-4.266667 2.133333-8.533333 4.266667-14.933333 2.133333-4.266667 2.133333-8.533333 4.266667-12.8s2.133333-6.4 4.266666-8.533333c2.133333-6.4 6.4-10.666667 8.533334-14.933334z" fill="#FFFFFF" p-id="1960"></path></svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1741661031533" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1744" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z" fill="#10C7C1" p-id="1745"></path><path d="M307.2 247.466667h360.533333c19.2 0 38.4 8.533333 51.2 21.333333 10.666667 12.8 17.066667 27.733333 17.066667 44.8v189.866667c0 4.266667 0 8.533333-2.133333 10.666666-2.133333 6.4-10.666667 10.666667-19.2 6.4-23.466667-10.666667-49.066667-17.066667-74.666667-14.933333-21.333333 2.133333-42.666667 8.533333-61.866667 19.2-32 17.066667-55.466667 46.933333-68.266666 78.933333-12.8 36.266667-10.666667 76.8 4.266666 110.933334 4.266667 8.533333 8.533333 14.933333 12.8 21.333333 0 2.133333 2.133333 2.133333 2.133334 4.266667 2.133333 4.266667 2.133333 8.533333 0 12.8-2.133333 4.266667-6.4 6.4-10.666667 6.4h-202.666667c-17.066667 0-34.133333-6.4-46.933333-19.2-12.8-12.8-19.2-32-19.2-49.066667V315.733333c0-12.8 4.266667-27.733333 10.666667-38.4 10.666667-17.066667 27.733333-27.733333 46.933333-29.866666m49.066667 113.066666c-4.266667 2.133333-8.533333 4.266667-8.533334 10.666667-2.133333 4.266667 0 8.533333 4.266667 12.8 2.133333 2.133333 6.4 4.266667 10.666667 4.266667H633.6c6.4-2.133333 10.666667-8.533333 8.533333-14.933334 0-6.4-6.4-12.8-12.8-12.8H358.4c0-2.133333-2.133333-2.133333-2.133333 0m2.133333 108.8c-4.266667 0-8.533333 2.133333-10.666667 6.4-4.266667 4.266667-4.266667 12.8 0 17.066667 2.133333 2.133333 6.4 4.266667 10.666667 4.266667h147.2c4.266667 0 8.533333-2.133333 10.666667-6.4 2.133333-4.266667 2.133333-10.666667 0-14.933334 0-2.133333-4.266667-6.4-10.666667-6.4h-147.2z" fill="#FFFFFF" p-id="1746"></path><path d="M642.133333 533.333333c19.2-2.133333 36.266667 0 53.333334 6.4 21.333333 8.533333 42.666667 23.466667 55.466666 42.666667 10.666667 14.933333 19.2 32 21.333334 49.066667 4.266667 23.466667 2.133333 46.933333-6.4 68.266666-6.4 17.066667-17.066667 32-29.866667 44.8-12.8 12.8-29.866667 21.333333-49.066667 27.733334-21.333333 6.4-46.933333 6.4-68.266666 0-17.066667-4.266667-34.133333-14.933333-49.066667-27.733334-19.2-17.066667-32-40.533333-36.266667-64-4.266667-19.2-4.266667-40.533333 2.133334-59.733333 6.4-19.2 17.066667-38.4 32-51.2 19.2-21.333333 46.933333-34.133333 74.666666-36.266667m-14.933333 83.2v59.733334c2.133333 4.266667 6.4 8.533333 10.666667 8.533333h57.6c4.266667 0 8.533333-2.133333 10.666666-6.4 4.266667-6.4 2.133333-12.8-4.266666-17.066667-4.266667-2.133333-8.533333-2.133333-10.666667-2.133333h-36.266667V618.666667c0-2.133333 0-6.4-2.133333-8.533334-2.133333-4.266667-8.533333-6.4-14.933333-6.4-6.4 2.133333-10.666667 6.4-10.666667 12.8z" fill="#FFFFFF" p-id="1747"></path></svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1741660955342" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1579" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z" fill="#25C251" p-id="1580"></path><path d="M633.6 467.2a142.933333 142.933333 0 1 1 0 285.866667 142.933333 142.933333 0 0 1 0-285.866667z m-345.6 125.866667c29.866667 27.733333 87.466667 49.066667 185.6 53.333333 8.533333 42.666667 34.133333 81.066667 70.4 106.666667-12.8 0-27.733333 2.133333-42.666667 2.133333-142.933333 0-226.133333-34.133333-226.133333-76.8v-61.866667c2.133333-8.533333 6.4-17.066667 12.8-23.466666z m435.2-25.6l-76.8 27.733333c-4.266667 2.133333-6.4 4.266667-6.4 8.533333v93.866667c0 4.266667 4.266667 8.533333 8.533333 6.4 6.4-4.266667 17.066667-8.533333 25.6-12.8h2.133334l2.133333-2.133333h2.133333c19.2-8.533333 36.266667-19.2 36.266667-19.2 6.4-2.133333 10.666667-8.533333 10.666667-17.066667V586.666667v-14.933334c2.133333-2.133333 0-4.266667-4.266667-4.266666z m-181.333333 4.266666V646.4c0 6.4 4.266667 12.8 8.533333 14.933333l68.266667 38.4c4.266667 2.133333 8.533333 0 10.666666-6.4v-93.866666c0-4.266667-2.133333-6.4-6.4-8.533334l-76.8-27.733333c0 2.133333-4.266667 6.4-4.266666 8.533333z m-253.866667-140.8c32 32 96 53.333333 211.2 53.333334h8.533333c-25.6 29.866667-40.533333 68.266667-40.533333 106.666666-121.6-4.266667-192-36.266667-192-76.8v-61.866666c2.133333-6.4 6.4-12.8 12.8-21.333334z m347.733333 87.466667h-6.4L554.666667 550.4c-2.133333 0-2.133333 0-2.133334 2.133333-2.133333 0-2.133333 4.266667 0 4.266667l78.933334 29.866667c4.266667 2.133333 8.533333 2.133333 10.666666 0l78.933334-29.866667c2.133333 0 2.133333-2.133333 0-4.266667l-2.133334-2.133333-76.8-29.866667c-2.133333-2.133333-4.266667-2.133333-6.4-2.133333z m-142.933333-264.533333c136.533333 0 230.4 34.133333 230.4 74.666666v44.8c0 42.666667-93.866667 74.666667-230.4 74.666667S277.333333 413.866667 277.333333 373.333333v-44.8c0-40.533333 78.933333-74.666667 215.466667-74.666666z" fill="#FFFFFF" p-id="1581"></path></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -20,13 +20,35 @@ Page({
img: '../../assets/images/ptxx.svg', img: '../../assets/images/ptxx.svg',
content: '新春祝福与品牌升级...', content: '新春祝福与品牌升级...',
time: '下午 2:30', time: '下午 2:30',
}, { },
title: '每日发单', {
title: '每日发单',
url: '/subPage/todayBill/index', url: '/subPage/todayBill/index',
img: '../../assets/images/mrfd.svg', img: '../../assets/images/mrfd.svg',
content: '按偏好订阅每日接收推送', content: '按偏好订阅每日接收推送',
time: '下午 1:30', time: '下午 1:30',
}, },
{
title: '发单助手',
url: '/subPage/todayBill/index',
img: '../../assets/images/fadan.svg',
content: '按偏好订阅每日接收推送',
time: '下午 1:30',
},
{
title: '报名助手',
url: '/subPage/todayBill/index',
img: '../../assets/images/baoming.svg',
content: '按偏好订阅每日接收推送',
time: '下午 1:30',
},
{
title: '账单助手',
url: '/subPage/todayBill/index',
img: '../../assets/images/zhangdan.svg',
content: '按偏好订阅每日接收推送',
time: '下午 1:30',
},
] ]
}, },

@ -5,7 +5,7 @@
.noticImg{ .noticImg{
width: 48px; width: 48px;
height: 48px; height: 48px;
border-radius: 8px; border-radius: 12px;
} }
.sub{ .sub{
padding: 12px; padding: 12px;

@ -1,5 +1,8 @@
// subPage/todayBill/index.js // subPage/todayBill/index.js
const app = getApp() const app = getApp()
import {
customRequest
} from '../../utils/request.js'
Page({ Page({
/** /**
@ -93,7 +96,8 @@ Page({
点击#小程序伯才供应链 点击#小程序伯才供应链
点击#小程序伯才供应链 点击#小程序伯才供应链
点击#小程序伯才供应链`, 点击#小程序伯才供应链`,
textShow: '' textShow: '',
noticList: []
}, },
/** /**
@ -121,9 +125,32 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow () { onShow () {
this.getNoticList()
},
getNoticList () {
customRequest("/yicai/bocai/cms/getNotice", {
header: 'headers',
method: 'GET',
}).then((res) => {
console.log(res);
let list = res.data.data
list = list.map(item => {
return {
text: item,
textShow: item.replace(/\*\*\*\*\*/g, "")
.replace(/\[红包\]/g, `<img src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/adminIcon/hongbao.svg" style="width: 20px;vertical-align: middle;position: relative;top: -2px;" alt="">`)
.replace(/\[太阳\]/g, `<img src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/adminIcon/taiyang.svg" style="width: 20px;vertical-align: text-top;" alt="">`)
.replace(/\[爱心\]/g, `<img src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/adminIcon/aixin.svg" style="width: 20px;vertical-align: text-top;" alt="">`)
.replace(/\[注意\]/g, `<img src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/adminIcon/zhuyi.svg" style="width: 20px;vertical-align: text-top;" alt="">`)
.replace(/⚠/g, `<img src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/adminIcon/zhuyi.svg" style="width: 20px;vertical-align: middle;position: relative;top: -2px;" alt="">`)
}
});
console.log('list', list);
this.setData({
noticList: list
})
})
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
@ -160,13 +187,9 @@ Page({
}); });
}, },
copyInfo (e) { copyInfo (e) {
let val = e.currentTarget.dataset.info;
app.vibrateShort() app.vibrateShort()
// wx.setClipboardData({ app.copyFun(val.text, () => {
// data: this.data.text,
// success (res) {
// },
// });
app.copyFun(this.data.text, () => {
console.log(123123); console.log(123123);
}) })

@ -1,8 +1,8 @@
<view class> <view class>
<scroll-view class scroll-y enable-back-to-top="true" bindscrolltolower="onScrollToLower" bindrefresherrefresh="onScrollRefresh" refresher-triggered="{{isTrigger}}" style="height:calc(100vh)"> <scroll-view class scroll-y enable-back-to-top="true" bindscrolltolower="onScrollToLower" bindrefresherrefresh="onScrollRefresh" refresher-triggered="{{isTrigger}}" style="height:calc(100vh)">
<view class="container"> <view class="container">
<view class="sub" wx:for="{{4}}"> <view class="sub" wx:for="{{noticList}}" wx:item="item" wx:key="index">
<view class="timeTitle c9 tac">{{item == 0 ? '今天' :( item == 1 ? '昨天' : item == 2 ? '前天' : '2025-3-3')}} 15:3{{item + 1}}</view> <view class="timeTitle c9 tac">{{'今天'}} 08:3{{index + 1}}</view>
<view class="por fss" style="align-items:unset;margin-right:58px"> <view class="por fss" style="align-items:unset;margin-right:58px">
<view class> <view class>
<image class="avatarImg" src="{{'../../assets/images/chatAvatar.jpg'}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image> <image class="avatarImg" src="{{'../../assets/images/chatAvatar.jpg'}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
@ -12,7 +12,7 @@
<view class="chatContent"> <view class="chatContent">
<view class="pb4" hover-class="none" hover-stop-propagation="false"> <view class="pb4" hover-class="none" hover-stop-propagation="false">
<view class="triangle"></view> <view class="triangle"></view>
<rich-text class="linefeed f18" style="line-height:1.3;" user-select="{{true}}" nodes="{{textShow}}"></rich-text> <rich-text class="linefeed f18" style="line-height:1.3;" nodes="{{item.textShow}}"></rich-text>
<!-- <textarea value='{{text}}' class="linefeed f18" style="line-height:1.4" ></textarea> --> <!-- <textarea value='{{text}}' class="linefeed f18" style="line-height:1.4" ></textarea> -->
</view> </view>
</view> </view>

Loading…
Cancel
Save