Przeglądaj źródła

拍照验课核销切换判断逻辑

学习?学个屁 1 tydzień temu
rodzic
commit
2d6a11d083
3 zmienionych plików z 16 dodań i 41 usunięć
  1. 2 2
      src/config/index.ts
  2. 1 1
      src/manifest.json
  3. 13 38
      src/subPack/PersonnelView/index.vue

+ 2 - 2
src/config/index.ts

@@ -4,8 +4,8 @@ const mapEnvVersion = {
    */
   // develop: "http://192.168.1.166:8080/jeecg-boot",
   // develop: "http://192.168.0.217:8080/jeecg-boot",
-  develop: "https://api.qlapp.cn/jeecgboot",
-  // develop: "http://192.168.0.11:8080/jeecg-boot",
+  // develop: "https://api.qlapp.cn/jeecgboot",
+  develop: "http://192.168.0.11:8080/jeecg-boot",
   /**
    * 	体验版
    */

+ 1 - 1
src/manifest.json

@@ -79,4 +79,4 @@
     "darkmode": true,
     "themeLocation": "theme.json"
   }
-}
+}

+ 13 - 38
src/subPack/PersonnelView/index.vue

@@ -3,50 +3,25 @@
     <wd-tabs v-model="tab" swipeable sticky @change="handleChange">
       <block v-for="(item, idx) in tabList" :key="idx">
         <wd-tab :title="item.title">
-          <view
-            class="bg-#F6F6F6 px32rpx pt-24rpx bottom-safe-area"
-            v-if="data"
-          >
-            <view
-              class="p24rpx box-border bg-white mb24rpx rounded-32rpx"
-              v-for="it in data"
-              :key="it.id"
-            >
+          <view class="bg-#F6F6F6 px32rpx pt-24rpx bottom-safe-area" v-if="data">
+            <view class="p24rpx box-border bg-white mb24rpx rounded-32rpx" v-for="it in data" :key="it.id">
               <view class="flex items-center justify-between">
                 <view class="font-semibold text-32rpx text-#222222">{{
                   it.useUserName
                 }}</view>
-                <commonbtn
-                  bg-color="#0074FF"
-                  v-if="it.verifyStatus == 0 && it.orPostpone != 1"
-                  >未核销</commonbtn
-                >
-                <commonbtn
-                  bg-color="rgba(0,0,0,0.3)"
-                  v-if="it.verifyStatus == 1"
-                  >已核销</commonbtn
-                >
-                <commonbtn bg-color="#FB5B5B" v-if="it.orPostpone == 1"
-                  >延课</commonbtn
-                >
+                <commonbtn bg-color="#0074FF" v-if="it.verifyStatus == 0 && it.orPostpone != 1">未核销</commonbtn>
+                <commonbtn bg-color="rgba(0,0,0,0.3)" v-if="it.verifyStatus == 1">已核销</commonbtn>
+                <commonbtn bg-color="#FB5B5B" v-if="it.orPostpone == 1">延课</commonbtn>
               </view>
-              <view
-                class="flex items-center justify-between text-28rpx mt24rpx"
-              >
+              <view class="flex items-center justify-between text-28rpx mt24rpx">
                 <view class="text-[rgb(0,0,0,0.3)]">手机号码</view>
                 <view>{{ it.useUserPhone }}</view>
               </view>
               <view class="text-[rgb(0,0,0,0.3)] mt24rpx"> 人脸照片 </view>
               <view class="mt24rpx">
-                <image
-                  :src="it.useUserImage"
-                  class="w-160rpx h-160rpx rounded-32rpx"
-                />
+                <image :src="it.useUserImage" class="w-160rpx h-160rpx rounded-32rpx" />
               </view>
-              <view
-                class="mt24rpx flex items-center justify-between"
-                v-if="it.orPostpone == 1"
-              >
+              <view class="mt24rpx flex items-center justify-between" v-if="it.orPostpone == 1">
                 <view class="text-28rpx text-[rgb(0,0,0,0.3)]">延课原因</view>
                 <view>{{ it.postponeReason }}</view>
               </view>
@@ -82,11 +57,13 @@ const { data, send: getList } = useRequest(
   { immediate: false },
 );
 function handleChange(e: { index: number }) {
+  console.log(e, '菜单标签');
+
   const { index } = e;
   getList({
     coursePriceRulesId: coursePriceRulesId.value,
     verifyStatus: index == 2 ? 1 : index == 3 ? 0 : null,
-    orPostpone: index != 1 ? null : index,
+    orPostpone: index === 3 ? 0 : (index != 1 ? null : index),
   });
 }
 onReachBottom(() => {
@@ -95,11 +72,9 @@ onReachBottom(() => {
 </script>
 
 <style scoped></style>
-<route lang="json">
-{
+<route lang="json">{
   "name": "personnelView",
   "style": {
     "navigationBarTitleText": "人员查看"
   }
-}
-</route>
+}</route>