Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ac2d1e173 | ||
|
|
c296e8b410 | ||
|
|
aae9c397f9 |
@@ -9,6 +9,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { $cache_config } from '@/store/cashe.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -38,6 +39,18 @@
|
||||
// this.content = res.data.content;
|
||||
// }
|
||||
// });
|
||||
console.log($cache_config.agreement)
|
||||
|
||||
uni.request({
|
||||
url: $cache_config.agreement,
|
||||
method: 'GET',
|
||||
success: (res) => {
|
||||
console.log(res.data[154])
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error(err)
|
||||
}
|
||||
})
|
||||
this.$u.get('app/common/type/154').then(res => {
|
||||
this.content = res.data.value
|
||||
|
||||
|
||||
@@ -439,14 +439,17 @@
|
||||
this.ruleInit()
|
||||
return
|
||||
}
|
||||
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
||||
if (res.code == 0&&res.data.length > 0) {
|
||||
this.ruleShow = true
|
||||
this.ruleList = res.data
|
||||
$cache_rule.set('ruleIndex',this.ruleList)
|
||||
this.ruleInit()
|
||||
}
|
||||
});
|
||||
if(!uni.getStorageSync('ruleShow')){
|
||||
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
||||
if (res.code == 0&&res.data.length > 0) {
|
||||
this.ruleShow = true
|
||||
this.ruleList = res.data
|
||||
$cache_rule.set('ruleIndex',this.ruleList)
|
||||
this.ruleInit()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.page < this.pages) {
|
||||
@@ -486,6 +489,8 @@
|
||||
this.ruleIndex++
|
||||
if( this.ruleIndex >= this.ruleList.length) {
|
||||
this.ruleIndex = 0
|
||||
uni.setStorageSync('ruleShow', true)
|
||||
|
||||
return
|
||||
}
|
||||
this.ruleShow = false
|
||||
|
||||
@@ -99,44 +99,24 @@
|
||||
this.$Request.get('/app/common/type/50').then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data && res.data.value) {
|
||||
if (this.openShares) {
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf('micromessenger') === -1) {
|
||||
this.show_share = false;
|
||||
// #ifndef H5
|
||||
plus.runtime.openURL(res.data.value, function(res) {
|
||||
|
||||
});
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
window.location.href = res.data.value;
|
||||
// uni.switchTab({
|
||||
// url: 'pages/index/index'
|
||||
// })
|
||||
// #endif
|
||||
} else {
|
||||
this.show_share = true;
|
||||
// #ifndef H5
|
||||
plus.runtime.openURL(res.data.value, function(res) {
|
||||
|
||||
});
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
uni.setClipboardData({
|
||||
data: res.data.value,
|
||||
success: r => {
|
||||
// this.$queue.showToast('邀请码复制成功');
|
||||
}
|
||||
} else {
|
||||
// #ifndef H5
|
||||
plus.runtime.openURL(res.data.value, function(res) {
|
||||
|
||||
});
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
uni.setClipboardData({
|
||||
data: res.data.value,
|
||||
success: r => {
|
||||
// this.$queue.showToast('邀请码复制成功');
|
||||
}
|
||||
});
|
||||
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
// window.location.href = res.data.value;
|
||||
// #endif
|
||||
}
|
||||
});
|
||||
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
// window.location.href = res.data.value;
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -46,7 +46,9 @@ const $map = {
|
||||
860: 'dyadUnitId',
|
||||
881: '',
|
||||
109: '',
|
||||
922: 'withdrawNum'
|
||||
922: 'withdrawNum',
|
||||
155: 'privacy',
|
||||
154: 'agreement'
|
||||
}
|
||||
|
||||
function callback() {
|
||||
|
||||
Reference in New Issue
Block a user