fix;问题修复

This commit is contained in:
huxuejian 2026-04-21 14:46:30 +08:00
parent e7ef2ac975
commit 5aca3ebe39
6 changed files with 18 additions and 7 deletions

View File

@ -3,3 +3,4 @@ MP_CACHE_PREFIX=production
MP_WX_APP_ID=wx6ee11733526b4f04 MP_WX_APP_ID=wx6ee11733526b4f04
MP_TIM_SDK_APP_ID=1600136080 MP_TIM_SDK_APP_ID=1600136080
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg
MP_VERIFY_IM_CORP_ID=YES

View File

@ -18,7 +18,7 @@
<view class="border p-10 mt-12 rounded-sm"> <view class="border p-10 mt-12 rounded-sm">
<textarea v-model="i.category" :auto-height="true" class="w-full h-full"></textarea> <textarea v-model="i.category" :auto-height="true" class="w-full h-full"></textarea>
</view> </view>
<view class="text-base mt-12 text-dark">{{ idx + 1 }}处理意见</view> <view class="text-base mt-12 text-dark">处理意见</view>
<view class="border p-10 mt-12 rounded-sm"> <view class="border p-10 mt-12 rounded-sm">
<textarea v-model="i.opinion" :auto-height="true" class="w-full h-full"></textarea> <textarea v-model="i.opinion" :auto-height="true" class="w-full h-full"></textarea>
</view> </view>

View File

@ -74,8 +74,12 @@ function addFile() {
} }
}, },
fail: (err) => { fail: (err) => {
if(/cancel/i.test(err.errMsg)){
toast('用户取消选择文件')
} else {
toast('上传失败') toast('上传失败')
} }
}
}) })
} }

View File

@ -203,7 +203,7 @@ function goToDetail(item) {
finderUserName: item.articleInfo.wechatChannels.finderUserName, finderUserName: item.articleInfo.wechatChannels.finderUserName,
feedId: item.articleInfo.wechatChannels.feedId, feedId: item.articleInfo.wechatChannels.feedId,
success: () => { success: () => {
markArticleRead(item._id); markArticleRead(item._id, item.articleId);
}, },
fail: err => { fail: err => {
const errMsg = err.errMsg || ''; const errMsg = err.errMsg || '';
@ -222,7 +222,7 @@ function isWechatChannels(item) {
return item?.wechatChannels?.finderUserName && item?.wechatChannels?.feedId; return item?.wechatChannels?.finderUserName && item?.wechatChannels?.feedId;
} }
async function markArticleRead(sendId) { async function markArticleRead(sendId, articleId) {
const unionid = account.value?.unionid; const unionid = account.value?.unionid;
if (!unionid || !articleId) return; if (!unionid || !articleId) return;
try { try {

View File

@ -44,7 +44,7 @@
<view class="article-title">{{ getArticleData(message).title }}</view> <view class="article-title">{{ getArticleData(message).title }}</view>
<view class="article-desc">{{ getArticleData(message).desc }}</view> <view class="article-desc">{{ getArticleData(message).desc }}</view>
</view> </view>
<image v-if="getArticleData(message).imgUrl" class="article-image" :src="getArticleData(message).imgUrl" <image v-if="getArticleData(message).cover" class="article-image" :src="getArticleData(message).cover"
mode="aspectFill" /> mode="aspectFill" />
</view> </view>

View File

@ -14,7 +14,13 @@ export default defineStore("accountStore", () => {
const openid = ref(""); const openid = ref("");
const externalUserId = ref(''); const externalUserId = ref('');
const teams = ref([]); const teams = ref([]);
const hasImCorpId = computed(() => teams.value.some(i => i.corpId === 'wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg')); const hasImCorpId = computed(() => {
// 正式环境IM账号优先 暂时只有wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg机构的才开启IM账号
if (env.MP_VERIFY_IM_CORP_ID === 'YES') {
return teams.value.some(i => i.corpId === 'wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg')
}
return true
});
const teamsPromise = ref(null); const teamsPromise = ref(null);
async function login(phoneCode = '') { async function login(phoneCode = '') {