Commit d560e4319c3ac167f8393c077fa79ee0273c4277

Authored by wesley88
1 parent 8f8f81ca

1

admin-web-master/src/components/merchantInformation/index.vue
... ... @@ -177,7 +177,8 @@
177 177 },
178 178 methods: {
179 179 minSev() {
180   -
  180 + let that = this
  181 + console.error(this.info)
181 182 // return
182 183 cerePlatformMerchantedit({
183 184 ...this.info,
... ... @@ -190,6 +191,7 @@
190 191 message: '处理成功',
191 192 type: 'success'
192 193 })
  194 + that.setmsg()
193 195 this.info.checkState = this.radio
194 196 this.$emit('removeonaction', '1')
195 197 } else {
... ... @@ -200,6 +202,18 @@
200 202 }
201 203 })
202 204 },
  205 + async setmsg() {
  206 + let info = {
  207 + type:'通知消息',
  208 + phone:this.info.phone,
  209 + content:{
  210 + type:'1',
  211 + title:this.radio=='2'?'商家同意':this.radio=='3'?'商家驳回':'商家',
  212 + content:this.checkOpinion
  213 + },
  214 + }
  215 + await this.$setmsg(info);
  216 + },
203 217 changetype(){
204 218 this.xiangTab= 'first'
205 219 this.$emit('removeonaction', '1')
... ...
admin-web-master/src/components/resourceCommodity/index.vue
... ... @@ -52,11 +52,11 @@
52 52 <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingGreenwaySection) || '无'}}</div>
53 53 </el-form-item>
54 54 </el-col>
55   - <el-col :span="8">
56   - <el-form-item label="所属公园/步道" prop="belongingParkTrail">
57   - <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingParkTrail) || '无'}}</div>
58   - </el-form-item>
59   - </el-col>
  55 + <el-col :span="8">
  56 + <el-form-item label="所属公园/步道" prop="belongingParkTrail">
  57 + <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingParkTrail) || '无'}}</div>
  58 + </el-form-item>
  59 + </el-col>
60 60 <el-col :span="8">
61 61 <el-form-item label="门牌号" prop="houseNumber">
62 62 <div class="duiqi">{{editbgid.houseNumber || '无'}}</div>
... ... @@ -258,20 +258,45 @@
258 258 </div>
259 259 </div>
260 260 </el-tab-pane>
261   - <!-- <el-tab-pane label="人流情况" name="fourth" v-if="edit">
262   - <div style="margin-top: 30px;" class="editcss">
263   - <div class="titles">
264   - 人流量情况
265   - </div>
266   - </div>
267   - </el-tab-pane>
268   - <el-tab-pane label="物业维护记录" name="five" v-if="edit">
269   - <div style="margin-top: 30px;" class="editcss">
270   - <div class="titles">
271   - 物业维护记录
272   - </div>
273   - </div>
274   - </el-tab-pane> -->
  261 + <el-tab-pane label="店铺信息" name="fourth" v-if="dpinfo">
  262 + <div style="margin-top: 30px;" class="editcss">
  263 + <TitleWithCircle title="基础信息" />
  264 + <div style="padding: 20px;">
  265 + <el-form :model="editbgid" ref="ruleForm" label-width="120px" class="demo-ruleForm">
  266 + <el-row :gutter="20">
  267 + <el-col :span="8">
  268 + <el-form-item label="店铺名称" prop="shopName">
  269 + <div class="duiqi">{{dpinfo.shopName}}</div>
  270 + </el-form-item>
  271 + </el-col>
  272 + <el-col :span="8">
  273 + <el-form-item label="营业时间" prop="businessHours">
  274 + <div class="duiqi">{{dpinfo.businessHours}}</div>
  275 + </el-form-item>
  276 + </el-col>
  277 + <el-col :span="8">
  278 + <el-form-item label="联系电话" prop="contactNumber">
  279 + <div class="duiqi">{{dpinfo.contactNumber}}</div>
  280 + </el-form-item>
  281 + </el-col>
  282 + <el-col :span="8">
  283 + <el-form-item label="位置描述" prop="locationDescription">
  284 + <div class="duiqi">{{dpinfo.locationDescription}}</div>
  285 + </el-form-item>
  286 + </el-col>
  287 + </el-row>
  288 + <el-form-item label="店铺介绍" prop="shopDescription">
  289 + <div class="duiqi">{{dpinfo.shopDescription}}</div>
  290 + </el-form-item>
  291 + <el-form-item label="店内照片" prop="shopPhotos">
  292 + <div style="display: flex;">
  293 + <allimg v-if="item" :src="item" fit="contain" v-for="item in dpinfo.shopPhotos.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
  294 + </div>
  295 + </el-form-item>
  296 + </el-form>
  297 + </div>
  298 + </div>
  299 + </el-tab-pane>
275 300 </el-tabs>
276 301 </div>
277 302 <div v-show="type == '2'">
... ... @@ -324,7 +349,8 @@
324 349 cereBusinessPlan,
325 350 cereBusinessOperationqueryByPage,
326 351 cereContractInformation,
327   - resourcesFindPlan
  352 + resourcesFindPlan,
  353 + cereAssetShopInformationqueryByPage
328 354 } from '@/api/newly';
329 355 import newmap from "@/components/newmap/index";
330 356 import {
... ... @@ -334,6 +360,9 @@
334 360 lvdaoduan,
335 361 } from '@/api/information.js';
336 362 import allimg from '@/components/chakan/allimg.vue';
  363 + import {
  364 + contractGetAllnew
  365 + } from '@/api/manage.js'
337 366 export default {
338 367 components: {
339 368 TitleWithCircle,
... ... @@ -380,10 +409,11 @@
380 409 datalist: [],
381 410 datalist1:[],
382 411 datalistxsj:[],
383   - lvdaoList:[]
  412 + lvdaoList:[],
  413 + dpinfo:null
384 414 }
385 415 },
386   - created() {
  416 + async created() {
387 417  
388 418 console.error(this.editbgid)
389 419 if (this.editbgid.id) {
... ... @@ -416,11 +446,18 @@
416 446 this.getAllxsj()
417 447 this.getAllzl()
418 448 }
419   - this.getAll()
  449 + const res = await contractGetAllnew({pageNumber: 0, pageSize:1,shopNumber:'sp' + this.editbgid.id,dataStatus:'1'})
  450 + if(res.data.content.length>0) {
  451 + const res1 = await cereAssetShopInformationqueryByPage({"pageNumber":0,"pageSize":10,"contractId":res.data.content[0].id})
  452 + if(res1.data.content.length>0){
  453 + this.dpinfo = res1.data.content[0]
  454 + }
  455 + console.log('=============1234567')
  456 + console.log(this.dpinfo)
  457 + }
  458 + this.getAll()
420 459 },
421   -
422 460 computed: {
423   -
424 461 },
425 462 methods: {
426 463 async getAll(){
... ...
lvdao-miniapp/App.vue
... ... @@ -6,12 +6,27 @@ export default {
6 6 // const host = 'https://zhld.028wlkj.com:49008/cdwlMall'
7 7 // let c1 = host.split('cdwlMall')[0];
8 8 // console.error(c1);
  9 + let info = {
  10 + // phone:uni.getStorageSync('user').phone,
  11 + phone:'18121815598',
  12 + }
  13 + let that = this
  14 + // setInterval(() => {
  15 + // that.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => {
  16 + // console.error(res)
  17 + // getApp().globalData.MessageNum = res.data
  18 + // that.$forceUpdate()
  19 + // })
  20 + // }, 6000)
9 21 },
10 22 onShow: function() {
11 23  
12 24 },
13 25 onHide: function() {
14 26 console.log('App Hide');
  27 + },
  28 + globalData: {
  29 + MessageNum:0
15 30 }
16 31 };
17 32 </script>
... ...
lvdao-miniapp/components/tabbar/tabbar.vue
... ... @@ -45,6 +45,7 @@
45 45 codeheight: 0,
46 46 isOverall: 0,
47 47 phoneModel: '',
  48 + nums:getApp().globalData.MessageNum
48 49 };
49 50 },
50 51 props:{
... ...
lvdao-miniapp/main.js
... ... @@ -8,8 +8,8 @@ import uView from &quot;uview-ui&quot;;
8 8 import DialogBox from './components/DialogBox/DialogBox';
9 9 // let hostall = window.location.href;
10 10 // let c1 = hostall.split('cdwlMall')[0];
11   -let c1 = 'https://jy.scjysm.asia:18086/'
12   -// let c1 = 'https://zhgw-uat.028wlkj.com/'
  11 +// let c1 = 'https://jy.scjysm.asia:18086/'
  12 +let c1 = 'https://zhgw-uat.028wlkj.com/'
13 13 Vue.config.productionTip = false
14 14 Vue.prototype.$http = http
15 15 Vue.prototype.$imgUrl = (url) => {
... ...
lvdao-miniapp/pages/message/message.vue
... ... @@ -38,6 +38,31 @@
38 38 <view class="icon-more">{{formatDateTime(tableList[0]?tableList[0].createdAt:'')}}</view>
39 39 </view>
40 40 </view>
  41 + <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=通知消息')">
  42 + <view class="icon-data">
  43 + <view class="icon">
  44 + <image :src="$imgUrl('/xtxx.png')" mode=""></image>
  45 + </view>
  46 + <view class="data">
  47 + <view class="title">
  48 + <text>通知消息</text>
  49 + </view>
  50 +
  51 + <view class="describe">
  52 + <view v-if="tzlist.length>0" >
  53 + <view v-if="tzlist[0].content.type == '2'">{{tzlist[0].content.title}}【图片】</view>
  54 + <view v-else >{{tzlist[0].content.title}}</view>
  55 + </view>
  56 + <view v-else >暂无</view>
  57 + <!-- <text>{{?tableList[0].content:''}}</text> -->
  58 + </view>
  59 + </view>
  60 + </view>
  61 + <view class="more">
  62 + <view class="more-num" v-if="tzlist.length>0">{{tzlist.length}}</view>
  63 + <view class="icon-more" v-if="tzlist.length>0">{{formatDateTime(tzlist[0]?tzlist[0].createTime:'')}}</view>
  64 + </view>
  65 + </view>
41 66 <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=租赁提醒')">
42 67 <view class="icon-data">
43 68 <view class="icon">
... ... @@ -87,7 +112,8 @@
87 112 pageSize: 2,
88 113 receiverMerchant:''
89 114 },
90   - zllist:[]
  115 + zllist:[],
  116 + tzlist:[]
91 117 }
92 118 },
93 119  
... ... @@ -125,14 +151,13 @@
125 151 methods:{
126 152 getmsg() {
127 153 this.zllist = []
  154 + this.tzlist = []
128 155 let info = {
129 156 // phone:uni.getStorageSync('user').phone,
130 157 phone:'18121815598',
131 158 isRead:'0'
132 159 }
133   - this.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => {
134   - // console.error(res)
135   - })
  160 +
136 161 this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'租赁提醒'},1).then(res => {
137 162 let obj = res.data.data
138 163 for(let prop in obj) {
... ... @@ -141,7 +166,16 @@
141 166 this.zllist.push(obj[prop][0])
142 167 }
143 168 }
144   - console.error(this.zllist)
  169 + })
  170 + this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'通知消息'},1).then(res => {
  171 + let obj = res.data.data
  172 + for(let prop in obj) {
  173 + if(obj.hasOwnProperty(prop)) { // 确保只访问实例上的属性,不包括继承的
  174 + obj[prop][0].content = JSON.parse(obj[prop][0].content)
  175 + this.tzlist.push(obj[prop][0])
  176 + }
  177 + }
  178 + console.error(this.tzlist)
145 179 })
146 180 },
147 181 formatDateTime(dateTimeString) {
... ...
lvdao-miniapp/utils/request.js
... ... @@ -21,7 +21,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
21 21 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url;
22 22 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url;
23 23  
24   - bases = 'http://128.10.249.42:9003'+ url;
  24 + // bases = 'http://128.10.249.42:9003'+ url;
25 25 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url;
26 26  
27 27 bases = c1 + 'cdwlMall/meserver/admin-server' + url;
... ... @@ -30,8 +30,8 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
30 30 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url;
31 31 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url;
32 32 // bases = 'http://128.10.249.22:9003:9007' + url;
33   - bases = 'http://128.10.249.42:9007' + url;
34   - // bases = c1 + 'cdwlMall/meserver/api' + url;
  33 + // bases = 'http://128.10.249.42:9007' + url;
  34 + bases = c1 + 'cdwlMall/meserver/api' + url;
35 35  
36 36 }else{
37 37 // bases = 'http://128.10.249.22:9004' + url;
... ... @@ -39,7 +39,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
39 39 // bases = 'http://172.16.61.123/cdwlMall/business-server' + url;
40 40 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url;
41 41 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url;
42   - bases = 'http://128.10.249.42:9004' + url;
  42 + // bases = 'http://128.10.249.42:9004' + url;
43 43 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url;
44 44 bases = c1 + 'cdwlMall/business-server' + url;
45 45  
... ...