|
@@ -4,182 +4,184 @@
|
|
|
</u-sticky>
|
|
|
|
|
|
<scroll-view class="scroll-height" :scroll-y="true" :data-theme="'theme-' + proxy.$settingStore.themeColor.name" style="padding-bottom: 44px">
|
|
|
- <view class="needMatter" @touchstart="fingerstart" @touchend="fingerend">
|
|
|
- <u-empty v-if="classifyData.length <= 0" text="暂无数据" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"> </u-empty>
|
|
|
-
|
|
|
- <view class="content" v-else>
|
|
|
- <u-collapse>
|
|
|
- <u-collapse-item v-for="(cl, index) in classifyData" :key="index">
|
|
|
- <template #title>
|
|
|
- <view style="display: flex; line-height: 25px">
|
|
|
- <view style="padding-top: 4px">
|
|
|
- <u--image src="/static/images/needMatter/icon1.png" width="14px" height="15px"></u--image>
|
|
|
- </view>
|
|
|
- <view style="padding: 0 10px; white-space: nowrap; font-size: 16px">
|
|
|
- <view>待办通知</view>
|
|
|
- <view>建议完成限期:</view>
|
|
|
- <view style="font-size: 14px; color: #666666">{{ cl.reformId }}</view>
|
|
|
- </view>
|
|
|
- <view style="width: 100%; text-align: center; font-size: 16px">
|
|
|
- <view
|
|
|
- :style="{
|
|
|
- color:
|
|
|
+ <oa-touch class="needMatter" @change="touchChange">
|
|
|
+ <template #content>
|
|
|
+ <u-empty v-if="classifyData.length <= 0" text="暂无数据" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"> </u-empty>
|
|
|
+
|
|
|
+ <view class="content" v-else>
|
|
|
+ <u-collapse>
|
|
|
+ <u-collapse-item v-for="(cl, index) in classifyData" :key="index">
|
|
|
+ <template #title>
|
|
|
+ <view style="display: flex; line-height: 25px">
|
|
|
+ <view style="padding-top: 4px">
|
|
|
+ <u--image src="/static/images/needMatter/icon1.png" width="14px" height="15px"></u--image>
|
|
|
+ </view>
|
|
|
+ <view style="padding: 0 10px; white-space: nowrap; font-size: 16px">
|
|
|
+ <view>待办通知</view>
|
|
|
+ <view>建议完成限期:</view>
|
|
|
+ <view style="font-size: 14px; color: #666666">{{ cl.reformId }}</view>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%; text-align: center; font-size: 16px">
|
|
|
+ <view
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ cl.reformStatus == 1
|
|
|
+ ? '#0887F8'
|
|
|
+ : cl.reformStatus == 2
|
|
|
+ ? '#23DEDC'
|
|
|
+ : cl.reformStatus == 3
|
|
|
+ ? '#16BF00'
|
|
|
+ : cl.reformStatus == 4
|
|
|
+ ? '#F94343'
|
|
|
+ : cl.reformStatus == 5
|
|
|
+ ? '#9D40F3'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ {{
|
|
|
cl.reformStatus == 1
|
|
|
- ? '#0887F8'
|
|
|
+ ? "已接收"
|
|
|
: cl.reformStatus == 2
|
|
|
- ? '#23DEDC'
|
|
|
+ ? "进行中"
|
|
|
: cl.reformStatus == 3
|
|
|
- ? '#16BF00'
|
|
|
+ ? "待办完成"
|
|
|
: cl.reformStatus == 4
|
|
|
- ? '#F94343'
|
|
|
+ ? "审核不通过"
|
|
|
: cl.reformStatus == 5
|
|
|
- ? '#9D40F3'
|
|
|
- : '',
|
|
|
- }"
|
|
|
- >
|
|
|
- {{
|
|
|
- cl.reformStatus == 1
|
|
|
- ? "已接收"
|
|
|
- : cl.reformStatus == 2
|
|
|
- ? "进行中"
|
|
|
- : cl.reformStatus == 3
|
|
|
- ? "待办完成"
|
|
|
- : cl.reformStatus == 4
|
|
|
- ? "审核不通过"
|
|
|
- : cl.reformStatus == 5
|
|
|
- ? "审核通过"
|
|
|
- : ""
|
|
|
- }}
|
|
|
+ ? "审核通过"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view style="text-align: left">{{ cl.limitTime }}</view>
|
|
|
+ <view style="font-size: 14px; color: #666666">{{ cl.sendTime }}</view>
|
|
|
</view>
|
|
|
- <view style="text-align: left">{{ cl.limitTime }}</view>
|
|
|
- <view style="font-size: 14px; color: #666666">{{ cl.sendTime }}</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <view class="u-collapse-content">
|
|
|
- <view class="tableType1" style="margin-bottom: 10px">
|
|
|
- <u-row>
|
|
|
- <u-col span="2">
|
|
|
- <view>序号</view>
|
|
|
- </u-col>
|
|
|
- <u-col span="5.5">
|
|
|
- <view>待办项</view>
|
|
|
- </u-col>
|
|
|
- <u-col span="4.5">
|
|
|
- <view>原因</view>
|
|
|
- </u-col>
|
|
|
- </u-row>
|
|
|
- <u-row v-for="(co, index) in cl.reformPart.data" :key="index">
|
|
|
- <u-col span="2">
|
|
|
- <view>{{ index + 1 }}</view>
|
|
|
- </u-col>
|
|
|
- <u-col span="5.5">
|
|
|
- <view>{{ co.item }}</view>
|
|
|
- </u-col>
|
|
|
- <u-col span="4.5">
|
|
|
- <view>{{ co.reason }}</view>
|
|
|
- </u-col>
|
|
|
- </u-row>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
+ <view class="u-collapse-content">
|
|
|
+ <view class="tableType1" style="margin-bottom: 10px">
|
|
|
+ <u-row>
|
|
|
+ <u-col span="2">
|
|
|
+ <view>序号</view>
|
|
|
+ </u-col>
|
|
|
+ <u-col span="5.5">
|
|
|
+ <view>待办项</view>
|
|
|
+ </u-col>
|
|
|
+ <u-col span="4.5">
|
|
|
+ <view>原因</view>
|
|
|
+ </u-col>
|
|
|
+ </u-row>
|
|
|
+ <u-row v-for="(co, index) in cl.reformPart.data" :key="index">
|
|
|
+ <u-col span="2">
|
|
|
+ <view>{{ index + 1 }}</view>
|
|
|
+ </u-col>
|
|
|
+ <u-col span="5.5">
|
|
|
+ <view>{{ co.item }}</view>
|
|
|
+ </u-col>
|
|
|
+ <u-col span="4.5">
|
|
|
+ <view>{{ co.reason }}</view>
|
|
|
+ </u-col>
|
|
|
+ </u-row>
|
|
|
+ </view>
|
|
|
|
|
|
- <view v-if="cl.reformStatus == 1">
|
|
|
- <u-steps current="0" dot>
|
|
|
- <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="进行中" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- </u-steps>
|
|
|
+ <view v-if="cl.reformStatus == 1">
|
|
|
+ <u-steps current="0" dot>
|
|
|
+ <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="进行中" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ </u-steps>
|
|
|
|
|
|
- <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
- <u-button type="primary" text="去整改" shape="circle" @click="handleSubmit(cl, '去整改')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
+ <u-button type="primary" text="去整改" shape="circle" @click="handleSubmit(cl, '去整改')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view v-if="cl.reformStatus == 2">
|
|
|
- <u-steps current="1" dot>
|
|
|
- <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="进行中" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- </u-steps>
|
|
|
+ <view v-if="cl.reformStatus == 2">
|
|
|
+ <u-steps current="1" dot>
|
|
|
+ <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="进行中" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ </u-steps>
|
|
|
|
|
|
- <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
- <u-button type="primary" text="填报" shape="circle" @click="handleSubmit(cl, '填报')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
+ <u-button type="primary" text="填报" shape="circle" @click="handleSubmit(cl, '填报')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view v-if="cl.reformStatus == 3">
|
|
|
- <u-steps current="1" dot>
|
|
|
- <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- </u-steps>
|
|
|
- </view>
|
|
|
+ <view v-if="cl.reformStatus == 3">
|
|
|
+ <u-steps current="1" dot>
|
|
|
+ <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待审核" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ </u-steps>
|
|
|
+ </view>
|
|
|
|
|
|
- <view v-if="cl.reformStatus == 4">
|
|
|
- <u-steps current="2" dot>
|
|
|
- <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="审核不通过" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''" error></u-steps-item>
|
|
|
- </u-steps>
|
|
|
+ <view v-if="cl.reformStatus == 4">
|
|
|
+ <u-steps current="2" dot>
|
|
|
+ <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="审核不通过" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''" error></u-steps-item>
|
|
|
+ </u-steps>
|
|
|
|
|
|
- <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
- <view>备注:{{ cl.reviewRemark ? cl.reviewRemark : "无" }}</view>
|
|
|
- </view>
|
|
|
+ <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
+ <view>备注:{{ cl.reviewRemark ? cl.reviewRemark : "无" }}</view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
- <u-button type="primary" text="去整改" shape="circle" @click="handleSubmit(cl, '去整改')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
+ <u-button type="primary" text="去整改" shape="circle" @click="handleSubmit(cl, '去整改')" customStyle="width: 60px; height: 23px"></u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view v-if="cl.reformStatus == 5">
|
|
|
- <u-steps current="2" dot>
|
|
|
- <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- <u-steps-item style="text-align: center" title="审核通过" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
- </u-steps>
|
|
|
-
|
|
|
- <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
- <view style="display: flex">
|
|
|
- <view style="white-space: nowrap">整改资料:</view>
|
|
|
- <view style="width: 100%">
|
|
|
- <view style="display: flex" v-for="(i, index) in 5" :key="index">
|
|
|
- <view>{{ cl["reformPathName" + (index + 1)] }}</view>
|
|
|
- <!-- <view style="margin: auto 0 auto auto">
|
|
|
+ <view v-if="cl.reformStatus == 5">
|
|
|
+ <u-steps current="2" dot>
|
|
|
+ <u-steps-item style="text-align: center" title="已接收" :desc="cl.sendTime ? cl.sendTime.replace(' ', '\n') : ''"> </u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="待办完成" :desc="cl.reformTime ? cl.reformTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ <u-steps-item style="text-align: center" title="审核通过" :desc="cl.reviewTime ? cl.reviewTime.replace(' ', '\n') : ''"></u-steps-item>
|
|
|
+ </u-steps>
|
|
|
+
|
|
|
+ <view style="font-size: 14px; line-height: 20px; margin-top: 10px">
|
|
|
+ <view style="display: flex">
|
|
|
+ <view style="white-space: nowrap">整改资料:</view>
|
|
|
+ <view style="width: 100%">
|
|
|
+ <view style="display: flex" v-for="(i, index) in 5" :key="index">
|
|
|
+ <view>{{ cl["reformPathName" + (index + 1)] }}</view>
|
|
|
+ <!-- <view style="margin: auto 0 auto auto">
|
|
|
<u--image src="/static/images/needMatter/icon2.png" width="15px" height="15px"></u--image>
|
|
|
</view> -->
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <u-line style="margin: 5px 0" color="#E5E5E5"></u-line>
|
|
|
+ <view>备注:{{ cl.reviewRemark ? cl.reviewRemark : "无" }}</view>
|
|
|
</view>
|
|
|
- <u-line style="margin: 5px 0" color="#E5E5E5"></u-line>
|
|
|
- <view>备注:{{ cl.reviewRemark ? cl.reviewRemark : "无" }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </u-collapse-item>
|
|
|
- </u-collapse>
|
|
|
-
|
|
|
- <view>
|
|
|
- <u-modal
|
|
|
- :show="modalShow"
|
|
|
- title="填报(火灾报警系统)"
|
|
|
- :showCancelButton="true"
|
|
|
- :showConfirmButton="true"
|
|
|
- :closeOnClickOverlay="true"
|
|
|
- @close="modalShow = false"
|
|
|
- @cancel="modalShow = false"
|
|
|
- @confirm="handleConfirm"
|
|
|
- >
|
|
|
- <view style="width: 100%">
|
|
|
- <uni-section class="block margin-b-10" title="图片上传:" type="line">
|
|
|
- <u-upload :fileList="fileList" name="6" @afterRead="afterRead" multiple :maxCount="5" width="80" height="80"> </u-upload>
|
|
|
- </uni-section>
|
|
|
- <uni-section class="block margin-b-10" title="备注:" type="line">
|
|
|
- <u--textarea v-model="textValue" placeholder="请输入内容"></u--textarea>
|
|
|
- </uni-section>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
+ </u-collapse-item>
|
|
|
+ </u-collapse>
|
|
|
+
|
|
|
+ <view>
|
|
|
+ <u-modal
|
|
|
+ :show="modalShow"
|
|
|
+ title="填报(火灾报警系统)"
|
|
|
+ :showCancelButton="true"
|
|
|
+ :showConfirmButton="true"
|
|
|
+ :closeOnClickOverlay="true"
|
|
|
+ @close="modalShow = false"
|
|
|
+ @cancel="modalShow = false"
|
|
|
+ @confirm="handleConfirm"
|
|
|
+ >
|
|
|
+ <view style="width: 100%">
|
|
|
+ <uni-section class="block margin-b-10" title="图片上传:" type="line">
|
|
|
+ <u-upload :fileList="fileList" name="6" @afterRead="afterRead" multiple :maxCount="5" width="80" height="80"> </u-upload>
|
|
|
+ </uni-section>
|
|
|
+ <uni-section class="block margin-b-10" title="备注:" type="line">
|
|
|
+ <u--textarea v-model="textValue" placeholder="请输入内容"></u--textarea>
|
|
|
+ </uni-section>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
+ </oa-touch>
|
|
|
</scroll-view>
|
|
|
</template>
|
|
|
|
|
@@ -223,37 +225,17 @@ const list = ref([
|
|
|
{
|
|
|
id: 3,
|
|
|
name: "待办完成",
|
|
|
- badge: {
|
|
|
- // value: 5,
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
name: "审核不通过",
|
|
|
- badge: {
|
|
|
- // value: 5,
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
name: "审核通过",
|
|
|
- badge: {
|
|
|
- // value: 5,
|
|
|
- },
|
|
|
},
|
|
|
]);
|
|
|
|
|
|
-const startData = ref({
|
|
|
- clientX: "",
|
|
|
- clientY: "",
|
|
|
-});
|
|
|
-const updDistance = ref(100);
|
|
|
-const lrDistance = ref(50);
|
|
|
-const topMed = ref("");
|
|
|
-const bottomMed = ref("");
|
|
|
-const leftMed = ref("");
|
|
|
-const rightMed = ref("");
|
|
|
-
|
|
|
/**
|
|
|
* @填报
|
|
|
* @去整改
|
|
@@ -351,73 +333,23 @@ function uploadFilePromise(el) {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @当按下去的时候
|
|
|
- */
|
|
|
-function fingerstart(e) {
|
|
|
- // 记录 距离可视区域左上角 左边距 和 上边距
|
|
|
- startData.value.clientX = e.changedTouches[0].clientX;
|
|
|
- startData.value.clientY = e.changedTouches[0].clientY;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * @当抬起来的时候
|
|
|
+ * @滑动change事件
|
|
|
*/
|
|
|
-function fingerend(e) {
|
|
|
- // 当前位置 减去 按下位置 计算 距离
|
|
|
- const subX = e.changedTouches[0].clientX - startData.value.clientX;
|
|
|
- const subY = e.changedTouches[0].clientY - startData.value.clientY;
|
|
|
- if (subY > updDistance.value || subY < -updDistance.value) {
|
|
|
- if (subY > updDistance.value) {
|
|
|
- bottomscroll(subY);
|
|
|
- } else if (subY < -updDistance.value) {
|
|
|
- topscroll(subY);
|
|
|
+function touchChange(e) {
|
|
|
+ if (e == "右滑") {
|
|
|
+ if (current.value >= 1) {
|
|
|
+ current.value--;
|
|
|
+ } else {
|
|
|
+ current.value = list.value.length - 1;
|
|
|
}
|
|
|
- } else {
|
|
|
- if (subX > lrDistance.value) {
|
|
|
- rightscroll(subX);
|
|
|
- } else if (subX < -lrDistance.value) {
|
|
|
- leftscroll(subX);
|
|
|
+ goSearch();
|
|
|
+ } else if (e == "左滑") {
|
|
|
+ if (current.value < list.value.length - 1) {
|
|
|
+ current.value++;
|
|
|
} else {
|
|
|
- console.log("无效操作");
|
|
|
+ current.value = 0;
|
|
|
}
|
|
|
- }
|
|
|
-}
|
|
|
-/**
|
|
|
- * @上滑触发
|
|
|
- */
|
|
|
-function topscroll(dista) {
|
|
|
- topMed.value ? (topMed.value = dista) : (topMed.value = null);
|
|
|
- console.log("触发了上滑方法!");
|
|
|
-}
|
|
|
-/**
|
|
|
- * @下滑触发
|
|
|
- */
|
|
|
-function bottomscroll(dista) {
|
|
|
- bottomMed.value ? (bottomMed.value = dista) : (bottomMed.value = null);
|
|
|
- console.log("触发了下滑方法!");
|
|
|
-}
|
|
|
-/**
|
|
|
- * @右滑触发
|
|
|
- */
|
|
|
-function rightscroll(dista) {
|
|
|
- rightMed.value ? (rightMed.value = dista) : (rightMed.value = null);
|
|
|
- console.log("触发了右滑方法!");
|
|
|
- if (current.value >= 1) {
|
|
|
- current.value--;
|
|
|
- } else {
|
|
|
- current.value = list.value.length - 1;
|
|
|
- }
|
|
|
-}
|
|
|
-/**
|
|
|
- * @左滑触发
|
|
|
- */
|
|
|
-function leftscroll(dista) {
|
|
|
- leftMed.value ? (leftMed.value = dista) : (leftMed.value = null);
|
|
|
- console.log("触发了左滑方法!");
|
|
|
- if (current.value < list.value.length - 1) {
|
|
|
- current.value++;
|
|
|
- } else {
|
|
|
- current.value = 0;
|
|
|
+ goSearch();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -470,8 +402,6 @@ async function classifySearch(params) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-watchEffect(() => {});
|
|
|
-
|
|
|
// 自定义导航事件
|
|
|
onNavigationBarButtonTap((e) => {
|
|
|
if (e.float == "right") {
|