fix;问题修复
This commit is contained in:
parent
e7ef2ac975
commit
5aca3ebe39
@ -2,4 +2,5 @@ MP_API_BASE_URL=https://ykt.youcan365.com
|
||||
MP_CACHE_PREFIX=production
|
||||
MP_WX_APP_ID=wx6ee11733526b4f04
|
||||
MP_TIM_SDK_APP_ID=1600136080
|
||||
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg
|
||||
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg
|
||||
MP_VERIFY_IM_CORP_ID=YES
|
||||
@ -18,7 +18,7 @@
|
||||
<view class="border p-10 mt-12 rounded-sm">
|
||||
<textarea v-model="i.category" :auto-height="true" class="w-full h-full"></textarea>
|
||||
</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">
|
||||
<textarea v-model="i.opinion" :auto-height="true" class="w-full h-full"></textarea>
|
||||
</view>
|
||||
|
||||
@ -74,7 +74,11 @@ function addFile() {
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
toast('上传失败')
|
||||
if(/cancel/i.test(err.errMsg)){
|
||||
toast('用户取消选择文件')
|
||||
} else {
|
||||
toast('上传失败')
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -203,7 +203,7 @@ function goToDetail(item) {
|
||||
finderUserName: item.articleInfo.wechatChannels.finderUserName,
|
||||
feedId: item.articleInfo.wechatChannels.feedId,
|
||||
success: () => {
|
||||
markArticleRead(item._id);
|
||||
markArticleRead(item._id, item.articleId);
|
||||
},
|
||||
fail: err => {
|
||||
const errMsg = err.errMsg || '';
|
||||
@ -222,7 +222,7 @@ function isWechatChannels(item) {
|
||||
return item?.wechatChannels?.finderUserName && item?.wechatChannels?.feedId;
|
||||
}
|
||||
|
||||
async function markArticleRead(sendId) {
|
||||
async function markArticleRead(sendId, articleId) {
|
||||
const unionid = account.value?.unionid;
|
||||
if (!unionid || !articleId) return;
|
||||
try {
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
<view class="article-title">{{ getArticleData(message).title }}</view>
|
||||
<view class="article-desc">{{ getArticleData(message).desc }}</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" />
|
||||
</view>
|
||||
|
||||
|
||||
@ -14,7 +14,13 @@ export default defineStore("accountStore", () => {
|
||||
const openid = ref("");
|
||||
const externalUserId = 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);
|
||||
|
||||
async function login(phoneCode = '') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user