xieyi.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. import channel from "@/common/channel.js";
  21. export default {
  22. components: {},
  23. data() {
  24. return {
  25. title: '',
  26. sel: 1,
  27. myinfo: {},
  28. version: '',
  29. basicSettings: [{
  30. 'name': '隐私政策',
  31. 'desc': '',
  32. 'path': 'https://e.zhichao.art/web/yszc.php',
  33. 'icon': '../../static/me/security.png'
  34. },
  35. {
  36. 'name': '用户协议',
  37. 'desc': '',
  38. 'path': 'https://e.zhichao.art/web/yhxy.php',
  39. 'icon': '../../static/me/profile.png'
  40. },
  41. {
  42. 'name': '创作社区公约说明',
  43. 'desc': '',
  44. 'path': 'https://e.zhichao.art/web/sqgy.php',
  45. 'icon': '../../static/me/profile.png'
  46. },
  47. // {
  48. // 'name': '应用权限隐私清单',
  49. // 'desc': '',
  50. // 'path': 'https://e.zhichao.art/web/yyqx.php',
  51. // 'icon': '../../static/me/profile.png'
  52. // }
  53. ],
  54. }
  55. },
  56. onLoad() {
  57. // this.getAppVersion()
  58. let channelStr = channel && channel.getCurrentStore() && channel.getCurrentStore().channel;
  59. if (channelStr && channelStr == 'oppo') {
  60. this.basicSettings= [{
  61. 'name': '隐私政策',
  62. 'desc': '',
  63. 'path': 'https://e.zhichao.art/web/yszc.php',
  64. 'icon': '../../static/me/security.png'
  65. },
  66. {
  67. 'name': '用户协议',
  68. 'desc': '',
  69. 'path': 'https://e.zhichao.art/web/yhxy.php',
  70. 'icon': '../../static/me/profile.png'
  71. },
  72. {
  73. 'name': '算法备案公示',
  74. 'desc': '',
  75. 'path': 'https://e.zhichao.art/web/sfbeian.php',
  76. 'icon': '../../static/me/profile.png'
  77. }
  78. // {
  79. // 'name': '应用权限隐私清单',
  80. // 'desc': '',
  81. // 'path': 'https://e.zhichao.art/web/yyqx.php',
  82. // 'icon': '../../static/me/profile.png'
  83. // }
  84. ]
  85. } else {
  86. this.basicSettings= [{
  87. 'name': '隐私政策',
  88. 'desc': '',
  89. 'path': 'https://e.zhichao.art/web/yszc.php',
  90. 'icon': '../../static/me/security.png'
  91. },
  92. {
  93. 'name': '用户协议',
  94. 'desc': '',
  95. 'path': 'https://e.zhichao.art/web/yhxy.php',
  96. 'icon': '../../static/me/profile.png'
  97. },
  98. {
  99. 'name': '创作社区公约说明',
  100. 'desc': '',
  101. 'path': 'https://e.zhichao.art/web/sqgy.php',
  102. 'icon': '../../static/me/profile.png'
  103. },
  104. // {
  105. // 'name': '应用权限隐私清单',
  106. // 'desc': '',
  107. // 'path': 'https://e.zhichao.art/web/yyqx.php',
  108. // 'icon': '../../static/me/profile.png'
  109. // }
  110. ]
  111. }
  112. },
  113. onShow() {
  114. // this.loadData();
  115. },
  116. methods: {
  117. goWeb(url, title) {
  118. uni.navigateTo({
  119. url: `/pages/webview/index?url=${encodeURIComponent(url)}&title=${encodeURIComponent(title)}`
  120. })
  121. },
  122. onBack() { },
  123. chkSel() {
  124. if (this.sel == 1) {
  125. this.sel = 0;
  126. } else {
  127. this.sel = 1;
  128. }
  129. },
  130. goPage(page) {
  131. if (page == 'delete') {
  132. this.DelMem();
  133. } else if (page == 'yszc') {
  134. // #ifdef APP-PLUS
  135. plus.runtime.openURL('https://e.zhichao.art/web/yszc.php') // plus.runtime.openWeb(href);
  136. // #endif
  137. // #ifdef H5
  138. window.open('https://e.zhichao.art/web/yszc.php')
  139. // #endif
  140. } else if (page == 'kefu') {
  141. let that = this;
  142. // #ifdef APP-PLUS
  143. plus.share.getServices(res => {
  144. const wechat = res.find(i => i.id === 'weixin')
  145. if (wechat) {
  146. wechat.openCustomerServiceChat({
  147. corpid: 'wwbc06aa8311b6ac08',
  148. // url: 'https://work.weixin.qq.com/kfid/kfc4b0bcb4038d00a50'
  149. url: that.myinfo.wxkf
  150. }, src => {
  151. console.log("success:")
  152. }, err => {
  153. console.log("error:")
  154. })
  155. } else {
  156. uni.showToast({
  157. title: '没有检测到微信,请先安装',
  158. icon: "error"
  159. });
  160. }
  161. });
  162. // #endif
  163. } else if (page != '') {
  164. uni.navigateTo({
  165. url: page,
  166. })
  167. }
  168. },
  169. }
  170. }
  171. </script>
  172. <style scoped lang="scss">
  173. @import 'xieyi.scss';
  174. </style>