xieyi.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="page">
  3. <view class="list_info">
  4. <!-- 基础设置组 -->
  5. <view class="item" v-for="(item,index) in basicSettings" :key="index" @click="goPage(item.path)">
  6. <view class="item-left">
  7. <image class="icon" :src="item.icon" mode="widthFix"></image>
  8. <text>{{item.name}}</text>
  9. </view>
  10. <view class="item-right">
  11. <switch v-if="item.switch == 1" checked color="#FFCC33" style="transform:scale(0.7)" />
  12. <image v-else class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  13. </view>
  14. </view>
  15. </view>
  16. <DialogBox ref="DialogBox"></DialogBox>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. components: {},
  22. data() {
  23. return {
  24. title: '',
  25. sel: 1,
  26. myinfo: {},
  27. version: '',
  28. basicSettings: [{
  29. 'name': '隐私政策',
  30. 'desc': '',
  31. 'path': '/pages/AboutUs/yszc',
  32. 'icon': '../../static/me/security.png'
  33. },
  34. {
  35. 'name': '用户协议',
  36. 'desc': '',
  37. 'path': '/pages/AboutUs/yhxy',
  38. 'icon': '../../static/me/profile.png'
  39. },
  40. {
  41. 'name': '第三方SDK列表',
  42. 'desc': '',
  43. 'path': '',
  44. 'icon': '../../static/me/profile.png'
  45. },
  46. {
  47. 'name': '个人信息收集公示',
  48. 'desc': '',
  49. 'path': '',
  50. 'icon': '../../static/me/profile.png'
  51. },
  52. ],
  53. }
  54. },
  55. onLoad() {
  56. this.getAppVersion()
  57. },
  58. onShow() {
  59. this.loadData();
  60. },
  61. methods: {
  62. onBack() {},
  63. chkSel() {
  64. if (this.sel == 1) {
  65. this.sel = 0;
  66. } else {
  67. this.sel = 1;
  68. }
  69. },
  70. goPage(page) {
  71. if (page == 'delete') {
  72. this.DelMem();
  73. } else if (page == 'yszc') {
  74. // #ifdef APP-PLUS
  75. plus.runtime.openURL('https://e.zhichao.art/web/yszc.php') // plus.runtime.openWeb(href);
  76. // #endif
  77. // #ifdef H5
  78. window.open('https://e.zhichao.art/web/yszc.php')
  79. // #endif
  80. } else if (page == 'kefu') {
  81. let that = this;
  82. // #ifdef APP-PLUS
  83. plus.share.getServices(res => {
  84. const wechat = res.find(i => i.id === 'weixin')
  85. if (wechat) {
  86. wechat.openCustomerServiceChat({
  87. corpid: 'wwbc06aa8311b6ac08',
  88. // url: 'https://work.weixin.qq.com/kfid/kfc4b0bcb4038d00a50'
  89. url: that.myinfo.wxkf
  90. }, src => {
  91. console.log("success:")
  92. }, err => {
  93. console.log("error:")
  94. })
  95. } else {
  96. uni.showToast({
  97. title: '没有检测到微信,请先安装',
  98. icon: "error"
  99. });
  100. }
  101. });
  102. // #endif
  103. } else if (page != '') {
  104. uni.navigateTo({
  105. url: page,
  106. })
  107. }
  108. },
  109. }
  110. }
  111. </script>
  112. <style scoped lang="scss">
  113. @import 'xieyi.scss';
  114. </style>