shop-applet/pages/users/supply_procurement/index.vue

133 lines
3.9 KiB
Vue
Raw Permalink Normal View History

2023-09-20 18:16:59 +08:00
<template>
<view class="conent">
2023-12-14 12:03:38 +08:00
<!-- <view class="con_kuo"
2023-10-24 15:02:42 +08:00
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${id}`)">
2023-09-20 18:16:59 +08:00
<image class="con_img" src="@/static/images/bg1.png" mode=""></image>
<image class="con_ico" src="@/static/images/bgic1.png" mode=""></image>
<view class="con_text">
<h3>先款后货</h3>
<span>先付款后发货</span>
</view>
</view>
<view class="con_kuo"
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=2&type_id=12&isDetail=1&credit_buy=1&product_type=98&cate_id=${id}`)">
2023-10-09 11:55:47 +08:00
<image class="con_img" src="@/static/images/bg3.png" mode=""></image>
2023-09-20 18:16:59 +08:00
<image class="con_ico" src="@/static/images/bgic2.png" mode=""></image>
<view class="con_text">
<h3>先货后款</h3>
<span>先发货后付款</span>
</view>
2023-12-14 12:03:38 +08:00
</view> -->
<view class="con_kuo"
v-for="(item, index) in list"
:key="item.value"
2024-01-05 19:02:17 +08:00
@click="navigator(`/pages/nongKe/cloud_entrepot/${item.name=='线上支付'?'indexb':'indexOther'}?type_id=12&value=${item.value}&tips=${item.content}`)">
2023-12-15 19:19:16 +08:00
<image class="con_img" :src="item.bg" mode=""></image>
2023-12-14 12:03:38 +08:00
<view class="con_text">
<h3>{{item.name}}</h3>
2024-01-05 19:02:17 +08:00
<view class="tips">{{item.content}}</view>
2023-12-14 12:03:38 +08:00
</view>
2023-12-25 11:56:07 +08:00
<image class="con_ico" :src="item.icon" mode=""></image>
2023-12-14 12:03:38 +08:00
</view>
2023-09-20 18:16:59 +08:00
</view>
</template>
<script>
2023-12-14 12:03:38 +08:00
import { systemGroupValue } from "@/api/public.js"
2023-09-20 18:16:59 +08:00
export default {
data() {
return {
2023-12-14 12:03:38 +08:00
id: '',
list: []
2023-09-20 18:16:59 +08:00
}
},
onLoad(option) {
2023-12-14 12:03:38 +08:00
this.id = option.cate_id;
this.initList();
2023-09-20 18:16:59 +08:00
},
methods: {
2023-12-14 12:03:38 +08:00
initList(){
systemGroupValue({
name: 'purchasing_navigation'
}).then(res=>{
2023-12-15 19:19:16 +08:00
res.data.forEach((item)=>{
if(item.name=='线上铺货'){
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/71e06202312151146467207.png';
item.content = '线上选品 一键铺货';
2023-12-25 11:56:07 +08:00
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e5ce2202312251013084460.png";
2023-12-15 19:19:16 +08:00
}
if(item.name=='实体铺货'){
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/8cb7a202312151147485701.png';
item.content = '先售利润 后结货款';
2023-12-25 11:56:07 +08:00
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0c441202312251013392852.png";
2023-12-15 19:19:16 +08:00
}
2024-01-05 19:02:17 +08:00
if(item.name=='线上支付'){
2023-12-15 19:19:16 +08:00
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f4521202312151148087081.png';
2024-03-05 17:42:44 +08:00
// item.content = '手续费0.6%';
item.content = '';
2023-12-25 11:56:07 +08:00
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0a377202312251014023667.png";
2023-12-15 19:19:16 +08:00
}
2024-01-05 19:02:17 +08:00
if(item.name=='线下支付'){
2023-12-15 19:19:16 +08:00
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/899a4202312151148319478.png';
2024-03-05 17:42:44 +08:00
// item.content = '手续费0';
item.content = '';
2023-12-25 11:56:07 +08:00
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/6a23e202312251014183019.png";
2023-12-15 19:19:16 +08:00
}
})
2023-12-25 11:56:07 +08:00
res.data = res.data.filter(item=>item.name!='线上铺货'&&item.name!='实体铺货')
2023-12-14 12:03:38 +08:00
this.list = res.data;
})
},
2023-09-20 18:16:59 +08:00
navigator(url, t) {
uni.navigateTo({
url: url
})
},
}
}
</script>
<style lang="scss" scoped>
* {
padding: 0;
margin: 0;
}
.conent {
width: 100%;
display: flex;
2023-12-15 19:19:16 +08:00
justify-content: space-evenly;
2023-12-14 12:03:38 +08:00
flex-wrap: wrap;
2023-09-20 18:16:59 +08:00
margin-top: 20px;
.con_kuo {
position: relative;
.con_img {
2023-12-15 19:19:16 +08:00
width: 360rpx;
2023-09-20 18:16:59 +08:00
height: 92px;
}
.con_ico {
position: absolute;
2023-12-25 11:56:07 +08:00
right: 15px;
top: 50%;
transform: translateY(-50%);
2023-09-20 18:16:59 +08:00
width: 31px;
height: 32px;
}
.con_text {
position: absolute;
2023-12-25 11:56:07 +08:00
left: 15px;
top: 50%;
transform: translateY(-50%);
2023-09-20 18:16:59 +08:00
color: white;
2024-01-05 19:02:17 +08:00
.tips{
2023-12-25 11:56:07 +08:00
margin-top: 12rpx;
2024-01-05 19:02:17 +08:00
font-size: 26rpx;
2023-12-25 11:56:07 +08:00
}
2023-09-20 18:16:59 +08:00
}
}
}
</style>