Browse Source

上传

master
前端-胡立永 5 months ago
parent
commit
d624c66ba7
37 changed files with 168 additions and 437 deletions
  1. +12
    -16
      components/base/tabbar.vue
  2. +2
    -2
      components/config/PrivacyAgreementPoup.vue
  3. +7
    -0
      pages.json
  4. +1
    -1
      pages/index/cart.vue
  5. +2
    -71
      pages/index/center.vue
  6. +105
    -336
      pages/index/index.vue
  7. +28
    -0
      pages/index/member.vue
  8. +1
    -1
      pages_order/auth/wxLogin.vue
  9. +1
    -1
      pages_order/auth/wxUserInfo.vue
  10. BIN
      static/image/home/0.png
  11. BIN
      static/image/home/1.png
  12. BIN
      static/image/home/2.png
  13. BIN
      static/image/home/3.png
  14. BIN
      static/image/home/4.png
  15. BIN
      static/image/home/5.png
  16. BIN
      static/image/home/6.png
  17. BIN
      static/image/home/7.png
  18. BIN
      static/image/home/address-icon.png
  19. BIN
      static/image/home/arrow-icon.png
  20. BIN
      static/image/home/search-icon.png
  21. BIN
      static/image/tabbar/cart-a.png
  22. BIN
      static/image/tabbar/cart.png
  23. BIN
      static/image/tabbar/category-a.png
  24. BIN
      static/image/tabbar/category.png
  25. BIN
      static/image/tabbar/center-a.png
  26. BIN
      static/image/tabbar/center.png
  27. BIN
      static/image/tabbar/home-a.png
  28. BIN
      static/image/tabbar/home.png
  29. BIN
      static/image/tabbar/member-a.png
  30. BIN
      static/image/tabbar/member.png
  31. BIN
      static/image/tabbar/order-a.png
  32. BIN
      static/image/tabbar/order.png
  33. +1
    -1
      uni.scss
  34. +1
    -1
      uni_modules/uv-icon/components/uv-icon/props.js
  35. +3
    -3
      uni_modules/uv-notice-bar/components/uv-notice-bar/props.js
  36. +1
    -1
      uni_modules/uv-search/components/uv-search/props.js
  37. +3
    -3
      uni_modules/uv-tabs/components/uv-tabs/props.js

+ 12
- 16
components/base/tabbar.vue View File

@ -3,13 +3,13 @@
<view class="tabbar-box"></view> <view class="tabbar-box"></view>
<view class="tabbar"> <view class="tabbar">
<view <view
:class="{item : true, active : select == index}"
:class="{item : true, active : select == item.key}"
v-for="(item, index) in list" v-for="(item, index) in list"
:key="index" :key="index"
v-if="!item.isNotShop || !userShop" v-if="!item.isNotShop || !userShop"
@click="toPath(item, index)"> @click="toPath(item, index)">
<view class="icon"> <view class="icon">
<image :src="select == index ?
<image :src="select == item.key ?
item.selectedIconPath : item.selectedIconPath :
item.iconPath" class="icon-image" mode=""></image> item.iconPath" class="icon-image" mode=""></image>
</view> </view>
@ -36,33 +36,29 @@
"selectedIconPath": "/static/image/tabbar/home-a.png", "selectedIconPath": "/static/image/tabbar/home-a.png",
"iconPath": "/static/image/tabbar/home.png", "iconPath": "/static/image/tabbar/home.png",
"pagePath": "/pages/index/index", "pagePath": "/pages/index/index",
"title": "首页"
"title": "首页",
key : 'home',
}, },
{ {
"selectedIconPath": "/static/image/tabbar/category-a.png",
"iconPath": "/static/image/tabbar/category.png",
"pagePath": "/pages/index/category",
"title": "分类",
isNotShop : true,
},
{
"selectedIconPath": "/static/image/tabbar/order-a.png",
"iconPath": "/static/image/tabbar/order.png",
"pagePath": "/pages/index/order",
"title": "订单中心"
"selectedIconPath": "/static/image/tabbar/member-a.png",
"iconPath": "/static/image/tabbar/member.png",
"pagePath": "/pages/index/member",
"title": "会员",
key : 'member',
}, },
{ {
"selectedIconPath": "/static/image/tabbar/cart-a.png", "selectedIconPath": "/static/image/tabbar/cart-a.png",
"iconPath": "/static/image/tabbar/cart.png", "iconPath": "/static/image/tabbar/cart.png",
"pagePath": "/pages/index/cart", "pagePath": "/pages/index/cart",
"title": "购物车", "title": "购物车",
isNotShop : true,
key : 'cart',
}, },
{ {
"selectedIconPath": "/static/image/tabbar/center-a.png", "selectedIconPath": "/static/image/tabbar/center-a.png",
"iconPath": "/static/image/tabbar/center.png", "iconPath": "/static/image/tabbar/center.png",
"pagePath": "/pages/index/center", "pagePath": "/pages/index/center",
"title": "个人中心"
"title": "我的",
key : 'center',
} }
] ]
}; };


+ 2
- 2
components/config/PrivacyAgreementPoup.vue View File

@ -10,7 +10,7 @@
</view> </view>
<view class="content_pri"> <view class="content_pri">
<view class="text"> <view class="text">
欢迎来到酒店布草!我们根据最新的法律法规监管政策要求更新了用户协议隐私政策,请您认真阅读
欢迎来到三只青蛙小程序!我们根据最新的法律法规监管政策要求更新了用户协议隐私政策,请您认真阅读
</view> </view>
</view> </view>
<view class="config"> <view class="config">
@ -18,7 +18,7 @@
<view class="content"> <view class="content">
<view style="display: flex;"> <view style="display: flex;">
<!-- <uv-checkbox size="30rpx" :name="1"></uv-checkbox> --> <!-- <uv-checkbox size="30rpx" :name="1"></uv-checkbox> -->
同意<text @click="goToPrivacy">酒店布草隐私政策</text>
同意<text @click="goToPrivacy">三只青蛙小程序隐私政策</text>
</view> </view>
<view class=""> <view class="">
以及<text @click="goToPrivacy">用户协议</text> 以及<text @click="goToPrivacy">用户协议</text>


+ 7
- 0
pages.json View File

@ -28,6 +28,13 @@
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": ""
} }
},
{
"path" : "pages/index/member",
"style" :
{
"navigationBarTitleText" : ""
}
} }
], ],
"preloadRule": { "preloadRule": {


+ 1
- 1
pages/index/cart.vue View File

@ -77,7 +77,7 @@
</view> </view>
</view> </view>
<tabber select="3" />
<tabber select="cart" />
</view> </view>
</template> </template>


+ 2
- 71
pages/index/center.vue View File

@ -18,36 +18,13 @@
今天是您来的的第32天 今天是您来的的第32天
</view> </view>
</view> </view>
<view class="headBtn" @click="headBtn">
角色切换
</view>
<view class="setting"> <view class="setting">
<uv-icon name="setting" size="40rpx"></uv-icon> <uv-icon name="setting" size="40rpx"></uv-icon>
</view> </view>
</view> </view>
<!-- 水洗店 -->
<view class="userShop" v-if="userShop">
<userShopCommission />
<view class="userList">
<view class="title">
我的用户
</view>
<view class="list">
<view class="item" v-for="(item, index) in 20" :key="index">
<view class="name">
客户王生
</view>
<view class="num">
剩余水洗布198
</view>
</view>
</view>
</view>
</view>
<!-- 酒店 --> <!-- 酒店 -->
<view class="user" v-else>
<view class="user">
<view class="line"> <view class="line">
<view class="item"> <view class="item">
<view class="image"> <view class="image">
@ -120,7 +97,7 @@
</view> </view>
</view> </view>
<tabber select="4" />
<tabber select="center" />
</view> </view>
</template> </template>
@ -136,24 +113,12 @@
userShopCommission, userShopCommission,
}, },
computed: { computed: {
...mapGetters(['userShop']),
}, },
data() { data() {
return { return {
} }
}, },
methods: { methods: {
headBtn() {
let self = this
uni.showModal({
title: '演示切换角色之后的效果',
success(res) {
if (res.confirm) {
self.$store.state.shop = !self.$store.state.shop
}
}
})
},
} }
} }
</script> </script>
@ -267,40 +232,6 @@
} }
} }
.userShop {
.userList {
.title {
font-size: 32rpx;
font-weight: 900;
padding: 20rpx;
}
.list {
display: flex;
flex-wrap: wrap;
.item {
width: 270rpx;
margin: 20rpx;
display: flex;
flex-direction: column;
padding: 40rpx 30rpx;
background-color: #fff;
border-radius: 30rpx;
line-height: 60rpx;
.name {}
.num {
color: $uni-color;
font-weight: 600;
font-size: 28rpx;
}
}
}
}
}
.user { .user {
.line { .line {
display: flex; display: flex;


+ 105
- 336
pages/index/index.vue View File

@ -1,31 +1,19 @@
<template> <template>
<view class="page"> <view class="page">
<navbar/>
<navbar bgColor="#88D259"/>
<view class="search">
<view @click="showSelectArea" class="left-area">
<image src="@/static/image/home/address-icon.png"></image>
<view class="area">{{ area }}</view>
<image src="@/static/image/home/arrow-icon.png" mode="aspectFit"></image>
<view class="parting-line">|</view>
</view>
<view class="bg-color"></view>
<view class="center-area">
<image
style="margin-right: 20rpx;"
src="@/static/image/home/search-icon.png"></image>
<input v-model="queryParams.title"
placeholder="桌布租赁" />
</view>
<!-- <view class="right-area">
<view @click="searchAddress" class="search-button">
搜索
</view>
</view> -->
<view class="page-title">
三只青蛙
</view>
<view class="search">
<uv-search
placeholder="搜你喜欢的产品"
bgColor="#fff"
v-model="keyword"></uv-search>
</view> </view>
<view class="swipe"> <view class="swipe">
@ -36,81 +24,26 @@
keyName="url"></uv-swiper> keyName="url"></uv-swiper>
</view> </view>
<!-- 水洗店 -->
<view class="userShop"
v-if="userShop">
<view class="list">
<view class="item"
v-for="(item, index) in 4"
:key="index">
<view class="">
<view class="">
我的客户
</view>
<view class="num">
{{ 30 }}
</view>
</view>
<view class="">
<image :src="`/static/image/home/${index}.png`" mode=""></image>
</view>
</view>
</view>
<view class="notice">
<uv-notice-bar :text="notice"></uv-notice-bar>
</view> </view>
<!-- 酒店 -->
<view class="user"
v-else>
<uv-notice-bar
fontSize="28rpx"
:text="text"></uv-notice-bar>
<view class="shop">
<image
class="image"
src="https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg"
mode=""></image>
<view class="shopInfo">
<view class="title">
HOUS水洗店
</view>
<view class="tags">
<view class="tag">
桌布水洗
</view>
<view class="tag">
桌布租赁
</view>
</view>
<view class="time">
9:00-18:00
</view>
<view class="address">
长沙市天心区桂花坪街道231号
</view>
</view>
<view class="btns">
<view class="btn"
@click="$utils.navigateTo('/pages_order/auth/wxUserInfo')">
我要水洗
</view>
</view>
<view class="menu">
<uv-grid :border="false" :col="4">
<uv-grid-item v-for="(item,index) in baseList"
:key="index">
<view class="tips">
关联门店主信门店
</view>
</view>
<view class="productList">
<productList/>
</view>
<image :src="item.image" mode=""></image>
<text class="menu-text">{{item.title}}</text>
</uv-grid-item>
</uv-grid>
</view> </view>
<!-- <selectArea ref="selectArea" @close="closeAreaPro" @select="selectArea"></selectArea> -->
<PrivacyAgreementPoup/> <PrivacyAgreementPoup/>
<tabber select="0"/>
<tabber select="home"/>
</view> </view>
</template> </template>
@ -118,24 +51,16 @@
import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue' import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
import Position from '@/utils/position.js' import Position from '@/utils/position.js'
import tabber from '@/components/base/tabbar.vue' import tabber from '@/components/base/tabbar.vue'
import productList from '@/components/user/productList.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
// import selectArea from '../../components/selectArea.vue';
export default { export default {
components : { components : {
tabber, tabber,
productList,
PrivacyAgreementPoup, PrivacyAgreementPoup,
}, },
data() { data() {
return { return {
area: '长沙', area: '长沙',
text : '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
queryParams: {
pageNo: 1,
pageSize: 10,
title: ''
},
notice : '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
bannerList: [ bannerList: [
{ {
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
@ -147,264 +72,108 @@
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
}, },
], ],
baseList : [
{
image : '/static/image/home/1.png',
title : '关于我们',
},
{
image : '/static/image/home/1.png',
title : '产品介绍',
},
{
image : '/static/image/home/2.png',
title : '促销活动',
},
{
image : '/static/image/home/3.png',
title : '商城',
},
{
image : '/static/image/home/4.png',
title : '邀请好友',
},
{
image : '/static/image/home/5.png',
title : '新闻中心',
},
{
image : '/static/image/home/6.png',
title : '校企合作',
},
{
image : '/static/image/home/7.png',
title : '联系我们',
},
],
productList: [], productList: [],
keyword : '',
} }
}, },
computed : { computed : {
...mapGetters(['userShop']),
}, },
methods: { methods: {
//
showSelectArea() {
// this.$refs.selectArea.open()
},
//
searchAddress() {
Position.getLocation(res => {
Position.selectAddress(res.longitude, res.latitude, success => {
let address = this.extractProvinceAndCity(success)
this.queryParams.title = address.city
})
})
},
//()
extractProvinceAndCity(res) { //()
if (!res.address && res.name) { //
return {
province: '',
city: res.name
};
}
if (res.address) { //
// 使
const regex = /(?<province>[\u4e00-\u9fa5]+?省)(?<city>[\u4e00-\u9fa5]+?(?:市|自治州|盟|地区))/;
const match = res.address.match(regex);
if (match) { //
return {
province: match.groups.province,
city: match.groups.city
};
}
}
return { //
province: '',
city: ''
}
},
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.search {
height: 82rpx;
width: 710rpx;
background: #FFFFFF;
margin: 20rpx auto;
border-radius: 41rpx;
box-sizing: border-box;
padding: 0 15rpx;
display: flex;
align-items: center;
// justify-content: space-between;
.left-area,
.center-area {
display: flex;
align-items: center;
.page{
.bg-color{
width: 100%;
position: absolute;
top: 0;
left: 0;
height: 550rpx;
background: linear-gradient(to bottom, #88D259, #88D259, #fff);
} }
.left-area {
max-width: 160rpx;
image {
flex-shrink: 0;
width: 26rpx;
height: 26rpx;
}
.area {
font-size: 24rpx;
display: -webkit-box;
-webkit-line-clamp: 2;
/* 限制显示两行 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
color: #292929;
}
.parting-line {
flex-shrink: 0;
font-size: 26rpx;
color: #ccc;
margin: 0rpx 5rpx;
}
.page-title{
position: relative;
margin-left: 30rpx;
margin-bottom: 30rpx;
} }
.center-area {
.search {
position: relative;
background: #FFFFFF;
margin: 20rpx;
border-radius: 41rpx;
padding: 10rpx 20rpx;
display: flex; display: flex;
flex-wrap: nowrap;
align-items: center; align-items: center;
width: calc(100% - 290rpx);
margin-left: 30rpx;
image {
width: 26rpx;
height: 26rpx;
}
.van-field {
background-color: transparent;
box-sizing: border-box;
height: 82rpx;
line-height: 82rpx;
width: calc(100% - 30rpx);
padding: 0rpx 10rpx 0rpx 0rpx;
input {
height: 82rpx;
font-size: 60rpx;
}
/deep/ .uv-search__action{
background-color: $uni-color;
color: #FFFFFF;
padding: 10rpx 20rpx;
border-radius: 30rpx;
} }
} }
.right-area {
.search-button {
background: #60BDA2;
height: 60rpx;
width: 130rpx;
font-size: 26rpx;
border-radius: 35rpx;
color: white;
display: flex;
align-items: center;
justify-content: center;
}
.swipe{
position: relative;
overflow: hidden;
border-radius: 20rpx;
margin: 20rpx;
} }
}
.swipe{
overflow: hidden;
border-radius: 20rpx;
margin: 20rpx;
}
.page{
& /deep/ .uv-icon__icon{
font-size: 30rpx !important;
}
//
.userShop{
.list{
display: flex;
flex-wrap: wrap;
.item{
display: flex;
justify-content: center;
align-items: center;
width: 330rpx;
margin: 20rpx;
padding: 30rpx 0;
color: #FFFFFF;
line-height: 50rpx;
border-radius: 20rpx;
font-size: 28rpx;
.num{
font-size: 38rpx;
font-weight: 900;
}
image{
width: 110rpx;
height: 110rpx;
margin-left: 20rpx;
}
&:nth-child(1){
background: #F07A77;
}
&:nth-child(2){
background: #F48B4E;
}
&:nth-child(3){
background: #6487E1;
}
&:nth-child(4){
background: #61B7E6;
}
}
.menu{
margin: 20rpx;
border-radius: 20rpx;
padding: 20rpx;
background-color: #fff;
box-shadow: 0 0 10rpx 10rpx #00000009;
image{
width: 80rpx;
height: 80rpx;
margin-top: 10rpx;
}
.menu-text{
font-size: 28rpx;
margin-bottom: 10rpx;
margin-top: 10rpx;
} }
} }
//
.user{
padding: 20rpx;
.shop{
position: relative;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
margin-top: 20rpx;
border-radius: 20rpx;
padding: 20rpx;
overflow: hidden;
.image{
width: 180rpx;
height: 180rpx;
margin-right: 20rpx;
border-radius: 20rpx;
}
.shopInfo{
font-size: 22rpx;
.title{
font-size: 30rpx;
}
.tags{
display: flex;
.tag{
padding: 4rpx 6rpx;
border: 1rpx solid #FFAC6E;
color: #FFAC6E;
margin-right: 10rpx;
margin-top: 10rpx;
font-size: 18rpx;
}
}
.time{
margin-top: 10rpx;
display: flex;
}
.address{
margin-top: 10rpx;
display: flex;
}
}
.btns{
margin-left: auto;
display: flex;
align-items: center;
justify-content: center;
.btn{
background-color: $uni-color;
color: #fff;
box-shadow: 0 0 5rpx 5rpx #FFAC6E;
padding: 10rpx 20rpx;
flex-shrink: 0;
border-radius: 35rpx;
}
}
.tips{
position: absolute;
top: 0;
right: 0;
font-size: 24rpx;
color: #FFAC6E;
background-color: #FEF5EE;
padding: 10rpx 20rpx;
border-radius: 10rpx;
}
.notice{
margin: 0 20rpx;
/deep/ .uv-notice-bar{
background: linear-gradient(to right, #f9edc9, #dfedd6);
} }
} }
} }


+ 28
- 0
pages/index/member.vue View File

@ -0,0 +1,28 @@
<template>
<view class="page">
<navbar title="会员"/>
<tabber select="member"/>
</view>
</template>
<script>
import tabber from '@/components/base/tabbar.vue'
export default {
components: {
tabber,
},
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

+ 1
- 1
pages_order/auth/wxLogin.vue View File

@ -4,7 +4,7 @@
<!-- <image src="/static/image/login/logo.png" mode=""></image> --> <!-- <image src="/static/image/login/logo.png" mode=""></image> -->
</view> </view>
<view class="title"> <view class="title">
欢迎使用酒店桌布租赁平台
欢迎使用三只青蛙小程序
</view> </view>
<view class="btn mt" <view class="btn mt"
@click="wxLogin"> @click="wxLogin">


+ 1
- 1
pages_order/auth/wxUserInfo.vue View File

@ -1,7 +1,7 @@
<template> <template>
<view class="login"> <view class="login">
<view class="title"> <view class="title">
酒店桌布租赁平台
三只青蛙小程序
</view> </view>
<view class="title"> <view class="title">
申请获取你的头像昵称 申请获取你的头像昵称


BIN
static/image/home/0.png View File

Before After
Width: 116  |  Height: 118  |  Size: 14 KiB

BIN
static/image/home/1.png View File

Before After
Width: 117  |  Height: 117  |  Size: 13 KiB Width: 200  |  Height: 200  |  Size: 25 KiB

BIN
static/image/home/2.png View File

Before After
Width: 114  |  Height: 114  |  Size: 12 KiB Width: 200  |  Height: 200  |  Size: 13 KiB

BIN
static/image/home/3.png View File

Before After
Width: 114  |  Height: 114  |  Size: 11 KiB Width: 200  |  Height: 200  |  Size: 18 KiB

BIN
static/image/home/4.png View File

Before After
Width: 200  |  Height: 200  |  Size: 19 KiB

BIN
static/image/home/5.png View File

Before After
Width: 200  |  Height: 200  |  Size: 14 KiB

BIN
static/image/home/6.png View File

Before After
Width: 200  |  Height: 200  |  Size: 16 KiB

BIN
static/image/home/7.png View File

Before After
Width: 200  |  Height: 200  |  Size: 26 KiB

BIN
static/image/home/address-icon.png View File

Before After
Width: 38  |  Height: 38  |  Size: 1.4 KiB

BIN
static/image/home/arrow-icon.png View File

Before After
Width: 39  |  Height: 39  |  Size: 296 B

BIN
static/image/home/search-icon.png View File

Before After
Width: 38  |  Height: 38  |  Size: 1.8 KiB

BIN
static/image/tabbar/cart-a.png View File

Before After
Width: 40  |  Height: 40  |  Size: 958 B Width: 78  |  Height: 68  |  Size: 3.3 KiB

BIN
static/image/tabbar/cart.png View File

Before After
Width: 40  |  Height: 40  |  Size: 953 B Width: 78  |  Height: 68  |  Size: 3.8 KiB

BIN
static/image/tabbar/category-a.png View File

Before After
Width: 40  |  Height: 40  |  Size: 1.1 KiB

BIN
static/image/tabbar/category.png View File

Before After
Width: 40  |  Height: 40  |  Size: 1.2 KiB

BIN
static/image/tabbar/center-a.png View File

Before After
Width: 40  |  Height: 40  |  Size: 915 B Width: 61  |  Height: 76  |  Size: 3.4 KiB

BIN
static/image/tabbar/center.png View File

Before After
Width: 40  |  Height: 40  |  Size: 937 B Width: 61  |  Height: 76  |  Size: 3.9 KiB

BIN
static/image/tabbar/home-a.png View File

Before After
Width: 47  |  Height: 43  |  Size: 2.2 KiB Width: 69  |  Height: 70  |  Size: 2.0 KiB

BIN
static/image/tabbar/home.png View File

Before After
Width: 47  |  Height: 43  |  Size: 2.2 KiB Width: 69  |  Height: 70  |  Size: 1.7 KiB

BIN
static/image/tabbar/member-a.png View File

Before After
Width: 72  |  Height: 65  |  Size: 3.7 KiB

BIN
static/image/tabbar/member.png View File

Before After
Width: 72  |  Height: 65  |  Size: 3.4 KiB

BIN
static/image/tabbar/order-a.png View File

Before After
Width: 40  |  Height: 40  |  Size: 691 B

BIN
static/image/tabbar/order.png View File

Before After
Width: 40  |  Height: 40  |  Size: 736 B

+ 1
- 1
uni.scss View File

@ -12,7 +12,7 @@
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量同时无需 import 这个文件 * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量同时无需 import 这个文件
*/ */
/* 颜色变量 */ /* 颜色变量 */
$uni-color: #FD5100;
$uni-color: #A3D250;
/* 行为相关颜色 */ /* 行为相关颜色 */
$uni-color-primary: #007aff; $uni-color-primary: #007aff;


+ 1
- 1
uni_modules/uv-icon/components/uv-icon/props.js View File

@ -13,7 +13,7 @@ export default {
// 字体大小,单位px // 字体大小,单位px
size: { size: {
type: [String, Number], type: [String, Number],
default: '16px'
default: '30rpx'
}, },
// 是否显示粗体 // 是否显示粗体
bold: { bold: {


+ 3
- 3
uni_modules/uv-notice-bar/components/uv-notice-bar/props.js View File

@ -23,7 +23,7 @@ export default {
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标 // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
mode: { mode: {
type: String, type: String,
default: ''
default: 'link'
}, },
// 文字颜色,各图标也会使用文字颜色 // 文字颜色,各图标也会使用文字颜色
color: { color: {
@ -38,12 +38,12 @@ export default {
// 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: { speed: {
type: [String, Number], type: [String, Number],
default: 80
default: 100
}, },
// 字体大小 // 字体大小
fontSize: { fontSize: {
type: [String, Number], type: [String, Number],
default: 14
default: 26
}, },
// 滚动一个周期的时间长,单位ms // 滚动一个周期的时间长,单位ms
duration: { duration: {


+ 1
- 1
uni_modules/uv-search/components/uv-search/props.js View File

@ -90,7 +90,7 @@ export default {
}, },
searchIconSize: { searchIconSize: {
type: [Number, String], type: [Number, String],
default: 22
default: 32
}, },
// 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法 // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
margin: { margin: {


+ 3
- 3
uni_modules/uv-tabs/components/uv-tabs/props.js View File

@ -13,7 +13,7 @@ export default {
// 滑块颜色 // 滑块颜色
lineColor: { lineColor: {
type: String, type: String,
default: '#3c9cff'
default: '#169bd5'
}, },
// 菜单选择中时的样式 // 菜单选择中时的样式
activeStyle: { activeStyle: {
@ -32,12 +32,12 @@ export default {
// 滑块长度 // 滑块长度
lineWidth: { lineWidth: {
type: [String, Number], type: [String, Number],
default: 20
default: 40
}, },
// 滑块高度 // 滑块高度
lineHeight: { lineHeight: {
type: [String, Number], type: [String, Number],
default: 3
default: 10
}, },
// 滑块背景显示大小,当滑块背景设置为图片时使用 // 滑块背景显示大小,当滑块背景设置为图片时使用
lineBgSize: { lineBgSize: {


Loading…
Cancel
Save