first commit

This commit is contained in:
cclu 2025-04-03 18:55:21 +08:00
parent d454e305da
commit 4f993ce754
4 changed files with 194 additions and 130 deletions

View File

@ -10,146 +10,189 @@
</view> </view>
</view> --> </view> -->
<view class="tabBox"> <view class="tabBox">
<MenuItem v-for="(item, index) in tabList" :key="index" :item="item" round="true" size="28" <MenuItem
v-for="(item, index) in tabList"
:key="index"
:item="item"
round="true"
size="28"
:src="selectFilter == item.id ? item.active : item.src" :src="selectFilter == item.id ? item.active : item.src"
:nameStyle="selectFilter == item.id ? 'color:#5B96E9' : 'color:#808D97'" :imageBoxStyle="(selectFilter == item.id :nameStyle="selectFilter == item.id ? 'color:#5B96E9' : 'color:#808D97'"
? 'background:#f0f7fe;' :imageBoxStyle="
: 'background:#f6f7f8;') + (selectFilter == item.id
'height:75rpx;width:75rpx;padding: 18rpx;' ? 'background:#f0f7fe;'
" @handleClick="handleChangeSelect(item.id)"> : 'background:#f6f7f8;') +
'height:75rpx;width:75rpx;padding: 18rpx;'
"
@handleClick="handleChangeSelect(item.id)"
>
</MenuItem> </MenuItem>
</view> </view>
<scroll-view class="scrollbox" :scroll-y="true" @scrolltolower="handleScrollBottom"> <scroll-view
class="scrollbox"
:scroll-y="true"
@scrolltolower="handleScrollBottom"
>
<view class="dataList"> <view class="dataList">
<view class="dataItem" v-for="(item, index) in dataList" :key="index" @click="handleGoDetail(item)"> <view
class="dataItem"
v-for="(item, index) in dataList"
:key="index"
@click="handleGoDetail(item)"
>
<div class="content-index">{{ index + 1 }}</div> <div class="content-index">{{ index + 1 }}</div>
<view class="itemRow"> <view class="itemRow">
<view class="projectName">{{ item.template.title || "-" }}</view> <view class="projectName">{{ item.template.title || "-" }}</view>
<view class="stateName" :style="{ <view
color: class="stateName"
item.extendObj.errorStatus === 0 :style="{
? 'red' color:
: item.extendObj.errorStatus === 1 item.extendObj.errorStatus === 0
? '#3B72FF' ? 'red'
: item.extendObj.errorStatus === 2 : item.extendObj.errorStatus === 1
? '#139942' ? '#3B72FF'
: '', : item.extendObj.errorStatus === 2
}"> ? '#139942'
: '',
}"
>
{{ {{
item.extendObj.errorStatus === 0 item.extendObj.errorStatus === 0
? "待处理" ? "待处理"
: item.extendObj.errorStatus === 1 : item.extendObj.errorStatus === 1
? "处理中" ? "处理中"
: item.extendObj.errorStatus === 2 : item.extendObj.errorStatus === 2
? "已处理" ? "已处理"
: "" : ""
}}</view> }}</view
>
</view> </view>
<view class="itemCenterRow" style="margin: 60rpx 0 20rpx"> <view class="itemCenterRow" style="margin: 60rpx 0 20rpx">
<view class="value">{{ <view class="value">{{ item.extendObj.uploadResult || "-" }}</view>
item.extendObj.uploadResult || "-"
}}</view>
</view> </view>
<view class="itemRow"> <view class="itemRow">
<view class="leftName"></view> <view class="leftName"></view>
<!-- <view class="rightName">{{ $util.getMoney(item.REVENUE_AMOUNT) }}</view>--> <!-- <view class="rightName">{{ $util.getMoney(item.REVENUE_AMOUNT) }}</view>-->
<view class="rightName"><span :style="{ <view class="rightName"
color: ><span
item.extendObj.situation === 0 :style="{
? '#139942' color:
: item.extendObj.situation === 1 item.extendObj.situation === 0
? '#F75031' ? '#139942'
: '' : item.extendObj.situation === 1
}">{{ ? '#F75031'
item.extendObj.situation === 0 : '',
? "正常情况" }"
: item.extendObj.situation === 1 >{{
? "急需处理" item.extendObj.errorStatus === 2
: "-" ? ""
}}</span> </view> : item.extendObj.situation === 0
? "正常情况"
: item.extendObj.situation === 1
? "急需处理"
: "-"
}}</span
>
</view>
</view> </view>
<view class="line"></view> <view class="line"></view>
<view class="itemRow"> <view class="itemRow">
<view class="leftName"><span class="radio" style="background: #44bea3"></span>{{ item.userName || "-" }} <view class="leftName"
><span class="radio" style="background: #44bea3"></span
>{{ item.userName || "-" }}
</view> </view>
<view class="rightName"></view> <view class="rightName"></view>
</view> </view>
<view class="itemRow"> <view class="itemRow">
<view class="leftName"><span class="radio" style="background: #398EFE"></span>{{ <view class="leftName"
item.createdAt ><span class="radio" style="background: #398efe"></span
? $moment(item.createdAt).format("YYYY-MM-DD HH:mm:ss") >{{
: "-" item.createdAt
}}</view> ? $moment(item.createdAt).format("YYYY-MM-DD HH:mm:ss")
: "-"
}}</view
>
</view> </view>
</view> </view>
</view> </view>
<view class="dataList" v-if=false> <view class="dataList" v-if="false">
<view class="dataItem" v-for="(item, index) in dataList" :key="index" @click="handleGoDetail(item)"> <view
class="dataItem"
v-for="(item, index) in dataList"
:key="index"
@click="handleGoDetail(item)"
>
<view class="dataTop"> <view class="dataTop">
<view class="topLeft"> <view class="topLeft">
<image class="itemIcon" src="/static/images/mbwa/fixed.svg" /> <image class="itemIcon" src="/static/images/mbwa/fixed.svg" />
<span class="itemTitle">{{ item.template.title || "-" }}</span> <span class="itemTitle">{{ item.template.title || "-" }}</span>
</view> </view>
<view class="topRight" :style="{ <view
color: class="topRight"
item.extendObj.errorStatus === 0 :style="{
? 'red' color:
: item.extendObj.errorStatus === 1 item.extendObj.errorStatus === 0
? '#3B72FF' ? 'red'
: item.extendObj.errorStatus === 2 : item.extendObj.errorStatus === 1
? '#139942' ? '#3B72FF'
: '', : item.extendObj.errorStatus === 2
}"> ? '#139942'
: '',
}"
>
{{ {{
item.extendObj.errorStatus === 0 item.extendObj.errorStatus === 0
? "待处理" ? "待处理"
: item.extendObj.errorStatus === 1 : item.extendObj.errorStatus === 1
? "处理中" ? "处理中"
: item.extendObj.errorStatus === 2 : item.extendObj.errorStatus === 2
? "已处理" ? "已处理"
: "" : ""
}} }}
</view> </view>
</view> </view>
<view class="dataBottom"> <view class="dataBottom">
<view class="statusBox" :style="{ <view
color: class="statusBox"
item.extendObj.situation === 0 :style="{
? '#139942' color:
: item.extendObj.situation === 1 item.extendObj.situation === 0
? '#F75031' ? '#139942'
: '', : item.extendObj.situation === 1
background: ? '#F75031'
item.extendObj.situation === 0 : '',
? '#EBF7EF' background:
: item.extendObj.situation === 1 item.extendObj.situation === 0
? '#FEF0ED' ? '#EBF7EF'
: '', : item.extendObj.situation === 1
}">{{ ? '#FEF0ED'
item.extendObj.situation === 0 : '',
? "正常情况" }"
: item.extendObj.situation === 1 >{{
? "急需处理" item.extendObj.situation === 0
: "-" ? "正常情况"
}}</view> : item.extendObj.situation === 1
? "急需处理"
: "-"
}}</view
>
<view class="itemContent">{{ <view class="itemContent">{{
item.extendObj.uploadResult || "-" item.extendObj.uploadResult || "-"
}}</view> }}</view>
<view class="userBox"> <view class="userBox">
<text class="userName">{{ item.userName || "-" }}</text> <text class="userName">{{ item.userName || "-" }}</text>
<text class="time">{{ <text class="time">{{
item.createdAt item.createdAt
? $moment(item.createdAt).format("YYYY-MM-DD HH:mm:ss") ? $moment(item.createdAt).format("YYYY-MM-DD HH:mm:ss")
: "-" : "-"
}}</text> }}</text>
</view> </view>
</view> </view>
</view> </view>
@ -158,7 +201,7 @@
<view class="load-more" v-if="dataList && dataList.length > 0"> <view class="load-more" v-if="dataList && dataList.length > 0">
<text>{{ <text>{{
!isEnd ? "正在加载,请稍后..." : "——— 我是有底线的 ———" !isEnd ? "正在加载,请稍后..." : "——— 我是有底线的 ———"
}}</text> }}</text>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -297,28 +340,28 @@ export default {
this.selectFilter === 1 this.selectFilter === 1
? undefined ? undefined
: this.selectFilter === 2 : this.selectFilter === 2
? [ ? [
{ {
key: "situation", key: "situation",
value: 0, value: 0,
}, },
] ]
: this.selectFilter === 3 : this.selectFilter === 3
? [ ? [
{ {
key: "situation", key: "situation",
value: 1, value: 1,
}, },
] ]
: this.selectFilter === 4 : this.selectFilter === 4
? [ ? [
{ {
key: "person.STAFF_NAME", key: "person.STAFF_NAME",
value: this.useInfo.userData.UserName, value: this.useInfo.userData.UserName,
// this.useInfo.userData.UserId // this.useInfo.userData.UserId
}, },
] ]
: undefined, : undefined,
// any: // any:
// this.selectFilter === 4 // this.selectFilter === 4
@ -469,7 +512,7 @@ export default {
padding: 16rpx; padding: 16rpx;
margin: 24rpx 0; margin: 24rpx 0;
border-radius: 8rpx; border-radius: 8rpx;
box-shadow: 0 0px 6rpx #E2E2E2; box-shadow: 0 0px 6rpx #e2e2e2;
position: relative; position: relative;
.content-index { .content-index {
@ -483,7 +526,7 @@ export default {
position: absolute; position: absolute;
top: 26rpx; top: 26rpx;
left: -4rpx; left: -4rpx;
box-shadow: 4rpx 4rpx 2rpx 0 rgba(238, 112, 27, 0.5) box-shadow: 4rpx 4rpx 2rpx 0 rgba(238, 112, 27, 0.5);
} }
.itemRow { .itemRow {
@ -560,8 +603,6 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
text-align: center; text-align: center;
} }
} }
.line { .line {

View File

@ -1187,7 +1187,8 @@ export default {
}); });
uni.uploadFile({ uni.uploadFile({
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", // url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
url: "https://es.robot-z.cn/oss/upload", // url: "https://es.robot-z.cn/oss/upload",
url:"https://es.eshangtech.com/oss/upload",
filePath: res.tempFilePath, filePath: res.tempFilePath,
header: { header: {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
@ -1204,7 +1205,7 @@ export default {
console.log("data", data); console.log("data", data);
uni.hideLoading(); uni.hideLoading();
_this.feedbackImgList.push( _this.feedbackImgList.push(
`https://es.robot-z.cn/${data.data.path}` `https://es.eshangtech.com/${data.data.path}`
); );
}, },
fail(error) { fail(error) {
@ -1224,7 +1225,8 @@ export default {
}); });
uni.uploadFile({ uni.uploadFile({
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", // url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
url: "https://es.robot-z.cn/oss/upload", // url: "https://es.robot-z.cn/oss/upload",
url:"https://es.eshangtech.com/oss/upload",
filePath: rs.tempFilePaths[0], filePath: rs.tempFilePaths[0],
fileType: "image", fileType: "image",
header: { header: {
@ -1240,7 +1242,7 @@ export default {
console.log("data", data); console.log("data", data);
uni.hideLoading(); uni.hideLoading();
_this.feedbackImgList.push( _this.feedbackImgList.push(
`https://es.robot-z.cn/${data.data.path}` `https://es.eshangtech.com/${data.data.path}`
); );
// path; // path;
}, },

View File

@ -37,7 +37,11 @@
</div> </div>
<div class="imgItem" v-for="(item, index) in imgsList" :key="index"> <div class="imgItem" v-for="(item, index) in imgsList" :key="index">
<image :src="item" @tap="showImg2(index)" mode="aspectFill" /> <image
:src="item"
@tap="showImg2(index, imgsList)"
mode="aspectFill"
/>
<view class="closeBox" @click.stop="deleteImgFunc(item, index)"> <view class="closeBox" @click.stop="deleteImgFunc(item, index)">
<image <image
class="closeIcon" class="closeIcon"
@ -299,7 +303,11 @@
@click.stop="deleteImgFunc(item, index)" @click.stop="deleteImgFunc(item, index)"
>×</span >×</span
> >
<image :src="item" @tap="showImg2(index)" mode="aspectFill" /> <image
:src="item"
@tap="showImg2(index, imgsList)"
mode="aspectFill"
/>
</div> </div>
<div class="uploadAdd" @click="submitImg"> <div class="uploadAdd" @click="submitImg">
<div class="upload-file-add-container"> <div class="upload-file-add-container">
@ -837,7 +845,8 @@ export default {
}); });
uni.uploadFile({ uni.uploadFile({
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", // url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
url: "https://es.robot-z.cn/oss/upload", // url: "https://es.robot-z.cn/oss/upload",
url: "https://es.eshangtech.com/oss/upload",
filePath: res.tempFilePath, filePath: res.tempFilePath,
header: { header: {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
@ -854,7 +863,7 @@ export default {
console.log("data", data); console.log("data", data);
uni.hideLoading(); uni.hideLoading();
_this.imgsList.push( _this.imgsList.push(
`https://es.robot-z.cn/${data.data.path}` `https://es.eshangtech.com/${data.data.path}`
); );
}, },
fail(error) { fail(error) {
@ -874,7 +883,8 @@ export default {
}); });
uni.uploadFile({ uni.uploadFile({
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", // url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
url: "https://es.robot-z.cn/oss/upload", // url: "https://es.robot-z.cn/oss/upload",
url: "https://es.eshangtech.com/oss/upload",
filePath: rs.tempFilePaths[0], filePath: rs.tempFilePaths[0],
fileType: "image", fileType: "image",
header: { header: {
@ -889,7 +899,9 @@ export default {
} }
console.log("data", data); console.log("data", data);
uni.hideLoading(); uni.hideLoading();
_this.imgsList.push(`https://es.robot-z.cn/${data.data.path}`); _this.imgsList.push(
`https://es.eshangtech.com/${data.data.path}`
);
// path; // path;
}, },
fail(error) { fail(error) {
@ -988,6 +1000,14 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
} }
}, },
showImg2(index, imgList) {
uni.previewImage({
urls: imgList,
current: index,
loop: true,
indicator: "number",
});
},
// //
handleChangeSituationType(e) { handleChangeSituationType(e) {

View File

@ -2,7 +2,7 @@
* @Author: cclu 1106109051@qq.com * @Author: cclu 1106109051@qq.com
* @Date: 2023-05-16 09:06:13 * @Date: 2023-05-16 09:06:13
* @LastEditors: cclu 1106109051@qq.com * @LastEditors: cclu 1106109051@qq.com
* @LastEditTime: 2025-03-19 11:20:27 * @LastEditTime: 2025-03-27 15:45:03
* @FilePath: \wechat_yxcl\util\apiPath.js * @FilePath: \wechat_yxcl\util\apiPath.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@ -18,7 +18,8 @@ export default {
// apiurl: 'https://erysfeipeng.oicp.net/', // web api // apiurl: 'https://erysfeipeng.oicp.net/', // web api
testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址 testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址
NodeApiurl: 'https://es.robot-z.cn/', // web api测试接口地址 // NodeApiurl: 'https://es.robot-z.cn/', // web api测试接口地址
NodeApiurl: 'https://es.eshangtech.com/', // web api测试接口地址
// NodeApiurl: 'http://home.robot-z.cn:7001/', // NodeApiurl: 'http://home.robot-z.cn:7001/',
mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口 mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
testURL1: 'http://192.168.10.123:8000', // 测试ip testURL1: 'http://192.168.10.123:8000', // 测试ip