add
This commit is contained in:
parent
006041fca6
commit
63a0a9194e
22
pages.json
22
pages.json
|
@ -1549,7 +1549,29 @@
|
|||
"navigationBarTitleText": "发布商品",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "addGoodDetail/goodsType",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品分类",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "addGoodDetail/goodsAttr",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品属性",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "addGoodDetail/goodsPrice",
|
||||
"style": {
|
||||
"navigationBarTitleText": "价格与规格",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<view class='content'>
|
||||
|
||||
<u--form :model="model1" :rules="rules" ref="uForm" labelPosition="top"
|
||||
:labelStyle="{fontWeight:'bold',fontSize:'32rpx'}" labelWidth='100'>
|
||||
<u-form-item label="想卖什么" prop="userInfo.name" ref="item1">
|
||||
|
@ -21,8 +22,8 @@
|
|||
</uni-section>
|
||||
</u-form-item>
|
||||
<view class="footer">
|
||||
<view class="footer-top">
|
||||
<text style="margin: 0 auto; ">
|
||||
<view class="footer-top" @click='goDetail'>
|
||||
<text style="margin: 0 auto;">
|
||||
显示全部<u-icon style="display: inline-block;font-weight: bold;" color="$uni-newTheme-color"
|
||||
name="arrow-right"></u-icon>
|
||||
</text>
|
||||
|
@ -33,10 +34,14 @@
|
|||
</view>
|
||||
|
||||
<view class="submit-btn">
|
||||
<u-button text="立即发布获取订单" @click='goDetail' :class="{height:'200px'}" color="#33BB3C"></u-button>
|
||||
<u-button text="立即发布获取订单" :class="{height:'200px'}" color="#33BB3C"></u-button>
|
||||
</view>
|
||||
</u--form>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -104,12 +109,18 @@
|
|||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
@font-face {
|
||||
font-family: PingFangFamily;
|
||||
src: url('/static/font/PingFangMedium.ttf');
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background-color: white;
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx;
|
||||
font-family: PingFangFamily;
|
||||
|
||||
.borders {
|
||||
width: 690rpx;
|
||||
|
|
|
@ -2,21 +2,87 @@
|
|||
<view class='content'>
|
||||
|
||||
<u--form :model="model1" :rules="rules" ref="uForm" labelPosition="top"
|
||||
:labelStyle="{fontSize:'32rpx',color:'#444444'}" labelWidth='100'>
|
||||
:labelStyle="{fontSize:'32rpx',color:'#444444'}" labelWidth='120'>
|
||||
<view class="good-baseInfo">
|
||||
<u-form-item label="商品标题" prop="userInfo.name" ref="item1">
|
||||
|
||||
<u--input placeholder="建议描述产品品牌、名称" v-model="text"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item class='formItem' label="商品主图" prop="userInfo.name" ref="item1">
|
||||
<uploadImgVideo />
|
||||
<view class="">
|
||||
<view style="color: #E18C34;font-size: 24rpx;margin-bottom: 30rpx;">
|
||||
上传时应注重真实性、清晰度
|
||||
</view>
|
||||
<view class="">
|
||||
<uploadImgVideo />
|
||||
</view>
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item label="商品细节图" prop="userInfo.name" ref="item1">
|
||||
<uploadImgVideo />
|
||||
<view class="">
|
||||
<view style="color: #E18C34;font-size: 24rpx;margin-bottom: 30rpx;">
|
||||
请上传突出商品卖点细节图片
|
||||
</view>
|
||||
<view class="">
|
||||
<uploadImgVideo />
|
||||
</view>
|
||||
</view>
|
||||
</u-form-item>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
商品图片上传时应注重真实性、清晰度和美观性,在平台上的展示效果至关重要。确保商品能够得到有效的展示和推广。
|
||||
</view>
|
||||
<view class="label-cls">
|
||||
<u-form-item label="商品分类" prop="userInfo.name" ref="item1" labelPosition="left">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="navgo('/pages/product/addGoodDetail/goodsType')">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">请选择</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item label="商品属性" prop="userInfo.name" ref="item1" labelPosition="left">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="navgo('/pages/product/addGoodDetail/goodsAttr')">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">去设置</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
</view>
|
||||
<view class="description">
|
||||
规格与价格
|
||||
</view>
|
||||
<view class="label-cls">
|
||||
<u-form-item label="规格与价格" prop="userInfo.name" ref="item1" labelPosition="left">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="navgo('/pages/product/addGoodDetail/goodsPrice')">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">请设置</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
</view>
|
||||
<view class="description">
|
||||
服务与承诺
|
||||
</view>
|
||||
<view class="label-cls">
|
||||
<u-form-item label="商品详细描述" prop="userInfo.name" ref="item1">
|
||||
<u--textarea v-model="value1" placeholder="货品描述请严格遵循《广告法》规定,避免出
|
||||
现虚假宣传和误导消费者的词语" count border="bottom" style="background-color:#F1F1F1;border-radius: 20rpx;"></u--textarea>
|
||||
</u-form-item>
|
||||
<u-line color="#F3F3F3"></u-line>
|
||||
<u-form-item label="送货方式" labelPosition="left">
|
||||
<u-checkbox-group v-model="checkboxValue1" placement="row" slot="right">
|
||||
<u-checkbox shape="circle" v-for="(item, index) in checkboxList1" :key="index"
|
||||
:label="item.name" :name="item.name" activeColor="#20B128"
|
||||
:customStyle="{marginRight: '8px'}"
|
||||
:labelColor="checkboxValue1.includes(item.name)?'#20B128':'#777777'">
|
||||
</u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</u-form-item>
|
||||
</view>
|
||||
|
||||
</u--form>
|
||||
|
||||
<view class="submit-btn">
|
||||
<u-button type="primary" shape="circle" text="确认发布"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -49,7 +115,17 @@
|
|||
},
|
||||
],
|
||||
text: "",
|
||||
text1: "",
|
||||
value1: "",
|
||||
checkboxValue1: [],
|
||||
checkboxList1: [{
|
||||
name: '到店核销',
|
||||
},
|
||||
{
|
||||
name: '快递配送',
|
||||
},
|
||||
|
||||
],
|
||||
rules: {
|
||||
// 'userInfo.name': {
|
||||
// type: 'string',
|
||||
|
@ -74,6 +150,11 @@
|
|||
this.model1.userInfo.sex = e.name
|
||||
this.$refs.uForm.validateField('userInfo.sex')
|
||||
},
|
||||
navgo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
@ -86,14 +167,45 @@
|
|||
min-height: 100vh;
|
||||
background-color: #F1F1F1;
|
||||
box-sizing: border-box;
|
||||
|
||||
padding-bottom: 280rpx;
|
||||
font-family: PingFangFamily;
|
||||
|
||||
|
||||
.good-baseInfo {
|
||||
background-color: white;
|
||||
padding: 30rpx;
|
||||
padding: 30rpx 30rpx 10rpx 30rpx;
|
||||
|
||||
}
|
||||
|
||||
.tips {
|
||||
color: #E18C34;
|
||||
font-size: 24rpx;
|
||||
background-color: #FFF1E9;
|
||||
padding: 26rpx 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.label-cls {
|
||||
background-color: white;
|
||||
padding: 8rpx 30rpx;
|
||||
}
|
||||
|
||||
.description {
|
||||
background-color: #F1F1F1;
|
||||
padding: 30rpx 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #777777;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
position: fixed;
|
||||
bottom: 86rpx;
|
||||
width: 750rpx;
|
||||
padding: 20rpx 30rpx;
|
||||
background-color: white;
|
||||
z-index: 10;
|
||||
box-shadow: 0 0 0.2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,382 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<u--form :model="model1" :rules="rules" ref="uForm" labelPosition="left"
|
||||
:labelStyle="{fontSize:'32rpx',color:'#444444'}" labelWidth='120' borderBottom>
|
||||
|
||||
<view class="description">
|
||||
产品属性
|
||||
</view>
|
||||
<view class="label-cls">
|
||||
<u-form-item label="产地" prop="userInfo.name" ref="item1">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="showPouple=true,popType='place'">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">请选择</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="商品等级" prop="userInfo.name" ref="item1">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="showPouple=true,popType='leval'">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">请选择</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item label="货品包装" prop="userInfo.name" ref="item1">
|
||||
<view style="display: flex;align-items: center;font-size: 28rpx;color:#777777 ;" slot="right"
|
||||
@click="showPouple=true,popType='packing'">
|
||||
<view style="margin-right: 10rpx;line-height: 25rpx;">请选择</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</u-form-item>
|
||||
</view>
|
||||
<view class="description" style="display: flex;justify-content: space-between;align-items: center">
|
||||
<text>产品属性</text>
|
||||
<view class="attr-custom">
|
||||
<u-icon name="plus" color='#20B128' style="margin-right: 8rpx;font-weight: bold;"></u-icon> 自定义
|
||||
</view>
|
||||
</view>
|
||||
<view class="label-cls"
|
||||
style="display: flex;padding: 20rpx 20rpx 20rpx 2rpx;justify-content: space-between;">
|
||||
<view class="" style="display: flex;width: 70%;align-items: center;">
|
||||
<u--input placeholder="请填写属性名称" border="surround" v-model="value"></u--input>
|
||||
<u-line direction="col" length="40rpx" color="#CECECE"></u-line>
|
||||
<u--input placeholder="请填写属性值" border="surround" v-model="value"></u--input>
|
||||
<u-line direction="col" length="40rpx" color="#CECECE"></u-line>
|
||||
</view>
|
||||
<view style="color: #777777;display: flex; align-items: center;">
|
||||
<u-icon name="trash" style='margin-right: 8rpx;'></u-icon> 删除
|
||||
</view>
|
||||
</view>
|
||||
</u--form>
|
||||
<view class="submit-btn">
|
||||
<u-button type="primary" shape="circle" text="保存"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
<u-popup :show="showPouple" @close="showPouple=false" @open="showPouple=true" :round="10">
|
||||
<view class="RegularFont" style="padding: 42rpx 40rpx">
|
||||
<view class="pop-head">
|
||||
<text>取消</text>
|
||||
<text style="font-size:32rpx ;color:#333333 ;">商品产地</text>
|
||||
<text>确定</text>
|
||||
</view>
|
||||
<!-- 地区 -->
|
||||
<view v-if="popType=='place'">
|
||||
<view class="Positioning " style="color: #989898;margin-bottom: 30rpx;">
|
||||
<view class="" style="display: flex;">
|
||||
<u-icon name="map" style='margin-right: 8rpx;'></u-icon>
|
||||
<text>四川得分手段解决客户</text>
|
||||
</view>
|
||||
<view class="">
|
||||
刷新定位
|
||||
</view>
|
||||
</view>
|
||||
<u-line color="#CECECE"></u-line>
|
||||
<view class="province">
|
||||
<view class="province-li" @click='positionType=0'
|
||||
:style="{color:positionType==0?'#20B128':'#707070'} ">
|
||||
四川省
|
||||
</view>
|
||||
<view class="province-li" @click='positionType=1'
|
||||
:style="{color:positionType==1?'#20B128':'#707070'} ">
|
||||
泸州市
|
||||
</view>
|
||||
<view class="province-li" @click='positionType=2'
|
||||
:style="{color:positionType==2?'#20B128':'#707070'} ">
|
||||
牛马谭
|
||||
</view>
|
||||
<view class="province-line" :style="{left:positionType*130+30+'rpx'}" />
|
||||
</view>
|
||||
<u-line color="#CECECE"></u-line>
|
||||
<view class="" style="color:#989898;font-size:24rpx ;margin-top: 40rpx;">
|
||||
请选择省份
|
||||
</view>
|
||||
<view class="position-content">
|
||||
<view class="position-li" v-for="item in 20">
|
||||
<text>
|
||||
四川省
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- 地区结束 -->
|
||||
|
||||
<!-- 商品等级 -->
|
||||
<view v-if="popType=='leval'" style="height: 500rpx;">
|
||||
<u-transition :show="show" mode="slide-right">
|
||||
<view class="goods-leval" v-show="show">
|
||||
<view class="goods-leval-li" v-for='item in 10'>
|
||||
一等平
|
||||
</view>
|
||||
<view class="goods-leval-li act">
|
||||
二等平
|
||||
</view>
|
||||
<view class="goods-leval-li " style="display: flex;color:#38BE41 ;">
|
||||
<u-icon name="plus" color="#38BE41" style='margin-right: 8rpx;'
|
||||
@click="show=!show"></u-icon> 自定义
|
||||
</view>
|
||||
</view>
|
||||
</u-transition>
|
||||
<u-transition :show="!show" mode="slide-left">
|
||||
<view class="transition" @click="show=!show">
|
||||
<!-- 大师傅士大夫士大夫撒旦 -->
|
||||
<u--textarea v-model="value1" placeholder="请输入商品等级"></u--textarea>
|
||||
</view>
|
||||
</u-transition>
|
||||
</view>
|
||||
<!-- 商品等级结束 -->
|
||||
|
||||
<!-- 商品包装 -->
|
||||
<view v-if="popType=='packing'" style="height: 500rpx;">
|
||||
<u-transition :show="show" mode="slide-right">
|
||||
<view class="goods-leval">
|
||||
<view class="goods-leval-li" v-for='item in 10'>
|
||||
纸箱子
|
||||
</view>
|
||||
<view class="goods-leval-li act">
|
||||
木箱子
|
||||
</view>
|
||||
<view class="goods-leval-li " style="display: flex;color:#38BE41 ;" @click="show=!show">
|
||||
<u-icon name="plus" color="#38BE41" style='margin-right: 8rpx;'></u-icon> 自定义
|
||||
</view>
|
||||
</view>
|
||||
</u-transition>
|
||||
<u-transition :show="!show" mode="slide-left">
|
||||
<view class="transition" @click="show=!show">
|
||||
<u--textarea v-model="value1" placeholder="请输入商品等级"></u--textarea>
|
||||
</view>
|
||||
</u-transition>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
show: true,
|
||||
popType: 'leval',
|
||||
showPouple: true,
|
||||
showSex: false,
|
||||
positionType: 0,
|
||||
model1: {
|
||||
userInfo: {
|
||||
name: '',
|
||||
sex: '',
|
||||
},
|
||||
},
|
||||
value1: "",
|
||||
value: '',
|
||||
range: [{
|
||||
value: 0,
|
||||
text: "篮球"
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
text: "足球"
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
text: "游泳"
|
||||
},
|
||||
],
|
||||
text: "",
|
||||
text1: "",
|
||||
value1: "",
|
||||
checkboxValue1: [],
|
||||
checkboxList1: [{
|
||||
name: '到店核销',
|
||||
},
|
||||
{
|
||||
name: '快递配送',
|
||||
},
|
||||
|
||||
],
|
||||
rules: {
|
||||
// 'userInfo.name': {
|
||||
// type: 'string',
|
||||
// required: true,
|
||||
// message: '请填写姓名',
|
||||
// trigger: ['blur', 'change']
|
||||
// },
|
||||
// 'userInfo.sex': {
|
||||
// type: 'string',
|
||||
// max: 1,
|
||||
// required: true,
|
||||
// message: '请选择男或女',
|
||||
// trigger: ['blur', 'change']
|
||||
// },
|
||||
},
|
||||
radio: '',
|
||||
switchVal: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
sexSelect(e) {
|
||||
this.model1.userInfo.sex = e.name
|
||||
this.$refs.uForm.validateField('userInfo.sex')
|
||||
},
|
||||
navgo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
},
|
||||
getLocation() {
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function(res) {
|
||||
console.log(res);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
mounted() {
|
||||
// this.getLocation()
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
.MediumFont {
|
||||
font-family: PingFangFamily;
|
||||
}
|
||||
|
||||
.RegularFont {
|
||||
font-family: PingFangRegular;
|
||||
}
|
||||
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx;
|
||||
background-color: #F1F1F1;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangFamily;
|
||||
}
|
||||
|
||||
.label-cls {
|
||||
background-color: white;
|
||||
padding: 8rpx 30rpx;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
}
|
||||
|
||||
.description {
|
||||
background-color: #F1F1F1;
|
||||
padding: 30rpx 0rpx;
|
||||
font-size: 28rpx;
|
||||
color: #777777;
|
||||
width: 690rpx;
|
||||
}
|
||||
|
||||
.attr-custom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1px solid #38BE41;
|
||||
background-color: #E0EFE1;
|
||||
border-radius: 36rpx 36rpx 36rpx 36rpx;
|
||||
padding: 7rpx 10rpx;
|
||||
color: #20B128;
|
||||
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
position: fixed;
|
||||
bottom: 50rpx;
|
||||
width: 670rpx;
|
||||
}
|
||||
|
||||
.pop-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #20B128;
|
||||
margin-bottom: 42rpx;
|
||||
}
|
||||
|
||||
.Positioning {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.province {
|
||||
display: flex;
|
||||
position: relative;
|
||||
|
||||
.province-li {
|
||||
color: #707070;
|
||||
font-size: 32rpx;
|
||||
margin: 30rpx 40rpx 30rpx 0;
|
||||
}
|
||||
|
||||
.province-line {
|
||||
position: absolute;
|
||||
height: 2px;
|
||||
width: 40rpx;
|
||||
background-color: #20B128;
|
||||
bottom: 20rpx;
|
||||
left: 30rpx;
|
||||
transition: 500ms;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.position-content {
|
||||
height: 600rpx;
|
||||
overflow-y: auto;
|
||||
|
||||
.position-li {
|
||||
font-size: 28rpx;
|
||||
color: #707070;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.goods-leval {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
overflow-y: auto;
|
||||
|
||||
.goods-leval-li {
|
||||
margin-right: 20rpx;
|
||||
padding: 10rpx 40rpx;
|
||||
height: 60rpx;
|
||||
margin-bottom: 20rpx;
|
||||
border-radius: 36rpx 36rpx 36rpx 36rpx;
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
|
||||
.act {
|
||||
color: #20B128;
|
||||
background-color: #E8F7E9;
|
||||
border: 1px solid #20B128;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* .toast {
|
||||
position: absolute;
|
||||
color: white;
|
||||
background-color: #20B128;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
|
||||
|
||||
} */
|
||||
</style>
|
|
@ -0,0 +1,53 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<u-button icon="plus" text="新增规格" class="custom-style" iconColor='#38BE41'></u-button>
|
||||
|
||||
<view class="card">
|
||||
<view class="card-head">
|
||||
规格1
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
.custom-style {
|
||||
color: $uni-newTheme-color;
|
||||
height: 104rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx;
|
||||
background-color: #F1F1F1;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangFamily;
|
||||
|
||||
.card {
|
||||
margin-top: 30rpx;
|
||||
padding: 30rpx 46rpx;
|
||||
background-color: white;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(0, 0, 0, 0.16);
|
||||
|
||||
}
|
||||
|
||||
|
||||
.card-head::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
font-size: 32rpx;
|
||||
left: 10rpx;
|
||||
width: 2rpx;
|
||||
height: 32rpx;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,108 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="lines" :style="{top:(actIndex*82)+30+'rpx'}" />
|
||||
<view class="left">
|
||||
<view class="left-li" v-for="(item,index) in 100" :class="actIndex==index?'act-li':''"
|
||||
@click="actIndex=index">
|
||||
常用分类
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<u-line direction="col" color="#ECECEC"></u-line>
|
||||
</view>
|
||||
<view class="right">
|
||||
<u-search :showAction="true" v-model="keyword" actionText="搜索" :animation="true"></u-search>
|
||||
<view style="margin: 30rpx 0;font-size: 28rpx; color: #989898;">
|
||||
可能在找
|
||||
</view>
|
||||
<view class="right-content">
|
||||
<view class="right-content-li" v-for='item in 20'>
|
||||
可能在找
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
keyword: "",
|
||||
actIndex: 0,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
},
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
.content {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx;
|
||||
background-color: white;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
font-family: PingFangFamily;
|
||||
|
||||
.lines {
|
||||
height: 38rpx;
|
||||
border-radius: 5px;
|
||||
width: 3px;
|
||||
background-color: #40AE36;
|
||||
position: absolute;
|
||||
left: 20rpx;
|
||||
transition: 200ms;
|
||||
top: 33rpx;
|
||||
}
|
||||
|
||||
.left {
|
||||
margin-right: 30rpx;
|
||||
width: 140rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
.left-li {
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
color: #444444;
|
||||
height: 82rpx;
|
||||
}
|
||||
|
||||
.act-li {
|
||||
color: $uni-newTheme-color;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
padding: 0 20rpx;
|
||||
position: fixed;
|
||||
width: 530rpx;
|
||||
left: 220rpx;
|
||||
|
||||
.right-content {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.right-content-li {
|
||||
color: #444444;
|
||||
font-size: 28rpx;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
border: 2rpx solid #989898;
|
||||
padding: 16rpx 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,211 +1,425 @@
|
|||
@charset "UTF-8";
|
||||
* {scrollbar-color: #e5e5e5 #f7f7f9;scrollbar-width: thin;}
|
||||
html {margin: 0 auto;max-width: 1200px;}
|
||||
body {overflow-x: hidden;}
|
||||
.font-color,.font-color-red {color:#fc4141!important}
|
||||
.bg-color{background-color:#e93323!important}
|
||||
.icon-color{color: #ff3c2b}
|
||||
.cart-color {color: #ff3700 !important;border:1px solid #ff3700 !important}
|
||||
.padding20{padding: 20rpx}
|
||||
.pad20 {padding: 0 20rpx}
|
||||
.padding30{padding: 30rpx}
|
||||
.pad30{padding: 0 30rpx}
|
||||
.pull-left{float: left;}
|
||||
.pull-right{float: right;}
|
||||
.clearfix:after{content:'';display:block;height:0;clear:both}
|
||||
.clearfix{zoom:1}
|
||||
.acea-row {display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-lines: multiple;
|
||||
-moz-box-lines:multiple;-o-box-lines:multiple;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}
|
||||
|
||||
* {
|
||||
scrollbar-color: #e5e5e5 #f7f7f9;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.font-color,
|
||||
.font-color-red {
|
||||
color: #fc4141 !important
|
||||
}
|
||||
|
||||
.bg-color {
|
||||
background-color: #e93323 !important
|
||||
}
|
||||
|
||||
.icon-color {
|
||||
color: #ff3c2b
|
||||
}
|
||||
|
||||
.cart-color {
|
||||
color: #ff3700 !important;
|
||||
border: 1px solid #ff3700 !important
|
||||
}
|
||||
|
||||
.padding20 {
|
||||
padding: 20rpx
|
||||
}
|
||||
|
||||
.pad20 {
|
||||
padding: 0 20rpx
|
||||
}
|
||||
|
||||
.padding30 {
|
||||
padding: 30rpx
|
||||
}
|
||||
|
||||
.pad30 {
|
||||
padding: 0 30rpx
|
||||
}
|
||||
|
||||
.pull-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.pull-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
zoom: 1
|
||||
}
|
||||
|
||||
.acea-row {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-lines: multiple;
|
||||
-moz-box-lines: multiple;
|
||||
-o-box-lines: multiple;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap
|
||||
}
|
||||
|
||||
.acea-row.row-middle {
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.acea-row.row-top {
|
||||
-webkit-box-align: start;
|
||||
-moz-box-align: start;
|
||||
-o-box-align: start;
|
||||
-ms-flex-align: start;
|
||||
-webkit-align-items: flex-start;
|
||||
align-items: flex-start
|
||||
-webkit-box-align: start;
|
||||
-moz-box-align: start;
|
||||
-o-box-align: start;
|
||||
-ms-flex-align: start;
|
||||
-webkit-align-items: flex-start;
|
||||
align-items: flex-start
|
||||
}
|
||||
|
||||
.acea-row.row-bottom {
|
||||
-webkit-box-align: end;
|
||||
-moz-box-align: end;
|
||||
-o-box-align: end;
|
||||
-ms-flex-align: end;
|
||||
-webkit-align-items: flex-end;
|
||||
align-items: flex-end
|
||||
-webkit-box-align: end;
|
||||
-moz-box-align: end;
|
||||
-o-box-align: end;
|
||||
-ms-flex-align: end;
|
||||
-webkit-align-items: flex-end;
|
||||
align-items: flex-end
|
||||
}
|
||||
|
||||
.acea-row.row-center {
|
||||
-webkit-box-pack: center;
|
||||
-moz-box-pack: center;
|
||||
-o-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center
|
||||
-webkit-box-pack: center;
|
||||
-moz-box-pack: center;
|
||||
-o-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.acea-row.row-right {
|
||||
-webkit-box-pack: end;
|
||||
-moz-box-pack: end;
|
||||
-o-box-pack: end;
|
||||
-ms-flex-pack: end;
|
||||
-webkit-justify-content: flex-end;
|
||||
justify-content: flex-end;
|
||||
-webkit-box-pack: end;
|
||||
-moz-box-pack: end;
|
||||
-o-box-pack: end;
|
||||
-ms-flex-pack: end;
|
||||
-webkit-justify-content: flex-end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.acea-row.row-left {
|
||||
-webkit-box-pack: start;
|
||||
-moz-box-pack: start;
|
||||
-o-box-pack: start;
|
||||
-ms-flex-pack: start;
|
||||
-webkit-justify-content: flex-start;
|
||||
justify-content: flex-start
|
||||
-webkit-box-pack: start;
|
||||
-moz-box-pack: start;
|
||||
-o-box-pack: start;
|
||||
-ms-flex-pack: start;
|
||||
-webkit-justify-content: flex-start;
|
||||
justify-content: flex-start
|
||||
}
|
||||
|
||||
.acea-row.row-between {
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
}
|
||||
|
||||
.acea-row.row-around {
|
||||
justify-content: space-around;
|
||||
-webkit-justify-content: space-around
|
||||
justify-content: space-around;
|
||||
-webkit-justify-content: space-around
|
||||
}
|
||||
|
||||
.acea-row.row-column-around {
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
-webkit-justify-content: space-around
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
-webkit-justify-content: space-around
|
||||
}
|
||||
|
||||
.acea-row.row-column {
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
-o-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
-o-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column
|
||||
}
|
||||
|
||||
.acea-row.row-column-between {
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
-o-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
-o-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
}
|
||||
|
||||
.acea-row.row-center-wrapper {
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-moz-box-pack: center;
|
||||
-o-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-moz-box-pack: center;
|
||||
-o-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.acea-row.row-between-wrapper {
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
-webkit-box-align: center;
|
||||
-moz-box-align: center;
|
||||
-o-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
-moz-box-pack: justify;
|
||||
-o-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
justify-content: space-between
|
||||
}
|
||||
|
||||
.start {
|
||||
width: 122rpx;
|
||||
height: 30rpx;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAADMCAYAAAC8yreMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJk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KARQSOCRgRN0IigEUEjgkYEjQgamQhqQDt6L3tEt5IaEHPvhYNuMzUg5t7LHNGtpQbE3HuZoFtLDYi590UFp4/jV977yzmPXXkfcHoy8297790xxlADWkI8gBowYb13oAZAPDj+IT2BGhB975mLMagBk9F73lU31IDIe+/mfEGoAZH3nveIhhoQee95FmNT/nPbDn/OeLh/UbYeW67hVdWnyTwXdL0eO1JwQRPUn95LLsYSqAET0XueczTUgAnoHeJBS8RPiQgaETQiaNRM/S/AAOykxVBJG5QXAAAAAElFTkSuQmCC');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 122rpx auto;
|
||||
width: 122rpx;
|
||||
height: 30rpx;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAADMCAYAAAC8yreMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtc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BS8RPiQgaETQiaNRM/S/AAOykxVBJG5QXAAAAAElFTkSuQmCC');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 122rpx auto;
|
||||
}
|
||||
.start.star5{background-position:0 3rpx;}
|
||||
.start.star4{background-position:0 -30rpx;}
|
||||
.start.star3{background-position:0 -70rpx;}
|
||||
.start.star2{background-position:0 -105rpx;}
|
||||
.start.star1{background-position:0 -140rpx;}
|
||||
.start.star0{background-position:0 -175rpx;}
|
||||
*{box-sizing:border-box}
|
||||
page{font-size: 28rpx;background-color:#f5f5f5;color: #333}
|
||||
body,html{height:unset}
|
||||
button{padding:0;margin:0;line-height:normal;background-color:#fff}
|
||||
button::after {border:0}
|
||||
radio .wx-radio-input {border-radius:50%;width:38rpx;height:38rpx}
|
||||
radio .wx-radio-input.wx-radio-input-checked{border:1px solid #e93323;background-color:#e93323;}
|
||||
radio .uni-radio-input{border-radius:50%;width:38rpx;height:38rpx}
|
||||
radio .uni-radio-input.uni-radio-input-checked{border: 1px solid #e93323;background-color: #e93323;}
|
||||
checkbox .wx-checkbox-input{width:38rpx;height:38rpx}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{color: #fff!important;}
|
||||
checkbox .uni-checkbox-input{width: 38rpx;height: 38rpx}
|
||||
|
||||
.start.star5 {
|
||||
background-position: 0 3rpx;
|
||||
}
|
||||
|
||||
.start.star4 {
|
||||
background-position: 0 -30rpx;
|
||||
}
|
||||
|
||||
.start.star3 {
|
||||
background-position: 0 -70rpx;
|
||||
}
|
||||
|
||||
.start.star2 {
|
||||
background-position: 0 -105rpx;
|
||||
}
|
||||
|
||||
.start.star1 {
|
||||
background-position: 0 -140rpx;
|
||||
}
|
||||
|
||||
.start.star0 {
|
||||
background-position: 0 -175rpx;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
page {
|
||||
font-size: 28rpx;
|
||||
background-color: #f5f5f5;
|
||||
color: #333
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
height: unset
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: normal;
|
||||
background-color: #fff
|
||||
}
|
||||
|
||||
button::after {
|
||||
border: 0
|
||||
}
|
||||
|
||||
radio .wx-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 38rpx;
|
||||
height: 38rpx
|
||||
}
|
||||
|
||||
radio .wx-radio-input.wx-radio-input-checked {
|
||||
border: 1px solid #e93323;
|
||||
background-color: #e93323;
|
||||
}
|
||||
|
||||
radio .uni-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 38rpx;
|
||||
height: 38rpx
|
||||
}
|
||||
|
||||
radio .uni-radio-input.uni-radio-input-checked {
|
||||
border: 1px solid #e93323;
|
||||
background-color: #e93323;
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input {
|
||||
width: 38rpx;
|
||||
height: 38rpx
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
checkbox .uni-checkbox-input {
|
||||
width: 38rpx;
|
||||
height: 38rpx
|
||||
}
|
||||
|
||||
checkbox .uni-checkbox-input.uni-checkbox-input-checked,
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked{border:1px solid #e93323!important;background-color:#e93323!important;color:#fff!important;}
|
||||
checkbox .uni-checkbox-input.uni-checkbox-input-checked::before{font-size: 35rpx}
|
||||
.line1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
||||
.line2{word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;}
|
||||
.mask{position:fixed;top: 0;left:0;right:0;bottom:0;background-color:#000;opacity:.5;z-index:30}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
border: 1px solid #e93323 !important;
|
||||
background-color: #e93323 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
|
||||
font-size: 35rpx
|
||||
}
|
||||
|
||||
.line1 {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.line2 {
|
||||
word-break: break-all;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #000;
|
||||
opacity: .5;
|
||||
z-index: 30
|
||||
}
|
||||
|
||||
@keyframes load {
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes load {
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
}
|
||||
.loadingpic{animation:load 3s linear 1s infinite;--webkit-animation:load 3s linear 1s infinite}
|
||||
.loading-list{animation:load linear 1s infinite;-webkit-animation:load linear 1s infinite;font-size:40rpx;margin-right:22rpx}
|
||||
.loading{width:100%;height:100rpx;line-height:100rpx;align-items:center;justify-content:center;position:relative;text-align:center}
|
||||
|
||||
.loadingpic {
|
||||
animation: load 3s linear 1s infinite;
|
||||
--webkit-animation: load 3s linear 1s infinite
|
||||
}
|
||||
|
||||
.loading-list {
|
||||
animation: load linear 1s infinite;
|
||||
-webkit-animation: load linear 1s infinite;
|
||||
font-size: 40rpx;
|
||||
margin-right: 22rpx
|
||||
}
|
||||
|
||||
.loading {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.loading .line {
|
||||
position: absolute;
|
||||
width: 450rpx;
|
||||
left: 150rpx;
|
||||
top: 50rpx;
|
||||
height: 1px;
|
||||
border-top: 1px solid #eee
|
||||
position: absolute;
|
||||
width: 450rpx;
|
||||
left: 150rpx;
|
||||
top: 50rpx;
|
||||
height: 1px;
|
||||
border-top: 1px solid #eee
|
||||
}
|
||||
|
||||
.loading .text {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0 20rpx;
|
||||
background: #fff;
|
||||
z-index: 2;
|
||||
color: #777
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0 20rpx;
|
||||
background: #fff;
|
||||
z-index: 2;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.loadingicon .loading {
|
||||
animation: load linear 1s infinite;
|
||||
font-size: 45rpx;
|
||||
color: #000
|
||||
animation: load linear 1s infinite;
|
||||
font-size: 45rpx;
|
||||
color: #000
|
||||
}
|
||||
|
||||
.loadingicon {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
overflow: hidden
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: PingFangFamily;
|
||||
src: url('/static/font/PingFangMedium.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: PingFangRegular;
|
||||
src: url('/static/font/PingFangRegular.ttf');
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
// 此文件为uView的主题变量,这些变量目前只能通过uni.scss引入才有效,另外由于
|
||||
// uni.scss中引入的样式会同时混入到全局样式文件和单独每一个页面的样式中,造成微信程序包太大,
|
||||
// 故uni.scss只建议放scss变量名相关样式,其他的样式可以通过main.js或者App.vue引入
|
||||
|
||||
$u-main-color: #303133;
|
||||
$u-content-color: #606266;
|
||||
$u-tips-color: #909193;
|
||||
$u-light-color: #c0c4cc;
|
||||
$u-border-color: #dadbde;
|
||||
$u-bg-color: #f3f4f6;
|
||||
$u-disabled-color: #c8c9cc;
|
||||
|
||||
$u-primary: #32BB3B;
|
||||
$u-primary-dark: #398ade;
|
||||
$u-primary-disabled: #9acafc;
|
||||
$u-primary-light: #ecf5ff;
|
||||
|
||||
$u-warning: #f9ae3d;
|
||||
$u-warning-dark: #f1a532;
|
||||
$u-warning-disabled: #f9d39b;
|
||||
$u-warning-light: #fdf6ec;
|
||||
|
||||
$u-success: #5ac725;
|
||||
$u-success-dark: #53c21d;
|
||||
$u-success-disabled: #a9e08f;
|
||||
$u-success-light: #f5fff0;
|
||||
|
||||
$u-error: #f56c6c;
|
||||
$u-error-dark: #e45656;
|
||||
$u-error-disabled: #f7b2b2;
|
||||
$u-error-light: #fef0f0;
|
||||
|
||||
$u-info: #909399;
|
||||
$u-info-dark: #767a82;
|
||||
$u-info-disabled: #c4c6c9;
|
||||
$u-info-light: #f4f4f5;
|
||||
|
||||
// scss混入,为了少写几行#ifndef
|
||||
@mixin flex($direction: row) {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: $direction;
|
||||
}
|
Binary file not shown.
Binary file not shown.
2
uni.scss
2
uni.scss
|
@ -11,7 +11,7 @@
|
|||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
@import '@/uni_modules/uview-ui/theme.scss';
|
||||
@import '@/static/css/theme.scss';
|
||||
/* 颜色变量 */
|
||||
$uni-theme-color: #f45846;
|
||||
$uni-newTheme-color: #38BE41;
|
||||
|
|
|
@ -10,7 +10,7 @@ $u-border-color: #dadbde;
|
|||
$u-bg-color: #f3f4f6;
|
||||
$u-disabled-color: #c8c9cc;
|
||||
|
||||
$u-primary: #3c9cff;
|
||||
$u-primary: #32BB3B;
|
||||
$u-primary-dark: #398ade;
|
||||
$u-primary-disabled: #9acafc;
|
||||
$u-primary-light: #ecf5ff;
|
||||
|
|
Loading…
Reference in New Issue