Commit 5dbef74e by 李伟康

生产mock

1 parent 91c0a261
......@@ -11,7 +11,11 @@
@onOk="handleSingleSelectConfirm"
@onCancel="handleSingleSelectClose"
>
<div style="max-height:60vh">
<div
class="single-pro-box"
v-loading="loading"
>
<div
class="noproDiv"
v-if="!productList.length && fnCallBack"
......@@ -113,7 +117,8 @@ export default {
minRatilPrice: '',
productList: [],
fnCallBack: false,
infoIdList: []
infoIdList: [],
loading: true
}
},
......@@ -157,6 +162,7 @@ export default {
}
var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => {
this.loading = false
// console.log(res)
this.fnCallBack = true
this.productList = res.list
......@@ -238,6 +244,7 @@ export default {
}
</script>
<style lang="scss">
.single-pro .pro-group {
margin-left: 50px;
.el-checkbox__input {
......@@ -248,6 +255,11 @@ export default {
padding-left: 0 !important;
}
}
.single-pro-box{
min-height: 20vh;
max-height:60vh;
transition: all .25s;
}
.single-pro .pro-box {
width: 202px;
border: 1px solid #e5e5e5;
......@@ -271,8 +283,9 @@ export default {
right: 10px;
width: 32px;
height: 32px;
line-height: 1;
}
.icon-number{
.icon-number {
background-color: #5850ff;
color: #fff;
display: flex;
......@@ -303,6 +316,8 @@ export default {
.single-pro .txt-box {
padding: 10px 10px 0;
color: #666666;
width: 202px;
box-sizing: border-box;
}
.single-pro .ellipsis {
white-space: nowrap;
......
......@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -1487,7 +1487,6 @@ export default {
],
optionId: 'optionId',
optionLabel: 'optionLabel',
isClear: true,
isHide: true
},
......@@ -1504,7 +1503,6 @@ export default {
optionList: utils.deepClone(businessType),
optionId: 'optionId',
optionLabel: 'optionLabel',
isClear: true
// isHide: true
},
{
......@@ -2468,10 +2466,10 @@ export default {
}
goodsList.map(e => {
if (i.id == e.goodsId) arr[index] = {
...arr[index],
activityPrice: e.activityPrice,
activityGoodsStock: e.goodsStock,
crowdFundingPrice: e.crowdFundingPrice,
...arr[index]
}
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!