Browse Source

修改登录页和新增商品按钮

master
tianyi@bogon 3 years ago
parent
commit
b0c20e677e
  1. 20
      pages/inventory/inventory.vue
  2. 43
      pages/login/login.vue

20
pages/inventory/inventory.vue

@ -36,7 +36,12 @@
</view>
</view>
<view class="search">
<u-search placeholder="输入商品名称/编号查询" v-model="keyword"></u-search>
<!-- <u-search placeholder="输入商品名称/编号查询" v-model="keyword"></u-search> -->
<uni-search-bar class="uni-mt-10" radius="5" placeholder="商品名称/编号" cancelButton="none"
@confirm="search" />
<view class="title-right-bottom title-btn" style="width:22%;float: left;height:75rpx;line-height: 75rpx;margin-top:20rpx;" @click="onGridClick('2')">
新增商品
</view>
</view>
<view class="content-box">
<view class="content-left">
@ -205,7 +210,7 @@
<style lang="scss" scoped>
.search {
padding: 20upx;
// padding: 20upx;
background-color: #fff;
// position: fixed;
// top: 0;
@ -362,5 +367,14 @@
.price-box text:first-child {
color: #ffa200
}
}
.uni-mt-10 {
position: relative;
width: 74% !important;
float: left !important;
}
.uni-searchbar,.uni-searchbar__box{
width: 100% !important;
}
</style>

43
pages/login/login.vue

@ -56,11 +56,12 @@
<view class="popup-content">
<view class="popup-title">
<text>选择店铺</text>
<!-- <uni-icons @tap='close' type="closeempty" color='red' size="16"
style="height:40rpx;line-height: 40rpx;position: absolute;right: 0;"></uni-icons> -->
</view>
<view class="popup-container">
<text style="display: inline-block;text-indent: 2em;">{{item.remark}}</text>
<text style="display: inline-block">张三的店</text>
</view>
<view class="popup-container">
<text style="display: inline-block">李四的店</text>
</view>
</view>
</uni-popup>
@ -134,7 +135,6 @@
},
//登录
goLogin() {
// this.isChoose = true;
let data = {}
if (this.loginWay) { //true
data = {
@ -338,5 +338,40 @@
.code-box {
display: flex;
}
.popup-content {
align-items: center;
justify-content: center;
padding: 15px;
width: 500rpx;
height: auto;
background-color: #fff;
}
.popup-title {
font-size: 36rpx;
font-weight: bold;
text-align: center;
position: relative;
}
.popup-container {
margin-top: 20rpx;
height: 100rpx;
border-radius: 10px;
background: #088FEB;
line-height: 100rpx;
text-align: center;
border-bottom: 1px solid #eee;
border-top: 1px solid #eee;
color: #fff;
}
.phone-btn {
width: 150rpx;
height: 75rpx;
color: #088FEB;
line-height: 75rpx;
font-size: 26rpx;
}
</style>
Loading…
Cancel
Save