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