xieyi.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/yyqx.php',
  44. // 'icon': '../../static/me/profile.png'
  45. // }
  46. ],
  47. }
  48. },
  49. onLoad() {
  50. // this.getAppVersion()
  51. },
  52. onShow() {
  53. // this.loadData();
  54. },
  55. methods: {
  56. goWeb(url, title) {
  57. uni.navigateTo({
  58. url: `/pages/webview/index?url=${encodeURIComponent(url)}&title=${encodeURIComponent(title) }`
  59. })
  60. },
  61. onBack() {},
  62. chkSel() {
  63. if (this.sel == 1) {
  64. this.sel = 0;
  65. } else {
  66. this.sel = 1;
  67. }
  68. },
  69. goPage(page) {
  70. if (page == 'delete') {
  71. this.DelMem();
  72. } else if (page == 'yszc') {
  73. // #ifdef APP-PLUS
  74. plus.runtime.openURL('https://e.zhichao.art/web/yszc.php') // plus.runtime.openWeb(href);
  75. // #endif
  76. // #ifdef H5
  77. window.open('https://e.zhichao.art/web/yszc.php')
  78. // #endif
  79. } else if (page == 'kefu') {
  80. let that = this;
  81. // #ifdef APP-PLUS
  82. plus.share.getServices(res => {
  83. const wechat = res.find(i => i.id === 'weixin')
  84. if (wechat) {
  85. wechat.openCustomerServiceChat({
  86. corpid: 'wwbc06aa8311b6ac08',
  87. // url: 'https://work.weixin.qq.com/kfid/kfc4b0bcb4038d00a50'
  88. url: that.myinfo.wxkf
  89. }, src => {
  90. console.log("success:")
  91. }, err => {
  92. console.log("error:")
  93. })
  94. } else {
  95. uni.showToast({
  96. title: '没有检测到微信,请先安装',
  97. icon: "error"
  98. });
  99. }
  100. });
  101. // #endif
  102. } else if (page != '') {
  103. uni.navigateTo({
  104. url: page,
  105. })
  106. }
  107. },
  108. }
  109. }
  110. </script>
  111. <style scoped lang="scss">
  112. @import 'xieyi.scss';
  113. </style>