This commit is contained in:
2024-08-22 12:53:28 +08:00
commit 1d65a849fd
360 changed files with 41757 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
var t = getApp();
Page({
data: {
data: []
},
onLoad: function(t) {},
onShow: function() {
this.getDailiList();
},
getDailiList: function(a) {
var i = this;
t._get("user/getdaililist", {}, function(t) {
t.data.list.length && wx.pageScrollTo({
scrollTop: 0
}), i.setData({
data: t.data.list
});
});
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "下级代理列表",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,37 @@
<view class="container m-b5">
<view class="goods-detail-box">
<scroll-view scrollY="{{true}}">
<view class="wrapper">
<view wx:if="{{data.length}}">
<view class="m-top20 " wx:for="{{data}}" wx:key="this">
<view class="order-box b-f">
<view class="order-header dis-flex">
<view class="flex-box t-l">
<text class="title">{{item.nickName}}</text>
</view>
</view>
</view>
<view class="order-box b-f">
<view class="order-cont dis-flex">
<view class="order-box">
<view class="order-num">
<text>手机号:{{item.phone}}</text>
</view>
<view class="order-time">
<text>注册时间:{{item.create_time}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="yoshop-notcont">
<text class="iconfont icon-ziyuan"></text>
<text class="cont">亲,您还没有下级哦!</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>

View File

@@ -0,0 +1,151 @@
.header {
background: #fff;
border-bottom: 1rpx solid #e4e4e4;
display: flex;
height: 44px;
line-height: 44px;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.header view {
flex: 1;
text-align: center;
}
.header .active {
color: #fd4a5f;
}
.wrapper {
margin-top: 54px;
}
.order-box {
padding: 0 15px;
}
.order-header {
padding-top: 10rpx;
}
.order-header .title {
color: #333;
font-size: 30rpx;
}
.order-header .cont {
color: #fd4a5f;
font-size: 30rpx;
}
.order-cont {
justify-content: space-between;
padding: 15rpx 0;
}
.order-cont .order-num text,.order-cont .order-time text {
color: #777;
font-size: 26rpx;
}
.order-shop {
padding: 16rpx 0;
}
.order-shop-left,.order-shop-left image {
background: #fff;
display: inline-block;
height: 160rpx;
margin-right: 15rpx;
width: 160rpx;
}
.order-shop .num {
float: right;
}
.order-btn {
padding: 18rpx 0;
}
.order-btn .order-left {
flex: 3;
}
.order-btn .order-left .text,.order-btn .order-left text {
font-size: 30rpx;
}
.order-btn .order-left .text {
color: #777;
}
.order-btn .order-right {
flex: 1.5;
}
.order-list-box .left {
flex: 4;
overflow: hidden;
position: relative;
}
.order-list-box .right {
flex: 1;
}
.goods-number {
color: #777;
font-size: 28rpx;
position: absolute;
right: 12px;
top: 35%;
}
.btn-default {
border: 1rpx solid #ccc;
border-radius: 4px;
color: #555;
}
.btn-default,.btn-main {
float: right;
font-size: 28rpx;
padding: 6rpx 20rpx;
}
.btn-main {
border: 1rpx solid #fd4a5f;
border-radius: 4px;
color: #fd4a5f;
margin-left: 10rpx;
}
.user-orderJtou {
color: #888;
font-size: 24rpx;
margin-top: -20rpx;
position: absolute;
right: 0;
top: 50%;
}
.order-img_list {
background: #fff;
border-bottom: 1rpx solid #f1f1f1;
border-top: 1rpx solid #f1f1f1;
}
.order-right-name {
color: #555;
font-size: 30rpx;
left: 180rpx;
line-height: 1.6;
margin-top: -46rpx;
position: absolute;
top: 50%;
width: 100%;
}

View File

@@ -0,0 +1,17 @@
var t = getApp();
Page({
data: {
list: []
},
onLoad: function(t) {},
onShow: function() {
this.getHelpList();
},
getHelpList: function() {
var a = this;
t._get("wxapp/help", {}, function(t) {
a.setData(t.data);
});
}
});

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "帮助",
"usingComponents": {}
}

View File

@@ -0,0 +1,10 @@
<view class="container">
<view class="help cont-box b-f" wx:for="{{list}}" wx:key="this">
<view>
<text class="h4">{{item.title}}</text>
</view>
<view>
<text class="p">{{item.content}}</text>
</view>
</view>
</view>

View File

@@ -0,0 +1,14 @@
.help {
border-bottom: 1px solid #f6f6f9;
}
.help .h4 {
color: #333;
font-size: 32rpx;
margin-bottom: 5px;
}
.help .p {
color: #666;
font-size: 26rpx;
}

View File

@@ -0,0 +1,134 @@
require("../../@babel/runtime/helpers/Arrayincludes");
var e = getApp();
Page({
data: {
isadmin: !1,
isLogin: !1,
nocancel: !1,
showCodeImg: !0,
qrcode: "",
qrcodeTitle: "",
userInfo: {},
orderCount: {},
sh: !1,
yu: "00.00"
},
onLoad: function(e) {
var t = wx.getStorageSync("storedata");
t && (console.log(t), this.setData({
sh: t.sh
})), this.getqian();
},
cancel: function() {
this.setData({
showCodeImg: !0
});
},
confirm: function() {
this.setData({
showCodeImg: !0
});
},
onShow: function() {
if (this.setData({
isLogin: e.checkIsLogin()
}), this.data.isLogin) {
var t = wx.getStorageSync("phone"), n = wx.getStorageSync("storedata");
if (!t && n.sh) return void wx.navigateTo({
url: "../phone/phone"
});
this.getUserDetail(), this.getqian();
}
},
getUserDetail: function() {
var t = this, n = wx.getStorageSync("values");
e._get("user.index/detail", {}, function(e) {
t.setData(e.data), "" != e.data.userInfo.phone && n.includes(e.data.userInfo.phone) && t.setData({
isadmin: !0
});
});
},
getCode: function(t) {
var n = this;
if (!n.onCheckLogin()) return !1;
n.setData({
qrcode: ""
});
var i = wx.getStorageSync("user_id"), o = t.currentTarget.dataset.type, a = "";
"a" == o || "b" == o ? a = "邀请经销商" : "c" == o && (a = "邀请分销商"), e._get("user.index/getCode", {
codeType: o,
uid: i
}, function(e) {
console.log(e), 1 == e.code && n.setData({
showCodeImg: !1,
qrcodeTitle: a,
qrcode: e.data.base64String.replace(/[\r\n]/g, "")
});
});
},
onTargetOrder: function(e) {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: {
all: "/pages/order/index?type=all",
payment: "/pages/order/index?type=payment",
delivery: "/pages/order/index?type=delivery",
received: "/pages/order/index?type=received"
}[e.currentTarget.dataset.type]
});
},
getqian: function() {
var t = this;
e._get("user/userqian", {}, function(e) {
t.setData({
yu: e.data.yu
});
});
},
ontx: function() {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/pages/user/tx"
});
},
ontxlist: function() {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/pages/user/txlist"
});
},
onyongjinjilu: function() {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/pages/user/onyongjinjilu"
});
},
onTargetDailiList: function(e) {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/pages/user/daililist"
});
},
onTargetYonghuList: function(e) {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/pages/user/yonghulist"
});
},
onTargetMenus: function(e) {
if (!this.onCheckLogin()) return !1;
wx.navigateTo({
url: "/" + e.currentTarget.dataset.url
});
},
onLogin: function() {
wx.navigateTo({
url: "../login/login"
});
},
onCheckLogin: function() {
return !!this.data.isLogin || (e.showError("很抱歉,您还没有登录"), !1);
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "个人中心",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,225 @@
<view class="container">
<view class="user">
<view class="user-header" style="background-image: url('/images/user-bg.png');">
<view class="user-header-cont" wx:if="{{isLogin}}">
<view class="user-header-avatar">
<image src="{{userInfo.avatarUrl}}"></image>
</view>
<view style="font-size: 28rpx; color: black;">
<view> 昵称:{{userInfo.nickName}} </view>
<view> 用户ID{{userInfo.user_id}} </view>
<view> 手机号:{{userInfo.phone}} </view>
<view> 用户身份: <text wx:if="{{userInfo.utype==1}}">经销商</text>
<text wx:if="{{userInfo.utype==2}}">分销商</text>
<text wx:if="{{userInfo.utype==3}}">一级分销商</text>
</view>
</view>
</view>
<view catchtap="onLogin" class="user-header-cont" wx:else>
<view class="user-header-avatar">
<image src="/images/default-avatar.jpg"></image>
</view>
<view class="user-header-cont-name">点击登录</view>
</view>
</view>
<view class="order-navbar">
<form bindsubmit="onTargetOrder" data-type="all">
<button class="btn-normal" formType="submit">
<view class="order-navbar-header dis-flex">
<text class="f-30">我的订单</text>
<view class="dis-flex flex-y-center">
<text class="f-24 col-6">全部订单</text>
<text class="iconfont icon-xiangyoujiantou user-orderJtou"></text>
</view>
</view>
</button>
</form>
<view class="order-navbar-footer dis-flex m-top10">
<view class="order-navbar-item flex-box">
<form bindsubmit="onTargetOrder" data-type="all">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name">全部订单</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box">
<form bindsubmit="onTargetOrder" data-type="payment">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-daifukuan"></text>
<text class="order-navbar__name">待付款</text>
<text class="order-badge" wx:if="{{orderCount.payment>0}}">{{orderCount.payment}}</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box">
<form bindsubmit="onTargetOrder" data-type="delivery">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-daishouhuo"></text>
<text class="order-navbar__name">待发货</text>
<text class="order-badge" wx:if="{{orderCount.delivery>0}}">{{orderCount.delivery}}</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box">
<form bindsubmit="onTargetOrder" data-type="received">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-edit"></text>
<text class="order-navbar__name">待收货</text>
<text class="order-badge" wx:if="{{orderCount.received>0}}">{{orderCount.received}}</text>
</button>
</form>
</view>
</view>
<view class="order-navbar-footer dis-flex m-top10" wx:if="{{sh}}">
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype==1}}">
<form bindsubmit="getCode" data-type="a">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 邀请码</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype==2||userInfo.utype==3}}">
<form bindsubmit="getCode" data-type="b">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 经销商邀请码</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype==2||userInfo.utype==3}}">
<form bindsubmit="onTargetYonghuList" data-type="">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 下级客户</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype==3}}">
<form bindsubmit="getCode" data-type="c">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-daifukuan"></text>
<text class="order-navbar__name">分销商邀请码</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype==3}}">
<form bindsubmit="onTargetDailiList" data-type="">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-daifukuan"></text>
<text class="order-navbar__name">下级代理</text>
</button>
</form>
</view>
<modal bindcancel="cancel" bindconfirm="confirm" cancelText="取消" confirmText="确定" hidden="{{showCodeImg}}" noCancel="{{nocancel}}" title="{{qrcodeTitle}}">
<view>
<image class="qrimg" mode="aspectFill" src="{{qrcode}}"></image>
</view>
<view style=" padding-top:20rpx;text-align: center;">请截图保存到相册</view>
</modal>
</view>
<view class="order-navbar-footer dis-flex m-top10" wx:if="{{sh}}">
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype!=1}}">
<form>
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon">{{yu}}</text>
<text class="order-navbar__name">钱包</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box" wx:if="{{userInfo.utype!=1}}">
<form bindsubmit="onyongjinjilu" data-type="a">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 佣金记录</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box">
<form bindsubmit="ontx" data-type="a" wx:if="{{userInfo.utype!=1}}">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 申请提现</text>
</button>
</form>
</view>
<view class="order-navbar-item flex-box">
<form bindsubmit="ontxlist" data-type="a" wx:if="{{userInfo.utype!=1}}">
<button class="btn-normal" formType="submit">
<text class="order-navbar__icon iconfont icon-form"></text>
<text class="order-navbar__name"> 提现记录</text>
</button>
</form>
</view>
</view>
</view>
</view>
<view class="menus-list" style="margin-top:400rpx">
<form bindsubmit="onTargetMenus" data-url="pages/aftermarket/index">
<button class="btn-normal" formType="submit">
<view class="menus-item dis-flex b-f">
<view class="menus-item__left flex-box dis-flex flex-y-center">
<text class="iconfont icon-icon_service f-34"></text>
<text class="menus-item__name f-30">售后订单</text>
</view>
<view class="menus-item__right flex-box dis-flex flex-x-end flex-y-center">
<text class="iconfont icon-xiangyoujiantou f-26 col-7"></text>
</view>
</view>
</button>
</form>
<form bindsubmit="onTargetMenus" data-url="pages/address/index">
<button class="btn-normal" formType="submit">
<view class="menus-item dis-flex b-f">
<view class="menus-item__left flex-box dis-flex flex-y-center">
<text class="iconfont icon-map f-34"></text>
<text class="menus-item__name f-30">收货地址</text>
</view>
<view class="menus-item__right flex-box dis-flex flex-x-end flex-y-center">
<text class="iconfont icon-xiangyoujiantou f-26 col-7"></text>
</view>
</view>
</button>
</form>
<form bindsubmit="onTargetMenus" data-url="pages/user/help">
<button class="btn-normal" formType="submit">
<view class="menus-item dis-flex b-f">
<view class="menus-item__left flex-box dis-flex flex-y-center">
<text class="iconfont icon-help f-34"></text>
<text class="menus-item__name f-30">我的帮助</text>
</view>
<view class="menus-item__right flex-box dis-flex flex-x-end flex-y-center">
<text class="iconfont icon-xiangyoujiantou f-26 col-7"></text>
</view>
</view>
</button>
</form>
<form>
<button class="btn-normal" openType="contact">
<view class="menus-item dis-flex b-f">
<view class="menus-item__left flex-box dis-flex flex-y-center">
<text class="iconfont icon-icon_service f-34"></text>
<text class="menus-item__name f-30">联系客服</text>
</view>
<view class="menus-item__right flex-box dis-flex flex-x-end flex-y-center">
<text class="iconfont icon-xiangyoujiantou f-26 col-7"></text>
</view>
</view>
</button>
</form>
<form bindsubmit="onTargetMenus" data-url="pages/gongzuo/index" wx:if="{{isadmin}}">
<button class="btn-normal" formType="submit">
<view class="menus-item dis-flex b-f">
<view class="menus-item__left flex-box dis-flex flex-y-center">
<text class="iconfont icon-icon_service f-34"></text>
<text class="menus-item__name f-30">工作台</text>
</view>
<view class="menus-item__right flex-box dis-flex flex-x-end flex-y-center">
<text class="iconfont icon-xiangyoujiantou f-26 col-7"></text>
</view>
</view>
</button>
</form>
</view>
</view>

View File

@@ -0,0 +1,123 @@
.user {
background: #fff;
margin-bottom: 150rpx;
position: relative;
}
.user-header {
align-content: center;
background-color: #fd0;
background-position: 100%;
background-repeat: no-repeat;
background-size: auto 100%;
display: flex;
height: 310rpx;
padding-top: 1px;
width: 100%;
}
.user-header .user-header-cont {
align-items: center;
display: flex;
margin: auto auto 135rpx;
width: 79%;
}
.user-header .user-header-cont .user-header-avatar {
border: 5rpx solid #fff;
border-radius: 50%;
display: block;
height: 120rpx;
margin-right: 30rpx;
overflow: hidden;
width: 120rpx;
}
.user-header .user-header-cont .user-header-avatar image {
border-radius: 50%;
height: 120rpx;
width: 120rpx;
}
.user-header .user-header-cont .user-header-cont-name {
font-size: 32rpx;
padding: 20rpx 0;
}
.order-navbar {
background: #fff;
border-radius: 5rpx;
border-top: 1rpx solid #eee;
bottom: -370rpx;
box-shadow: 0 1rpx 5rpx 0 rgba(0,0,0,.05);
font-size: 30rpx;
left: 19rpx;
margin: auto;
padding: 15rpx 0;
position: absolute;
width: 95%;
}
.order-navbar-header {
align-items: center;
border-bottom: 1px solid #eee;
height: 70rpx;
justify-content: space-between;
margin: auto;
padding-bottom: 10rpx;
width: 91%;
}
.order-navbar-footer {
padding: 10rpx 0;
width: 100%;
}
.order-navbar-footer .order-navbar-item .order-navbar__icon {
color: #000;
display: block;
font-size: 36rpx;
margin: 0 auto;
padding: 10rpx 0;
text-align: center;
}
.order-navbar-footer .order-navbar-item .order-navbar__name {
color: #666;
display: block;
font-size: 24rpx;
margin-right: 10rpx;
text-align: center;
}
.order-navbar-footer .order-navbar-item .order-badge {
background: #ff495e;
border-radius: 100%;
color: #fff;
font-size: 22rpx;
line-height: 28rpx;
min-height: 30rpx;
min-width: 30rpx;
padding: 1rpx;
position: absolute;
right: 55rpx;
text-align: center;
top: 0;
}
.menus-list .menus-item {
border-bottom: 1rpx solid #eee;
padding: 28rpx;
position: relative;
}
.menus-list .menus-item .menus-item__name {
color: #444;
margin-left: 20rpx;
}
.qrimg {
height: 540rpx;
margin-left: -33rpx;
width: 620rpx;
}

View File

@@ -0,0 +1,43 @@
var t = getApp();
Page({
data: {
data: [],
isLogin: !1,
userInfo: {}
},
onLoad: function(t) {
this.getYonghuList();
},
onShow: function() {
this.getYonghuList();
},
toDate: function(t, e) {
var n = new Date(t), o = n.getFullYear(), i = n.getMonth() + 1 < 10 ? "0" + (n.getMonth() + 1) : n.getMonth() + 1, s = n.getDate() < 10 ? "0" + n.getDate() : n.getDate(), g = n.getHours() < 10 ? "0" + n.getHours() : n.getHours(), a = n.getMinutes() < 10 ? "0" + n.getMinutes() : n.getMinutes(), u = n.getSeconds() < 10 ? "0" + n.getSeconds() : n.getSeconds();
return "1" == e ? o + "-" + i + "-" + s + " " + g + ":" + a + ":" + u : "2" == e ? o + "-" + i + "-" + s : void 0;
},
getYonghuList: function(e) {
var n = this;
t._get("user/yongjinjilu", {}, function(t) {
t.data.list.length && wx.pageScrollTo({
scrollTop: 0
});
var e = t.data.list, o = [];
e.forEach(function(t, e) {
t.commission = t.commission / 100, 2 == t.status && (t.settlement_time = n.toDate(1e3 * t.settlement_time, 1)),
o.push(t);
}), n.setData({
data: o
});
});
},
getUserDetail: function() {},
onLogin: function() {
wx.navigateTo({
url: "../login/login"
});
},
onCheckLogin: function() {
return !!this.data.isLogin || (t.showError("很抱歉,您还没有登录"), !1);
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "佣金记录",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,46 @@
<view class="container m-b5">
<view class="goods-detail-box">
<scroll-view scrollY="{{true}}">
<view class="wrapper">
<view wx:if="{{data.length}}">
<view class="m-top20 " wx:for="{{data}}" wx:key="this">
<view class="order-box b-f">
<view class="order-header dis-flex">
<view class="flex-box t-l">
<text class="title">{{item.nickName}}</text>
</view>
</view>
</view>
<view class="order-box b-f">
<view class="order-cont dis-flex">
<view class="order-box">
<view class="order-num">
<text>金额:{{item.commission}}</text>
</view>
<view class="order-time">
<text>分佣时间:{{item.create_time}}</text>
</view>
<view class="order-time">
<view>状态: <text style="color: red;" wx:if="{{item.status==1}}">未结算</text>
<text style="color: green;" wx:if="{{item.status==2}}">已结算</text>
<text style="color: grey;" wx:if="{{item.status==3}}">无效</text>
</view>
</view>
<view class="order-time" wx:if="{{item.status==2}}">
<text>结算时间:{{item.settlement_time}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="yoshop-notcont">
<text class="iconfont icon-ziyuan"></text>
<text class="cont">亲,您还没有记录哦!</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>

View File

@@ -0,0 +1,67 @@
require("../../@babel/runtime/helpers/Arrayincludes");
var e = getApp();
Page({
data: {
isLogin: !1,
userInfo: {}
},
onLoad: function(o) {
if (console.log(o), o.scene) {
var t = decodeURIComponent(o.scene), n = this.urlParamToJson(t);
wx.setStorageSync("she", n), console.log(n), console.log(t);
}
if (e._get("wxapp/base", {}, function(e) {
wx.setStorageSync("wxapp", e.data.wxapp), console.log("sss", e), wx.setStorageSync("storedata", e.data.shdata),
wx.setStorageSync("values", e.data.values);
}, !1, !1), console.log(123), this.setData({
isLogin: e.checkIsLogin()
}), this.data.isLogin) {
console.log(222);
var a = wx.getStorageSync("phone"), s = wx.getStorageSync("storedata");
if (!a && s.sh) return void wx.navigateTo({
url: "../phone/phone"
});
this.getUserDetail(), console.log("xxxxxxx"), wx.switchTab({
url: "../index/index"
});
}
},
urlParamToJson: function(e) {
var o = {};
return e.trim().split("&").forEach(function(e) {
return o[e.split("=")[0]] = e.split("=")[1];
}), o;
},
onShow: function() {
console.log("show");
if (this.setData({
isLogin: e.checkIsLogin()
}), this.data.isLogin) {
var o = wx.getStorageSync("phone"), t = wx.getStorageSync("storedata");
if (!o && t.sh) return void wx.navigateTo({
url: "../phone/phone"
});
console.log("show获取当前用户信息"), this.getUserDetail(), console.log("show准备跳转主页了"), wx.switchTab({
url: "../index/index"
});
}
},
getUserDetail: function() {
var o = this, t = wx.getStorageSync("values");
e._get("user.index/detail", {}, function(e) {
o.setData(e.data), "" != e.data.userInfo.phone && t.includes(e.data.userInfo.phone) && o.setData({
isadmin: !0
});
});
},
onLogin: function() {
wx.navigateTo({
url: "../login/login"
});
},
onCheckLogin: function() {
return !!this.data.isLogin || (e.showError("很抱歉,您还没有登录"), !1);
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "跳转页面",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,8 @@
<view class="container">
<view class="user">
<view class="user-header-cont" wx:if="{{isLogin}}"> 123 </view>
<view catchtap="onLogin" class="user-header-cont" wx:else>
<view style=" border-radius: 10rpx; height: 80rpx; line-height: 80rpx; background: red; color: seashell; width: 200rpx;text-align: center; margin: 0 auto; margin-top: 400rpx;">点击登录</view>
</view>
</view>
</view>

View File

View File

@@ -0,0 +1,26 @@
var a = getApp();
Page({
data: {
disabled: !1,
zfb: "",
phone: "",
je: "",
error: ""
},
onLoad: function(a) {},
saveData: function(e) {
var t = this, o = e.detail.value;
"" !== o.zfb ? o.phone.length < 1 ? a.showError("手机号不能为空") : o.je.length < 1 ? a.showError("提现金额不能为空") : (t.setData({
disabled: !0
}), a._post_form("user/tx", o, function(e) {
a.showSuccess(e.msg, function() {
wx.navigateBack();
});
}, !1, function() {
t.setData({
disabled: !1
});
})) : a.showError("支福包帐号为空");
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "申请提现",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,35 @@
<view class="container">
<view class="common-header-xian"></view>
<form bindsubmit="saveData">
<view class="address-cont-title b-f b-b">
<view class="list address-box dis-flex b-b">
<view class="left-name">
<text class="f-30">支福包</text>
</view>
<view class="right-cont flex-box">
<input name="zfb" placeholder="请输入支福包帐号" value="{{zfb}}"></input>
</view>
</view>
<view class="list address-box dis-flex b-b">
<view class="left-name">
<text class="f-30">手机号</text>
</view>
<view class="right-cont flex-box">
<input name="phone" placeholder="请输入手机号" type="number" value="{{phone}}"></input>
</view>
</view>
<view class="list address-box dis-flex b-b">
<view class="left-name">
<text class="f-30">金额</text>
</view>
<view class="right-cont flex-box">
<input name="je" placeholder="请输入金额" type="number" value="{{je}}"></input>
</view>
</view>
</view>
<view class="padding-box m-top20 profile-btn">
<button disabled="{{disabled}}" formType="submit">保存</button>
</view>
</form>
</view>
<shortcut></shortcut>

View File

@@ -0,0 +1,172 @@
.profile-list .admin {
color: #333;
font-size: 30rpx;
padding-left: 15px;
}
.address-box .left-name {
width: 85px;
}
.address-cont-title .list {
padding: 24rpx;
width: auto;
}
.tui-picker-detail text {
padding: 0 10rpx;
}
.infoText {
display: block;
line-height: 56rpx;
}
picker-view {
background-color: #fff;
bottom: 0;
height: 480rpx;
padding: 0;
position: fixed;
width: 100%;
}
picker-view-column view {
align-items: center;
display: flex;
font-size: 28rpx;
height: 100%;
justify-content: center;
line-height: 28rpx;
vertical-align: middle;
}
.animation-element-wrapper {
height: 100%;
left: 0;
top: 0;
z-index: 21;
}
.animation-element,.animation-element-wrapper {
display: flex;
position: fixed;
width: 100%;
}
.animation-element {
background-color: #fff;
bottom: 0;
height: 570rpx;
}
.animation-button {
align-items: center;
height: 100rpx;
line-height: 100rpx;
margin-top: 20rpx;
top: 20rpx;
width: 400rpx;
}
.address-text {
color: #999;
display: inline-flex;
font-family: Arial,Helvetica,sans-serif;
font-size: 30rpx;
height: 50rpx;
line-height: 50rpx;
margin-top: 20rpx;
position: fixed;
text-align: center;
}
.left-bt {
left: 30rpx;
}
.right-bt {
color: #ec5151;
right: 30rpx;
}
.line {
background-color: #eee;
display: block;
height: 1rpx;
margin-top: 89rpx;
position: fixed;
width: 100%;
}
.address-box .right-cont input {
color: #444;
font-size: 30rpx;
width: 100%;
}
.bargain-commont-bg {
background: rgba(0,0,0,.6);
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 20;
}
.f-34 {
font-size: 34rpx;
}
.f-32 {
font-size: 32rpx;
}
.f-31 {
font-size: 31rpx;
}
.f-28 {
font-size: 28rpx;
}
.f-26 {
font-size: 26rpx;
}
.f-24 {
font-size: 24rpx;
}
.f-22 {
font-size: 22rpx;
}
.b-r {
border-right: 1rpx solid #eee;
}
.b-b {
border-bottom: 1rpx solid #eee;
}
.b-t {
border-top: 1rpx solid #eee;
}
.m-top4 {
margin-top: 4rpx;
}
.m-top10 {
margin-top: 10rpx;
}
.m-top20 {
margin-top: 25rpx;
}
.m-top35 {
margin-top: 35rpx;
}

View File

@@ -0,0 +1,42 @@
var t = getApp();
Page({
data: {
data: [],
isLogin: !1,
userInfo: {}
},
onLoad: function(t) {
this.getYonghuList();
},
onShow: function() {
this.getYonghuList();
},
toDate: function(t, e) {
var n = new Date(t), o = n.getFullYear(), i = n.getMonth() + 1 < 10 ? "0" + (n.getMonth() + 1) : n.getMonth() + 1, g = n.getDate() < 10 ? "0" + n.getDate() : n.getDate(), a = n.getHours() < 10 ? "0" + n.getHours() : n.getHours(), s = n.getMinutes() < 10 ? "0" + n.getMinutes() : n.getMinutes(), u = n.getSeconds() < 10 ? "0" + n.getSeconds() : n.getSeconds();
return "1" == e ? o + "-" + i + "-" + g + " " + a + ":" + s + ":" + u : "2" == e ? o + "-" + i + "-" + g : void 0;
},
getYonghuList: function(e) {
var n = this;
t._get("user/txjilu", {}, function(t) {
t.data.list.length && wx.pageScrollTo({
scrollTop: 0
});
var e = t.data.list, o = [];
e.forEach(function(t, e) {
t.qian = t.qian / 100, o.push(t);
}), n.setData({
data: o
});
});
},
getUserDetail: function() {},
onLogin: function() {
wx.navigateTo({
url: "../login/login"
});
},
onCheckLogin: function() {
return !!this.data.isLogin || (t.showError("很抱歉,您还没有登录"), !1);
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "提现记录",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,52 @@
<view class="container m-b5">
<view class="goods-detail-box">
<scroll-view scrollY="{{true}}">
<view class="wrapper">
<view wx:if="{{data.length}}">
<view class="m-top20 " wx:for="{{data}}" wx:key="this">
<view class="order-box b-f">
<view class="order-header dis-flex">
<view class="flex-box t-l">
<text class="title">{{item.nickName}}</text>
</view>
</view>
</view>
<view class="order-box b-f">
<view class="order-cont dis-flex">
<view class="order-box">
<view class="order-num">
<text>提现金额:{{item.qian}} 元</text>
</view>
<view class="order-num">
<text>支福包:{{item.zfb}}</text>
</view>
<view class="order-num">
<text>手机号:{{item.phone}}</text>
</view>
<view class="order-time">
<text>申请时间:{{item.create_time}}</text>
</view>
<view class="order-time">
<view>状态: <text style="color: red;" wx:if="{{item.type==3}}">拒绝</text>
<text style="color: green;" wx:if="{{item.type==2}}">已打款</text>
<text style="color: grey;" wx:if="{{item.type==1}}">等待审核中</text>
</view>
</view>
<view class="order-time" wx:if="{{item.type==3}}">
<text>拒绝原因:{{item.msg}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="yoshop-notcont">
<text class="iconfont icon-ziyuan"></text>
<text class="cont">亲,您还没有记录哦!</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>

View File

@@ -0,0 +1,21 @@
var t = getApp();
Page({
data: {
data: []
},
onLoad: function(t) {},
onShow: function() {
this.getYonghuList();
},
getYonghuList: function(a) {
var o = this;
t._get("user/getyonghulist", {}, function(t) {
t.data.list.length && wx.pageScrollTo({
scrollTop: 0
}), o.setData({
data: t.data.list
});
});
}
});

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "下级客户列表",
"navigationBarBackgroundColor": "#ffdd00",
"usingComponents": {}
}

View File

@@ -0,0 +1,37 @@
<view class="container m-b5">
<view class="goods-detail-box">
<scroll-view scrollY="{{true}}">
<view class="wrapper">
<view wx:if="{{data.length}}">
<view class="m-top20 " wx:for="{{data}}" wx:key="this">
<view class="order-box b-f">
<view class="order-header dis-flex">
<view class="flex-box t-l">
<text class="title">{{item.nickName}}</text>
</view>
</view>
</view>
<view class="order-box b-f">
<view class="order-cont dis-flex">
<view class="order-box">
<view class="order-num">
<text>手机号:{{item.phone}}</text>
</view>
<view class="order-time">
<text>注册时间:{{item.create_time}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="yoshop-notcont">
<text class="iconfont icon-ziyuan"></text>
<text class="cont">亲,您还没有下级哦!</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>

View File

@@ -0,0 +1,151 @@
.header {
background: #fff;
border-bottom: 1rpx solid #e4e4e4;
display: flex;
height: 44px;
line-height: 44px;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.header view {
flex: 1;
text-align: center;
}
.header .active {
color: #fd4a5f;
}
.wrapper {
margin-top: 54px;
}
.order-box {
padding: 0 15px;
}
.order-header {
padding-top: 10rpx;
}
.order-header .title {
color: #333;
font-size: 30rpx;
}
.order-header .cont {
color: #fd4a5f;
font-size: 30rpx;
}
.order-cont {
justify-content: space-between;
padding: 15rpx 0;
}
.order-cont .order-num text,.order-cont .order-time text {
color: #777;
font-size: 26rpx;
}
.order-shop {
padding: 16rpx 0;
}
.order-shop-left,.order-shop-left image {
background: #fff;
display: inline-block;
height: 160rpx;
margin-right: 15rpx;
width: 160rpx;
}
.order-shop .num {
float: right;
}
.order-btn {
padding: 18rpx 0;
}
.order-btn .order-left {
flex: 3;
}
.order-btn .order-left .text,.order-btn .order-left text {
font-size: 30rpx;
}
.order-btn .order-left .text {
color: #777;
}
.order-btn .order-right {
flex: 1.5;
}
.order-list-box .left {
flex: 4;
overflow: hidden;
position: relative;
}
.order-list-box .right {
flex: 1;
}
.goods-number {
color: #777;
font-size: 28rpx;
position: absolute;
right: 12px;
top: 35%;
}
.btn-default {
border: 1rpx solid #ccc;
border-radius: 4px;
color: #555;
}
.btn-default,.btn-main {
float: right;
font-size: 28rpx;
padding: 6rpx 20rpx;
}
.btn-main {
border: 1rpx solid #fd4a5f;
border-radius: 4px;
color: #fd4a5f;
margin-left: 10rpx;
}
.user-orderJtou {
color: #888;
font-size: 24rpx;
margin-top: -20rpx;
position: absolute;
right: 0;
top: 50%;
}
.order-img_list {
background: #fff;
border-bottom: 1rpx solid #f1f1f1;
border-top: 1rpx solid #f1f1f1;
}
.order-right-name {
color: #555;
font-size: 30rpx;
left: 180rpx;
line-height: 1.6;
margin-top: -46rpx;
position: absolute;
top: 50%;
width: 100%;
}