fix;问题修复
This commit is contained in:
parent
e7ef2ac975
commit
5aca3ebe39
@ -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
|
||||||
@ -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>
|
||||||
|
|||||||
@ -74,8 +74,12 @@ function addFile() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
if(/cancel/i.test(err.errMsg)){
|
||||||
|
toast('用户取消选择文件')
|
||||||
|
} else {
|
||||||
toast('上传失败')
|
toast('上传失败')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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 = '') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user