wupengfei
2 天以前 ef78ee9e1e27d546a591552eea8100f9eb718585
apps/cMiniApp/src/subpackages/mine/setting/setting.vue
@@ -9,6 +9,8 @@
        </template>
      </ListItem> -->
      <ListItem title="用户协议" @click="goMineUserPolicy"></ListItem>
      <ListItem title="人工客服" @click="goMineService"></ListItem>
      <nut-button :open-type="'contact'" type="info">人工客服</nut-button>
      <ListItem title="隐私政策" @click="goPrivacyPolicy"></ListItem>
      <ListItem title="退出登录" @click="handleLoginout"></ListItem>
    </List>
@@ -31,7 +33,7 @@
const queryClient = useQueryClient();
const userAccount = computed(() => {
  return addStarForString(userStore?.userDetail?.userName, 4, 8);
  return addStarForString(userStore?.userDetail?.name, 4, 8);
});
function goMineUserPolicy() {
@@ -56,6 +58,23 @@
    });
  } catch (error) {}
}
function goMineService() {
  const encodedUrl = encodeURIComponent('https://work.weixin.qq.com/kfid/kfcd24e0c60fd91099');
  Taro.openCustomerServiceChat({
    extInfo: {
      // url: 'https://work.weixin.qq.com/kfid/kfcd24e0c60fd91099',
      url: `${RouterPath.extraPage}?url=${encodedUrl}`,
    },
    corpId: 'wwc84cb8e0525c772f',
    fail: (res) => {
      Taro.showToast({
        title: res.errMsg,
        icon: 'none',
      });
    },
  });
}
</script>
<style lang="scss">