Commit b8062cc9 by 高淑倩

warning

parent fee42de6
/**app.wxss**/
page {
width: 100%;
box-sizing: border-box;
/* background-color: #f2f4f7; */
font-size: 30rpx;
font-family:"iconfont-711" !important;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
/* 主题色 */
.theme-color{
background-color: #CB3C3C;
.theme-color {
background-color: #cb3c3c;
}
.theme-text-color{
color: #CB3C3C;
.theme-text-color {
color: #cb3c3c;
}
/* 按钮样式 */
.btn{
width: 100%;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
border-radius: 0;
}
.btn:active{
opacity: 0.5;
}
.btn-default{
background: none;
color: #808080;
border: 1px solid #808080;
.btn {
width: 100%;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
border-radius: 0;
}
.btn:active {
opacity: 0.5;
}
.btn-default {
background: none;
color: #808080;
border: 1px solid #808080;
}
.btn-primary{
background-color: #CB3C3C;
color: #ffffff;
border: 1px solid #CB3C3C;
font-size: 25rpx;
}
.btn-gray{
background-color: #959595;
color: #ffffff;
border: 1px solid #959595;
font-size: 25rpx;
}
.btn-outline{
background: none;
color: #CB3C3C;
.btn-primary {
background-color: #cb3c3c;
color: #ffffff;
border: 1px solid #cb3c3c;
font-size: 25rpx;
}
.btn-gray {
background-color: #959595;
color: #ffffff;
border: 1px solid #959595;
font-size: 25rpx;
}
.btn-outline {
background: none;
color: #cb3c3c;
}
/* 按钮大小 */
.btn-xs{
height: 39rpx;
line-height: 39rpx;
.btn-xs {
height: 39rpx;
line-height: 39rpx;
}
.btn-sm{
height: 46rpx;
line-height: 46rpx;
.btn-sm {
height: 46rpx;
line-height: 46rpx;
}
.btn-lg{
height: 88rpx;
line-height: 88rpx;
.btn-lg {
height: 88rpx;
line-height: 88rpx;
}
.fixed-bottom0 {
position: fixed;
bottom: 0;
width: 100%;
z-index: 9999;
}
.pr {
float: right;
}
.df {
display: flex;
align-items: center;
justify-content: center;
}
/*文字居中*/
.tc {
text-align: center;
}
.df-1 {
flex: 1;
}
<!--component/announcement/announcement.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="announcement df" style="background-color:{{notice.backgroundColor}}" data-redirectId="{{notice.redirectId}}" bindtap="handelToAnn">
<view class="announcement" style="background-color:{{notice.backgroundColor}}" data-redirectId="{{notice.redirectId}}" bindtap="handelToAnn">
<view class="horn">
<image class="img" src="{{notice.iconImageUrl? utils.formateUrl(notice.iconImageUrl,baseImgUrl) : '/assets/imgs/7_1_0/notice.png'}}" mode="widthFix" />
<!--<image class="img" src="{{notice.iconImageUrl? 'notice.iconImageUrl': '/assets/imgs/7_1_0/notice.png'}}" mode="widthFix" />-->
......
/* component/announcement/announcement.wxss */
@import './../../base/base.wxss';
.announcement {
height: 58rpx;
margin: 20rpx;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
.text {
overflow: hidden;
......@@ -15,7 +18,6 @@
color: rgba(102, 102, 102, 1);
font-size: 22rpx;
text-align: left;
font-family: PingFangSC-Regular;
}
.horn {
width: 50rpx;
......
/* component/bottomTabs/bottomTabs.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
@import "/app.wxss";
.bottom-tab {
display: flex;
align-items: center;
justify-content: center;
}
.tab-img {
/* width: 50rpx;
height: 50rpx; */
width: 70rpx;
height: 70rpx;
}
.tab {
flex: 1;
}
.btn-tab,.tab {
.btn-tab .tab {
height: 100%;
}
.bgc {
......@@ -30,7 +29,3 @@
.pdt {
padding-top: 50rpx;
}
/* .btn-tab {
display: flex;
justify-content: center;
} */
\ No newline at end of file
// component/hotItem/hotItem.js
var app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
const envInfo = require('../../config/index').envInfo
Component({
/**
* 组件的属性列表
*/
properties: {
},
attached () {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--component/hotItem/hotItem.wxml-->
<view class="hot-item border_box">
<view class="hot-img-box">
<image class="hot-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
</view>
<view class="hot-item-desc border_box">
<view class="item-name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="item-vip-price weui-flex">
<view class="">
<image
class="item-vip"
src="./../../assets/imgs/7_1_0/vip.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</view>
<text class="vip-sale-price border_box">¥189</text>
<text class="vip-original-price">¥189</text>
</view>
<view class="item-plus-price weui-flex">
<view class="">
<image
class="item-plus"
src="./../../assets/imgs/7_1_0/plus.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</view>
<text class="vip-plus-price vip-sale-price border_box">¥158</text>
</view>
<view class="buy-btn">
<button class="buy">立即购买</button>
</view>
<view/>
</view>
</view>
/* component/hotItem/hotItem.wxss */
@import './../../base/base.wxss';
.hot-item {
display: flex;
padding: 28rpx;
width: 710rpx;
height: 236rpx;
border-radius: 10px;
margin: 0 auto;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.05);
}
.hot-img {
width: 180rpx;
height: 180rpx;
}
.hot-item-desc {
margin-left: 28rpx;
}
.item-name {
overflow: hidden;
white-space: nowrap;
width: 440rpx;
height: 30rpx;
color: rgba(0, 0, 0, 1);
font-size: 22rpx;
text-align: left;
font-family: PingFangSC-Light;
padding: 10rpx 0 20rpx 0;
}
.item-vip,
.item-plus {
width: 88rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #fff;
}
.item-plus-price,
.item-vip-price{
display: flex;
height: 45rpx;
color: rgba(51, 51, 51, 1);
font-size: 32rpx;
font-family: PingFangSC-Medium;
flex-direction: row;
align-items: baseline;
}
.vip-sale-price {
padding: 0 10rpx;
}
.vip-original-price {
width: 62rpx;
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
font-family: PingFangSC-Regular;
text-decoration: line-through;
}
.vip-plus-price {
color: rgba(203, 60, 60, 1);
}
.buy-btn {
text-align: right;
}
.buy {
display: inline-block;
width: 125rpx;
height: 39rpx;
line-height: 35rpx;
border-radius: 19rpx;
text-align: center;
background-color: rgba(203, 60, 60, 1);
border: 2rpx solid rgba(151, 151, 151, 1);
color: rgba(255, 255, 255, 1);
font-size: 18rpx;
font-family: PingFangSC-Regular;
}
<!--component/iconSwiper/iconSwiper.wxml-->
<view class="df">
<view class="icon-swiper">
<block wx:for="{{icons}}" wx:key="{{item}}">
<view class="icon-box border_box">
<view class="">
......
/* component/iconSwiper/iconSwiper.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
.icon-swiper {
display: flex;
align-items: center;
justify-content: center;
}
.icon-box {
width: 25%;
text-align: center;
......
/* component/personCenter/personCenter.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
@import "/app.wxss";
.user-content{
height: 92rpx;
padding: 28rpx 35rpx 0 50rpx;
......
......@@ -45,7 +45,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary'
class='btn btn-primary pay-btn'
hover-class="btn-hover"
>
<text>立即支付</text>
......
/* component/plus/plus.wxss */
@import '../../base/base.wxss';
/* @import '../../base/base.wxss'; */
@import "/app.wxss";
.plus-wrap {
width: 100%;
display: flex;
......@@ -28,14 +29,14 @@
background-repeat: no-repeat;
position: relative;
}
.poster-tips{
/* .poster-tips{
position: fixed;
bottom: 220rpx;
left: 33rpx;
}
.poster-tips image{
width: 362rpx;
}
} */
.pay{
height: 88rpx;
line-height: 88rpx;
......@@ -44,7 +45,7 @@
flex-direction: row-reverse;
margin-right: 30rpx;
}
.pay button{
.pay .pay-btn{
width: 280rpx;
height: 52rpx;
line-height: 52rpx;
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment