first
This commit is contained in:
239
pageUser/index/components/user.vue
Normal file
239
pageUser/index/components/user.vue
Normal file
@@ -0,0 +1,239 @@
|
||||
<template>
|
||||
<view class=" goods">
|
||||
<view class="u-flex">
|
||||
<view class="u-flex u-col-top">
|
||||
<image v-if="data.headImg" :src="data.headImg" class="img"></image>
|
||||
<view class="img" v-else></view>
|
||||
</view>
|
||||
<view class="u-p-l-30 u-flex-1">
|
||||
<view class="u-flex">
|
||||
<view class="color-000 font-bold">{{data.nickName}}</view>
|
||||
<view class="color-999 u-m-l-40" @click="remark">备注</view>
|
||||
</view>
|
||||
<view class="u-m-t-6 u-flex u-row-between">
|
||||
<view class="vip isvip" v-if="data.isVip">会员</view>
|
||||
<view class=" vip noVip" v-else>非会员</view>
|
||||
<view class="color-main" @click="bindMoblie">绑定号码</view>
|
||||
</view>
|
||||
<view class="u-m-t-6 color-666 ">
|
||||
{{data.telephone||''}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="info u-m-t-20 u-flex">
|
||||
<view class="u-flex-1 u-text-center" @tap="toYue">
|
||||
<view class="font-bold color-000 pr-16" >{{data.amount}}</view>
|
||||
<view class="u-flex u-row-center" >
|
||||
<view class="color-999">余额</view>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex-1 u-text-center" @tap="toUser">
|
||||
<view class="font-bold color-000 pr-16">{{data.totalScore}}</view>
|
||||
<view class="u-flex u-row-center">
|
||||
<view class="color-999">积分</view>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex-1 u-text-center">
|
||||
<view class="font-bold color-000 pr-16">0</view>
|
||||
<view class="u-flex u-row-center">
|
||||
<view class="color-999">优惠券</view>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex-1 u-text-center">
|
||||
<view class="font-bold color-000 ">0.00</view>
|
||||
<view class="u-flex u-row-center">
|
||||
<view class="color-999">已消费</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="u-m-t-24 u-flex u-row-between">
|
||||
<view></view>
|
||||
<view class="u-flex">
|
||||
<view class="btn-default btn">查看订单</view>
|
||||
<view class="btn-primary btn u-m-l-38" @click="moreOperate">更多操作</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
} from 'vue';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import {ColorMain} from '@/commons/color.js'
|
||||
const emits=defineEmits(['remark','bindMoblie','moreOperate'])
|
||||
const props = defineProps({
|
||||
index:{
|
||||
type:Number
|
||||
},
|
||||
data:{
|
||||
type:Object,
|
||||
default:()=>{
|
||||
return{}
|
||||
}
|
||||
},
|
||||
showChecked:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
},
|
||||
showDetail:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
}
|
||||
})
|
||||
|
||||
function toUser(){
|
||||
go.to('PAGES_USER_INFO',{id:''})
|
||||
}
|
||||
function toYue(){
|
||||
go.to('PAGES_RECHARGE_INDEX',{id:''})
|
||||
}
|
||||
|
||||
function remark(){
|
||||
console.log(props.index);
|
||||
emits('remark',props.index)
|
||||
}
|
||||
function bindMoblie(){
|
||||
emits('bindMoblie',props.index)
|
||||
}
|
||||
function moreOperate(){
|
||||
emits('moreOperate',props.index)
|
||||
}
|
||||
//携带参数type edit跳转到商品添加页面,编辑与添加同一页面,根据type值来判断
|
||||
function toEdit(){
|
||||
go.to('PAGES_PRODUCT_ADD',{type:'edit'})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$imgSize: 126rpx;
|
||||
$price-color: #F02C45;
|
||||
.isvip{
|
||||
color: $my-main-color;
|
||||
background-color: rgb(234, 244, 255);
|
||||
}
|
||||
.pr-16{
|
||||
padding-right: 16px;
|
||||
}
|
||||
.info{
|
||||
background-color: rgb(250, 250, 250);
|
||||
padding: 20rpx;
|
||||
}
|
||||
.vip{
|
||||
padding:2rpx 6rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.noVip{
|
||||
background-color: #F9F9F9;
|
||||
color: #999;
|
||||
}
|
||||
.btn{
|
||||
padding: 10rpx 20rpx;
|
||||
border-radius: 100rpx;
|
||||
border: 2rpx solid transparent;
|
||||
}
|
||||
.btn-primary{
|
||||
border-color: $my-main-color;;
|
||||
color: $my-main-color;
|
||||
}
|
||||
.btn-default{
|
||||
border-color: #F4F4F4;
|
||||
color: #666;
|
||||
}
|
||||
.price {
|
||||
color: $price-color;
|
||||
}
|
||||
|
||||
.h-100 {
|
||||
height: $imgSize;
|
||||
}
|
||||
|
||||
.img {
|
||||
width: $imgSize;
|
||||
height: $imgSize;
|
||||
background-color: #eee;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.icon-arrow-right {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.stock {
|
||||
padding-right: 46rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.stock::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 10rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: block;
|
||||
width: 16rpx;
|
||||
border: 2rpx solid #333333;
|
||||
}
|
||||
|
||||
.goods {
|
||||
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||
background-color: #fff;
|
||||
padding: 24rpx 28rpx 16rpx 28rpx;
|
||||
font-size: 28rpx;
|
||||
.skus{
|
||||
background: #F9F9F9;
|
||||
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
||||
padding: 28rpx 42rpx;
|
||||
.sku{
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
padding: 6rpx 40rpx;
|
||||
}
|
||||
.skds{
|
||||
gap: 10rpx 50rpx;
|
||||
}
|
||||
.skd{
|
||||
padding: 14rpx 40rpx;
|
||||
background: #F0F2F5;
|
||||
border-radius: 4rpx;
|
||||
position: relative;
|
||||
color: #666;
|
||||
overflow: hidden;
|
||||
.tag{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 12rpx;
|
||||
right: 0;
|
||||
padding: 2rpx 4rpx;
|
||||
border-radius: 0rpx 4rpx 4rpx 4rpx;
|
||||
}
|
||||
.tag-primary{
|
||||
background-color: $my-main-color;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
536
pageUser/index/index.vue
Normal file
536
pageUser/index/index.vue
Normal file
@@ -0,0 +1,536 @@
|
||||
<template>
|
||||
<view class="safe-page">
|
||||
<view class="bg-fff u-p-l-30 u-p-r-30 ">
|
||||
<view class="myTabs u-m-t-20">
|
||||
<my-tabs :list="tabsList" @change="tabsChange"></my-tabs>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 用户列表 -->
|
||||
<template v-if="tabsCurrent===0">
|
||||
<view class="input-wrapper u-p-l-30 u-p-r-30 u-p-b-30 bg-fff">
|
||||
<view class="input-main">
|
||||
<uni-easyinput class='jeepay-search' :inputBorder="false" :placeholder="pageData.search.placeholder"
|
||||
v-model="pageData.search.value" @confirm="searchFunc">
|
||||
<template #prefixIcon>
|
||||
<image src="@/static/iconImg/icon-search.svg" class="input-icon" />
|
||||
</template>
|
||||
</uni-easyinput>
|
||||
<button type="text" @click="searchFunc()">搜索</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-p-30">
|
||||
<view class="data-statistics">
|
||||
<view class="u-font-32">数据统计</view>
|
||||
<view class="u-m-t-40 u-flex u-row-between">
|
||||
<view class=" ">
|
||||
<view>会员数</view>
|
||||
<view class="u-m-t-10 u-font-36 font-bold">{{pageData.allShopInfo.userTotal}}</view>
|
||||
</view>
|
||||
<view class="line-l-r u-p-l-30 u-p-r-30">
|
||||
<view>会员余额</view>
|
||||
<view class="u-m-t-10 u-font-36 font-bold">{{pageData.allShopInfo.balanceTotal}}</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<view>充值金额</view>
|
||||
<view class="u-m-t-10 u-font-36 font-bold">{{pageData.allShopInfo.chageTotal}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-list u-p-l-30 u-p-r-30">
|
||||
<view class="u-m-b-32" v-for="(item,index) in pageData.userList" :key="index">
|
||||
<my-user @moreOperate="moreOperateClick" @remark="userRemarkClick" @bindMoblie="bindMoblieClick"
|
||||
:index="index" :data="item" :showChecked="showChecked"
|
||||
:showDetail="pageData.showGoodsDetail"></my-user>
|
||||
</view>
|
||||
<my-pagination @change="pageChange"></my-pagination>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 导入用户 -->
|
||||
<template v-else>
|
||||
<view class="u-p-30">
|
||||
<view class="data-statistics user-statistics">
|
||||
<view class="u-m-t-40 u-flex u-font-24 no-wrap">
|
||||
<view class="u-flex-1 after-r u-p-l-30 u-p-r-30">
|
||||
<view>已关联用户</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">0</view>
|
||||
</view>
|
||||
<view class="u-flex-1 after-r u-p-l-30 u-p-r-30">
|
||||
<view>已关联余额(元)</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">0</view>
|
||||
</view>
|
||||
<view class="u-flex-1 u-p-l-30 u-p-r-30">
|
||||
<view>已关联积分</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">0</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-m-t-40 u-flex u-font-24 no-wrap">
|
||||
<view class="u-flex-1 after-r u-p-l-30 u-p-r-30">
|
||||
<view>未关联用户</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">0</view>
|
||||
</view>
|
||||
<view class="u-flex-1 after-r u-p-l-30 u-p-r-30">
|
||||
<view>未关联余额(元)</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">0</view>
|
||||
</view>
|
||||
<view class="u-flex-1 u-p-l-30 u-p-r-30">
|
||||
<view>未关联积分</view>
|
||||
<view class="u-m-t-20 u-font-36 font-bold">27</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed_b">
|
||||
<my-button showShadow @tap="toAddUser" shape="circle">新建用户</my-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- 备注弹窗 -->
|
||||
<my-model ref="remarkModel" title="修改备注">
|
||||
<template #desc>
|
||||
<view class="u-p-30 u-m-t-20">
|
||||
<uni-easyinput v-model="remarModelData.remark" placeholder="请输入备注"></uni-easyinput>
|
||||
</view>
|
||||
</template>
|
||||
<template #btn>
|
||||
<view class="u-m-t-40 u-p-b-60" style="padding: 0 100rpx;">
|
||||
<my-button shape="circle" @tap="remarkModelConfirm">确定</my-button>
|
||||
</view>
|
||||
</template>
|
||||
</my-model>
|
||||
<!-- 绑定手机号弹窗 -->
|
||||
<my-model ref="phoneModel" title="绑定手机号">
|
||||
<template #desc>
|
||||
<view class="u-p-30 u-m-t-20">
|
||||
<uni-easyinput v-model="phoneModelData.phone" placeholder="输入手机号码"></uni-easyinput>
|
||||
</view>
|
||||
</template>
|
||||
<template #btn>
|
||||
<view class="u-m-t-40 u-p-b-60" style="padding: 0 100rpx;">
|
||||
<my-button shape="circle" @tap="phoneModelConfirm">确定</my-button>
|
||||
</view>
|
||||
</template>
|
||||
</my-model>
|
||||
|
||||
<!-- 商品库存修改弹窗 -->
|
||||
<my-model ref="goodsStockModel" title="商品修改" @close="goodsStockModelClose">
|
||||
<template #desc>
|
||||
<view class="u-p-40 u-text-left">
|
||||
<view>
|
||||
<view class="">排序:</view>
|
||||
<view class="u-m-t-24">
|
||||
<uni-easyinput v-model="goodsStockData.sort" placeholder="请输入排序"></uni-easyinput>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex u-m-t-32">
|
||||
<view class="">库存:</view>
|
||||
<view class="u-m-l-46 ">
|
||||
<my-switch v-model="goodsStockData.openStock"></my-switch>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-m-t-24 u-m-t-32" v-if="goodsStockData.openStock">
|
||||
<view class="">数量:</view>
|
||||
<view class="u-m-t-24">
|
||||
<uni-easyinput v-model="goodsStockData.number" placeholder="请输入库存数量"></uni-easyinput>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
<template #btn>
|
||||
<view class="stock-btns u-p-b-40">
|
||||
<my-button shape="circle" @click="goodsStockModelSave">保存</my-button>
|
||||
<my-button shape="circle" type="default" @click="goodsStockModelCancel">取消</my-button>
|
||||
</view>
|
||||
</template>
|
||||
</my-model>
|
||||
|
||||
<my-action-sheet @itemClick="actionSheetClick" ref="moreOperate" :list="moreOperateList"></my-action-sheet>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
reactive,
|
||||
ref,
|
||||
watch,
|
||||
onMounted
|
||||
} from 'vue';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import myUser from './components/user.vue'
|
||||
import infoBox from "@/commons/utils/infoBox.js"
|
||||
import * as $Api from '@/http/yskApi/shop-user.js'
|
||||
import API from '../../http/classApi';
|
||||
let tabsCurrent = ref(0)
|
||||
const tabsList = ['用户列表', '导入用户']
|
||||
const remarkModel = ref(null)
|
||||
const phoneModel = ref(null)
|
||||
const moreOperate = ref(null)
|
||||
|
||||
function toAddUser() {
|
||||
go.to('PAGES_USER_ADD')
|
||||
}
|
||||
|
||||
const remarModelData = reactive({
|
||||
remark: ''
|
||||
})
|
||||
const phoneModelData = reactive({
|
||||
phone: ''
|
||||
})
|
||||
|
||||
const goodsStockModel = ref(null)
|
||||
|
||||
const moreOperateList = ['增减余额', '增减积分', '设为会员', '赠送券', '查看详情']
|
||||
|
||||
function moreOperateClick() {
|
||||
moreOperate.value.open()
|
||||
}
|
||||
|
||||
function actionSheetClick(i) {
|
||||
console.log(i);
|
||||
}
|
||||
|
||||
//修改备注弹窗展示
|
||||
function bindMoblieClick() {
|
||||
phoneModel.value.open()
|
||||
}
|
||||
//修改备注弹窗展示
|
||||
function userRemarkClick() {
|
||||
remarkModel.value.open()
|
||||
}
|
||||
|
||||
//修改备注弹窗确认
|
||||
function remarkModelConfirm() {
|
||||
|
||||
}
|
||||
|
||||
//修改手机号弹窗确认
|
||||
function phoneModelConfirm() {
|
||||
|
||||
}
|
||||
|
||||
function returnGoodsStockData() {
|
||||
return reactive({
|
||||
sort: 0,
|
||||
openStock: false,
|
||||
number: 0,
|
||||
})
|
||||
}
|
||||
let goodsStockData = returnGoodsStockData()
|
||||
|
||||
function goodsStockModelClose() {
|
||||
console.log('goodsStockModelClose');
|
||||
goodsStockData = returnGoodsStockData()
|
||||
}
|
||||
|
||||
function goodsStockModelCancel() {
|
||||
console.log('goodsStockModelCancel');
|
||||
goodsStockModel.value.close()
|
||||
}
|
||||
|
||||
function goodsStockModelSave() {
|
||||
console.log('goodsStockModelSave');
|
||||
}
|
||||
|
||||
|
||||
|
||||
//点击修改按钮弹出修改商品弹窗
|
||||
function goodsChangeClick(index) {
|
||||
console.log(index);
|
||||
goodsStockModel.value.open()
|
||||
}
|
||||
|
||||
function statesTableClick(index) {
|
||||
pageData.stateCurrent = index
|
||||
}
|
||||
|
||||
function states1TableClick(index) {
|
||||
pageData.stateCurrent1 = index
|
||||
}
|
||||
|
||||
let test = ref(false)
|
||||
|
||||
function tabsChange(i) {
|
||||
console.log(i);
|
||||
tabsCurrent.value = i
|
||||
}
|
||||
|
||||
const pageData = reactive({
|
||||
modelDesc: '是否下架',
|
||||
stateCurrent: 0,
|
||||
stateCurrent1: 0,
|
||||
componentBottom: 264,
|
||||
search: {
|
||||
value: '',
|
||||
placeholder: '搜索昵称、手机号码'
|
||||
},
|
||||
showGoodsDetail: false,
|
||||
userList: [],
|
||||
allShopInfo: {
|
||||
balanceTotal: 0,
|
||||
chageTotal: 0,
|
||||
userTotal: 0
|
||||
}
|
||||
})
|
||||
//改变商品的选中状态
|
||||
function changeGoodsChecked(checked, index) {
|
||||
if (index !== undefined) {
|
||||
pageData.userList[index].checked = checked
|
||||
} else {
|
||||
pageData.userList.map(v => {
|
||||
v.checked = checked
|
||||
})
|
||||
}
|
||||
control.value.setisSelectAll(isAllChecked() ? true : false)
|
||||
}
|
||||
|
||||
|
||||
// 获取已经选中的商品
|
||||
function getChechkeduserList() {
|
||||
return pageData.userList.filter(v => v.checked)
|
||||
}
|
||||
//是否全部选中
|
||||
function isAllChecked() {
|
||||
return getChechkeduserList().length === pageData.userList.length
|
||||
}
|
||||
// 是否有商品选中
|
||||
function isHasChekdGoods() {
|
||||
return getChechkeduserList().length ? true : false
|
||||
}
|
||||
|
||||
function searchFunc() {
|
||||
console.log('searchFunc');
|
||||
}
|
||||
|
||||
let showChecked = ref(false)
|
||||
|
||||
//商品start
|
||||
|
||||
function goodsRadioClick(index) {
|
||||
var checked = !pageData.userList[index].checked
|
||||
changeGoodsChecked(checked, index)
|
||||
}
|
||||
|
||||
|
||||
//下架
|
||||
function offShelf() {
|
||||
const hasCheckedArr = getChechkeduserList()
|
||||
const hasChecked = isHasChekdGoods()
|
||||
if (!hasChecked) {
|
||||
return infoBox.showToast('您还没有选中商品!')
|
||||
}
|
||||
model.value.open()
|
||||
}
|
||||
//商品end
|
||||
|
||||
// 页数改变事件
|
||||
function pageChange(page) {
|
||||
console.log(page);
|
||||
}
|
||||
|
||||
//分类
|
||||
const category = ref(null)
|
||||
|
||||
function toggleCategory() {
|
||||
category.value.toggle()
|
||||
}
|
||||
|
||||
function cateClick(cate) {
|
||||
console.log(cate);
|
||||
}
|
||||
|
||||
async function getUser() {
|
||||
const {
|
||||
content
|
||||
} = await $Api.queryAllShopUser()
|
||||
pageData.userList = content
|
||||
}
|
||||
async function getAllShopInfo() {
|
||||
const res = await $Api.queryAllShopInfo()
|
||||
pageData.allShopInfo = res
|
||||
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getUser()
|
||||
getAllShopInfo()
|
||||
})
|
||||
</script>
|
||||
<style scoped>
|
||||
page {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
.after-r,.after-l {
|
||||
position: relative;
|
||||
}
|
||||
.line-l-r{
|
||||
position: relative;
|
||||
&::after,&:before{
|
||||
position: absolute;
|
||||
content: '';
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
border-radius: 2px;
|
||||
background-color: rgba(255, 255, 255, .3);
|
||||
}
|
||||
&::after{
|
||||
right: 0;
|
||||
}
|
||||
&::before{
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
.after-r::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
right: -40rpx;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
border-radius: 2px;
|
||||
background-color: rgba(255, 255, 255, .3);
|
||||
}
|
||||
|
||||
.data-statistics {
|
||||
background-color: $my-main-color;
|
||||
padding: 30rpx 30rpx 60rpx 40rpx;
|
||||
color: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.user-statistics {
|
||||
padding: 30rpx 0 60rpx 0;
|
||||
|
||||
.after-r::after {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.u-flex-1 {}
|
||||
}
|
||||
|
||||
.stock-btns {
|
||||
padding: 0 100rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.safe-page {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
|
||||
.icon-guige {
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
}
|
||||
|
||||
.bg-fff {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.myTabs {
|
||||
margin: 0 auto;
|
||||
height: 64rpx;
|
||||
}
|
||||
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 26rpx;
|
||||
background-color: $J-bg-ff;
|
||||
|
||||
.input-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 64rpx;
|
||||
|
||||
image {
|
||||
padding: 22rpx;
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
}
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
|
||||
::v-deep uni-button {
|
||||
font-size: 28rpx;
|
||||
color: $my-main-color;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
::v-deep.uni-easyinput {
|
||||
.uni-easyinput__content {
|
||||
background-color: $J-bg-f5 !important;
|
||||
border-radius: $J-b-r12;
|
||||
|
||||
.uni-easyinput__content-input {
|
||||
padding-left: 0 !important;
|
||||
|
||||
.uni-input-input {
|
||||
border-radius: $J-b-r12 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-input-placeholder {
|
||||
font-size: 27rpx;
|
||||
}
|
||||
|
||||
.uni-icons {
|
||||
color: rgba(230, 230, 230, 1) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.search-button {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
background-color: transparent !important;
|
||||
color: transparent !important;
|
||||
}
|
||||
|
||||
.states1 {
|
||||
margin-top: 78rpx;
|
||||
|
||||
.item {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
margin-right: 70rpx;
|
||||
background: #F4F4F4;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
|
||||
.item.active {
|
||||
background: #E6F0FF;
|
||||
color: $my-main-color;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.fixed_b {
|
||||
left: 90rpx;
|
||||
right: 90rpx;
|
||||
position: fixed;
|
||||
bottom: calc(70rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user