添加用户反馈按钮

This commit is contained in:
高嵩
2023-08-25 17:42:30 +08:00
parent 41c76edfc0
commit a21a3753e4
7 changed files with 35 additions and 19 deletions
+1 -1
View File
@@ -269,7 +269,7 @@
<!-- 全局配置 --> <!-- 全局配置 -->
<script> <script>
localStorage.removeItem('isPhone') localStorage.removeItem('isPhone')
localStorage.setItem('isPhone', 'no') localStorage.setItem('isPhone', 'yes')
window.loginUrl = 'https://grp.nioint.com' window.loginUrl = 'https://grp.nioint.com'
// window.loginUrl = 'https://grp-mobile.nio.com' // window.loginUrl = 'https://grp-mobile.nio.com'
// // 判断当前设备 // // 判断当前设备
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

+1
View File
@@ -1954,4 +1954,5 @@ module.exports = {
Modifyremarks:'Modify remarks', Modifyremarks:'Modify remarks',
Reasonforreturn:'Reason for return', Reasonforreturn:'Reason for return',
maintenanceTemplate:'Maintenance template', maintenanceTemplate:'Maintenance template',
UserFeedback:'User Feedback',
} }
+2 -1
View File
@@ -3909,5 +3909,6 @@ module.exports = {
datacannotbeedited:'该数据不能进行编辑', datacannotbeedited:'该数据不能进行编辑',
Rematchornot:'是否重新匹配', Rematchornot:'是否重新匹配',
Modifyremarks:'修改备注', Modifyremarks:'修改备注',
Reasonforreturn:'退回原因' Reasonforreturn:'退回原因',
UserFeedback:'用户反馈',
} }
+11 -8
View File
@@ -31,18 +31,11 @@
<!-- <a-icon type="question-circle-o"></a-icon>--> <!-- <a-icon type="question-circle-o"></a-icon>-->
<!-- </a>--> <!-- </a>-->
<!-- </span>--> <!-- </span>-->
<!-- <div class="action" @click="Jumpflybook">-->
<!-- <span class="header-notice">-->
<!-- <a-tooltip placement="bottomRight" :title="$t('userManual')" overlayClassName="tooltipColor">-->
<!-- <a-icon style="font-size: 16px; padding: 4px; color: #000000A6" type="question-circle"/>-->
<!-- </a-tooltip>-->
<!-- </span>-->
<!-- </div>-->
<a-dropdown> <a-dropdown>
<span class="action action-full ant-dropdown-link user-dropdown-menu"> <span class="action action-full ant-dropdown-link user-dropdown-menu">
<!-- <a-avatar class="avatar" size="small" :src="getAvatar()"/>--> <!-- <a-avatar class="avatar" size="small" :src="getAvatar()"/>-->
<!-- <span v-if="isDesktop()">welcome,{{ userInfo().username }}</span>--> <!-- <span v-if="isDesktop()">welcome,{{ userInfo().username }}</span>-->
<a-icon style="font-size: 16px; padding: 4px; color: #000000A6" type="question-circle"/> <a-icon style="font-size: 16px; padding: 4px; color: #000000A6" type="read"/>
</span> </span>
<a-menu slot="overlay" class="user-dropdown-menu-wrapper"> <a-menu slot="overlay" class="user-dropdown-menu-wrapper">
<a-menu-item key="5" @click="Jumpflybook"> <a-menu-item key="5" @click="Jumpflybook">
@@ -55,6 +48,13 @@
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
<div class="action" @click="UserFeedback">
<span class="header-notice">
<a-tooltip placement="bottomRight" :title="$t('UserFeedback')" overlayClassName="tooltipColor">
<a-icon style="font-size: 16px; padding: 4px; color: #000000A6" type="question-circle"/>
</a-tooltip>
</span>
</div>
<header-notice class="action"/> <header-notice class="action"/>
<div class="action"> <div class="action">
<span v-show="localeval=='zh-cn'"> <span v-show="localeval=='zh-cn'">
@@ -234,6 +234,9 @@ export default {
Jumpflybook(){ Jumpflybook(){
window.open('https://eicgyqr5mc.feishu.cn/docx/doxcnY2GbQfMSMqLP0eIFzFlEcd', '_blank'); window.open('https://eicgyqr5mc.feishu.cn/docx/doxcnY2GbQfMSMqLP0eIFzFlEcd', '_blank');
}, },
UserFeedback(){
window.open('https://nio.feishu.cn/share/base/form/shrcnPUyb8w32y0S5VDyiMnPK1f', '_blank');
},
Jumpoperationguide(){ Jumpoperationguide(){
window.open('https://eicgyqr5mc.feishu.cn/docx/ZyhWdIz7EoMZ68xhI2bckcWWnMg', '_blank'); window.open('https://eicgyqr5mc.feishu.cn/docx/ZyhWdIz7EoMZ68xhI2bckcWWnMg', '_blank');
}, },
+9 -9
View File
@@ -30,15 +30,15 @@ const whiteList = ['/user/login', '/user/register', '/user/register-result', '/u
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() // start progress bar NProgress.start() // start progress bar
if (isPhone == 'yes'){ if (isPhone == 'yes'){
if (!isBrowser()){ // if (!isBrowser()){
Dialog.alert({ // Dialog.alert({
message: '未授权用户 <br> Unauthorized User', // message: '未授权用户 <br> Unauthorized User',
theme: 'round-button', // theme: 'round-button',
}).then(() => { // }).then(() => {
// on close // // on close
}); // });
return // return
} // }
} }
if (to.query.code) { if (to.query.code) {
getAction(`opensso/callback`, { code: to.query.code }).then(res => { getAction(`opensso/callback`, { code: to.query.code }).then(res => {
+11
View File
@@ -33,6 +33,13 @@
</span> </span>
<van-icon class="icon" name="arrow"/> <van-icon class="icon" name="arrow"/>
</div> </div>
<div class="content-box" @click="UserFeedbackClick">
<img src="~@/assets/wtfk.png" class="content-box-img" alt="">
<span class="content-box-text">
{{$t('UserFeedback')}}
</span>
<van-icon class="icon" name="arrow"/>
</div>
<!-- <div class="content-box">--> <!-- <div class="content-box">-->
<!-- <img src="~@/assets/icon_assign.png" class="content-box-img" alt="">--> <!-- <img src="~@/assets/icon_assign.png" class="content-box-img" alt="">-->
<!-- <span class="content-box-text">--> <!-- <span class="content-box-text">-->
@@ -127,6 +134,10 @@
this.changeLocale('zh-cn') this.changeLocale('zh-cn')
} }
}, },
UserFeedbackClick(){
window.location.href = 'https://nio.feishu.cn/share/base/form/shrcnPUyb8w32y0S5VDyiMnPK1f'
// window.open('https://nio.feishu.cn/share/base/form/shrcnPUyb8w32y0S5VDyiMnPK1f');
},
changeLocale(localeval) { changeLocale(localeval) {
this.isLoading = true this.isLoading = true
switch (localeval) { switch (localeval) {