From 61e1439e363a4e3b9bcfaa5a42eaf24197d874ed Mon Sep 17 00:00:00 2001 From: wesley88 <9519127+wesley88@user.noreply.gitee.com> Date: Wed, 26 Mar 2025 13:50:42 +0800 Subject: [PATCH] 1 --- admin-web-master/src/main.js | 28 +++++++++------------------- admin-web-master/src/utils/request.js | 4 ++-- admin-web-master/src/views/shopRental/rentTermination/add.vue | 55 +++++++++++++++++++++++++------------------------------ admin-web-master/src/views/shopRental/rentalMan/add.vue | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------- lvdao-miniapp/pages.json | 14 ++++++++++++++ lvdao-miniapp/pages/message/message - 副本.vue | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lvdao-miniapp/pages/message/message.vue | 200 +++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------- lvdao-miniapp/pages/my/my.vue | 12 ++++++------ lvdao-miniapp/pages/propertyPay/payDetail/payDetail.vue | 12 ++++++------ lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue | 17 ++++++----------- lvdao-miniapp/pages/workbench/workbench.vue | 2 +- lvdao-miniapp/pagesA/procedureList/procedureDetail.vue | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lvdao-miniapp/pagesA/procedureList/procedureList.vue | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lvdao-miniapp/pagesA/tishi/tishi.vue | 2 +- lvdao-miniapp/static/icon.zip | Bin 0 -> 43134 bytes lvdao-miniapp/static/icon/bg1.png | Bin 14250 -> 0 bytes lvdao-miniapp/static/icon/icon1.png | Bin 632 -> 0 bytes lvdao-miniapp/static/icon/icon11.png | Bin 881 -> 0 bytes lvdao-miniapp/static/icon/icon12.png | Bin 1111 -> 0 bytes lvdao-miniapp/static/icon/icon13.png | Bin 1079 -> 0 bytes lvdao-miniapp/static/icon/icon14.png | Bin 1024 -> 0 bytes lvdao-miniapp/static/icon/icon15.png | Bin 955 -> 0 bytes lvdao-miniapp/static/icon/icon16.png | Bin 2053 -> 0 bytes lvdao-miniapp/static/icon/icon2.png | Bin 446 -> 0 bytes lvdao-miniapp/static/icon/icon3.png | Bin 457 -> 0 bytes lvdao-miniapp/static/icon/icon4.png | Bin 467 -> 0 bytes lvdao-miniapp/static/icon/icon5.png | Bin 604 -> 0 bytes lvdao-miniapp/static/icon/icon6.png | Bin 492 -> 0 bytes lvdao-miniapp/static/icon/icon7.png | Bin 563 -> 0 bytes lvdao-miniapp/utils/request.js | 16 ++++++++-------- 30 files changed, 788 insertions(+), 266 deletions(-) create mode 100644 lvdao-miniapp/pages/message/message - 副本.vue create mode 100644 lvdao-miniapp/pagesA/procedureList/procedureDetail.vue create mode 100644 lvdao-miniapp/pagesA/procedureList/procedureList.vue create mode 100644 lvdao-miniapp/static/icon.zip delete mode 100644 lvdao-miniapp/static/icon/bg1.png delete mode 100644 lvdao-miniapp/static/icon/icon1.png delete mode 100644 lvdao-miniapp/static/icon/icon11.png delete mode 100644 lvdao-miniapp/static/icon/icon12.png delete mode 100644 lvdao-miniapp/static/icon/icon13.png delete mode 100644 lvdao-miniapp/static/icon/icon14.png delete mode 100644 lvdao-miniapp/static/icon/icon15.png delete mode 100644 lvdao-miniapp/static/icon/icon16.png delete mode 100644 lvdao-miniapp/static/icon/icon2.png delete mode 100644 lvdao-miniapp/static/icon/icon3.png delete mode 100644 lvdao-miniapp/static/icon/icon4.png delete mode 100644 lvdao-miniapp/static/icon/icon5.png delete mode 100644 lvdao-miniapp/static/icon/icon6.png delete mode 100644 lvdao-miniapp/static/icon/icon7.png diff --git a/admin-web-master/src/main.js b/admin-web-master/src/main.js index 392cfce..8b441d9 100644 --- a/admin-web-master/src/main.js +++ b/admin-web-master/src/main.js @@ -35,35 +35,25 @@ Vue.prototype.$hostUrl =`${window.location.protocol}//${window.location.host}/cd import { sendToUser } from '@/api/newly.js' -Vue.prototype.$setmsg = async function() { +Vue.prototype.$setmsg = async function(from) { let info = { - "content": "测试消息内容", // 消息内容 + "content":JSON.stringify(from.content), // 消息内容 "messageClass": 1, // 消息类型(1:指定用户发送) - "messageType": "通知", // 消息类型描述 + "messageType":from.type, // 消息类型描述 "cereMessageReceipts": [ // 接收人列表 { - "phone": '18121815567', // 用户ID - "messageType": "通知", // 消息类型 - "content": "测试内容" // 消息内容 + "phone": from.phone, // 用户ID + "messageType": from.type, // 消息类型 + "content": JSON.stringify(from.content) // 消息内容 } ] } - await sendToUser(info).then(res => { + let c1 = await sendToUser(info).then(res => { console.error(res) - if (res.code == 200) { - this.$message({ - message: '发送成功', - type: 'success' - }) - this.$emit('removeonaction', '1') - } else { - this.$message({ - message: '发送失败', - type: 'error' - }) - } + return res }) + return c1 }; let host = window.location.host; diff --git a/admin-web-master/src/utils/request.js b/admin-web-master/src/utils/request.js index 11f416c..cf70517 100644 --- a/admin-web-master/src/utils/request.js +++ b/admin-web-master/src/utils/request.js @@ -16,13 +16,13 @@ let hostall = window.location.href; let baseURL = '' if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { - // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; + baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; // baseURL = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server'; // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; - baseURL = 'http://128.10.249.39:9003'; + // baseURL = 'http://128.10.249.39:9003'; } else { diff --git a/admin-web-master/src/views/shopRental/rentTermination/add.vue b/admin-web-master/src/views/shopRental/rentTermination/add.vue index e33f93a..3d9c5c7 100644 --- a/admin-web-master/src/views/shopRental/rentTermination/add.vue +++ b/admin-web-master/src/views/shopRental/rentTermination/add.vue @@ -65,6 +65,7 @@ import jsPDF from 'jspdf' import wangEditor from "@/components/editor/index" import html2canvas from 'html2canvas' +import { title } from '@/settings.js'; export default { components: { wangEditor @@ -192,36 +193,30 @@ this.formInline.pdfUrl = canvas.toDataURL('image/png') console.log({...this.formInline}) // return - this.$refs.heForm.validate((valid) => { - console.log(valid) - if (valid) { - // 调用全局方法setmsg - that.$setmsg(); - - - // cereTerminateNotice(this.formInline).then(res => { - // console.error(res) - // if (res.code == 200) { - // this.$message({ - // message: '发送成功', - // type: 'success' - // }) - // this.$emit('removeonaction', '1') - // } else { - // this.$message({ - // message: '发送失败', - // type: 'error' - // }) - // } - // }) - } else { - this.$message({ - message: '请填写完整信息', - type: 'error' - }) - return false; - } - }) + let info = { + type:'租赁提醒', + phone:this.info.createUser, + content:{ + type:'2', + title:'退租告知单', + content:this.formInline.pdfUrl + }, + } + console.log(']]]]]]') + let res = await that.$setmsg(info); + console.log(res) + if (res.code == 200) { + this.$message({ + message: '发送成功', + type: 'success' + }) + this.$emit('removeonaction', '1') + } else { + this.$message({ + message: '发送失败', + type: 'error' + }) + } }, close() { this.$emit('removeonaction', '1') diff --git a/admin-web-master/src/views/shopRental/rentalMan/add.vue b/admin-web-master/src/views/shopRental/rentalMan/add.vue index 9734875..95c0974 100644 --- a/admin-web-master/src/views/shopRental/rentalMan/add.vue +++ b/admin-web-master/src/views/shopRental/rentalMan/add.vue @@ -148,7 +148,7 @@ }, async add() { - + let that = this console.log({...this.info}) const content = this.$refs.contentToConvert; @@ -162,32 +162,56 @@ this.formInline.pdfUrl = canvas.toDataURL('image/png') console.log({...this.formInline}) // return - this.$refs.heForm.validate((valid) => { - console.log(valid) - if (valid) { - cereTerminateNotice(this.formInline).then(res => { - console.error(res) - if (res.code == 200) { - this.$message({ - message: '发送成功', - type: 'success' - }) - this.$emit('removeonaction', '1') - } else { - this.$message({ - message: '发送失败', - type: 'error' - }) - } - }) - } else { - this.$message({ - message: '请填写完整信息', - type: 'error' - }) - return false; - } - }) + let info = { + type:'租赁提醒', + phone:this.formInline.tenantPhone, + content:{ + type:'2', + title:'入驻告知单', + content:this.formInline.pdfUrl + }, + } + console.log(']]]]]]') + let res = await that.$setmsg(info); + console.log(res) + if (res.code == 200) { + this.$message({ + message: '发送成功', + type: 'success' + }) + this.$emit('removeonaction', '1') + } else { + this.$message({ + message: '发送失败', + type: 'error' + }) + } + // this.$refs.heForm.validate((valid) => { + // console.log(valid) + // if (valid) { + // cereTerminateNotice(this.formInline).then(res => { + // console.error(res) + // if (res.code == 200) { + // this.$message({ + // message: '发送成功', + // type: 'success' + // }) + // this.$emit('removeonaction', '1') + // } else { + // this.$message({ + // message: '发送失败', + // type: 'error' + // }) + // } + // }) + // } else { + // this.$message({ + // message: '请填写完整信息', + // type: 'error' + // }) + // return false; + // } + // }) }, close() { this.$emit('removeonaction', '1') diff --git a/lvdao-miniapp/pages.json b/lvdao-miniapp/pages.json index feb99b6..c5a3415 100644 --- a/lvdao-miniapp/pages.json +++ b/lvdao-miniapp/pages.json @@ -420,6 +420,20 @@ "name": "pagesA", "pages": [ { + "path": "procedureList/procedureDetail", + "style": { + "navigationBarTitleText": "通知详情", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, + { + "path": "procedureList/procedureList", + "style": { + "navigationBarTitleText": "通知列表", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, + { "path": "myZiyuan/myZiDetailsnew", "style": { "navigationBarBackgroundColor": "#FFFFFF", diff --git a/lvdao-miniapp/pages/message/message - 副本.vue b/lvdao-miniapp/pages/message/message - 副本.vue new file mode 100644 index 0000000..c884232 --- /dev/null +++ b/lvdao-miniapp/pages/message/message - 副本.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/lvdao-miniapp/pages/message/message.vue b/lvdao-miniapp/pages/message/message.vue index 7fc259e..23a82b6 100644 --- a/lvdao-miniapp/pages/message/message.vue +++ b/lvdao-miniapp/pages/message/message.vue @@ -35,169 +35,36 @@ - {{formatDateTime(tableList[0]?tableList[0].createdAt:'')}} - - 2 - 11:28 + {{zllist.length}} + {{formatDateTime(zllist[0]?zllist[0].createTime:'')}} - - - - - - - - 临时铺位申请 - - - 这里有最新消息这里有最新消息这里有最新消息这里有最新消息 - - - - - 2 - 11:28 - - --> - - - + @@ -219,12 +86,11 @@ pageNumber: 1, pageSize: 2, receiverMerchant:'' - } + }, + zllist:[] } }, - onLoad() { - }, onShow() { const isLogin = uni.getStorageSync('token'); if (isLogin == '') { @@ -233,12 +99,7 @@ url: '/pages/login/login' }) } else { - this.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{phone:uni.getStorageSync('user').phone},1).then(res => { - console.error(res) - }) - this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{phone:uni.getStorageSync('user').phone},1).then(res => { - console.error(res) - }) + this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST',{"pageSize":10,pageNumber:0,phone:uni.getStorageSync('user').phone}).then(res => { if(res.data.code == '20004' || res.data.code == '20003'){ uni.navigateTo({ @@ -258,7 +119,31 @@ mounted() { this.getALL() }, + onShow() { + this.getmsg() + }, methods:{ + getmsg() { + this.zllist = [] + let info = { + // phone:uni.getStorageSync('user').phone, + phone:'18121815598', + isRead:'0' + } + this.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => { + // console.error(res) + }) + this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'租赁提醒'},1).then(res => { + let obj = res.data.data + for(let prop in obj) { + if(obj.hasOwnProperty(prop)) { // 确保只访问实例上的属性,不包括继承的 + obj[prop][0].content = JSON.parse(obj[prop][0].content) + this.zllist.push(obj[prop][0]) + } + } + console.error(this.zllist) + }) + }, formatDateTime(dateTimeString) { // 将输入的日期时间字符串转换为Date对象 const inputDate = new Date(dateTimeString); @@ -296,6 +181,11 @@ url:'/pages/dialogue/dialogue' }) }, + gopath(e) { + uni.navigateTo({ + url:e + }) + }, toMsgList(){ uni.navigateTo({ url:'/pages/procedureList/procedureList' diff --git a/lvdao-miniapp/pages/my/my.vue b/lvdao-miniapp/pages/my/my.vue index 42646cb..c6470a7 100644 --- a/lvdao-miniapp/pages/my/my.vue +++ b/lvdao-miniapp/pages/my/my.vue @@ -134,7 +134,7 @@ - + @@ -164,7 +164,7 @@ - + @@ -179,7 +179,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -224,7 +224,7 @@ - + @@ -239,7 +239,7 @@ - + diff --git a/lvdao-miniapp/pages/propertyPay/payDetail/payDetail.vue b/lvdao-miniapp/pages/propertyPay/payDetail/payDetail.vue index 7e94f51..3f2ada9 100644 --- a/lvdao-miniapp/pages/propertyPay/payDetail/payDetail.vue +++ b/lvdao-miniapp/pages/propertyPay/payDetail/payDetail.vue @@ -3,12 +3,12 @@ - - - - - - + + + + + + diff --git a/lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue b/lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue index 1491181..03e4bee 100644 --- a/lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue +++ b/lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue @@ -27,17 +27,12 @@ - - - - - - + + + + + + {{item.itemName}}: + + + + + + {{tableList.content.title}} + + + {{tableList.createTime}} + + + + + + {{tableList.content.content}} + + + + + + + + + + + + + \ No newline at end of file diff --git a/lvdao-miniapp/pagesA/procedureList/procedureList.vue b/lvdao-miniapp/pagesA/procedureList/procedureList.vue new file mode 100644 index 0000000..21a091c --- /dev/null +++ b/lvdao-miniapp/pagesA/procedureList/procedureList.vue @@ -0,0 +1,170 @@ + + + + + \ No newline at end of file diff --git a/lvdao-miniapp/pagesA/tishi/tishi.vue b/lvdao-miniapp/pagesA/tishi/tishi.vue index 8d8eecf..e5245a4 100644 --- a/lvdao-miniapp/pagesA/tishi/tishi.vue +++ b/lvdao-miniapp/pagesA/tishi/tishi.vue @@ -1,6 +1,6 @@ diff --git a/lvdao-miniapp/static/icon.zip b/lvdao-miniapp/static/icon.zip new file mode 100644 index 0000000..dc1f123 Binary files /dev/null and b/lvdao-miniapp/static/icon.zip differ diff --git a/lvdao-miniapp/static/icon/bg1.png b/lvdao-miniapp/static/icon/bg1.png deleted file mode 100644 index 5c37f0d..0000000 Binary files a/lvdao-miniapp/static/icon/bg1.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon1.png b/lvdao-miniapp/static/icon/icon1.png deleted file mode 100644 index 51cc2dd..0000000 Binary files a/lvdao-miniapp/static/icon/icon1.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon11.png b/lvdao-miniapp/static/icon/icon11.png deleted file mode 100644 index c201682..0000000 Binary files a/lvdao-miniapp/static/icon/icon11.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon12.png b/lvdao-miniapp/static/icon/icon12.png deleted file mode 100644 index 3fefc22..0000000 Binary files a/lvdao-miniapp/static/icon/icon12.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon13.png b/lvdao-miniapp/static/icon/icon13.png deleted file mode 100644 index 6327c8c..0000000 Binary files a/lvdao-miniapp/static/icon/icon13.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon14.png b/lvdao-miniapp/static/icon/icon14.png deleted file mode 100644 index 63e387e..0000000 Binary files a/lvdao-miniapp/static/icon/icon14.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon15.png b/lvdao-miniapp/static/icon/icon15.png deleted file mode 100644 index c1e5217..0000000 Binary files a/lvdao-miniapp/static/icon/icon15.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon16.png b/lvdao-miniapp/static/icon/icon16.png deleted file mode 100644 index 1215999..0000000 Binary files a/lvdao-miniapp/static/icon/icon16.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon2.png b/lvdao-miniapp/static/icon/icon2.png deleted file mode 100644 index d124468..0000000 Binary files a/lvdao-miniapp/static/icon/icon2.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon3.png b/lvdao-miniapp/static/icon/icon3.png deleted file mode 100644 index ab7860a..0000000 Binary files a/lvdao-miniapp/static/icon/icon3.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon4.png b/lvdao-miniapp/static/icon/icon4.png deleted file mode 100644 index 8963b94..0000000 Binary files a/lvdao-miniapp/static/icon/icon4.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon5.png b/lvdao-miniapp/static/icon/icon5.png deleted file mode 100644 index 014a9fc..0000000 Binary files a/lvdao-miniapp/static/icon/icon5.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon6.png b/lvdao-miniapp/static/icon/icon6.png deleted file mode 100644 index d435dd6..0000000 Binary files a/lvdao-miniapp/static/icon/icon6.png and /dev/null differ diff --git a/lvdao-miniapp/static/icon/icon7.png b/lvdao-miniapp/static/icon/icon7.png deleted file mode 100644 index c70b747..0000000 Binary files a/lvdao-miniapp/static/icon/icon7.png and /dev/null differ diff --git a/lvdao-miniapp/utils/request.js b/lvdao-miniapp/utils/request.js index dee2aba..7f4912c 100644 --- a/lvdao-miniapp/utils/request.js +++ b/lvdao-miniapp/utils/request.js @@ -1,8 +1,8 @@ // let hostall = window.location.href; // let c1 = hostall.split('cdwlMall')[0]; -let c1 = 'https://jy.scjysm.asia:18086/' -// let c1 = 'https://zhgw-uat.028wlkj.com/' +// let c1 = 'https://jy.scjysm.asia:18086/' +let c1 = 'https://zhgw-uat.028wlkj.com/' //封装request请求 const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { //判断header提交数据类型 @@ -21,17 +21,17 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; - bases = 'http://128.10.249.39:9003'+ url; + // bases = 'http://128.10.249.33:9003'+ url; // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; - // bases = c1 + 'cdwlMall/meserver/admin-server' + url; + bases = c1 + 'cdwlMall/meserver/admin-server' + url; }else if(baseUrl == 3){ // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url; // bases = 'http://128.10.249.22:9003:9007' + url; - bases = 'http://128.10.249.39:9007' + url; - // bases = c1 + 'cdwlMall/meserver/api' + url; + // bases = 'http://128.10.249.39:9007' + url; + bases = c1 + 'cdwlMall/meserver/api' + url; }else{ // bases = 'http://128.10.249.22:9004' + url; @@ -39,9 +39,9 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { // bases = 'http://172.16.61.123/cdwlMall/business-server' + url; // bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url; // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url; - bases = 'http://128.10.249.39:9004' + url; + // bases = 'http://128.10.249.39:9004' + url; // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url; - // bases = c1 + 'cdwlMall/business-server' + url; + bases = c1 + 'cdwlMall/business-server' + url; } var token = uni.getStorageSync('token') || ''; -- libgit2 0.21.4