|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="upoff-material-wrapper" v-if="showUpoff">
|
|
|
<div class="mobile-nav">
|
|
|
<div class="mobile-header mobile-center-header">
|
|
|
- <a @click="showUpoff = false"><i class="iconfont icon-fanhui"></i></a>
|
|
|
+ <a @click="hide"><i class="iconfont icon-fanhui"></i></a>
|
|
|
<p>编辑上下架</p>
|
|
|
<p class="en-name">
|
|
|
<img :src="`/images/mobile/center/${user.data.enterprise && user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}
|
|
|
@@ -10,126 +10,133 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="upoff-materiel-wrapper" @click="clearInfo()">
|
|
|
- <div class="opoff-title clearfix">
|
|
|
- <!-- :class="item.standard ? 'standed' : 'istanded'"-->
|
|
|
- <div class="icon standed" :class="chooseItem.standard ? 'standed' : 'istanded'"></div>
|
|
|
- <div class="opoff-title-text pull-left">{{chooseItem.pcmpcode || '-'}}</div>
|
|
|
- </div>
|
|
|
- <div class="off-content">
|
|
|
- <div class="clearfix">
|
|
|
- <span class="name">品牌:</span>
|
|
|
- <span class="con">{{chooseItem.pbranden || chooseItem.pbrand || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <span class="name">物料名称:</span>
|
|
|
- <span class="con">{{chooseItem.kind || chooseItem.kinden || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <span class="name">规格:</span>
|
|
|
- <span class="con">{{chooseItem.spec || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <span class="name">库存(PCS):</span>
|
|
|
- <span class="con">{{chooseItem.erpReserve || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <span class="name">平均成本:</span>
|
|
|
- <span class="con">{{chooseItem.price || '-'}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="off-info clearfix">
|
|
|
- <div class="minBuyqty pull-left">
|
|
|
- <span>最小起订量:</span>
|
|
|
- <input type="number" maxlength="10" @blur="minBuyqtyBlur()" v-model="chooseItem.goods.minBuyQty" placeholder="请输入最小起订量" />
|
|
|
- </div>
|
|
|
- <div class="pull-left" style="margin-left:0.2rem">
|
|
|
- <span>可拆卖:</span>
|
|
|
- <div class="progress-wrapper" :class="{active: chooseItem.goods.breakUp}" @click="changeBreakUp()">
|
|
|
- <div class="progress-btn"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="pull-left">
|
|
|
- <span>上架:</span>
|
|
|
- <div class="progress-wrapper" :class="{active: chooseItem.goods.autoPublish}" @click="changeautoPublish()">
|
|
|
- <div class="progress-btn"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="off-info clearfix">
|
|
|
- <div class="pull-left">
|
|
|
- <span class="name">销售方式:</span>
|
|
|
- <div class="selectInput" @click.stop="showdropmenu()">
|
|
|
- <span v-if="chooseItem.storeInfoOms">{{chooseItem.storeInfoOms}}</span>
|
|
|
- <span v-else>{{chooseItem.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}</span>
|
|
|
- <img src="/images/mobile/product/drop_icon.png" v-if="!ShowShopshelfOff"/>
|
|
|
- <ul :class="{active : showDrop }" v-if="!ShowShopshelfOff">
|
|
|
- <li v-for="item in storeObj" @click.stop="chooseStore(item)">{{item}}</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="pull-left" style="margin-left: 0.2rem">
|
|
|
- <span class="name">交期:</span>
|
|
|
- <input type="tel" placeholder="天数" v-model="chooseItem.goods.b2cMinDelivery" class="input startInput" maxlength="3" @blur="minDeliveryBlur(chooseItem.goods.b2cMinDelivery)" />
|
|
|
- -
|
|
|
- <input type="tel" placeholder="天数" v-model="chooseItem.goods.b2cMaxDelivery" class="input endInput" maxlength="3" @blur="minDeliveryBlur(chooseItem.goods.b2cMaxDelivery)"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="off-info clearfix">
|
|
|
- <div class="pscList-top clearfix">
|
|
|
- <div class="pull-left">梯度/pcs</div>
|
|
|
- <div class="pull-right">单价</div>
|
|
|
- </div>
|
|
|
- <ul class="prices">
|
|
|
- <li v-for="(item, index) in chooseItem.goods.prices" v-bind:key="index">
|
|
|
- <div class="clearfix">
|
|
|
+ <div ref="scroll" style="height: 100%;overflow-y:scroll">
|
|
|
+ <div>
|
|
|
+ <div style="background: #fff;border: 1px solid #dcdcdc;padding:0 0.2rem 0.5rem">
|
|
|
+ <div class="opoff-title clearfix">
|
|
|
+ <!-- :class="item.standard ? 'standed' : 'istanded'"-->
|
|
|
+ <div class="icon standed" :class="chooseItem.standard ? 'standed' : 'istanded'"></div>
|
|
|
+ <div class="opoff-title-text pull-left">{{chooseItem.pcmpcode || '-'}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="off-content">
|
|
|
+ <div class="clearfix">
|
|
|
+ <span class="name">品牌:</span>
|
|
|
+ <span class="con">{{chooseItem.pbranden || chooseItem.pbrand || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="clearfix">
|
|
|
+ <span class="name">物料名称:</span>
|
|
|
+ <span class="con">{{chooseItem.kind || chooseItem.kinden || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="clearfix">
|
|
|
+ <span class="name">规格:</span>
|
|
|
+ <span class="con">{{chooseItem.spec || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="clearfix">
|
|
|
+ <span class="name">库存(PCS):</span>
|
|
|
+ <span class="con">{{chooseItem.erpReserve || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="clearfix">
|
|
|
+ <span class="name">平均成本:</span>
|
|
|
+ <span class="con">{{chooseItem.price || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="off-info clearfix">
|
|
|
+ <div class="minBuyqty pull-left">
|
|
|
+ <span>最小起订量:</span>
|
|
|
+ <input type="number" maxlength="10" @blur="minBuyQtyBlur()" v-model="chooseItem.goods.minBuyQty" placeholder="请输入最小起订量" />
|
|
|
+ </div>
|
|
|
+ <div class="pull-left" style="margin-left:0.2rem">
|
|
|
+ <span>可拆卖:</span>
|
|
|
+ <div class="progress-wrapper" :class="{active: chooseItem.goods.breakUp}" @click="changeBreakUp()">
|
|
|
+ <div class="progress-btn"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="pull-left">
|
|
|
+ <span>上架:</span>
|
|
|
+ <div class="progress-wrapper" :class="{active: chooseItem.goods.autoPublish}" @click="changeautoPublish()">
|
|
|
+ <div class="progress-btn"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="off-info clearfix">
|
|
|
<div class="pull-left">
|
|
|
- <input v-if="index > 0" oninput="if(value.length>5)value=value.slice(0,9)"
|
|
|
- type="tel" placeholder="数量" class="otherNumber"
|
|
|
- :class="{firstNumber: index === 0}"
|
|
|
- v-model.lazy.trim="item.start"
|
|
|
- :disabled="index === 0" :readonly="index === 0"
|
|
|
- @blur="startpriceBlur(item, index)" maxlength="9"
|
|
|
- />
|
|
|
- <input v-else oninput="if(value.length>5)value=value.slice(0,9)"
|
|
|
- type="tel" placeholder="数量" class="otherNumber"
|
|
|
- :class="{firstNumber: index === 0}"
|
|
|
- v-model.lazy.trim="chooseItem.goods.minBuyQty"
|
|
|
- :disabled="index === 0" :readonly="index === 0"
|
|
|
- @blur="startpriceBlur(item, index)" maxlength="9"
|
|
|
- />
|
|
|
- <!--<label v-if="index !== chooseItem.goods.prices.length - 1">-</label>-->
|
|
|
- <label v-if="index !== chooseItem.goods.prices.length - 1">以上</label>
|
|
|
- <label v-if="index === chooseItem.goods.prices.length - 1">以上</label>
|
|
|
- <!--<input oninput="if(value.length>5)value=value.slice(0,9)"-->
|
|
|
- <!--type="tel" placeholder="数量" class="otherNumber"-->
|
|
|
- <!--v-model.lazy.trim="item.end"-->
|
|
|
- <!--v-if="index !== chooseItem.goods.prices.length - 1"-->
|
|
|
- <!--@blur="endpriceBlur(item, index)"-->
|
|
|
- <!--maxlength="9"/>-->
|
|
|
+ <span class="name">销售方式:</span>
|
|
|
+ <div class="selectInput" @click.stop="showdropmenu()">
|
|
|
+ <span v-if="chooseItem.storeInfoOms">{{chooseItem.storeInfoOms}}</span>
|
|
|
+ <span v-else>{{chooseItem.goods.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}</span>
|
|
|
+ <img src="/images/mobile/product/drop_icon.png" v-if="!ShowShopshelfOff"/>
|
|
|
+ <ul :class="{active : showDrop }" v-if="!ShowShopshelfOff">
|
|
|
+ <li v-for="item in storeObj" @click.stop="chooseStore(item)">{{item}}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="pull-right">
|
|
|
- <input v-show="chooseItem.currencyName === 'RMB'"
|
|
|
- class="priceM" type="text"
|
|
|
- placeholder="单价(¥)"
|
|
|
- v-model.lazy="item.rMBPrice"
|
|
|
- @blur="rMBPriceBlur(item)"/>
|
|
|
- <input v-show="chooseItem.currencyName !== 'RMB'"
|
|
|
- class="priceM" type="text"
|
|
|
- placeholder="单价($)"
|
|
|
- v-model.lazy="item.rMBPrice"
|
|
|
- @blur="rMBPriceBlur(item)"/>
|
|
|
- <span @click="miuPrice(index)"><img src="/images/mobile/product/mui_icon.png"/></span>
|
|
|
- <span @click="addPrice()"><img src="/images/mobile/product/add_icon.png"/></span>
|
|
|
+ <div class="pull-left" style="margin-left: 0.2rem">
|
|
|
+ <span class="name">交期:</span>
|
|
|
+ <input type="tel" placeholder="天数" v-model="chooseItem.goods.minDelivery" class="input startInput" maxlength="3" @blur="minDeliveryBlur(chooseItem.goods.minDelivery)" />
|
|
|
+ -
|
|
|
+ <input type="tel" placeholder="天数" v-model="chooseItem.goods.maxDelivery" class="input endInput" maxlength="3" @blur="minDeliveryBlur(chooseItem.goods.maxDelivery)"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div class="off-info clearfix">
|
|
|
+ <div class="pscList-top clearfix">
|
|
|
+ <div class="pull-left">梯度/pcs</div>
|
|
|
+ <div class="pull-right">单价</div>
|
|
|
+ </div>
|
|
|
+ <ul class="prices">
|
|
|
+ <li v-for="(item, index) in chooseItem.goods.prices" v-bind:key="index">
|
|
|
+ <div class="clearfix">
|
|
|
+ <div class="pull-left">
|
|
|
+ <input v-if="index > 0" oninput="if(value.length>5)value=value.slice(0,9)"
|
|
|
+ type="tel" placeholder="数量" class="otherNumber"
|
|
|
+ :class="{firstNumber: index === 0}"
|
|
|
+ v-model.lazy.trim="item.start"
|
|
|
+ :disabled="index === 0" :readonly="index === 0"
|
|
|
+ @blur="startpriceBlur(item, index)" maxlength="9"
|
|
|
+ />
|
|
|
+ <input v-else oninput="if(value.length>5)value=value.slice(0,9)"
|
|
|
+ type="tel" placeholder="数量" class="otherNumber"
|
|
|
+ :class="{firstNumber: index === 0}"
|
|
|
+ v-model.lazy.trim="chooseItem.goods.minBuyQty"
|
|
|
+ :disabled="index === 0" :readonly="index === 0"
|
|
|
+ @blur="startpriceBlur(item, index)" maxlength="9"
|
|
|
+ />
|
|
|
+ <!--<label v-if="index !== chooseItem.goods.prices.length - 1">-</label>-->
|
|
|
+ <label v-if="index !== chooseItem.goods.prices.length - 1">以上</label>
|
|
|
+ <label v-if="index === chooseItem.goods.prices.length - 1">以上</label>
|
|
|
+ <!--<input oninput="if(value.length>5)value=value.slice(0,9)"-->
|
|
|
+ <!--type="tel" placeholder="数量" class="otherNumber"-->
|
|
|
+ <!--v-model.lazy.trim="item.end"-->
|
|
|
+ <!--v-if="index !== chooseItem.goods.prices.length - 1"-->
|
|
|
+ <!--@blur="endpriceBlur(item, index)"-->
|
|
|
+ <!--maxlength="9"/>-->
|
|
|
+ </div>
|
|
|
+ <div class="pull-right">
|
|
|
+ <input v-show="chooseItem.currencyName === 'RMB'"
|
|
|
+ class="priceM" type="text"
|
|
|
+ placeholder="单价(¥)"
|
|
|
+ v-model.lazy="item.rMBPrice"
|
|
|
+ @blur="rMBPriceBlur(item)"/>
|
|
|
+ <input v-show="chooseItem.currencyName !== 'RMB'"
|
|
|
+ class="priceM" type="text"
|
|
|
+ placeholder="单价($)"
|
|
|
+ v-model.lazy="item.rMBPrice"
|
|
|
+ @blur="rMBPriceBlur(item)"/>
|
|
|
+ <span @click="miuPrice(index)" class="clearfix"><img class="pull-left" src="/images/mobile/product/mui_icon.png"/></span>
|
|
|
+ <span @click="addPrice()" class="clearfix"><img class="pull-left"src="/images/mobile/product/add_icon.png"/></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="update-materiel-wrapper-controll clearfix">
|
|
|
+ <div class="pull-left" @click.stop="saveMateriel()">保存</div>
|
|
|
+ <div class="pull-right" @click.stop="hide('cancel')">取消</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="update-materiel-wrapper-controll clearfix">
|
|
|
- <div class="pull-left" @click.stop="saveMateriel()">保存</div>
|
|
|
- <div class="pull-right" @click.stop="hide()">取消</div>
|
|
|
- </div>
|
|
|
+
|
|
|
<remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -172,36 +179,31 @@
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '最小起订量不能为空'
|
|
|
return false
|
|
|
- } else if (!this.chooseItem.goods.b2cMinDelivery && !toString(this.chooseItem.goods.b2cMinDelivery).trim()) {
|
|
|
+ } else if (!this.chooseItem.goods.minDelivery && !toString(this.chooseItem.goods.minDelivery).trim()) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '请填写最小交期时间'
|
|
|
return false
|
|
|
- } else if (!this.chooseItem.goods.b2cMaxDelivery && !toString(this.chooseItem.goods.b2cMaxDelivery).trim()) {
|
|
|
+ } else if (!this.chooseItem.goods.maxDelivery && !toString(this.chooseItem.goods.maxDelivery).trim()) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '请填写最大交期时间'
|
|
|
return false
|
|
|
- } else if (!this.chooseItem.goods.b2cMinDelivery || !this.chooseItem.goods.b2cMaxDelivery) {
|
|
|
+ } else if (!this.chooseItem.goods.minDelivery || !this.chooseItem.goods.maxDelivery) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '交期不能为空'
|
|
|
return false
|
|
|
- } else if (!/^\d{1,3}$/.test(this.chooseItem.goods.b2cMinDelivery) || !/^\d{1,3}$/.test(this.chooseItem.goods.b2cMaxDelivery)) {
|
|
|
+ } else if (!/^\d{1,3}$/.test(this.chooseItem.goods.minDelivery) || !/^\d{1,3}$/.test(this.chooseItem.goods.maxDelivery)) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '交期只能输入数字'
|
|
|
return false
|
|
|
} else {
|
|
|
let isHas = false
|
|
|
for (let i = 0; i < this.chooseItem.goods.prices.length; i++) {
|
|
|
- if (!this.chooseItem.goods.prices[i].start || (this.chooseItem.goods.prices[i].end === '' && i !== this.chooseItem.goods.prices.length - 1)) {
|
|
|
+ if (!this.chooseItem.goods.prices[i].start) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '分段数量必须填写'
|
|
|
isHas = true
|
|
|
break
|
|
|
- } else if (i !== this.chooseItem.goods.prices.length - 1 && Math.abs(this.chooseItem.goods.prices[i].start) > Math.abs(this.chooseItem.goods.prices[i].end)) {
|
|
|
- this.timeoutCount++
|
|
|
- this.collectResult = '存在分段的起始值大于分段的结束值'
|
|
|
- isHas = true
|
|
|
- break
|
|
|
- } else if (Math.abs(this.chooseItem.goods.prices[i].rMBPrice) <= 0) {
|
|
|
+ } else if (Math.abs(this.chooseItem.goods.prices[i].rMBPrice) <= 0) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '单价必须是大于0的数字'
|
|
|
isHas = true
|
|
|
@@ -224,13 +226,13 @@
|
|
|
}
|
|
|
this.chooseItem.goods.selfSale = this.storeInfoStore.uuid ? 1 : 2
|
|
|
if (!this.chooseItem.storeInfoOms) {
|
|
|
- this.chooseItem.storeInfoOms = this.chooseItem.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'
|
|
|
+ this.chooseItem.storeInfoOms = this.chooseItem.goods.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'
|
|
|
}
|
|
|
if (this.storeInfoStore.uuid) {
|
|
|
if (this.chooseItem.storeInfoOms === '寄售') {
|
|
|
- this.chooseItem.selfSale = 2
|
|
|
+ this.chooseItem.goods.selfSale = 2
|
|
|
} else if (this.chooseItem.storeInfoOms === '自营') {
|
|
|
- this.chooseItem.selfSale = 1
|
|
|
+ this.chooseItem.goods.selfSale = 1
|
|
|
}
|
|
|
}
|
|
|
this.chooseItem.goods.prices[this.chooseItem.goods.prices.length - 1].end = '9999999999'
|
|
|
@@ -273,7 +275,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.chooseItem.goods.prices[0].start = this.chooseItem.minBuyQty
|
|
|
+ this.chooseItem.goods.prices[0].start = this.chooseItem.goods.minBuyQty
|
|
|
},
|
|
|
changeautoPublish() {
|
|
|
this.chooseItem.goods.autoPublish = !this.chooseItem.goods.autoPublish
|
|
|
@@ -287,49 +289,39 @@
|
|
|
this.showdropmenu()
|
|
|
},
|
|
|
minDeliveryBlur(str) {
|
|
|
- if (Math.abs(this.chooseItem.goods.b2cMinDelivery) === 0) {
|
|
|
+ if (Math.abs(this.chooseItem.goods.minDelivery) === 0) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = `交期天数不能为0`
|
|
|
- this.chooseItem.goods.b2cMinDelivery = ''
|
|
|
+ this.chooseItem.goods.minDelivery = ''
|
|
|
return false
|
|
|
- } else if (Math.abs(this.chooseItem.goods.b2cMinDelivery) === 0) {
|
|
|
+ } else if (Math.abs(this.chooseItem.goods.minDelivery) === 0) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = `交期天数不能为0`
|
|
|
- this.chooseItem.goods.b2cMinDelivery = ''
|
|
|
+ this.chooseItem.goods.minDelivery = ''
|
|
|
return false
|
|
|
}
|
|
|
- if (Math.abs(this.chooseItem.goods.b2cMinDelivery) > Math.abs(this.chooseItem.goods.b2cMinDelivery)) {
|
|
|
+ if (Math.abs(this.chooseItem.goods.minDelivery) > Math.abs(this.chooseItem.goods.minDelivery)) {
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = `最短交期应小于等于最长交期`
|
|
|
- this.chooseItem.goods.b2cMinDelivery = ''
|
|
|
+ this.chooseItem.goods.minDelivery = ''
|
|
|
}
|
|
|
},
|
|
|
show() {
|
|
|
this.showUpoff = true
|
|
|
},
|
|
|
- hide() {
|
|
|
+ hide(type) {
|
|
|
this.showUpoff = false
|
|
|
+ this.$emit('upoffMaterial', type)
|
|
|
},
|
|
|
// 开始价格阶段失去焦点
|
|
|
startpriceBlur(item, index) {
|
|
|
if (index > 0) {
|
|
|
if (item.start === '' || toString(item.start).trim() === '') {
|
|
|
return false
|
|
|
- } else if (Math.abs(item.start) <= Math.abs(this.chooseItem.goods.prices[index - 1].start)) {
|
|
|
+ } else if (this.chooseItem.goods.prices[index].start <= this.chooseItem.goods.prices[index - 1].start){
|
|
|
this.timeoutCount++
|
|
|
this.collectResult = '输入值会导致梯度重叠,请重新修改'
|
|
|
item.start = ''
|
|
|
- return false
|
|
|
- }
|
|
|
- if (index === 2) {
|
|
|
- this.chooseItem.goods.prices[index - 1].end = item.start - 1
|
|
|
- return false
|
|
|
- }
|
|
|
- if (item.end && toString(item.end).trim() !== '' && Math.abs(item.start) > Math.abs(item.end)) {
|
|
|
- this.timeoutCount++
|
|
|
- this.collectResult = `输入值必须小于${item.end}`
|
|
|
- item.start = ''
|
|
|
- return false
|
|
|
}
|
|
|
this.chooseItem.goods.prices[index - 1].end = item.start - 1
|
|
|
}
|
|
|
@@ -395,13 +387,13 @@
|
|
|
this.chooseItem.goods.prices.splice(2, 1)
|
|
|
} else {
|
|
|
index++
|
|
|
- if (this.chooseItem.prices.length === 1) return
|
|
|
+ if (this.chooseItem.goods.prices.length === 1) return
|
|
|
this.chooseItem.goods.prices[0].rMBPrice = this.chooseItem.goods.prices[1].rMBPrice
|
|
|
this.chooseItem.goods.prices[0].end = '9999999999'
|
|
|
this.chooseItem.goods.prices.splice(index, 1)
|
|
|
}
|
|
|
} else if (index === 1) {
|
|
|
- if (this.chooseItem.prices.length === 3) {
|
|
|
+ if (this.chooseItem.prices.goods.length === 3) {
|
|
|
this.chooseItem.goods.prices[1].rMBPrice = this.chooseItem.goods.prices[2].rMBPrice
|
|
|
this.chooseItem.goods.prices[1].end = '9999999999'
|
|
|
this.chooseItem.goods.prices.splice(2, 1)
|
|
|
@@ -504,8 +496,8 @@
|
|
|
top: 1.46rem;
|
|
|
left: 0.2rem;
|
|
|
right: 0.2rem;
|
|
|
- padding: 0 0.25rem;
|
|
|
- background: #fff;
|
|
|
+ /*padding: 0 0.25rem;*/
|
|
|
+ /*background: #fff;*/
|
|
|
.opoff-title {
|
|
|
border-bottom: 1px solid #dcdcdc;
|
|
|
padding: 0.25rem 0;
|
|
|
@@ -553,7 +545,7 @@
|
|
|
}
|
|
|
.off-info {
|
|
|
margin-top: 0.3rem;
|
|
|
- @include lineHeight(0.5rem);
|
|
|
+ line-height: 0.5rem;
|
|
|
span {
|
|
|
color: #666;
|
|
|
font-size: 0.28rem;
|