首页
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="bottom">{{ user.corpName }}</div>
|
||||
</div>
|
||||
<div class="link" v-for="(item, index) in linkList" :key="index">
|
||||
<div class="link" v-for="(item, index) in linkList" :key="index" @click="linkTo(item.linkUrl)">
|
||||
<div class="left">
|
||||
<img :src="item.img" alt="">{{ item.title }}
|
||||
</div>
|
||||
@@ -22,7 +22,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import { mapActions, mapState } from 'vuex'
|
||||
export default {
|
||||
name: "My",
|
||||
data() {
|
||||
@@ -30,31 +30,46 @@ export default {
|
||||
linkList: [
|
||||
{
|
||||
title: '头像上传',
|
||||
img: require('../img/my/my-txsc.png')
|
||||
img: require('../img/my/my-txsc.png'),
|
||||
linkUrl: './UploadPhoto'
|
||||
},
|
||||
{
|
||||
title: '意见反馈',
|
||||
img: require('../img/my/my-yjfk.png')
|
||||
img: require('../img/my/my-yjfk.png'),
|
||||
linkUrl: './FeedBack'
|
||||
},
|
||||
{
|
||||
title: '联系我们',
|
||||
img: require('../img/my/my-lxwm.png')
|
||||
img: require('../img/my/my-lxwm.png'),
|
||||
linkUrl: 'contact'
|
||||
},
|
||||
{
|
||||
title: '帮助文档',
|
||||
img: require('../img/my/my-bzwd.png')
|
||||
img: require('../img/my/my-bzwd.png'),
|
||||
linkUrl: './HelpDocs'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
methods: {
|
||||
...mapActions(['wxInvoke', 'injectJWeixin']),
|
||||
linkTo(url) {
|
||||
uni.navigateTo({ url })
|
||||
if(url == 'contact') { //联系我们
|
||||
this.wxInvoke(["openThirdAppServiceChat", {}, res => {
|
||||
if (res.err_msg == "openThirdAppServiceChat:fail") {
|
||||
window.open("https://work.weixin.qq.com/kfid/kfcc23927b18d1ad4f4")
|
||||
}
|
||||
}])
|
||||
}else {
|
||||
console.log(url)
|
||||
uni.navigateTo({ url })
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
this.injectJWeixin('openThirdAppServiceChat')
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user