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

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

145
pages/myskusers/index.js Normal file
View File

@@ -0,0 +1,145 @@
var app = getApp()
var that=null
var sopenFrame=null
Page( {
data: {
orderImg: '../../images/iconfont-dingdan.png',
tipWords: '亲,您还没有推荐会员哦!',
dataHidden:false,
nodataHidden:true,
loadingHidden:false,
jrskcount:0,
zrskcount:0,
zskcount:0,
datas:[],
Start: 0,
t:0
},
onLoad: function() {
that = this
that.clearCache();//清本页缓存
that.getlist(0)
}, // 下拉刷新
onPullDownRefresh: function () {
//在当前页面显示导航条加载动画
wx.showNavigationBarLoading();
//显示 loading 提示框。需主动调用 wx.hideLoading 才能关闭提示框
wx.showLoading({
title: '刷新中...',
})
that.clearCache();
that.getlist(1);//第一次加载数据
},
// 页面上拉触底事件(上拉加载更多)
onReachBottom: function () {
that.setData({
loadingHidden:false
});
that.getlist(2);//后台获取新数据并追加渲染
},
// 清缓存
clearCache:function(){
that.setData({
dataHidden:false,
nodataHidden:true,
loadingHidden:false,
Start: 0,
datas:[]
});
},getlist: function(gp) {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx",
data: {
action:"getmyfriendlist",
Start:that.data.Start,
t:that.data.t,
userId:(userId==null?"":userId),
LoginId:(LoginId==null?"":LoginId)
},
method:"GET",
dataType:"json",
header: {
"content-type": "application/json" // 默认值
},
success (res) {
if(res.data.status==1){
var tmpArr = null;
tmpArr = that.data.datas;
tmpArr.push.apply(tmpArr,res.data.data);
that.setData({
jrskcount:res.data.tjcount,
zrskcount:res.data.temcount,
zskcount:res.data.atemcount,
datas: tmpArr,
Start: that.data.Start+res.data.data.length,
loadingHidden:true
})
if(gp==0||gp==1){
if(res.data.data.length>0){
that.setData({
dataHidden:false,
nodataHidden:true
})
}else{
that.setData({
dataHidden:true,
nodataHidden:false
})
}
that.setData({
tipWords: '亲,您还没有锁客哦!'
})
}else{
that.setData({
tipWords: '亲,找不到锁客哦!'
})
}
}
if(gp==1){
//隐藏loading 提示框
wx.hideLoading();
//隐藏导航条加载动画
wx.hideNavigationBarLoading();
//停止下拉刷新
wx.stopPullDownRefresh();
}
}
})
},getkeyword:function(e) {
that.setData({
keyword:e.detail.value
})
},onskusers:function() {
wx.navigateTo({
url: "../myskusers/index"
})
},onsearch:function() {
that.clearCache();
that.getlist(1);//第一次加载数据
},onyj:function(e) {
var tjcount = e.currentTarget.dataset.tjcount
var temcount = e.currentTarget.dataset.temcount
var zyj = e.currentTarget.dataset.zyj
wx.showModal({
title: "会员情况",
content: "推荐人数:"+tjcount+"\r\n团队人数"+temcount+"\r\n总业绩"+zyj+"",
showCancel:false,
success (res0) {
if (res0.confirm) {
}
}
});
}
})

View File

@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "锁客"
}

View File

@@ -0,0 +1,47 @@
<view class="container">
<view class="mydata_box0">
<view class="umoney1">
<text>{{jrskcount}}</text>
<text>今日锁客</text>
</view>
<view class="umoney1">
<text>{{zrskcount}}</text>
<text>昨日锁客</text>
</view>
<view class="umoney1">
<text>{{zskcount}}</text>
<text>总锁客</text>
</view>
</view>
<view class="datas-box" hidden="{{dataHidden}}">
<view class="datas-item" wx:for="{{datas}}" bindtap="onyj" data-tjcount="{{item.tjcount}}" data-temcount="{{item.temcount}}" data-zyj="{{item.zyj}}">
<view class="image"><image src='{{item.UserPic==""?"../../images/logo.png":item.UserPic}}'></image>
</view>
<view class="name">
<view>{{item.RealName}}<text>{{item.zt}}</text></view>
<view class="time">{{item.regtime}}</view>
</view>
<view class="uLevel">
{{item.uLevel}}
</view>
<view class="faifeito">
<image src="../../images/faifeito.png"></image>
</view>
</view>
</view>
<view class="nodata" hidden="{{nodataHidden}}">
<image src="{{orderImg}}" class="order-image"/>
<view>{{tipWords}}</view>
</view>
</view>
<loading hidden="{{loadingHidden}}">
加载中...
</loading>

View File

@@ -0,0 +1,71 @@
page{
background: #ccc;
}
.container {
position: relative;
width: 100%;
height: 100%;
font-size: 14px;
color: #000;
}
.mydata_box0{
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
background-color: #fff;
}
.mydata_box0 view{
margin-top:0.8em;
margin-bottom: 0.8em;
width: 33.33333333333%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #000;
box-sizing: border-box;
}
.mydata_box0 view.umoney1{
border-left:1px solid #f5f5f5;
}
.mydata_box0 view.umoney1.alink{
color:#00B050;
}
.mydata_box0 view image{
width: 4em;
height: 4em;
}
.mydata_box0 view view{
display: flex;
flex-direction: column;
}
.datas-box{display: flex;flex-direction: column;align-items: center;justify-content: center;width:100%;padding:0.8em; box-sizing: border-box;}
.datas-item{ display: flex;flex-direction: row; width:100%; margin:0; margin-bottom: 0.8em; padding:0.8em; align-items: center;justify-content: center;box-sizing: border-box;margin-top: 0; background-color:#fff;border-radius:0.5em;}
.datas-item view{display: flex;flex-direction: column;}
.datas-item view.image{width:2.5em;height:2.5em;border-radius:50%;}
.datas-item view.image image{width:100%;height:100%;border-radius:50%;}
.datas-item view.name{flex-grow: 1;height:2.5em; padding-left:0.5em; padding-top:0.35em;}
.datas-item view.name view{display: flex;flex-direction: row;line-height:1.2em;}
.datas-item view.name view.time{color:#848484;margin-top: 0.3em;}
.datas-item view.name view text{margin-left:0.5em;color:#848484;}
.datas-item view.uLevel{margin-top:-1.2em; width:3em;height:1.5em;color:#848484;}
.datas-item view.faifeito{width:1.5em;height:1.5em;}
.datas-item view.faifeito image{width:100%;height:100%;}
.searchbox2{ display: flex; flex-direction: row; margin:0 1em; margin-top:1em;height:3.5em; border-bottom:1px solid #f1f1f1; font-size:0.85em;}
.searchbox2{ display: flex; flex-direction: row; margin:0 1em; margin-top:1em;height:4em; font-size:0.85em;}
.searchbox2 .inpubox{flex-grow: 1; height:3em; }
.searchbox2 .inpubox #keyword{ margin:0; padding-left: 0.2em; width: 100%; font-size:1em; height:3em; border:1px solid #f01a4d; outline: none; text-indent: 0.3em;box-sizing:border-box;}
.searchbox2 .icobox{width:3em;height:3em; font-size:1em; background: linear-gradient(to bottom, #f01a4d, #f01a4d); color:#fff;box-sizing:border-box;}
.searchbox2 .icobox image{width: 1.6em; height:1.6em; margin-top: .75em; margin-left: 0.6em;}
.searchbox2 .icobox0{width:auto; padding:0 0.5em; height:3em; font-size:1em; background: linear-gradient(to bottom, #ff401a, #ff401a); color:#fff;box-sizing:border-box;}
.searchbox2 .icobox0 image{float:left; margin-left: 0em; width: 1.6em; height:1.6em; margin-top: .75em;}
.searchbox2 .icobox0 text{float:left;display: block; width:auto;height:3em; line-height:3em; color:#fff;}
.nodata{padding-top:1em; text-align: center; line-height: 1.5em; color:#939393;}
.nodata image {
width: 80px;
height: 80px;
}