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