公告更新

This commit is contained in:
GaoHao
2025-01-09 16:47:09 +08:00
parent bc88a048aa
commit 91c5592191
4 changed files with 93 additions and 53 deletions

View File

@@ -8,13 +8,13 @@
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 // const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// h5 // h5
const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; // // const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名 // const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 // const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; // const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名 const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; // // const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名 // const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名

View File

@@ -109,15 +109,14 @@
</view> </view>
<u-modal v-model="ruleShow" confirm-text="知道了" title="规则说明" :title-style="{fontWeight:'700'}" confirm-color="rgb(255, 117, 129)">
<u-modal v-model="ruleShow" confirm-text="知道了" @confirm="ruleConfirm" :title="rule_title" :title-style="{fontWeight:'700'}" confirm-color="rgb(255, 117, 129)">
<view class="u-p-30 u-text-left"> <view class="u-p-30 u-text-left">
<scroll-view scroll-y="true" style="max-height: 50vh;" > <scroll-view scroll-y="true" style="max-height: 50vh;" >
<rich-text class="color-666" :nodes="ruleInfo"></rich-text> <rich-text class="color-666" :nodes="rule_content"></rich-text>
</scroll-view> </scroll-view>
</view> </view>
</u-modal> </u-modal>
<!-- 激励视频广告 --> <!-- 激励视频广告 -->
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true" v-slot:default="{loading, error}" <ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true" v-slot:default="{loading, error}"
:url-callback="urlCallback" @load="onadload" @close="onadclose" @error="onaderror"> :url-callback="urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
@@ -127,27 +126,14 @@
</template> </template>
<script> <script>
import { $cache_config } from '@/store/cashe.js'
import { init } from '@/utils/init.js'
export default { export default {
data() { data() {
return { return {
ruleShow: true, ruleShow: true,
ruleInfo: ` rule_title: "",
用户在平台中对奖励提现的,适用以下规则: rule_content: "",
<br/>
<br/>
1用户的收益达到最低提现金额要求后可以申请提现每日只可以提现一笔。
<br/>
2用户需要通过支付宝提现需按照要求绑定支付宝账号并填写提现金额或其他提现所需信息请确保提供的信息准确无误以免提现失败。
<br/>
3如果用户发现显示「提现失败」需确认当前填写或绑定的支付宝账号或银行卡账号是否正确以及支付宝账号是否可用。如果用户发现显示「提现成功」但没到账
<br/>
(1)如果用户有多个支付宝账号,请检查用户是否提现到了其他支付宝账号。
<br/>
(2)高峰期提现人数多会导致网络拥堵显示提现成功之后72小时内属于正常现象请耐心等候。
<br/>
4每日08:00至次日18:00为提现时间活动的对应奖励可能延迟到账。提现通常会在72小时内到账如遇双休日、节假日提现到账时间可能会延长。活动高峰期间由于网络拥堵用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能但无需因此承担任何责任。
<br/>
`,
money: '', money: '',
mayMoney: '0', mayMoney: '0',
shouxufei: '', shouxufei: '',
@@ -185,11 +171,21 @@
adRewardedVideo: true, adRewardedVideo: true,
adRewardedVideoloadNum: 0, adRewardedVideoloadNum: 0,
isWithdraw: false, isWithdraw: false,
withdrawNum: $cache_config.withdrawNum,
ruleIndex: 0,
ruleList: []
}; };
}, },
onLoad() { onLoad() {
this.getExtractFei(); this.getExtractFei();
this.getMoneyDetail(); this.getMoneyDetail();
this.$Request.getT("app/announcement", {type: 1}).then(res => {
if (res.code == 0) {
this.ruleList = res.data
this.ruleInit()
}
});
this.configInit()
}, },
onShow() { onShow() {
this.token = uni.getStorageSync('token') this.token = uni.getStorageSync('token')
@@ -206,6 +202,7 @@
} }
}) })
}, },
onReachBottom: function() { onReachBottom: function() {
if (this.page * this.limit < this.totalCount) { if (this.page * this.limit < this.totalCount) {
@@ -229,6 +226,37 @@
this.getCanCash() this.getCanCash()
}, },
methods: { methods: {
async configInit(){
if(!$cache_config.withdrawNum){
const res = await init(true)
this.withdrawNum = $cache_config.withdrawNum
}
},
ruleInit(){
this.rule_title = this.ruleList[this.ruleIndex].title
this.rule_content = this.ruleList[this.ruleIndex].content
},
/**
* 规则弹窗打开
*/
showRule(){
console.log(this.ruleIndex)
this.ruleInit()
this.ruleShow = true
},
ruleConfirm(){
this.ruleIndex++
if( this.ruleIndex >= this.ruleList.length) {
this.ruleIndex = 0
return
}
this.ruleShow = false
setTimeout(res=>{
this.ruleInit()
this.ruleShow = true
},300)
},
/** /**
* 获取看广告状态 * 获取看广告状态
*/ */
@@ -296,12 +324,7 @@
} }
}, },
/**
* 规则弹窗打开
*/
showRule(){
this.ruleShow=true
},
moneyInput(e) { moneyInput(e) {
let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null; let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null;
this.$nextTick(() => { this.$nextTick(() => {
@@ -491,7 +514,7 @@
if (that.shouxufei > 0) { if (that.shouxufei > 0) {
uni.showModal({ uni.showModal({
title: "提现申请提示", title: "提现申请提示",
content: '每日只可提现一次', content: `每日只可提现${this.withdrawNum}`,
success: (e) => { success: (e) => {
if (e.confirm) { if (e.confirm) {
uni.showModal({ uni.showModal({

View File

@@ -197,7 +197,7 @@
style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/index_guide.png') no-repeat center bottom / 100%;background-color: rgba(0, 0, 0, 0.8);"> style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/index_guide.png') no-repeat center bottom / 100%;background-color: rgba(0, 0, 0, 0.8);">
</div> </div>
<!-- #endif --> <!-- #endif -->
<u-modal v-model="ruleShow" confirm-text="知道了" :title="rule_title" :title-style="{fontWeight:'700'}" confirm-color="rgb(255, 117, 129)"> <u-modal v-model="ruleShow" confirm-text="知道了" @confirm="ruleConfirm" :title="rule_title" :title-style="{fontWeight:'700'}" confirm-color="rgb(255, 117, 129)">
<view class="u-p-30 u-text-left"> <view class="u-p-30 u-text-left">
<scroll-view scroll-y="true" style="max-height: 50vh;" > <scroll-view scroll-y="true" style="max-height: 50vh;" >
<rich-text class="color-666" :nodes="rule_content"></rich-text> <rich-text class="color-666" :nodes="rule_content"></rich-text>
@@ -280,6 +280,8 @@
ruleShow: false, ruleShow: false,
rule_title: '', rule_title: '',
rule_content: '', rule_content: '',
ruleIndex: 0,
ruleList: []
}; };
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
@@ -432,13 +434,11 @@
}, },
onReady() { onReady() {
httpsRequest.getT("app/announcement", {}).then(res => { httpsRequest.getT("app/announcement", {type: 0}).then(res => {
if (res.code == 0) { if (res.code == 0) {
if (res.data && res.data.state == 1) { this.ruleShow = true
this.ruleShow = true this.ruleList = res.data
this.rule_title = res.data.title this.ruleInit()
this.rule_content = res.data.content
}
} }
}); });
}, },
@@ -471,6 +471,23 @@
this.getCourseList() this.getCourseList()
}, },
methods: { methods: {
ruleInit(){
this.rule_title = this.ruleList[this.ruleIndex].title
this.rule_content = this.ruleList[this.ruleIndex].content
},
ruleConfirm(){
this.ruleIndex++
if( this.ruleIndex >= this.ruleList.length) {
this.ruleIndex = 0
return
}
this.ruleShow = false
setTimeout(res=>{
this.ruleInit()
this.ruleShow = true
},300)
},
//新用户红包 837 //新用户红包 837
newUserRedInit(){ newUserRedInit(){
if($cache_config.isNewUserRedPack!==null&&$cache_config.isNewUserRedPack!==undefined){ if($cache_config.isNewUserRedPack!==null&&$cache_config.isNewUserRedPack!==undefined){

View File

@@ -45,7 +45,8 @@ const $map = {
858: 'isAccountPay', 858: 'isAccountPay',
860: 'dyadUnitId', 860: 'dyadUnitId',
881: '', 881: '',
109: '' 109: '',
922: 'withdrawNum'
} }
function callback() { function callback() {
@@ -78,19 +79,18 @@ function callback() {
} }
export async function init(isNowRequest=false) { export async function init(isNowRequest=false) {
if(!$cache_config||$cache_config.isEmpty()||isNowRequest){ if(!$cache_config||$cache_config.isEmpty()||isNowRequest){
httpsRequest.getT('/app/common/getAppUseKv').then(res => { const res=await httpsRequest.getT('/app/common/getAppUseKv')
console.log(res); if (res.code == 0) {
if (res.code == 0) { for (let i in $map) {
for (let i in $map) { const key = $map[i]
const key = $map[i] if (key) {
if (key) { // uni.setStorageSync(key, res.data[i])
// uni.setStorageSync(key, res.data[i]) $cache_config.set(key, res.data[i])
$cache_config.set(key, res.data[i]) // callback()
// callback()
}
} }
} }
}) }
return res
} }