123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <template>
- <view class="page">
- <view class="list_info">
- <!-- 基础设置组 -->
- <view class="item" v-for="(item,index) in basicSettings" :key="index" @click="goPage(item.path)">
- <view class="item-left">
- <image class="icon" :src="item.icon" mode="widthFix"></image>
- <text>{{item.name}}</text>
- </view>
- <view class="item-right">
- <switch v-if="item.switch == 1" checked color="#FFCC33" style="transform:scale(0.7)" />
- <image v-else class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
- </view>
- </view>
- </view>
- <DialogBox ref="DialogBox"></DialogBox>
- </view>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- title: '',
- sel: 1,
- myinfo: {},
- version: '',
- basicSettings: [{
- 'name': '隐私政策',
- 'desc': '',
- 'path': '/pages/AboutUs/yszc',
- 'icon': '../../static/me/security.png'
- },
- {
- 'name': '用户协议',
- 'desc': '',
- 'path': '/pages/AboutUs/yhxy',
- 'icon': '../../static/me/profile.png'
- },
- {
- 'name': '第三方SDK列表',
- 'desc': '',
- 'path': '',
- 'icon': '../../static/me/profile.png'
- },
- {
- 'name': '个人信息收集公示',
- 'desc': '',
- 'path': '',
- 'icon': '../../static/me/profile.png'
- },
- ],
- }
- },
- onLoad() {
- this.getAppVersion()
- },
- onShow() {
- this.loadData();
- },
- methods: {
- onBack() {},
- chkSel() {
- if (this.sel == 1) {
- this.sel = 0;
- } else {
- this.sel = 1;
- }
- },
- goPage(page) {
- if (page == 'delete') {
- this.DelMem();
- } else if (page == 'yszc') {
- // #ifdef APP-PLUS
- plus.runtime.openURL('https://e.zhichao.art/web/yszc.php') // plus.runtime.openWeb(href);
- // #endif
- // #ifdef H5
- window.open('https://e.zhichao.art/web/yszc.php')
- // #endif
- } else if (page == 'kefu') {
- let that = this;
- // #ifdef APP-PLUS
- plus.share.getServices(res => {
- const wechat = res.find(i => i.id === 'weixin')
- if (wechat) {
- wechat.openCustomerServiceChat({
- corpid: 'wwbc06aa8311b6ac08',
- // url: 'https://work.weixin.qq.com/kfid/kfc4b0bcb4038d00a50'
- url: that.myinfo.wxkf
- }, src => {
- console.log("success:")
- }, err => {
- console.log("error:")
- })
- } else {
- uni.showToast({
- title: '没有检测到微信,请先安装',
- icon: "error"
- });
- }
- });
- // #endif
- } else if (page != '') {
- uni.navigateTo({
- url: page,
- })
- }
- },
- }
- }
- </script>
- <style scoped lang="scss">
- @import 'xieyi.scss';
- </style>
|