|
@@ -4,10 +4,10 @@
|
|
|
<view class="classify-main" v-if="userType == '1'">
|
|
|
<up-tabs v-if="column2 && column2.length > 0" :list="column2" :scrollable="false" @change="onChange"
|
|
|
:activeStyle="{
|
|
|
- color: 'rgba(255, 87, 4, 1)',
|
|
|
- fontWeight: 'bold',
|
|
|
- transform: 'scale(1.05)'
|
|
|
- }" lineColor="rgba(255, 87, 4, 1)" :current="tabKey">
|
|
|
+ color: 'rgba(255, 87, 4, 1)',
|
|
|
+ fontWeight: 'bold',
|
|
|
+ transform: 'scale(1.05)'
|
|
|
+ }" lineColor="rgba(255, 87, 4, 1)" :current="tabKey">
|
|
|
</up-tabs>
|
|
|
<view class="list">
|
|
|
<OrderItem v-if="dataList && dataList.length > 0" :dataList="dataList" />
|
|
@@ -25,8 +25,8 @@
|
|
|
|
|
|
<!-- 中间信息 -->
|
|
|
<view class="item-info">
|
|
|
- <view class="info-line">姓名:{{item.name}}</view>
|
|
|
- <view class="info-line">类别:{{item.businessTierName}}</view>
|
|
|
+ <view class="info-line">姓名:{{ item.name }}</view>
|
|
|
+ <view class="info-line">类别:{{ item.businessTierName }}</view>
|
|
|
<view class="info-line skill-description">技能介绍:{{ item.skillDescribe }}</view>
|
|
|
</view>
|
|
|
|
|
@@ -53,134 +53,134 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import {
|
|
|
- ref,
|
|
|
- onMounted
|
|
|
- } from "vue"
|
|
|
-
|
|
|
- // const tab = ref('')
|
|
|
- const userType = uni.getStorageSync('userType') //读取本地存储
|
|
|
-
|
|
|
- // 用户/志愿者 识别标识
|
|
|
- const userOrWorker = uni.getStorageSync('storage_data').vuex_userOrWorker //读取本地存储
|
|
|
- const orderStatus = ref(0)
|
|
|
- const column2 = [{
|
|
|
- name: "全部",
|
|
|
- value: "",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "待支付",
|
|
|
- value: "1",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "待服务",
|
|
|
- value: "2",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "进行中",
|
|
|
- value: "3",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "已完成",
|
|
|
- value: "4",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "已取消",
|
|
|
- value: "5",
|
|
|
- }
|
|
|
- ]
|
|
|
-
|
|
|
-
|
|
|
- const props = defineProps({
|
|
|
- dataList: {
|
|
|
- typeof: Array,
|
|
|
- default: () => [],
|
|
|
- },
|
|
|
- })
|
|
|
-
|
|
|
- const emits = defineEmits([
|
|
|
- 'fetchData'
|
|
|
- ])
|
|
|
-
|
|
|
-
|
|
|
- const handlClick = (item) => {
|
|
|
- const mainOrderId = item.mainOrderId; // 获取详情id
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages_classify/pages/orderItem/orderdetails?mainOrderId=${mainOrderId}`
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- function onChange(tabItem) {
|
|
|
- // tab.value = tabItem.value;
|
|
|
- emits('fetchData', tabItem.value)
|
|
|
- }
|
|
|
+import {
|
|
|
+ ref,
|
|
|
+ onMounted
|
|
|
+} from "vue"
|
|
|
+
|
|
|
+// const tab = ref('')
|
|
|
+const userType = uni.getStorageSync('userType') //读取本地存储
|
|
|
+
|
|
|
+// 用户/志愿者 识别标识
|
|
|
+const userOrWorker = uni.getStorageSync('storage_data').vuex_userOrWorker //读取本地存储
|
|
|
+const orderStatus = ref(0)
|
|
|
+const column2 = [{
|
|
|
+ name: "全部",
|
|
|
+ value: "",
|
|
|
+},
|
|
|
+{
|
|
|
+ name: "待支付",
|
|
|
+ value: "1",
|
|
|
+},
|
|
|
+{
|
|
|
+ name: "待服务",
|
|
|
+ value: "2",
|
|
|
+},
|
|
|
+{
|
|
|
+ name: "进行中",
|
|
|
+ value: "3",
|
|
|
+},
|
|
|
+{
|
|
|
+ name: "已完成",
|
|
|
+ value: "4",
|
|
|
+},
|
|
|
+{
|
|
|
+ name: "已取消",
|
|
|
+ value: "5",
|
|
|
+}
|
|
|
+]
|
|
|
+
|
|
|
+
|
|
|
+const props = defineProps({
|
|
|
+ dataList: {
|
|
|
+ typeof: Array,
|
|
|
+ default: () => [],
|
|
|
+ },
|
|
|
+})
|
|
|
+
|
|
|
+const emits = defineEmits([
|
|
|
+ 'fetchData'
|
|
|
+])
|
|
|
+
|
|
|
+
|
|
|
+const handlClick = (item) => {
|
|
|
+ const mainOrderId = item.mainOrderId; // 获取详情id
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages_classify/pages/orderItem/orderdetails?mainOrderId=${mainOrderId}`
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function onChange(tabItem) {
|
|
|
+ // tab.value = tabItem.value;
|
|
|
+ emits('fetchData', tabItem.value)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
- .list-item {
|
|
|
- display: flex;
|
|
|
- padding: 12px;
|
|
|
- border-bottom: 1px solid #f5f5f5;
|
|
|
- }
|
|
|
-
|
|
|
- .item-image {
|
|
|
- width: 80px;
|
|
|
- height: 80px;
|
|
|
- border-radius: 8px;
|
|
|
- margin-right: 12px;
|
|
|
- }
|
|
|
-
|
|
|
- .item-info {
|
|
|
- flex: 1;
|
|
|
- margin-right: 12px;
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
-
|
|
|
- .info-line {
|
|
|
- margin-bottom: 6px;
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
-
|
|
|
- .skill-description {
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- /* 限制两行 */
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- line-height: 1.4;
|
|
|
- min-height: 2.8em;
|
|
|
- /* 两行高度 */
|
|
|
- }
|
|
|
-
|
|
|
- .item-right {
|
|
|
- width: 120px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: flex-end;
|
|
|
- }
|
|
|
-
|
|
|
- .rating {
|
|
|
- font-size: 13px;
|
|
|
- color: #f39c12;
|
|
|
- margin-bottom: 6px;
|
|
|
- }
|
|
|
-
|
|
|
- .status-tags {
|
|
|
- margin-bottom: 6px;
|
|
|
- }
|
|
|
-
|
|
|
- .Wrap-Btn {
|
|
|
- display: flex;
|
|
|
- gap: 6px;
|
|
|
- /* 按钮间距 */
|
|
|
- }
|
|
|
-
|
|
|
- .action-btn {
|
|
|
- padding: 0 8px;
|
|
|
- height: 28px;
|
|
|
- line-height: 28px;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
+.list-item {
|
|
|
+ display: flex;
|
|
|
+ padding: 12px;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
+}
|
|
|
+
|
|
|
+.item-image {
|
|
|
+ width: 60px;
|
|
|
+ height: 60px;
|
|
|
+ border-radius: 8px;
|
|
|
+ margin-right: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.item-info {
|
|
|
+ flex: 1;
|
|
|
+ margin-right: 12px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.info-line {
|
|
|
+ margin-bottom: 6px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #333;
|
|
|
+}
|
|
|
+
|
|
|
+.skill-description {
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ /* 限制两行 */
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ line-height: 1.4;
|
|
|
+ min-height: 2.8em;
|
|
|
+ /* 两行高度 */
|
|
|
+}
|
|
|
+
|
|
|
+.item-right {
|
|
|
+ width: 120px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-end;
|
|
|
+}
|
|
|
+
|
|
|
+.rating {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #f39c12;
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.status-tags {
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.Wrap-Btn {
|
|
|
+ display: flex;
|
|
|
+ gap: 6px;
|
|
|
+ /* 按钮间距 */
|
|
|
+}
|
|
|
+
|
|
|
+.action-btn {
|
|
|
+ padding: 0 8px;
|
|
|
+ height: 28px;
|
|
|
+ line-height: 28px;
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
</style>
|