update
This commit is contained in:
@@ -4,7 +4,7 @@ import XModal from "./XModal.vue";
|
||||
import {getCurrentInstance, nextTick, onMounted, reactive, ref, watch} from "vue";
|
||||
import PlatformENUM from "../enum/PlatformENUM";
|
||||
import Api from "../api/index";
|
||||
import {showToast} from "../utils/uils";
|
||||
import {showToast, toPage} from "../utils/uils";
|
||||
|
||||
const emits = defineEmits(['success']);
|
||||
const {details} = defineProps({
|
||||
@@ -76,12 +76,13 @@ const success = async () => {
|
||||
showToast('请选择帐号');
|
||||
return;
|
||||
}
|
||||
const {msg} = await Api.system.acceptTask({
|
||||
const {msg, data} = await Api.system.acceptTask({
|
||||
id: details.id,
|
||||
account: selected.value,
|
||||
});
|
||||
showToast(msg);
|
||||
show.value = false;
|
||||
await toPage(`/pages/taskDetails/index?id=${data[1]}&task_children_id=${0}&delta=999`)
|
||||
emits('success');
|
||||
}
|
||||
</script>
|
||||
@@ -134,7 +135,7 @@ const success = async () => {
|
||||
<template v-else>
|
||||
<view class="!flex flex-col items-center pb-[50rpx]">
|
||||
<image class="!size-[260rpx]" :src="NULLICON"></image>
|
||||
<view class="test-28r">
|
||||
<view class="test-28r" v-if="po.status===0">
|
||||
可在【我的】→【账号管理】中添加自媒体账号
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -36,7 +36,6 @@ defineExpose({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<template v-if="!$slots.default">
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<image @click="open" v-bind="$attrs" :src="src" mode="aspectFill"></image>
|
||||
@@ -70,6 +69,8 @@ defineExpose({
|
||||
</template>
|
||||
<template v-else>
|
||||
<image class="!size-full" :src="src" mode="aspectFit"></image>
|
||||
<image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON"
|
||||
mode="aspectFit"></image>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
import {ref} from 'vue';
|
||||
import {backPage, isWXWeb} from "../utils/uils.js";
|
||||
|
||||
const {showBack} = defineProps({
|
||||
const {showBack, delta} = defineProps({
|
||||
showBack: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
delta: {
|
||||
type: Number,
|
||||
default: 1,
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +21,7 @@ const title = ref(document.title);
|
||||
<view class="!flex justify-center items-center w-full h-[100rpx] bg-[#f9f9f9] fixed left-0 top-0 z-[1000]">
|
||||
<image
|
||||
v-if="showBack"
|
||||
@click="backPage()"
|
||||
@click="backPage(delta)"
|
||||
class="!w-[9px] !h-[17px] cursor-pointer !absolute left-[50rpx]"
|
||||
src="/static/icons/back.png">
|
||||
</image>
|
||||
|
||||
Reference in New Issue
Block a user