更新了供货采购

This commit is contained in:
weipengfei 2023-12-11 10:48:34 +08:00
parent e888430b3e
commit e59f83a0e9
6 changed files with 1965 additions and 21 deletions

View File

@ -127,12 +127,12 @@ import { Toast } from '../libs/uniApi';
this.attrValue = datas.product?.attrValue; this.attrValue = datas.product?.attrValue;
this.change = this.attrValue[0]; this.change = this.attrValue[0];
this.cart_num = 1; this.cart_num = 1;
this.sku = datas.sku||{};
this.sku_key_list = Object.keys(this.sku);
this.current = 0; this.current = 0;
getProductDetail(datas.product_id,{ getProductDetail(datas.product_id,{
product_type: 98 product_type: 98
}).then((res)=>{ }).then((res)=>{
this.sku = res.data.sku||{};
this.sku_key_list = Object.keys(this.sku);
this.attr = res.data.attr; this.attr = res.data.attr;
if(this.attr.length>0){ if(this.attr.length>0){
this.attr.forEach((item, index)=>{ this.attr.forEach((item, index)=>{

View File

@ -9,8 +9,8 @@ let httpApiThree
let wsApi let wsApi
// 在打包之前请检查当前环境是否正确 // 在打包之前请检查当前环境是否正确
// const env = 'dev'; // 开发 const env = 'dev'; // 开发
const env = 'prod'; // 生产 // const env = 'prod'; // 生产
// const env = 'prew'; // 预上线 // const env = 'prew'; // 预上线
switch (env) { switch (env) {

View File

@ -434,6 +434,14 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},{
"path": "cloud_entrepot/indexb",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "供货采购",
"enablePullDownRefresh": true
}
}, { }, {
"path": "teach_video/teach_video", "path": "teach_video/teach_video",
"style": { "style": {

File diff suppressed because it is too large Load Diff

View File

@ -8,36 +8,44 @@
<view class='productList' :style="viewColor"> <view class='productList' :style="viewColor">
<!-- 顶部 --> <!-- 顶部 -->
<view class="top"> <view class="top">
<view style="height: 10px;">
</view>
<view class="head_tit"> <view class="head_tit">
<view class="" style="display: flex;align-items: center;"> <!--< view class="" style="display: flex;align-items: center;">
<view class="back" @click='backjJump()' style="margin-right: 17rpx;"> <view class="back" @click='backjJump()' style="margin-right: 17rpx;">
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view> <view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
</view> </view>
<view class="" style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);"> <view class="" style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
<!-- {{titName}} -->
供货采购 供货采购
</view> </view>
</view> -->
<view class="" style="display: flex;align-items: center;width: 100%;justify-content: space-between;">
<!-- <u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
height="50.82rpx" @click='backjJump'></u--image> -->
<view style="display: flex;align-items: center;">
<i class="iconfont icon-xiangzuo" style="font-size: 31.54rpx;text-align: left;" @click='backjJump'></i>
<view class=""
style="font-size: 31.54rpx;font-weight: 700;margin-left: 10rpx;color: #F84221;">
供货采购市场
</view> </view>
<view class=""> <view class=""
@click="navGoto(`/pages/nongKe/cloud_entrepot/indexb?type_id=12`)"
style="font-size: 31.54rpx;font-weight: 700;margin-left: 20rpx;">
供货采购商品
</view> </view>
<view style="position: relative;"> </view>
</view>
</view>
<view style="position: relative;" class="search-box">
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称" <u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称"
v-model="sotreParam.keyword" class="serch_cls"></u-search> v-model="sotreParam.keyword" class="serch_cls"></u-search>
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true" <u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image> src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
</view> </view>
</view>
<u-tabs v-if="no_prod" :list="[{name: '先款后货'},{name: '先货后款'}]" :scrollable="false" lineColor="#ff6d20" lineWidth="30" :itemStyle="{height: '88rpx'}" @change="changeTabs"> <u-tabs v-if="no_prod" :list="[{name: '先款后货'},{name: '先货后款'}]" :scrollable="false" lineColor="#ff6d20" lineWidth="30" :itemStyle="{height: '88rpx'}" @change="changeTabs">
</u-tabs> </u-tabs>
</view> </view>
<view class="content"> <view class="content">
<view class="search-input"></view>
<view v-if="no_prod" class="hot_serch"> <view v-if="no_prod" class="hot_serch">
<!-- <text>热搜:</text> <text>热a搜商品</text> <text>热搜商品</text>
<text>热搜sasas商品</text> -->
</view> </view>
<view v-else class="hot_serch2"> <view v-else class="hot_serch2">
</view> </view>
@ -656,6 +664,11 @@
that.$set(that.sotreParam, 'keyword', this.sotreParam.keyword); that.$set(that.sotreParam, 'keyword', this.sotreParam.keyword);
this.set_where(this.firstKey) this.set_where(this.firstKey)
}, },
navGoto(url) {
uni.redirectTo({
url
})
},
// //
bindRight() { bindRight() {
this.sotreParam.page = 1 this.sotreParam.page = 1
@ -886,6 +899,18 @@
} }
} }
.search-box{
margin-top: 10rpx;
padding: 0 20rpx;
}
.search-input{
padding-top: 42rpx;
/* #ifdef H5 */
padding-top: 50rpx;
/* #endif */
}
.hot_serch { .hot_serch {
color: #B3B3B3; color: #B3B3B3;
display: flex; display: flex;
@ -1358,7 +1383,8 @@
.img_cls { .img_cls {
position: absolute; position: absolute;
top: 50%; top: 50%;
right: 7rpx; // right: 7rpx;
right: 27rpx;
transform: translateY(-50%); transform: translateY(-50%);
} }

BIN
static/images/no_short.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB