fix: 小程序环境、显示调整

property-only-app
wx-jincw 2 months ago
parent 1ab21365e8
commit f402c938be

@ -8,7 +8,7 @@
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
//移动端商城API
let domain = 'http://crmebxcx.test.jiutianda.cn'
let domain = 'https://fzbfwy.com/mobile-api'
module.exports = {
// 请求域名 格式: https://您的域名
@ -17,7 +17,7 @@ module.exports = {
// #ifdef MP
HTTP_REQUEST_URL: domain,
// #endif
HTTP_ADMIN_URL:'http://crmeb.test.jiutianda.cn', //PC后台的API请求地址上传图片用,影响h5上传头像
HTTP_ADMIN_URL:'https://fzbfwy.com/prod-api', //PC后台的API请求地址上传图片用,影响h5上传头像
// #ifdef H5
//H5接口是浏览器地址
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,

@ -1,7 +1,7 @@
{
"name" : "甄味馆商城",
"name" : "八方物业",
"appid" : "__UNI__B905528",
"description" : "甄味馆商城",
"description" : "八方物业",
"versionName" : "1.0.0",
"versionCode" : 1001,
"transformPx" : false,
@ -130,11 +130,7 @@
"postcss" : true,
"es6" : true
},
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于和门店的距离长度"
}
},
"permission" : {},
// "plugins" : {
// "chat" : {
// "version" : "1.0.8",

@ -183,7 +183,7 @@
<view
class="image-item"
v-for="(file, imgIndex) in item.beforeProcessFiles"
:key="'before-' + imgIndex"
:key="imgIndex"
@click="previewRecordImages(item.beforeProcessFiles, imgIndex)"
>
<image
@ -202,7 +202,7 @@
<view
class="image-item"
v-for="(file, imgIndex) in item.afterProcessFiles"
:key="'after-' + imgIndex"
:key="imgIndex"
@click="previewRecordImages(item.afterProcessFiles, imgIndex)"
>
<image

@ -65,7 +65,7 @@
</view>
<view class="time-wrap">
<text class="time">{{ item.noticeTime }}</text>
<text class="time">{{ item.noticeTime || '' }}</text>
<view class="read-badge" v-if="isUnread(item.isRead)">
<view class="red-dot"></view>
</view>

@ -41,8 +41,8 @@
<view class="attach-list">
<view
class="attach-item"
v-for="(file, index) in fileList"
:key="file.attId || file.fileId || index"
v-for="file in fileList"
:key="file.__key"
@click="fileClick(file)"
>
<view class="left">
@ -105,7 +105,11 @@ export default {
},
computed: {
fileList() {
return Array.isArray(this.notice?.files) ? this.notice.files : [];
const list = Array.isArray(this.notice?.files) ? this.notice.files : [];
return list.map((file, index) => ({
...file,
__key: file.attId || file.fileId || index
}));
},
imageFiles() {
return this.fileList

@ -13,7 +13,7 @@
:key="index"
>
<view class="dispatch-header">
<text class="dispatch-status" :class="dispatchStatusClass(item.status)">
<text class="dispatch-status" :class="dispatchStatusClassMap[item.status] || ''">
{{ getDispatchStatusText(item.status) }}
</text>
<text class="dispatch-time">{{ item.assignTime }}</text>
@ -87,7 +87,12 @@ export default {
data() {
return {
records: [],
loading: false
loading: false,
dispatchStatusClassMap: {
0: 'pending',
1: 'doing',
2: 'done'
}
};
},
watch: {
@ -139,15 +144,6 @@ export default {
};
return statusMap[status] || '未知状态';
},
//
dispatchStatusClass(status) {
const classMap = {
0: 'pending',
1: 'doing',
2: 'done'
};
return classMap[status] || '';
},
//
close() {
this.$emit('update:visible', false);

@ -158,7 +158,7 @@
<view
class="image-item"
v-for="(file, imgIndex) in item.files"
:key="'fault-' + imgIndex"
:key="imgIndex"
@click="previewRecordImages(item.files, imgIndex)"
>
<image
@ -178,7 +178,7 @@
<view
class="image-item"
v-for="(file, imgIndex) in item.afterProcessFiles"
:key="'result-' + imgIndex"
:key="imgIndex"
@click="previewRecordImages(item.afterProcessFiles, imgIndex)"
>
<image

@ -4,11 +4,11 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<title>甄味馆</title>
<title>八方物业</title>
<meta name="Copyright" content="helang">
<!-- <link rel="shortcut icon" type="image/png" href="/uniapp-extend/static/logo.png"> -->
<meta name="keywords" content="甄味馆">
<meta name="description" content="甄味馆">
<meta name="keywords" content="八方物业">
<meta name="description" content="八方物业">
<style type="text/css">
body {
margin: 0;

Loading…
Cancel
Save