Compare commits

..

7 Commits

Author SHA1 Message Date
赵毅
4b8d27d912 快捷支付禁用时添加提示弹窗 2025-11-03 17:55:46 +08:00
赵毅
f34e7d9bad 修改易购订单立即支付跳转页面错误的问题 2025-11-03 17:52:52 +08:00
赵毅
4666f8fb7b 修改到家服务搜索页面样式 2025-11-03 16:29:18 +08:00
赵毅
d74ce1a51d 11 2025-11-03 15:55:35 +08:00
赵毅
eeaf21d272 修改好店快捷支付操作逻辑 2025-11-03 15:54:51 +08:00
赵毅
e646266c0b 点评图片可以点击放大查看 2025-11-03 14:48:47 +08:00
赵毅
f697ec362c fix(workOrderDashboard): 修复图片URL处理逻辑并优化钱包页面代码
修复社区列表图片URL处理逻辑,当pic为空时返回空字符串而非拼接无效URL。优化钱包页面代码格式,调整onLoad和onShow生命周期方法顺序,保持代码逻辑清晰。
2025-11-01 09:54:46 +08:00
7 changed files with 286 additions and 220 deletions

View File

@ -44,7 +44,7 @@ page {
margin-left: 200rpx;
}
.activeFilter{
.activeFilter {
color: #FF370B;
}
@ -205,71 +205,86 @@ page {
padding: 20rpx 30rpx;
border-bottom: 1rpx solid #f5f5f5;
}
.filter-title {
font-size: 28rpx;
color: #333;
margin-bottom: 20rpx;
font-weight: bold;
}
.filter-options {
display: flex;
flex-wrap: wrap;
gap: 15rpx;
}
.filter-option {
background: #f5f5f5;
border-radius: 50rpx;
border-radius: 10rpx;
border: 1rpx solid #cccccc;
padding: 12rpx 30rpx;
font-size: 24rpx;
color: #666;
white-space: nowrap;
}
.filter-option.active {
background: #ff370b;
color: white;
}
.price-range {
display: flex;
align-items: center;
gap: 20rpx;
margin-top: 10rpx;
}
.price-input {
flex: 1;
height: 60rpx;
background: #f5f5f5;
border: 1rpx solid #cccccc;
border-radius: 10rpx;
padding: 0 20rpx;
font-size: 24rpx;
border: none;
}
.price-separator {
font-size: 28rpx;
color: #999;
}
.filter-buttons {
display: flex;
justify-content: space-between;
padding: 20rpx 30rpx;
margin-top: 10rpx;
}
.reset-button {
width: 200rpx;
height: 70rpx;
border: 1rpx solid #7abbff;
border: 1rpx solid #cccccc;
border-radius: 50rpx;
background: #f0f7ff;
color: #409eff;
background: #d9d9d9;
color: black;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
}
.confirm-button {
width: 200rpx;
height: 70rpx;
background: #409eff;
background: #ff370b;
border-radius: 50rpx;
color: white;
font-size: 28rpx;
border: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
}
.MasterItem_Info_right_1 {
@ -401,6 +416,7 @@ page {
.local span {
font-weight: 700;
margin: 0 10rpx;
}
.filterMore1 {
@ -409,27 +425,32 @@ page {
overflow: hidden;
overflow-x: auto;
white-space: nowrap;
margin-top: 20rpx;
margin: 40rpx 0 20rpx 0;
}
.filterMoreItem {
font-size: 28rpx;
font-size: 26rpx;
color: #222222;
display: flex;
align-items: center;
background-color: #f6f6fa;
padding: 0 20rpx;
margin-right: 10rpx;
margin-right: 20rpx;
border-radius: 20rpx;
border-radius: 10rpx;
border: 1rpx solid #cccccc;
padding: 10rpx 20rpx;
}
.filterMoreItem-active {
color: #ff702c !important;
border: 1rpx solid #ff702c;
}
.filterMore2_item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
margin: 0 10rpx 45rpx 10rpx;
color: #999;
}

View File

@ -1,16 +1,15 @@
<template>
<view class="container2">
<div class="header">
<div class="Filter">
<div class="Filter_left">
<div
<view class="header">
<view class="Filter">
<view class="Filter_left">
<view
v-for="filter in filters"
:key="filter.id"
class="FilterItem"
:class="{ active: selectedFilter === filter.id }"
@click="
showDialog(filter.id);
selectedFilter = filter.id;
"
>
{{ filter.label }}
@ -22,158 +21,158 @@
"
:class="{ iconStyle: selectedFilter === filter.id }"
></image>
</div>
</div>
</view>
</view>
<div class="Filter_right" @click="showDialog(6)">
<view class="Filter_right" @click="showDialog(6)">
<text :class="{ activeFilter: show6 }">筛选</text>
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/homeServer_filter.png"
></image>
</div>
</div>
</view>
</view>
<!-- 位置筛选 -->
<div class="FilterMore" v-if="show1">
<div class="local">距离 <span>上海公馆</span></div>
<div class="filterMore1">
<div class="filterMoreItem">附近</div>
<div class="filterMoreItem">500m</div>
<div class="filterMoreItem">1km</div>
<div class="filterMoreItem">3km</div>
<div class="filterMoreItem">5km</div>
<div class="filterMoreItem">10km</div>
</div>
</div>
<view class="FilterMore" v-if="show1">
<view class="local">距离 <span>上海公馆</span> ></view>
<view class="filterMore1">
<view class="filterMoreItem filterMoreItem-active">附近</view>
<view class="filterMoreItem">500m</view>
<view class="filterMoreItem">1km</view>
<view class="filterMoreItem">3km</view>
<view class="filterMoreItem">5km</view>
<view class="filterMoreItem">10km</view>
</view>
</view>
<!-- 综合筛选 -->
<div class="FilterMore" v-if="show2">
<div class="filterMore2_item">
<div class="filterMore2_item_left">综合</div>
<div class="filterMore2_item_right">
<view class="FilterMore" v-if="show2">
<view class="filterMore2_item">
<view class="filterMore2_item_left">综合</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
<div class="filterMore2_item">
<div class="filterMore2_item_left active3">从高到低</div>
<div class="filterMore2_item_right">
</view>
</view>
<view class="filterMore2_item">
<view class="filterMore2_item_left active3">从高到低</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
<div class="filterMore2_item">
<div class="filterMore2_item_left">从低到高</div>
<div class="filterMore2_item_right">
</view>
</view>
<view class="filterMore2_item">
<view class="filterMore2_item_left">从低到高</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
</div>
</view>
</view>
</view>
<!-- 排序筛选 -->
<div class="FilterMore" v-if="show3">
<div class="filterMore2_item">
<div class="filterMore2_item_left2">智能排序</div>
<div class="filterMore2_item_right">
<view class="FilterMore" v-if="show3">
<view class="filterMore2_item">
<view class="filterMore2_item_left2">智能排序</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
<div class="filterMore2_item">
<div class="filterMore2_item_left2 active3">距离优先</div>
<div class="filterMore2_item_right">
</view>
</view>
<view class="filterMore2_item">
<view class="filterMore2_item_left2 active3">距离优先</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
<div class="filterMore2_item">
<div class="filterMore2_item_left2">好评优先</div>
<div class="filterMore2_item_right">
</view>
</view>
<view class="filterMore2_item">
<view class="filterMore2_item_left2">好评优先</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
<div class="filterMore2_item">
<div class="filterMore2_item_left2">销量优先</div>
<div class="filterMore2_item_right">
</view>
</view>
<view class="filterMore2_item">
<view class="filterMore2_item_left2">销量优先</view>
<view class="filterMore2_item_right">
<u-icon name="checkmark-circle-fill" color="#ff702c"></u-icon>
</div>
</div>
</div>
</view>
</view>
</view>
<!-- 高级筛选面板 -->
<div class="FilterMore" v-if="show6">
<div class="filter-section">
<div class="filter-title">满意度</div>
<div class="filter-options">
<div
<view class="FilterMore" v-if="show6">
<view class="filter-section">
<view class="filter-title">满意度</view>
<view class="filter-options">
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('5+') }"
@click="toggleSatisfaction('5+')"
>
5分及以上
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('4.9+') }"
@click="toggleSatisfaction('4.9+')"
>
4.9分及以上
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('4.8+') }"
@click="toggleSatisfaction('4.8+')"
>
4.8分及以上
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('4.7+') }"
@click="toggleSatisfaction('4.7+')"
>
4.7分及以上
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('4.6+') }"
@click="toggleSatisfaction('4.6+')"
>
4.6分及以上
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedSatisfaction.includes('4.5+') }"
@click="toggleSatisfaction('4.5+')"
>
4.5分及以上
</div>
</div>
</div>
</view>
</view>
</view>
<div class="filter-section">
<div class="filter-title">评论数量</div>
<div class="filter-options">
<div
<view class="filter-section">
<view class="filter-title">评论数量</view>
<view class="filter-options">
<view
class="filter-option"
:class="{ active: selectedReviewCount === '1-100' }"
@click="selectedReviewCount = '1-100'"
>
1-100
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedReviewCount === '100-500' }"
@click="selectedReviewCount = '100-500'"
>
100-500
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedReviewCount === '500+' }"
@click="selectedReviewCount = '500+'"
>
500以上
</div>
</div>
</div>
</view>
</view>
</view>
<div class="filter-section">
<div class="filter-title">价格范围</div>
<div class="price-range">
<view class="filter-section">
<view class="filter-title">价格范围</view>
<view class="price-range">
<input
type="number"
v-model="minPrice"
@ -189,55 +188,55 @@
class="price-input"
@input="validatePriceRange"
/>
</div>
</div>
</view>
</view>
<div class="filter-section">
<div class="filter-title">类别</div>
<div class="filter-options">
<div
<view class="filter-section">
<view class="filter-title">类别</view>
<view class="filter-options">
<view
class="filter-option"
:class="{ active: selectedCategory === 'airConditioner' }"
@click="selectedCategory = 'airConditioner'"
>
空调维修
</div>
<div
</view>
<view
class="filter-option"
:class="{ active: selectedCategory === 'refrigerator' }"
@click="selectedCategory = 'refrigerator'"
>
冰箱维修
</div>
</div>
</div>
</view>
</view>
</view>
<div class="filter-buttons">
<view class="filter-buttons">
<button class="reset-button" @click="resetFilters">重置</button>
<button class="confirm-button" @click="applyFilters">确定</button>
</div>
</div>
</div>
</view>
</view>
</view>
<div class="main">
<view class="main">
<!-- 遮罩 -->
<div class="dialogBox" v-if="isShowDia"></div>
<view class="dialogBox" v-if="isShowDia" @click="closeAllFilters"></view>
<div class="MasterList">
<div class="MasterItem" v-for="(item, index) in 5" :key="index">
<div class="MasterItem_right">
<div class="MasterItem_info">
<div class="MasterItem_Info_left">
<view class="MasterList">
<view class="MasterItem" v-for="(item, index) in 5" :key="index">
<view class="MasterItem_right">
<view class="MasterItem_info">
<view class="MasterItem_Info_left">
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/home_icon12.png"
></image>
<div class="state state1">待服务</div>
<div class="state state2" v-if="false">休息中</div>
<div class="state state3" v-if="false">服务中</div>
</div>
<div class="MasterItem_Info_right">
<div class="MasterItem_Info_right_1">
<div class="master_info_right_left">
<view class="state state1">待服务</view>
<view class="state state2" v-if="false">休息中</view>
<view class="state state3" v-if="false">服务中</view>
</view>
<view class="MasterItem_Info_right">
<view class="MasterItem_Info_right_1">
<view class="master_info_right_left">
林师傅
<image
class="Medal"
@ -255,29 +254,29 @@
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png"
></image>
<span>4.8</span>
</div>
</view>
<div class="master_info_right_right" @click="masterInfo">
<view class="master_info_right_right" @click="masterInfo">
查看资料
</div>
</div>
<div class="MasterItem_Info_right_2">
</view>
</view>
<view class="MasterItem_Info_right_2">
52 广东梅州人 5-10
</div>
<div class="MasterItem_Info_right_3">
</view>
<view class="MasterItem_Info_right_3">
<span>500+</span>预定 <span>100+</span>评价
</div>
<div class="MasterItem_Info_right_4">
<div class="tagItem tag1">积极主动</div>
<div class="tagItem tag2">技术精湛</div>
<div class="tagItem tag3">技术精湛</div>
</div>
</view>
<view class="MasterItem_Info_right_4">
<view class="tagItem tag1">积极主动</view>
<view class="tagItem tag2">技术精湛</view>
<view class="tagItem tag3">技术精湛</view>
</view>
<div class="MasterItem_Info_right_5">
<view class="MasterItem_Info_right_5">
价格范围 <span>500-800</span>
</div>
</view>
<div class="MasterItem_Info_right_6">
<view class="MasterItem_Info_right_6">
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_MsgImg1.png"
></image>
@ -287,13 +286,13 @@
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_MsgImg1.png"
></image>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
@ -339,18 +338,8 @@ export default {
};
},
watch: {
show1(val) {
if (!val) this.selectedFilter = null;
},
show2(val) {
if (!val) this.selectedFilter = null;
},
show3(val) {
if (!val) this.selectedFilter = null;
},
show6(val) {
if (!val) this.selectedFilter = null;
},
// watch
//
},
methods: {
masterInfo() {
@ -401,6 +390,9 @@ export default {
this.isShowDia = false;
},
showDialog(index) {
// ID
this.selectedFilter = index;
//
this[`show${index}`] = !this[`show${index}`];
this.logOtherButtons(index);
this.isShowDia = this[`show${index}`];
@ -412,6 +404,14 @@ export default {
}
}
},
closeAllFilters() {
//
for (let i = 1; i <= 6; i++) {
this[`show${i}`] = false;
}
this.isShowDia = false;
this.selectedFilter = null;
},
},
onReady() {},

View File

@ -120,6 +120,19 @@ page {
margin-right: 20rpx;
}
.btn_disabled {
width: 230rpx;
height: 70rpx;
line-height: 70rpx;
text-align: center;
font-weight: 500;
font-size: 36rpx;
color: #FFFFFF;
background: #a4a3a1;
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin-right: 20rpx;
}
.startList {
display: flex;
align-items: center;

View File

@ -12,11 +12,11 @@
<view class="title">{{ info.merchant_name }}</view>
<!-- <u-icon name="star-fill" color="#FFB84D" /> -->
<div class="startList">
<view class="startList">
<image v-for="index in 5" :key="index"
:src="index < item.rating ? 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png' : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start2.png'"
mode="aspectFill"></image>
</div>
</view>
<u-line margin="46rpx 0 30rpx 0" />
<view class="table">
@ -45,39 +45,40 @@
</view>
</view>
<view class="white_container detail" v-for="(item, index) in commentList" :key="index">
<div class="Msg">
<div class="Msg_Tit">
<div class="Msg_Tit_left">
<view class="Msg">
<view class="Msg_Tit">
<view class="Msg_Tit_left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/user_ava.png"
v-if="!item.user.avatar" mode="aspectFill"></image>
<image :src="picUrl + item.user.avatar" v-if="item.user.avatar" mode="aspectFill"></image>
{{ item.user.nick_name }}
</div>
<div class="Msg_Tit_right">
</view>
<view class="Msg_Tit_right">
<image v-for="indez in 5" :key="indez"
:src="indez < item.satisfaction ? 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png' : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start2.png'"
mode="aspectFill"></image>
</div>
</div>
</view>
</view>
<div class="Msg_con">
<view class="Msg_con">
{{ item.comment }}
<div class="Msg_con_img" v-if="item.image_url">
<image v-for="(img, index) in item.image_url.split(',')" :key="index" :src="picUrl + img" mode="aspectFill">
<view class="Msg_con_img" v-if="item.image_url">
<image v-for="(img, index) in item.image_url.split(',')" :key="index" :src="picUrl + img" mode="aspectFill"
@click="previewImage(item.image_url.split(','), index)">
</image>
<video class="Msg_con_video" v-if="item.video_url" :src="picUrl + item.video_url" controls></video>
</div>
</div>
</view>
</view>
<div class="Msg_iconList">
<div class="Msg_iconList_left">
<div class="Msg_iconList_leftIcon">
<view class="Msg_iconList">
<view class="Msg_iconList_left">
<view class="Msg_iconList_leftIcon">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
mode="widthFix"></image>
{{ item.merchant_evaluation_reply_list ? item.merchant_evaluation_reply_list.length : 0 }}
</div>
</view>
<div class="Msg_iconList_leftIcon">
<view class="Msg_iconList_leftIcon">
<image v-if="item.is_like == 2"
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_likeIcon.png"
mode="widthFix" @click="like(item)"></image>
@ -85,13 +86,13 @@
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_likeIcon2.png"
mode="widthFix" @click="unlike(item)"></image>
{{ item.merchant_evaluation_like_list ? item.merchant_evaluation_like_list.length : 0 }}
</div>
</div>
<div class="Msg_iconList_right" @click="commentDesc(item)">
详情 <div><u-icon name="arrow-right" colof="#999999"></u-icon></div>
</div>
</div>
</div>
</view>
</view>
<view class="Msg_iconList_right" @click="commentDesc(item)">
详情 <view><u-icon name="arrow-right" colof="#999999"></u-icon></view>
</view>
</view>
</view>
</view>
<view class="bottom">
<view class="left">
@ -115,7 +116,8 @@
<view>客服</view>
</view>
</view>
<text v-if="isShow" class="btn" @click="handleQuickPayClick">快捷买单</text>
<button v-if="isShow && !isDisabled" class="btn" @click="handleQuickPayClick">快捷买单</button>
<button v-if="isShow && isDisabled" class="btn_disabled" @click="handleQuickPayClick">快捷买单</button>
</view>
</view>
</template>
@ -139,6 +141,7 @@ export default {
commentList: [],
flag: false,
isShow: false,
isDisabled: false,
};
},
onLoad(options) {
@ -170,7 +173,16 @@ export default {
methods: {
handleQuickPayClick() {
NavgateTo('../pay/index');
if (this.isDisabled) {
uni.showToast({
title: '支付未开通,升级 VIP 或联系工作人员开通',
icon: 'none',
duration: 2000
});
} else {
NavgateTo('../pay/index');
}
},
//
getCommentList() {
@ -208,6 +220,7 @@ export default {
id: uni.getStorageSync("merchantInfo").id,
}).then(res => {
this.isShow = res.quick_purchase_enabled == 1
this.isDisabled = res.level == 1
})
},
@ -283,6 +296,23 @@ export default {
commentDesc(e) {
NavgateTo(`../UserComment/index?id=${e.id}`)
},
//
previewImage(imageList, currentIndex) {
// URL
const urls = imageList.map(img => this.picUrl + img);
uni.previewImage({
urls: urls,
current: urls[currentIndex],
success: function (res) {
console.log('预览成功', res);
},
fail: function (err) {
console.log('预览失败', err);
}
});
},
},
};
</script>

View File

@ -42,7 +42,7 @@
<!-- 商品列表 -->
<view class="goods-list" @click="toDetails(item)">
<view v-for="(goods, goodsIndex) in item.commodity_order_item_list" :key="goodsIndex" class="goods-item">
<image :src="goods.commodity_pic" class="goods-img"></image>
<image :src="goods.commodity_pic ? goods.commodity_pic : '暂无图片'" class="goods-img"></image>
</view>
</view>
@ -327,8 +327,7 @@ export default {
update_time: item.update_time,
user_id: item.user_id
}));
NavgateTo(`/packages/shop/groupPurchaseSubmit/index?shopCarList=${JSON.stringify(transformedItems)}`)
NavgateTo(`/packages/shop/goodsSubmit/index?shopCarList=${JSON.stringify(transformedItems)}`)
},
toDetails(item) {
NavgateTo(

View File

@ -17,15 +17,18 @@
<view class="walletBox">
<view class="walletBox_top">钱包</view>
<view class="walletBox_content">
<view class="walletBox_item" @click="goWallet(1, walletInfo.receivable ? walletInfo.receivable.toFixed(2) : '0.00')">
<view class="walletBox_item"
@click="goWallet(1, walletInfo.receivable ? walletInfo.receivable.toFixed(2) : '0.00')">
<view>{{ walletInfo.receivable ? walletInfo.receivable.toFixed(2) : "0.00" }}</view>
<view class="walletBox_item_text">应收</view>
</view>
<view class="walletBox_item" @click="goWallet(2, walletInfo.received ? walletInfo.received.toFixed(2) : '0.00')">
<view class="walletBox_item"
@click="goWallet(2, walletInfo.received ? walletInfo.received.toFixed(2) : '0.00')">
<view>{{ walletInfo.received ? walletInfo.received.toFixed(2) : "0.00" }}</view>
<view class="walletBox_item_text">已收</view>
</view>
<view class="walletBox_item" @click="goWallet(3, walletInfo.pending ? walletInfo.pending.toFixed(2) : '0.00')">
<view class="walletBox_item"
@click="goWallet(3, walletInfo.pending ? walletInfo.pending.toFixed(2) : '0.00')">
<view>{{ walletInfo.pending ? walletInfo.pending.toFixed(2) : "0.00" }}</view>
<view class="walletBox_item_text">待收物业费</view>
</view>
@ -76,6 +79,18 @@ export default {
}
},
async onLoad() {
},
async onShow() {
const changeCommData = uni.getStorageSync('changeWorkOrderData');
this.communityVal = changeCommData ? changeCommData.name : "切换小区";
if (changeCommData) {
const params = {
community_id: changeCommData.id,
}
const res = await request(apiArr.communityInfo, "POST", params);
uni.setStorageSync('allow_grab_order', res.allow_grab_order == 1 ? true : false);
}
const workOrderPermission = uni.getStorageSync('work_order_permission');
const orderDispatchPermission = uni.getStorageSync('order_dispatch_permission');
this.showWorkOrderSection = !(workOrderPermission === false && orderDispatchPermission === false);
@ -111,18 +126,6 @@ export default {
this.getWalletInfo();
});
},
async onShow() {
const changeCommData = uni.getStorageSync('changeWorkOrderData');
this.communityVal = changeCommData ? changeCommData.name : "切换小区";
if (changeCommData) {
const params = {
community_id: changeCommData.id,
}
const res = await request(apiArr.communityInfo, "POST", params);
uni.setStorageSync('allow_grab_order', res.allow_grab_order == 1 ? true : false);
}
},
methods: {
//
getWalletInfo() {
@ -149,8 +152,8 @@ export default {
// if (type == 2) {
// return
// }
NavgateTo('/packages/workOrderDashboard/wallet/index?type=' + type + '&community_id=' + changeCommData.id + '&amount=' + amount);
},
NavgateTo('/packages/workOrderDashboard/wallet/index?type=' + type + '&community_id=' + changeCommData.id + '&amount=' + amount);
},
addCommunity() {
NavgateTo("/packages/workOrderDashboard/myCommunity/index");
},

View File

@ -60,7 +60,7 @@ export default {
user_id: uni.getStorageSync('userId'),
}).then(res => {
res.rows.forEach(item => {
item.pic = item.pic.startsWith('http') ? item.pic : picUrl + item.pic
item.pic = item.pic ? (item.pic.startsWith('http') ? item.pic : picUrl + item.pic) : ''
});
this.communityList = res.rows
})