cyl/develop
wangxia 1 year ago
parent 7c3ad1d08b
commit ff3cdb0a7d

@ -13,7 +13,7 @@ App({
"content-type": "multipart/form-data",
Authorization: "",
Cookie: "",
appId: 'wxb0dea4d11428c6a5',
appId: 'wxe431e0b3abd9ae0b',
"g-open-env": 'MP_MINI',
// 请求来源标识 1.小程序 2.app 3.网页
appClassify: 1,
@ -23,7 +23,7 @@ App({
"content-type": "application/json",
Authorization: "",
Cookie: "",
appId: 'wxb0dea4d11428c6a5',
appId: 'wxe431e0b3abd9ae0b',
"g-open-env": 'MP_MINI',
appClassify: 1,
// appName: encodeURIComponent('伯才')
@ -32,7 +32,7 @@ App({
"content-type": "application/x-www-form-urlencoded",
Authorization: "",
Cookie: "",
appId: 'wxb0dea4d11428c6a5',
appId: 'wxe431e0b3abd9ae0b',
"g-open-env": 'MP_MINI',
appClassify: 1,
// appName: encodeURIComponent('伯才')

@ -232,7 +232,7 @@ Page({
code: that.data.wxCode,
iv: iv,
encryptedData: encryptedData,
appId: 'wxb0dea4d11428c6a5',
appId: 'wxe431e0b3abd9ae0b',
}
}).then((res) => {
app.globalData.openId = res.data.data.openId;

@ -1,107 +1,26 @@
<view class="container">
<!-- wx:if="{{isLogin}}" -->
<!-- <view class="servicebox br_8">
<view class="serviceinfo display-flex pb16" hover-class="none">
<view class="mr10">
<image wx:if="{{serviceInfo.avatar}}" class="br_8" src="{{serviceInfo.avatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:else class="br_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
<view class="servicenamebox">
<view class="mb2 f18 fw500">客户经理</view>
<view class="c3 f16">
{{serviceInfo.userName}}
<i class="mr4"></i>
<p class="f14">{{serviceInfo.tel || '0371-6611 3723'}}</p>
</view>
</view>
</view>
<view class="display-flex bt1 serviceBottom" hover-class="none" hover-stop-propagation="false">
<view class="display-flex br1 f14" bindtap="makePhoneCall" hover-class="thover">
<view class hover-stop-propagation="false">
<i class="iconfont icon-dianhua fw500 c6 mr4"></i>
拨打电话
</view>
<i class="iconfont icon-gengduo11 c9 f12 mr10"></i>
</view>
<view class="display-flex pl16 f14" bindtap="showdialog" hover-class="thover">
<view class hover-stop-propagation="false">
<i class="iconfont icon-qiyeweixin fw500 c6 mr4"></i>
加我微信
</view>
<i class="iconfont icon-gengduo11 c9 f12"></i>
</view>
<navigator wx:for="{{list}}" wx:item="item" class="fss sub bb1" target url="{{item.url}}" hover-class="navigator-hover" open-type="navigate">
<view class="mr12">
<image class="noticImg" style="display:block" src="{{item.img}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
</view>-->
<view class="servicebox br_8 fsa dn">
<view class="serviceinfo display-flex" hover-class="none">
<view class="mr8">
<image wx:if="{{serviceInfo.avatar}}" class="br_8" src="{{serviceInfo.avatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:else class="br_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
<view class="servicenamebox">
<view class="mb2 f18 fw500">客户经理</view>
<view class="c3 f16">
{{serviceInfo.userName}}
<i class="mr4"></i>
<p class="f14">{{serviceInfo.tel || '0371-6611 3723'}}</p>
</view>
<view class="flex-1">
<view class="fsa ">
<view class="f18 fw500">{{item.title}}</view>
<!-- <view class="c9 f15">{{item.time}}</view> -->
</view>
<view class="c9 f15">{{item.content || '-'}}</view>
</view>
<view class hover-class="none" hover-stop-propagation="false">
<i class="t-icon t-icon-dianhua6 mr10" bindtap="makePhoneCall" hover-class="thover" style="width:40px;height:40px "></i>
<i class="t-icon t-icon-qiyeweixin" bindtap="showdialog" hover-class="thover" style="width:40px;height:40px "></i>
</navigator>
<!-- <navigator class="sub fss" target url="/subPage/systemMessage/index" hover-class="navigator-hover" open-type="navigate">
<view class="mr12">
<image class="noticImg" src="../../assets/images/customer-service.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
</view>
<view class="mt10 br_8 dn" style="padding:20px 10px;background-color:#fff" hover-class="thover" hover-stop-propagation="false" bindtap="goDetail" data-type="wellcome">
<view class="fw500 f16 mb12" style="line-height:16px">
<i wx:if="{{!messageClick}}" class="mr4 mb2" style="display:inline-block;width: 8px;height: 8px;background: #f5222d;border-radius: 50%;"></i>伯才欢迎您
</view>
<view class="f14 c9 oelps" style="width:100%">伯才(以下简称“伯才”),让天下没有难做的劳务。</view>
</view>
<!-- 消息列表 -->
<view class="mb10 br_8" wx:for="{{infoList}}" style="padding:12px;background-color:#fff;line-height:1" hover-class="thover" hover-stop-propagation="false" bindtap="goDetail" data-id="{{item.id}}" data-type="info">
<view class="fw500 f16 mb12 fsa" style>
<view class="oelps f18 fw500" hover-class="none" style="max-width:240px" hover-stop-propagation="false">
<i wx:if="{{item.readed == 0}}" class="mr4 mb2" style="display:inline-block;width: 8px;height: 8px;background: #f5222d;border-radius: 50%;"></i>
{{item.title}}
<view class="flex-1">
<view class="fsa mb8">
<view class="f16 fw500">每日发单</view>
<view class="c9">下午 2:32</view>
</view>
<view class="fw400 c9 f14" hover-class="none" hover-stop-propagation="false">{{item.pubTime == '8月30日' ? '6月16日' : item.pubTime}}</view>
<view class="c9">内容内容内容内容内容内容</view>
</view>
<view class="c9 f15 oelps" style="width:100%">{{item.remark || '[图片]'}}</view>
</view>
<view class wx:if="{{infoList.length <= 0}}" style="text-align:center" hover-class="none" hover-stop-propagation="false">
<view class="t-icon t-icon-zanwu" style="width:80px;height:80px;margin:60px auto 20px;"></view>
<view class="tc f14 c045">暂无消息</view>
</view>
</view>
<view aria-role="dialog" aria-modal="true" class="fadeIn" catchtouchmove="modalMove" wx:if="{{iosDialog}}">
<view class="weui-mask"></view>
<view class="weui-dialog contact" style="box-sizing:border-box;">
<view class="weui-dialog__hd">
<!-- <strong class="weui-dialog__title">17639080029</strong></view> -->
<!-- <view class="weui-dialog__bd">
<view>现在登录吗?</view>
</view>-->
<!-- <image src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg" style="width:56px;height:56px;"></image> -->
<!-- <image src="../../assets/Snipaste_2023-06-13_09-25-14.png" show-menu-by-longpress='{{true}}' style="width:56px;height:56px;"></image> -->
<i class="iconfont icon-guanbi guanbi c6 biggerSize" bindtap="closeDialog"></i>
<view class="f16 c3 fw500 mb32">加客户经理微信</view>
<view wx:if="{{isLoading}}" class style="position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)" hover-class="none" hover-stop-propagation="false">
<view aria-role="img" aria-label="加载中" style class="weui-primary-loading">
<view class="weui-primary-loading__dot"></view>
</view>
<view class hover-class="none" hover-stop-propagation="false">加载中...</view>
</view>
<image src="{{serviceInfo.qrCode}}" bindload="imageLoad" show-menu-by-longpress="{{true}}" style="width: 184px;height: 184px;"></image>
<!-- <view class="f14 c9">人才经纪人</view> -->
<!-- <view class="mt20 f22 c3">{{pmdUserInfo.tel}}</view> -->
<view class="f14 c3 mt6">长按识别二维码</view>
</view>
<!-- <view class="display-flex contact_bottomBtn pb20" style="padding-top:20px;">
<view class="flex-1 lflex v-center" bindtap="closeDialog" hover-class="thover">取消</view>
<view class="rflex">
<button class="" type="primary" hover-class="thover" bindtap="makePhoneCall">呼叫</button>
</view>
</view>-->
</view>
</navigator>-->
</view>

@ -1,6 +1,6 @@
/* pages/message/index.wxss */
.container{
padding: 10px;
padding-top: 10px;
}
.noticImg{
width: 48px;

@ -44,7 +44,7 @@
"tabIndent": "insertSpaces",
"tabSize": 2
},
"appid": "wxb0dea4d11428c6a5",
"appid": "wxe431e0b3abd9ae0b",
"packOptions": {
"ignore": [],
"include": []

@ -7,99 +7,107 @@ Page({
*/
data: {
text: `伯才【在招】企业 3月7日
1[红包] 中牟零食厂
1[红包]中牟零食厂
工价180/ 18-50
代理共300元
2[红包] 港区优质长白班
2[红包]港区优质长白班
工价3500-4500/ 25-50
代理500/
3[红包] 港区南港长白班电子厂
3[红包]港区南港长白班电子厂
工价4000-5500/ 18-45
代理300/
4[红包] 郑州九龙仪表盘厂小时工
4[红包]郑州九龙仪表盘厂小时工
工价184/男女 18-40
代理1.5/小时
5[红包] 郑州地铁安检员
5[红包]郑州地铁安检员
工价5400-7350/男女 18-33
代理35/
6[红包] 郑州康师傅
6[红包]郑州康师傅
工价170/男女 18-45
代理20/
7[红包] 郑州思念食品
7[红包]郑州思念食品
工价5500-8000/ 18-52
代理共1000元
8[红包] 郑州超压新材料
8[红包]郑州超压新材料
工价200/男女 22-45
代理200/
9[红包] 信阳鑫达辉电子厂
9[红包]信阳鑫达辉电子厂
工价17/小时男女 16-40
代理1.5/小时
10[红包] 信阳采茶工日结工
10[红包]信阳采茶工日结工
工价150/男女 16-68
代理工人收入16%
11[红包] 新乡新飞电器
11[红包]新乡新飞电器
工价14/小时男女 18-53
代理1.5/小时
12[红包] 新乡新能源材料厂
12[红包]新乡新能源材料厂
工价17/小时 18-50
代理1.5/小时
13[红包] 新乡立白包装厂
13[红包]新乡立白包装厂
工价135/男女 18-50
代理15/
14[红包] 薛店镇民族食品厂
14[红包]薛店镇民族食品厂
工价180/男女 18-45
代理20/
15[红包] 洛阳翔通光电
15[红包]洛阳翔通光电
工价5000-6000/男女 18-35
代理50/
16[红包] 洛阳中航富士达
16[红包]洛阳中航富士达
工价15/小时男女 18-30
代理1/小时
17[红包] 鹤壁耕德小时工
17[红包]鹤壁耕德小时工
工价17/小时男女 16-46
代理费用待定
18[红包] 太仓食品包装
18[红包]太仓食品包装
工价6500-8000/男女 18-52
代理15/
19[红包] 常熟东南书本厂
19[红包]常熟东南书本厂
工价5500-6000/ 25-40
代理500/
20[红包] 苏州华星外包
20[红包]苏州华星外包
工价6200-7200/男女 18-40
代理500/
==这里一键看详单👇==
点击#小程序伯才供应链
点击#小程序伯才供应链
点击#小程序伯才供应链`
点击#小程序伯才供应链`,
textShow: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad (options) {
this.setData({
textShow: this.data.text.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="">`)
})
},
/**

@ -12,7 +12,8 @@
<view class="chatContent">
<view class="pb4" hover-class="none" hover-stop-propagation="false">
<view class="triangle"></view>
<rich-text class="linefeed f18" style="line-height:1.4" user-select="{{true}}" nodes="{{text}}"></rich-text>
<rich-text class="linefeed f18" style="line-height:1.3;" user-select="{{true}}" nodes="{{textShow}}"></rich-text>
<!-- <textarea value='{{text}}' class="linefeed f18" style="line-height:1.4" ></textarea> -->
</view>
</view>
<view class="pt8 fse f14">

Loading…
Cancel
Save