This commit is contained in:
老叶
2021-07-05 13:58:26 +08:00
parent d35252dffc
commit c6f8f75f1d
13 changed files with 174 additions and 60 deletions
+1
View File
@@ -9,6 +9,7 @@
.img-80x80{width:80rpx;height:80rpx;box-sizing:border-box;}
.img-100x100{width:100rpx;height:100rpx;box-sizing:border-box;}
.img-120x120{width:120rpx;height:120rpx;box-sizing:border-box;}
.img-135x135{width:135rpx;height:135rpx;box-sizing:border-box;}
.img-140x140{width:140rpx;height:140rpx;box-sizing:border-box;}
.img-160x160{width:160rpx;height:160rpx;box-sizing:border-box;}
.img-250x250{width:250rpx;height:250rpx;box-sizing:border-box;}
+3 -2
View File
@@ -65,8 +65,9 @@
.img-center-middle-100{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;transform:translate(-50%,-50%);}
.fiximg{max-width:100%;}
.box-shadow-darkGray{box-shadow:0 0 10rpx rgba(0,0,0,.15);}
.box-shadow-lightGray{box-shadow:0 0 10rpx rgba(0,0,0,.08);}
.box-shadow-000-10-10{box-shadow:0 0 10rpx rgba(0,0,0,.10);}
.box-shadow-000-10-15{box-shadow:0 0 10rpx rgba(0,0,0,.15);}
.box-shadow-000-20-8{box-shadow:0 0 20rpx rgba(0,0,0,.08);}
/*layer*/
.content-pop-cover{position:fixed;top:0;bottom:0;right:0;left:0;background:rgba(0,0,0,0.6);z-index:999; }
+1
View File
@@ -92,6 +92,7 @@
.pr160{padding-right:160rpx;}
.pr180{padding-right:180rpx;}
.pr200{padding-right:200rpx;}
.pr250{padding-right:250rpx;}
.pb0{padding-bottom:0;}
.pb2{padding-bottom:2rpx;}
.pb5{padding-bottom:5rpx;}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
<view class="container">
<view class="inner30">
<view class="pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-lightGray overflowhidden">
<view class="pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
<view class="relative bbs-1-eb last-b-none pl140 font-28">
<view class="absolute left-0 box-middle">客户姓名</view>
<view>
+1 -1
View File
@@ -1,6 +1,6 @@
<view class="container">
<view class="inner40">
<view class="inner40 relative ulib-r10 box-shadow-lightGray mb30 overflowhidden">
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden">
<view class="absolute top-0 left-0 width-25 mt40 pt5 pb5 bg-36afa2 line-height-13 font-22 color-fff">潜客</view>
<view class="relative pr180">
<view class="font-32">
+1 -1
View File
@@ -38,7 +38,7 @@
<view class="mt10 pl30 pr30">
<block wx:for='{{list}}' wx:key='index'>
<view class="inner40 relative ulib-r10 box-shadow-lightGray mb30 overflowhidden" bindtap="pushLink" data-url="{{item.url}}">
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="{{item.url}}">
<view class="relative pr180">
<view class="font-32">
<text>{{item.cust_name}}</text>
+82 -46
View File
@@ -1,66 +1,102 @@
// pages/mine/index.js
import _ from '../../commons/js/commons'
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
imgUrl:_.config.imgUrl,
list:[
{
head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',
name:'逆行的光',
id:0,
},
{
head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',
name:'逆行的光',
id:0,
},
{
head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',
name:'逆行的光',
id:0,
},
{
head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',
name:'逆行的光',
id:0,
},
{
head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',
name:'逆行的光',
id:0,
},
],
isShowAddStaff:false,
name:'',
mobile:'',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
// 输入
inputTx(e) {
this.setData({
[e.currentTarget.dataset.key]: e.detail.value
})
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
//显示新增员工
showAddStaff(){
this.setData({
isShowAddStaff:true,
name:'',
mobile:'',
})
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
//新增员工
addStaff(){
let list = this.data.list
list.push({name:'添加',head:'http://img.cms.xmfish.com/data/upload/20217/file_1625105711.jpg',}),
this.setData({
list:list,
isShowAddStaff:false,
})
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
//暂停
suspend(){
wx.showModal({
title: '',
content: '确定暂停该店员账号吗?',
confirmColor: '#36afa2',
success (res) {
if (res.confirm) {
console.log('用户点击确定')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
//删除
delete(){
wx.showModal({
title: '',
content: '确定删除该店员账号吗?',
confirmColor: '#36afa2',
success (res) {
if (res.confirm) {
console.log('用户点击确定')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
}
})
+5 -1
View File
@@ -1,3 +1,7 @@
{
"usingComponents": {}
"navigationBarTitleText": "我的",
"enablePullDownRefresh": true,
"usingComponents": {
}
}
+61 -2
View File
@@ -1,2 +1,61 @@
<!--pages/mine/index.wxml-->
<text>pages/mine/index.wxml</text>
<view class="container">
<view class="inner30">
<view class="wp100 pt5 pb5 bg-fff img-fill-cover box-shadow-000-10-10 ulib-r10" style="background-image: url({{imgUrl}}mine/theme.jpg);">
<view class="relative inner40">
<view class="img-135x135 bds-1-eb ulib-r750 overflowhidden">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class="absolute left-0 right-0 box-middle pl200">
<view class="text-bold font-32">
<open-data type="userNickName"></open-data>
</view>
<view class="mt10 font-22 color-666">积分:0</view>
</view>
</view>
</view>
</view>
<view class="pl30">
<view class="mt20 font-22 relative">
<i class="iconfont icon-renyuanguanli mr10"></i>人员管理
<view bindtap="showAddStaff" class="absolute right-0 box-middle pt5 pb5 pl10 pr30 space-nowrap bg-333 font-22 color-fff ulib-rl750"><i class="iconfont mr5 icon-jia"></i>添加人员</view>
</view>
</view>
<view class="inner30">
<view class="pl40 pr40 pt30 pb10 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="fn-flex font-22 text-center color-666">
<view class="fn-flex-item">店员</view>
<view class="fn-flex-item">操作</view>
</view>
<block wx:for="{{list}}" wx:key='index'>
<view class="relative pt30 pb30 pr250 bbs-1-eb last-b-none">
<view class="text-nowrap">
<image class='img-50x50 bds-1-eb ulib-r750 text-middle' lazy-load="{{true}}" mode="scaleToFill" src="{{item.head}}"></image>
<text class="pl10 text-middle font-28">{{item.name}}</text>
</view>
<view class="absolute right-0 box-middle">
<view class="inline-block bg-333 mr20 pt5 pb5 pl10 pr10 font-22 color-fff ulib-r750" bindtap="suspend" data-index="{{index}}"><i class="iconfont icon-zanting mr5"></i>暂停</view>
<view class="inline-block bg-333 pt5 pb5 pl10 pr10 font-22 color-fff ulib-r750" bindtap="delete" data-index="{{index}}"><i class="iconfont icon-shanchu mr5"></i>删除</view>
</view>
</view>
</block>
</view>
</view>
</view>
<lcb-footer></lcb-footer>
<lcb-msg isShow="{{isShowAddStaff}}">
<view slot="content" class="inner40 text-center">
<view class="pt10 pb10 font-36">新增员工</view>
<view class="pt20 pb10">
<input class="wp100 bg-f6 font-32 ulib-r750" placeholder-class="color-ccc" type="number" placeholder="请输入店员名称" bindinput='inputTx' data-key='name' value='{{name}}' style="height:90rpx" />
</view>
<view class="pt10 pb20">
<input class="wp100 bg-f6 font-32 ulib-r750" placeholder-class="color-ccc" type="number" placeholder="请输入店员手机号" bindinput='inputTx' data-key='mobile' value='{{mobile}}' style="height:90rpx" />
</view>
<view class="pt20 pb10 pl100 pr100 text-center">
<button class="btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="addStaff">添加</button>
</view>
</view>
</lcb-msg>
+1 -1
View File
@@ -4,7 +4,7 @@
<view class="fn-fl"><i class="iconfont icon-yonghu mr10"></i>用户信息</view>
<view class="fn-fr">销售顾问:<text class="color-36afa2">王小胖</text></view>
</view>
<view class="mt30 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-lightGray overflowhidden">
<view class="mt30 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
<view class="pt30 pb30 font-28">
<view class="font-32">林先生</view>
<view class="mt5 font-22 color-666">手机号:134*****382</view>
+1 -1
View File
@@ -31,7 +31,7 @@
<view class="mt30 pl30 pr30">
<block wx:for='{{list}}' wx:key='index'>
<view class="inner40 relative ulib-r10 box-shadow-lightGray mb30 overflowhidden" bindtap="pushLink" data-url="{{item.url}}">
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="{{item.url}}">
<view class="relative pr180">
<view class="font-32">
<text>{{item.cust_name}}</text>
+1 -1
View File
@@ -4,7 +4,7 @@
<view class="fn-fl"><i class="iconfont icon-yonghu mr10"></i>用户信息</view>
<view class="fn-fr">销售顾问:<text class="color-36afa2">王小胖</text></view>
</view>
<view class="mt30 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-lightGray overflowhidden">
<view class="mt30 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
<view class="pt50 pb50 font-28" wx:if="{{customerIndex == -1}}">请选择客户</view>
<view class="pt30 pb30 font-28" wx:else>
<view class="font-32">{{customer[customerIndex].title}}</view>