lilishop-uniapp/pages/mine/set/editionIntro.vue

125 lines
3.2 KiB
Vue
Raw Normal View History

2021-05-14 17:31:40 +08:00
// TODO 第一版本暂无此功能 后续优化以及更新
2021-05-13 11:03:32 +08:00
<template>
2021-05-14 17:31:40 +08:00
<view class="edition-intro">
<h1> {{config.name}}</h1>
<view class='vesion'>
Version
2021-05-14 17:31:40 +08:00
</view>
<u-cell-group class="cell">
<!-- #ifdef APP-PLUS -->
<u-cell-item v-if="IosWhetherStar" @click="()=>{window.location.href = `itms-apps://itunes.apple.com/app/${config.iosAppId}?action=write-review`}" title="去评分"></u-cell-item>
<!-- #endif -->
<u-cell-item title="功能介绍"></u-cell-item>
<!-- #ifdef APP-PLUS -->
<u-cell-item title="检查更新" @click="checkUpdate"></u-cell-item>
<!-- #endif -->
<u-cell-item title="证照信息" @click="navigateTo('/pages/mine/help/tips?type=message')"></u-cell-item>
<u-cell-item title="服务协议" @click="navigateTo('/pages/mine/help/tips?type=user')"></u-cell-item>
<u-cell-item title="隐私协议" @click="navigateTo('/pages/mine/help/tips?type=privacy')"></u-cell-item>
<u-cell-item title="关于我们" :border-bottom="false" @click="navigateTo('/pages/mine/help/tips?type=about')"></u-cell-item>
</u-cell-group>
<view class="intro">
<view>客服热线13161366885</view>
<view style="margin:20rpx 0 0 0;">客服邮箱lili@lili.com</view>
<view>
<view style="margin:20rpx 0; color:#003a8c;" @click="navigateTo('/pages/mine/help/tips?type=user')">lili</view>
<view>CopyRight @ {{config.name}} </view>
2021-05-14 17:31:40 +08:00
</view>
</view>
</view>
2021-05-13 11:03:32 +08:00
</template>
<script>
import config from "@/config/config";
2021-05-14 17:31:40 +08:00
import * as API_Message from "@/api/message.js";
export default {
data() {
return {
config,
IosWhetherStar: false,
2021-05-14 17:31:40 +08:00
editionHistory: [], //版本历史
params: {
pageNumber: 1,
pageSize: 5,
},
loadStatus: "more",
};
},
onLoad() {
if (uni.getSystemInfoSync().platform === "android") {
this.params.type = 0;
} else {
this.IosWhetherStar = true;
2021-05-14 17:31:40 +08:00
this.params.type = 1;
}
this.GET_AppVersionList(true);
},
onReachBottom() {
if (this.loadStatus != "noMore") {
this.params.pageNumber++;
this.GET_AppVersionList(false);
}
},
methods: {
navigateTo(url) {
uni.navigateTo({
url,
});
},
2021-05-14 17:31:40 +08:00
GET_AppVersionList(reset) {
if (reset) {
this.params.pageNumber = 1;
}
uni.showLoading({
title: "加载中",
});
API_Message.getAppVersionList(this.params).then((response) => {
uni.hideLoading();
if (response.statusCode == 200) {
const { data } = response;
if (data.data.length < 10) {
this.loadStatus = "noMore";
}
this.editionHistory.push(...data.data);
}
});
},
},
};
2021-05-13 11:03:32 +08:00
</script>
2021-05-14 17:31:40 +08:00
<style lang="scss" scoped>
page {
background: #fff;
}
.cell {
width: 90%;
margin: 0 auto;
}
2021-05-14 17:31:40 +08:00
.edition-intro {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
> h1 {
margin: 150rpx 0 20rpx 0;
letter-spacing: 2rpx;
2021-05-14 17:31:40 +08:00
}
> .vesion {
font-size: 30rpx;
margin-bottom: 150rpx;
2021-05-14 17:31:40 +08:00
}
2021-05-13 11:03:32 +08:00
}
.intro {
margin-top: 150rpx;
font-size: 24rpx;
letter-spacing: 2rpx;
}
2021-05-13 11:03:32 +08:00
</style>