新增金久信学堂

This commit is contained in:
2023-11-30 22:36:20 +08:00
parent 60840b66d3
commit 4c0e457f0f
+56 -33
View File
@@ -15,7 +15,7 @@
<el-carousel height="170px"> <el-carousel height="170px">
<el-carousel-item v-for="item in 4" :key="item"> <el-carousel-item v-for="item in 4" :key="item">
<image class="carousel-img" <image class="carousel-img"
src="http://jyx.gxwebsoft.com/uploads/20210506/600fc93e6b85324b3ea1373ee264290d.jpg" src="/static/images/20210506/600fc93e6b85324b3ea1373ee264290d.jpg"
mode="aspectFill"></image> mode="aspectFill"></image>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
@@ -66,8 +66,8 @@
{{ item.name }} {{ item.name }}
</text> </text>
</template> </template>
<!-- <text @click="showAllTexture = !showAllTexture" class="pointer mr-25" >查看更多--> <!-- <text @click="showAllTexture = !showAllTexture" class="pointer mr-25" >查看更多-->
<!-- </text>--> <!-- </text>-->
</view> </view>
</el-form-item> </el-form-item>
<el-form-item label="材质:" class="border-bottom pb-30"> <el-form-item label="材质:" class="border-bottom pb-30">
@@ -82,7 +82,8 @@
{{ item.name }} {{ item.name }}
</text> </text>
</view> </view>
<text @click="showAllTexture = !showAllTexture" class="pointer mr-25" v-if="attributes.length > 10">查看更多 <text @click="showAllTexture = !showAllTexture" class="pointer mr-25"
v-if="attributes.length > 10">查看更多
</text> </text>
</view> </view>
</el-form-item> </el-form-item>
@@ -98,7 +99,8 @@
{{ item.name }} {{ item.name }}
</text> </text>
</view> </view>
<text @click="showAllCompany = !showAllCompany" class="pointer mr-25" v-if="companyList.length > 10">查看更多 <text @click="showAllCompany = !showAllCompany" class="pointer mr-25"
v-if="companyList.length > 10">查看更多
</text> </text>
</view> </view>
</el-form-item> </el-form-item>
@@ -124,6 +126,8 @@
<script> <script>
import provinces from "@/uni_modules/vk-uview-ui/libs/address/provinces.json"; import provinces from "@/uni_modules/vk-uview-ui/libs/address/provinces.json";
import citys from "@/uni_modules/vk-uview-ui/libs/address/citys.json";
import areas from "@/uni_modules/vk-uview-ui/libs/address/areas.json";
export default { export default {
data() { data() {
@@ -136,6 +140,8 @@ export default {
showAllTexture: false, showAllTexture: false,
showAllCompany: false, showAllCompany: false,
provinceData: provinces, provinceData: provinces,
cityData: citys,
areaData: areas,
checkCategoryList: [], checkCategoryList: [],
checkTextureList: [], checkTextureList: [],
checkCompanyList: [], checkCompanyList: [],
@@ -179,9 +185,8 @@ export default {
key: "productList", key: "productList",
title: "品名/材质", title: "品名/材质",
type: "text", type: "text",
width: 280,
formatter: (val, row, column, index) => { formatter: (val, row, column, index) => {
console.log(val) // console.log(val)
return val.map(item => item.goodsName).join("/") return val.map(item => item.goodsName).join("/")
} }
}, },
@@ -189,7 +194,6 @@ export default {
key: "productList", key: "productList",
title: "采购量", title: "采购量",
type: "text", type: "text",
width: 280,
formatter: (val, row, column, index) => { formatter: (val, row, column, index) => {
return val.map(item => item.procureNumber + item.procureUnit).join("/") return val.map(item => item.procureNumber + item.procureUnit).join("/")
} }
@@ -198,41 +202,58 @@ export default {
key: "productList", key: "productList",
title: "收货地", title: "收货地",
type: "text", type: "text",
minWidth: 200,
formatter: (val, row, column, index) => { formatter: (val, row, column, index) => {
let str = "" let str = ''
try { if (val.length > 0 && val[0].addressRegion.length > 0) {
str = val.map(item => { let provinceIndex = 0, cityIndex = 0, areaIndex = 0
const addressStr = item.address.region.province.name + "-" + item.address.region.city.name + "-" + item.address.region.area.name this.provinceData.forEach((item, index) => {
return addressStr if (parseInt(val[0].addressRegion[0]) === parseInt(item.code)) {
}).join("/") provinceIndex = index
} catch (err) { str = item.name
str = "" }
})
this.cityData[provinceIndex].forEach((item, index) => {
if (parseInt(val[0].addressRegion[1]) === parseInt(item.code)) {
cityIndex = index
str += item.name
}
})
this.areaData[provinceIndex][cityIndex].forEach((item, index) => {
if (parseInt(val[0].addressRegion[2]) === parseInt(item.code)) {
areaIndex = index
str += item.name
}
})
str += val[0].addressDetail
} }
return str return str
} }
}, },
{ {
key: "user", key: "user",
title: "采购单位", title: "采购企业",
type: "text", type: "text",
width: 280,
formatter: (val, row, column, index) => { formatter: (val, row, column, index) => {
if (val.accountType == 1) { if (val.accountType === 1) {
return val.person.personName return val.person.personName
} else { } else {
return val.company.companyName return val.company.companyName
} }
} }
}, },
// { {
// key: "_add_time", key: "",
// title: "添加时间", title: "报价情况",
// type: "time", type: "text",
// width: 160 formatter: (val, row, column, index) => {
// }, return `${val.quoteNum}家已报价`
}
},
{
key: "_add_time",
title: "发布时间",
type: "time",
},
], ],
// 多选框选中的值 // 多选框选中的值
@@ -293,9 +314,11 @@ export default {
url: '/pages/enquiry/my' url: '/pages/enquiry/my'
}) })
}, },
toRelease() { async toRelease() {
const {userInfo} = await vk.callFunction({
if (!vk.getVuex('$user.userInfo.fadadaConfirm')) { url: 'user/kh/getMyUserInfo'
})
if (!userInfo.fadadaConfirm && userInfo.authStatus === 1) {
this.$confirm('您尚未认证, 是否前往认证?', '提示', { this.$confirm('您尚未认证, 是否前往认证?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -303,7 +326,7 @@ export default {
}).then(() => { }).then(() => {
this.getCertUrl() this.getCertUrl()
}) })
} else if (vk.pubfn.isNull(vk.getVuex('$user.userInfo.businessCard'))) { } else if (vk.pubfn.isNull(userInfo.businessCard)) {
this.$confirm('请完善名片信息', '提示', { this.$confirm('请完善名片信息', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -360,7 +383,7 @@ export default {
} }
}); });
}, },
getCompany() { getCompany() {
vk.callFunction({ vk.callFunction({
url: 'client/user/pub/getCompany', url: 'client/user/pub/getCompany',
title: '请求中...', title: '请求中...',