|
|
@@ -16,7 +16,7 @@
|
|
|
<t-tag class="mr-5" wx:if="{{item.class1}}" variant="light" shape="round" theme="primary" size="small">{{language[item.class1]||item.class1}}</t-tag>
|
|
|
<t-tag class="mr-5" wx:if="{{item.class2}}" variant="light" shape="round" theme="primary" size="small">{{language[item.class2]||item.class2}}</t-tag>
|
|
|
</view>
|
|
|
- <text>{{language[item.status]||item.status}}</text>
|
|
|
+ <text style="color: {{set.color(item.status)}};">{{language[item.status]||item.status}}</text>
|
|
|
</view>
|
|
|
<view class="card__body">
|
|
|
<view>{{language['服务地址']||'服务地址'}}:{{item.province}}{{item.city}}{{item.county}}{{item.address}}</view>
|
|
|
@@ -33,4 +33,27 @@
|
|
|
<Yl_Empty wx:if="{{!list.length}}" />
|
|
|
<t-fab icon="add" style="position:fixed;right:16px;bottom:72px" bind:click="handleClick" aria-label="{{language['增加']||'增加'}}"></t-fab>
|
|
|
</view>
|
|
|
-</t-pull-down-refresh>
|
|
|
+</t-pull-down-refresh>
|
|
|
+
|
|
|
+<wxs module="set">
|
|
|
+ module.exports = {
|
|
|
+ color: function (statu) {
|
|
|
+ var color = '#999999';
|
|
|
+ switch (statu) {
|
|
|
+ case "待指派":
|
|
|
+ color = '#3874f6';
|
|
|
+ break;
|
|
|
+ case "待处理":
|
|
|
+ color = '#e6a23c';
|
|
|
+ break;
|
|
|
+ case "进行中":
|
|
|
+ color = '#e6a23c';
|
|
|
+ break;
|
|
|
+ case "已完成":
|
|
|
+ color = '#67C23A';
|
|
|
+ break;
|
|
|
+ };
|
|
|
+ return color;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</wxs>
|