xieyi.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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="goWeb(item.path, item.name)">
  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': 'https://e.zhichao.art/web/yszc.php',
  32. 'icon': '../../static/me/security.png'
  33. },
  34. {
  35. 'name': '用户协议',
  36. 'desc': '',
  37. 'path': 'https://e.zhichao.art/web/yhxy.php',
  38. 'icon': '../../static/me/profile.png'
  39. },
  40. {
  41. 'name': '创作社区公约说明',
  42. 'desc': '',
  43. 'path': 'https://e.zhichao.art/web/sqgy.php',
  44. 'icon': '../../static/me/profile.png'
  45. },
  46. // {
  47. // 'name': '应用权限隐私清单',
  48. // 'desc': '',
  49. // 'path': 'https://e.zhichao.art/web/yyqx.php',
  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. goWeb(url, title) {
  63. uni.navigateTo({
  64. url: `/pages/webview/index?url=${encodeURIComponent(url)}&title=${encodeURIComponent(title) }`
  65. })
  66. },
  67. onBack() {},
  68. chkSel() {
  69. if (this.sel == 1) {
  70. this.sel = 0;
  71. } else {
  72. this.sel = 1;
  73. }
  74. },
  75. goPage(page) {
  76. if (page == 'delete') {
  77. this.DelMem();
  78. } else if (page == 'yszc') {
  79. // #ifdef APP-PLUS
  80. plus.runtime.openURL('https://e.zhichao.art/web/yszc.php') // plus.runtime.openWeb(href);
  81. // #endif
  82. // #ifdef H5
  83. window.open('https://e.zhichao.art/web/yszc.php')
  84. // #endif
  85. } else if (page == 'kefu') {
  86. let that = this;
  87. // #ifdef APP-PLUS
  88. plus.share.getServices(res => {
  89. const wechat = res.find(i => i.id === 'weixin')
  90. if (wechat) {
  91. wechat.openCustomerServiceChat({
  92. corpid: 'wwbc06aa8311b6ac08',
  93. // url: 'https://work.weixin.qq.com/kfid/kfc4b0bcb4038d00a50'
  94. url: that.myinfo.wxkf
  95. }, src => {
  96. console.log("success:")
  97. }, err => {
  98. console.log("error:")
  99. })
  100. } else {
  101. uni.showToast({
  102. title: '没有检测到微信,请先安装',
  103. icon: "error"
  104. });
  105. }
  106. });
  107. // #endif
  108. } else if (page != '') {
  109. uni.navigateTo({
  110. url: page,
  111. })
  112. }
  113. },
  114. }
  115. }
  116. </script>
  117. <style scoped lang="scss">
  118. @import 'xieyi.scss';
  119. </style>