Commit 5dbef74e by 李伟康

生产mock

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