银花优选微信小程序修改后的最新版本代码

This commit is contained in:
ss001
2026-02-07 16:22:31 +08:00
commit c00caf5744
516 changed files with 41796 additions and 0 deletions

158
pages/zzjf/index.js Normal file
View File

@@ -0,0 +1,158 @@
var app = getApp()
var that=null
var sopenFrame=null
var wait=120
Page( {
data: {
loadingHidden:false,
szjg:0,
jrjg:0,
zzjfye:0,
jrjg:0,
jrjg:0,
Start: 0,
mybalance:[]
},
onLoad: function(options) {
that = this
that.rdata(0)
sopenFrame=setInterval(function (){
if(app.globalData.IFRefreshzzjf==1){
app.globalData.IFRefreshzzjf=0
that.clearCache();
that.rdata(0)
}
}, 1000);
}, // 下拉刷新
onPullDownRefresh: function () {
//在当前页面显示导航条加载动画
wx.showNavigationBarLoading();
//显示 loading 提示框。需主动调用 wx.hideLoading 才能关闭提示框
wx.showLoading({
title: '刷新中...',
})
that.clearCache();
that.rdata(1);//第一次加载数据
},// 清缓存
clearCache:function(){
that.setData({
loadingHidden:false,
Start: 0,
mybalance:[]
});
} // 页面上拉触底事件(上拉加载更多)
,onReachBottom: function () {
if(that.data.loadingHidden){
that.setData({
loadingHidden:false
});
that.rdata(2);;//后台获取新数据并追加渲染
}else{
wx.hideLoading();
}
},rdata: function(gp) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
var userInfodata = wx.getStorageSync("userInfo")
var userInfo = JSON.parse(userInfodata)
wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx?timestamp=" + (new Date().getTime() / 1000),
data: {
action:"getzzjfdata",
Start: that.data.Start,
userId:(!userId?"":userId),
LoginId:(!LoginId?"":LoginId)
},
method:"GET",
dataType:"json",
success (res) {
if(res.data.status==1){
var tmpArr = null;
tmpArr = that.data.mybalance;
if(res.data.data.length>0){
tmpArr.push.apply(tmpArr,res.data.data);
}
that.setData({
szjg:res.data.szjg,
jrjg:res.data.jrjg,
zzjfye:res.data.zzjfye,
ygsy:res.data.ygsy,
zsy:res.data.zsy,
mybalance: tmpArr,
Start: that.data.Start+res.data.data.length,
loadingHidden:true
})
}else{
that.setData({
loadingHidden:true
})
wx.showToast({
title: res.data.msg,
icon: "none",
duration: 3000
})
}
if(gp==1){
//隐藏loading 提示框
wx.hideLoading();
//隐藏导航条加载动画
wx.hideNavigationBarLoading();
//停止下拉刷新
wx.stopPullDownRefresh();
}
}
})
},onqwlog:function(e) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
if(!userId||!LoginId){
wx.navigateTo({
url: "../login/index"
})
}else{
wx.navigateTo({
url: "../zzjf_qwlog/index"
})
}
},onzzlog:function(e) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
if(!userId||!LoginId){
wx.navigateTo({
url: "../login/index"
})
}else{
wx.navigateTo({
url: "../zzjf_log/index"
})
}
},onlog:function(e) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
if(!userId||!LoginId){
wx.navigateTo({
url: "../login/index"
})
}else{
wx.navigateTo({
url: "../mybalance/index?t=19"
})
}
},ontx:function(e) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
if(!userId||!LoginId){
wx.navigateTo({
url: "../login/index"
})
}else{
wx.navigateTo({
url: "../withdrawal/index?t=4"
})
}
}
})

3
pages/zzjf/index.json Normal file
View File

@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "增值积分"
}

66
pages/zzjf/index.wxml Normal file
View File

@@ -0,0 +1,66 @@
<view class="container">
<view class="zzjfmx_box">
<view class="title">增值积分价格</view>
<view class="gxzmx_box">
<view>
<text>昨日兑换</text>
<text class="je" id="szjg">{{szjg}}</text>
</view>
<view>
<text>实时兑换</text>
<text class="je" id="jrjg">{{jrjg}}</text>
</view>
</view>
</view>
<view class="zzjfmx_box">
<view class="gxzmx_box">
<view bindtap="onqwlog">
<image src="../../images/zzjf_ico0.png" />
<text>全网记录</text>
</view>
<!--<view bindtap="onzzlog">
<image src="../../images/zzjf_ico1.png" />
<text>增值记录</text>
</view>
<view bindtap="ontx">
<image src="../../images/zzjf_ico2.png" />
<text>提现</text>
</view>-->
<view bindtap="onzzlog">
<image src="../../images/zzjf_ico2.png" />
<text>增值积分</text>
<text class="je" id="zsy">{{zsy}}</text>
</view>
</view>
</view>
<!-- <view class="zzjfmx_box">
<view class="gxzmx_box">
<view bindtap="onlog">
<text>可提余额</text>
<text class="je" id="zzjfye">{{zzjfye}}</text>
</view>
</view>
</view>-->
<view class="zzjfmx_box">
<view class="title">往期数据</view>
<view class="datatable">
<view class="htit"><text>时间</text><text class="je">价格</text></view>
<view wx:for="{{mybalance}}" wx:for-index="index">
<text>{{item.addtime}}</text><text class="je">{{item.zzjg}}</text>
</view>
</view>
<view class="clear"></view>
<view class="more_box"></view>
</view>
</view>
<loading hidden="{{loadingHidden}}">
加载中...
</loading>

151
pages/zzjf/index.wxss Normal file
View File

@@ -0,0 +1,151 @@
page{
background: #ccc;
}
.container {
position: relative;
width: 100%;
height: 100%;
font-size: 14px;
color: #000;
padding: 0.8em;
box-sizing: border-box;
}
.gxzmx_box {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
background-color: #fff;
margin: 0;
padding: 0em;
text-align: center;
border-radius: 0.7em 0.7em 0 0;
border-bottom: 1px solid #f1f1f1;
box-sizing: border-box;
}
.gxzmx_box view {
display: flex;
flex-direction: column;
width: 50%;
align-items: center;
justify-items: center;
padding-top: 1.2em;
padding-bottom: 1.2em;
box-sizing: border-box;
}
.gxzmx_box view image {
display: block;
width:3em;
height:3em;
}
.gxzmx_box view text {
display: block;
color: #000;
font-size: 1em;
}
.gxzmx_box view text.je {
color: #000;
font-weight: 800;
}
.zzjfmx_box {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
background-color: #fff;
margin: 0;
margin-bottom: 0.8em;
padding: 0em;
text-align: center;
border-radius: 0.7em;
overflow: hidden;
box-sizing: border-box;
}
.zzjfmx_box .title {
width: 100%;
height: 2.5em;
line-height: 2.5em;
font-size: 1em;
text-align: left;
border-bottom: 1px solid #f1f1f1;
padding: 0 0.8em;
box-sizing: border-box;
font-size: 1em;
font-weight: 900;
}
.zzjfmx_box .title .fxjg_box {
display: block;
float: right;
width: auto;
}
.zzjfmx_box .title .mybtn {
display: block;
float: right;
margin-left:0.8em;
margin-top:0.2em;
width: auto;
height:2em;
line-height:2em;
padding: 0 0.8em;
border-radius: 0.4em;
}
.zzjfmx_box .gxzmx_box {
border-radius: 0;
font-size: 1em;
}
.zzjfmx_box .xfbtmx_box {
border-radius: 0;
font-size: 1em;
}
.zzjl_box {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
background-color: #fff;
margin: 0;
margin-bottom: 0.8em;
padding: 0em;
text-align: center;
border-radius: 0.7em;
overflow: hidden;
box-sizing: border-box;
}
.datatable {
width: 100%;
border-top: 1px solid #dfdfdf;
}
.datatable view{ width: 100%;}
.datatable view {
display: flex;
flex-direction: row;
width: 100%;
height: 2.5em;
border-bottom: 1px solid #dfdfdf;
box-sizing: border-box;
color: #000;
}
.datatable view text{
display:block;
width: 33%;
height: 2.5em;
box-sizing: border-box;
text-align: center;
line-height: 2.5em;
overflow:hidden;
}
.datatable view.tit {
font-weight: 800;
color: #000;
}
.datatable view text.zhanghao {
width: 34%;
}