126 lines
3.1 KiB
Vue
Raw Permalink Normal View History

2025-06-06 03:08:19 +08:00
<template>
<view class="page">
2025-06-10 00:51:49 +08:00
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
2025-06-10 17:10:40 +08:00
:title="$t('about.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
2025-06-10 00:51:49 +08:00
<view style="padding: 60rpx 20rpx;">
2025-06-06 03:08:19 +08:00
<view style="text-align: center;">
2025-06-10 00:51:49 +08:00
<image src="/static/images/logo1.png" mode="cover" style="width: 300rpx; height: 300rpx; border: 2rpx solid #fff; border-radius: 20rpx; margin: auto;"></image>
2025-06-06 03:08:19 +08:00
</view>
2025-06-10 00:51:49 +08:00
<view style="font-size: 36rpx; font-weight: 600; color: #333; text-align: center; line-height: 80rpx;">MT</view>
<view style="font-weight: 500; font-size: 28rpx; color: #999; text-align: center;">Version: {{init.version}}</view>
2025-06-06 03:08:19 +08:00
</view>
<view class="cell_list" @click="onPageJump('/pages/about/Version')">
2025-06-08 02:12:24 +08:00
<view class="cell_left txt">{{$t('about.text1')}}</view>
2025-06-06 03:08:19 +08:00
<view class="cell_right arrow"></view>
</view>
2025-06-08 02:12:24 +08:00
<view class="cell_list" @click="onPageJump('/pages/about/details?id=service_agreement')">
2025-06-09 00:34:46 +08:00
<view class="cell_left txt">{{$t('about.text2')}}</view>
2025-06-06 03:08:19 +08:00
<view class="cell_right arrow"></view>
</view>
2025-06-08 02:12:24 +08:00
<view class="cell_list" @click="onPageJump('/pages/about/details?id=aboutus')">
2025-06-10 00:51:49 +08:00
<view class="cell_left txt">{{$t('about.text3')}}</view>
2025-06-06 03:08:19 +08:00
<view class="cell_right arrow"></view>
</view>
</view>
</template>
<script>
import zPrompt from '@/components/common/prompt';
import Popup from '@/components/common/popup';
import {
mapState,
mapMutations
} from 'vuex';
export default {
components: {
Popup,
zPrompt
},
data() {
return {
2025-06-08 02:12:24 +08:00
list:[],
init: {}
2025-06-06 03:08:19 +08:00
};
},
computed: {
},
//第一次加载
onLoad(e) {
this.getabout();
2025-06-08 02:12:24 +08:00
this.$http.get('/api/common/init?lang=' + this.$i18n.locale).then(res => {
this.init = res.data;
});
2025-06-06 03:08:19 +08:00
},
//页面显示
onShow() {},
//方法
methods: {
...mapMutations(['setUserInfo']),
getabout(){
let data = {
category_id: 8,
page: 1,
limit: 1,
lang: this.$i18n.locale
}
this.$http.post('/api/article/list', data).then(res => {
if(res.code == 0){
this.list = res.data.data.filter(item => item.status == 1);
}
});
},
2025-06-10 00:51:49 +08:00
goto(url, type) {
if (type == 2) {
return uni.switchTab({ url: url })
}
if (type == 1) {
return uni.navigateBack({ delta: url });
}
uni.navigateTo({
url: url
})
},
2025-06-06 03:08:19 +08:00
onPageJump(url) {
uni.navigateTo({
url: url
});
},
handleClose(done) {
this.dialogVisible = false;
}
},
//页面隐藏
onHide() {},
//页面卸载
onUnload() {},
//页面下来刷新
onPullDownRefresh() {},
//页面上拉触底
onReachBottom() {},
//用户点击分享
onShareAppMessage(e) {
return this.wxShare();
}
};
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
body{background-color: #F8F8F8;}
.page{min-height: 100vh;position: relative; background-color: #F8F8F8;}
.cell_list {
padding: 40rpx 30rpx;
margin: 0rpx 30rpx;
2025-06-10 00:51:49 +08:00
border-bottom: 2rpx solid #ddd;
2025-06-06 03:08:19 +08:00
}
.txt{
font-weight: 500;
2025-06-10 00:51:49 +08:00
font-size: 32rpx;
2025-06-06 03:08:19 +08:00
color: #3d3d3d
}
.cell_right image {
width: 140rpx;
height: 140rpx;
border-radius: 50%;
}
</style>