update 更新商品搜索页
This commit is contained in:
parent
365358c2cd
commit
adbe417bd2
@ -206,6 +206,12 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/warehouse/manage/productListSearch",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/warehouse/manage/brandList",
|
||||
"style": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
v-if="true"
|
||||
></status-bar>
|
||||
|
||||
<view class="hander" @click="skipu()">
|
||||
<view class="hander" @click="skipu()">
|
||||
<view class="hander-left">
|
||||
<view class="user-img">
|
||||
<u--image
|
||||
@ -45,7 +45,13 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="shop_status" :style="{background: shopStatus==1 ? '#D8F1EC' : shopStatus==2 ? '#ffecf2': '#eee'}">
|
||||
<view
|
||||
class="shop_status"
|
||||
:style="{
|
||||
background:
|
||||
shopStatus == 1 ? '#D8F1EC' : shopStatus == 2 ? '#ffecf2' : '#eee',
|
||||
}"
|
||||
>
|
||||
<u-cell-group :border="false">
|
||||
<u-cell
|
||||
@click="handleShowTime"
|
||||
@ -54,7 +60,7 @@
|
||||
isLink
|
||||
icon="hourglass-half-fill"
|
||||
title="营业中"
|
||||
v-if="shopStatus==1"
|
||||
v-if="shopStatus == 1"
|
||||
></u-cell>
|
||||
<u-cell
|
||||
iconStyle="marginRight:6px; color: #fe411b"
|
||||
@ -63,16 +69,16 @@
|
||||
url="/pages/my/shopQRcode/shopQRcode"
|
||||
icon="hourglass-half-fill"
|
||||
title="已停业"
|
||||
v-if="shopStatus==2"
|
||||
v-if="shopStatus == 2"
|
||||
></u-cell>
|
||||
<u-cell
|
||||
<u-cell
|
||||
iconStyle="marginRight:6px; color: #666"
|
||||
:border="false"
|
||||
isLink
|
||||
url="/pages/my/shopQRcode/shopQRcode"
|
||||
icon="hourglass-half-fill"
|
||||
title="已打烊"
|
||||
v-if="shopStatus==3"
|
||||
v-if="shopStatus == 3"
|
||||
></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
@ -167,9 +173,9 @@
|
||||
</u-cell-group>
|
||||
</view>
|
||||
|
||||
<view class="btn_logout">退出登录</view>
|
||||
<view class="btn_logout" @click="outLogin">退出登录</view>
|
||||
|
||||
<tpfTimeRange
|
||||
<tpfTimeRange
|
||||
ref="time"
|
||||
:startDefaultTime="form.info.store_opening_hours"
|
||||
:endDefaultTime="form.info.store_close_hours"
|
||||
@ -224,11 +230,11 @@ export default {
|
||||
},
|
||||
},
|
||||
form: {
|
||||
info: {
|
||||
info: {
|
||||
store_opening_hours: "00:00",
|
||||
store_close_hours: "00:00",
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
@ -237,7 +243,7 @@ export default {
|
||||
this.getShopBaseInfo();
|
||||
},
|
||||
methods: {
|
||||
async getShopBaseInfo() {
|
||||
async getShopBaseInfo() {
|
||||
let res = await GetShopBaseInfo();
|
||||
if (res && res.status == 200) {
|
||||
this.form = res.data;
|
||||
@ -248,7 +254,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
handleTimeRange(e) {
|
||||
handleTimeRange(e) {
|
||||
this.form.businessTime = e[0] + e[1];
|
||||
this.form.store_opening_hours = e[0];
|
||||
this.form.store_close_hours = e[1];
|
||||
@ -271,12 +277,15 @@ export default {
|
||||
url: "/pages/my/shopInfo",
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
toServices() {
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/my/shopInfo",
|
||||
// });
|
||||
},
|
||||
outLogin() {
|
||||
this.$store.dispatch("user/LoginOut");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@ -341,9 +350,8 @@ export default {
|
||||
color: #000;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
|
||||
|
||||
.kf_item{
|
||||
.kf_item {
|
||||
position: absolute;
|
||||
right: 48rpx;
|
||||
top: 24rpx;
|
||||
@ -416,7 +424,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.shop_status{
|
||||
.shop_status {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
|
||||
@ -24,6 +24,8 @@
|
||||
placeholder="搜索你想要的商品"
|
||||
:showAction="false"
|
||||
bgColor="#fff"
|
||||
:disabled="true"
|
||||
@click="skipuSearch"
|
||||
></u-search>
|
||||
</block>
|
||||
</navBar>
|
||||
@ -763,6 +765,13 @@ export default {
|
||||
this.showRightPopup = true;
|
||||
this.isAdd = false;
|
||||
},
|
||||
skipuSearch() {
|
||||
uni.hideKeyboard();
|
||||
|
||||
uni.navigateTo({
|
||||
url: "/pages/warehouse/manage/productListSearch",
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user