Commit d582cfb0 by 张立顺

feat 12月功能开发

1 parent 8fbcd91d
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
import api from "../../api/api"; import api from "../../api/api";
// import util from '../../utils/util.js' // import util from '../../utils/util.js'
Component({ Component({
// options: {
// styleIsolation: 'shared'
// },
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -46,6 +49,7 @@ Component({ ...@@ -46,6 +49,7 @@ Component({
this.getMerchantList(); this.getMerchantList();
this.setData({ this.setData({
sellerUserId: id, sellerUserId: id,
keyWord: ''
}); });
} }
}, },
...@@ -61,12 +65,25 @@ Component({ ...@@ -61,12 +65,25 @@ Component({
isFirst: true, isFirst: true,
sellerUserId: "", sellerUserId: "",
orderSellerInfo: "", orderSellerInfo: "",
keyWord: ''
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
search(e) {
let { detail: { value } } = e
this.setData({
keyWord: value
})
let { orderObj } = this.data
this.getConversionEmployeeList(orderObj.merchantId, true);
},
changSelectList(e) {
// let {value:text} = e.currentTarget
// let {selesList} =
},
showMoreMerchant() { showMoreMerchant() {
this.setData({ this.setData({
moreMerchant: !this.data.moreMerchant, moreMerchant: !this.data.moreMerchant,
...@@ -84,7 +101,6 @@ Component({ ...@@ -84,7 +101,6 @@ Component({
let { orderObj } = thisPage.data; let { orderObj } = thisPage.data;
let isSellerInfo, orderSellerInfo; let isSellerInfo, orderSellerInfo;
// console.log('orderObj', orderObj) // console.log('orderObj', orderObj)
let callBackName = let callBackName =
type == 1 ? "getSceneMerchantRefStoreList" : "getYQList"; type == 1 ? "getSceneMerchantRefStoreList" : "getYQList";
// debugger // debugger
...@@ -95,10 +111,10 @@ Component({ ...@@ -95,10 +111,10 @@ Component({
api[callBackName]( api[callBackName](
type == 1 type == 1
? { ? {
merchantId: userInfo.merchantId, merchantId: userInfo.merchantId,
scene, scene,
staffUUID: orderObj.sellerUserId, staffUUID: orderObj.sellerUserId,
} }
: {} : {}
).then(async (res) => { ).then(async (res) => {
// let userInfo = wx.$util.getUserInfo() // let userInfo = wx.$util.getUserInfo()
...@@ -198,6 +214,7 @@ Component({ ...@@ -198,6 +214,7 @@ Component({
orderObj: comOrderObj, orderObj: comOrderObj,
orderSellerInfo, orderSellerInfo,
scene, scene,
keyWord
} = this.data; } = this.data;
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
...@@ -206,6 +223,7 @@ Component({ ...@@ -206,6 +223,7 @@ Component({
.getConversionEmployeeList({ .getConversionEmployeeList({
merchantId, merchantId,
sceneList: type == 1 ? [scene] : "", sceneList: type == 1 ? [scene] : "",
filterStaffName: keyWord
}) })
.then(async (res) => { .then(async (res) => {
wx.$util.hideLoading(); wx.$util.hideLoading();
...@@ -324,9 +342,9 @@ Component({ ...@@ -324,9 +342,9 @@ Component({
// 还要订单不是回显的 // 还要订单不是回显的
console.log( console.log(
type == 1 && type == 1 &&
merchantList.length == 1 && merchantList.length == 1 &&
!orderObj.merchantId && !orderObj.merchantId &&
!orderObj.merchantName !orderObj.merchantName
); );
if ( if (
type == 1 && type == 1 &&
...@@ -348,11 +366,11 @@ Component({ ...@@ -348,11 +366,11 @@ Component({
selesList = selesList.length selesList = selesList.length
? selesList ? selesList
: [ : [
{ {
uuid: -1, uuid: -1,
staffName: "系统", staffName: "系统",
}, },
]; ];
selesList.forEach((element, index) => { selesList.forEach((element, index) => {
if (index == 0) { if (index == 0) {
element.active = true; element.active = true;
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<view class="sub-title">{{title}}</view> <view class="sub-title">{{title}}</view>
<view class="merchant-box" style="max-height:{{moreMerchant?merchantList.length * 100 :''}}rpx"> <view class="merchant-box" style="max-height:{{moreMerchant?merchantList.length * 100 :''}}rpx">
<block wx:for="{{merchantList}}" wx:key="index"> <block wx:for="{{merchantList}}" wx:key="index">
<view class="merchantList {{item.active?'active':''}}" bindtap="changeMerchant" data-item="{{item}}" <view class="merchantList {{item.active?'active':''}}" bindtap="changeMerchant" data-item="{{item}}" data-index="{{index}}">
data-index="{{index}}">
<view class="text-hide">{{item.merchantName}}</view> <view class="text-hide">{{item.merchantName}}</view>
</view> </view>
</block> </block>
...@@ -15,11 +14,12 @@ ...@@ -15,11 +14,12 @@
<image src="../images/open.png" class="icon {{moreMerchant ? 'hide':''}}"></image> <image src="../images/open.png" class="icon {{moreMerchant ? 'hide':''}}"></image>
</view> </view>
</block> </block>
<view class="sub-title">{{subTitle}}</view> <view class="sub-title">{{subTitle}}
</view>
<search-input styleValue=" border-bottom:none" wx:if="{{type == 1 }}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" />
<view class="seles-list"> <view class="seles-list">
<block wx:for="{{selesList}}" wx:key="index"> <block wx:for="{{selesList}}" wx:key="index">
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" <view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}">
data-item="{{item}}">
{{item.staffName}} {{item.staffName}}
</view> </view>
</block> </block>
......
/* components/Merchant-Seles/Merchant-Seles.wxss */ /* components/Merchant-Seles/Merchant-Seles.wxss */
.text-hide { .text-hide {
white-space:nowrap; white-space: nowrap;
overflow:hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
} }
.text-center{
.text-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.seles-box{
.seles-box {
height: 100%; height: 100%;
width: calc(100% + var(--fontSize64)); width: calc(100% + var(--fontSize64));
transform: translateX(calc(-1 * var(--fontSize32))); transform: translateX(calc(-1 * var(--fontSize32)));
} }
.box{
.box {
padding: 0 var(--fontSize32); padding: 0 var(--fontSize32);
} }
.merchant-box{
.merchant-box {
max-height: var(--fontSize300); max-height: var(--fontSize300);
overflow: hidden; overflow: hidden;
transition: all .25s; transition: all .25s;
} }
.merchantList { .merchantList {
width: calc(100% - var(--fontSize50)); width: calc(100% - var(--fontSize50));
height: var(--fontSize98); height: var(--fontSize98);
...@@ -55,12 +60,14 @@ ...@@ -55,12 +60,14 @@
text-align: center; text-align: center;
margin: var(--fontSize28) auto 0; margin: var(--fontSize28) auto 0;
} }
.more .icon{
.more .icon {
width: var(--fontSize24); width: var(--fontSize24);
height: var(--fontSize22); height: var(--fontSize22);
transition: all .25s; transition: all .25s;
} }
.more .icon.hide{
.more .icon.hide {
transform: rotate(-180deg); transform: rotate(-180deg);
} }
...@@ -81,7 +88,7 @@ ...@@ -81,7 +88,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: row; flex-direction: row;
padding-bottom: var(--fontSize40); padding-bottom: var(--fontSize40);
} }
...@@ -94,8 +101,13 @@ ...@@ -94,8 +101,13 @@
height: var(--fontSize60); height: var(--fontSize60);
margin: 0 var(--fontSize40) var(--fontSize20) 0; margin: 0 var(--fontSize40) var(--fontSize20) 0;
} }
.seles.active{
background: rgba(53,130,238,0.08); .seles.active {
background: rgba(53, 130, 238, 0.08);
color: #347BFF; color: #347BFF;
border-color: #347BFF; border-color: #347BFF;
}
.search-input search-input {
border: none;
} }
\ No newline at end of file \ No newline at end of file
// components/SearchInput/SearchInput.js // components/SearchInput/SearchInput.js
Component({ Component({
// options: {
// styleIsolation: 'shared'
// },
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -14,6 +17,10 @@ Component({ ...@@ -14,6 +17,10 @@ Component({
filterEmoji: { filterEmoji: {
type: Boolean, type: Boolean,
value: true value: true
},
styleValue: {
type: String,
value: ''
} }
}, },
...@@ -60,7 +67,7 @@ Component({ ...@@ -60,7 +67,7 @@ Component({
}, },
emit(e) { emit(e) {
let { let {
detail:{ detail: {
value value
}, },
type type
......
<view class="search-box"> <view class="search-box" style="{{styleValue}}">
<view class="search-input"> <view class="search-input">
<block wx:if="{{!edit}}"> <block wx:if="{{!edit}}">
<view class="input {{value?'':'placeholder'}}" bindtap="open"> <view class="input {{value?'':'placeholder'}}" bindtap="open">
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<input type="text" maxlength="{{maxlength}}" class="input" value='{{value}}' focus='{{inputFocus}}' confirm-type="search" bindinput='input' bindblur="inputBlur" bindconfirm="inputConfifm"/> <input type="text" maxlength="{{maxlength}}" class="input" value='{{value}}' focus='{{inputFocus}}' confirm-type="search" bindinput='input' bindblur="inputBlur" bindconfirm="inputConfifm" />
</block> </block>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 1;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -650,7 +650,7 @@ const secondObj = { ...@@ -650,7 +650,7 @@ const secondObj = {
maxlength: '100' maxlength: '100'
} }
], ],
retrofitList:[{ retrofitList: [{
label: ' ', label: ' ',
name: 'upload', name: 'upload',
type: 'slot', type: 'slot',
......
...@@ -372,6 +372,17 @@ export const getPositionList = options => { ...@@ -372,6 +372,17 @@ export const getPositionList = options => {
api.getPositionList({}).then(res => { api.getPositionList({}).then(res => {
let { code, data } = res let { code, data } = res
if (code == 0) { if (code == 0) {
const namReplaceobj = {
2: '前侧窗玻璃',
3: '后侧窗玻璃',
4: '后挡'
}
data = data.map(item => {
if (namReplaceobj[item.positionValue]) {
item.positionName = namReplaceobj[item.positionValue]
}
return item;
})
app.globalData.positionTypeList = data app.globalData.positionTypeList = data
} }
resolve(app.globalData.positionTypeList) resolve(app.globalData.positionTypeList)
......
...@@ -97,6 +97,8 @@ Page({ ...@@ -97,6 +97,8 @@ Page({
frontGearArr: [], // 前挡 frontGearArr: [], // 前挡
sideRearGearArr: [], // 侧后挡 sideRearGearArr: [], // 侧后挡
skylightArr: [], // 天窗 skylightArr: [], // 天窗
sideBeforeRearGearArr: [], // 前侧窗玻璃
sideAfterRearGearArr: [], // 后档
baseConfigData: {}, baseConfigData: {},
showSource: false, showSource: false,
Sourcecolumns: [ Sourcecolumns: [
...@@ -213,7 +215,8 @@ Page({ ...@@ -213,7 +215,8 @@ Page({
orderObj: { selectPayType }, orderObj: { selectPayType },
baseConfigData, baseConfigData,
} = this.data; } = this.data;
let { showName, type } = e.currentTarget.dataset; let { showName, type, positionnnum: positionNum } = e.currentTarget.dataset;
console.log(positionNum, 'positionNum');
let arr = []; let arr = [];
if (showName == "goodsBox") { if (showName == "goodsBox") {
// type 产品类型 1前挡 2侧后挡 3天窗 4其它精品 根据类型过滤显示商品弹窗数据 // type 产品类型 1前挡 2侧后挡 3天窗 4其它精品 根据类型过滤显示商品弹窗数据
...@@ -248,9 +251,10 @@ Page({ ...@@ -248,9 +251,10 @@ Page({
) )
arr[i].upgradeGoodsList = arr2; arr[i].upgradeGoodsList = arr2;
} }
console.log([positionNum], [positionNum].includes(subVal.merchantGoodsPosition));
if ( if (
type == 2 && type == 2 &&
[2, 3, 4].includes(subVal.merchantGoodsPosition) [Number(positionNum)].includes(subVal.merchantGoodsPosition)
) { ) {
arr2.push(subVal); arr2.push(subVal);
if ( if (
...@@ -1020,7 +1024,9 @@ Page({ ...@@ -1020,7 +1024,9 @@ Page({
first, first,
orderObj, orderObj,
frontGearArr, // 前挡 frontGearArr, // 前挡
sideBeforeRearGearArr, // 前侧窗玻璃
sideRearGearArr, // 侧后挡 sideRearGearArr, // 侧后挡
sideAfterRearGearArr, // 后档
skylightArr, // 天窗 skylightArr, // 天窗
} = this.data; } = this.data;
let { subOrderList } = orderObj; let { subOrderList } = orderObj;
...@@ -1040,7 +1046,7 @@ Page({ ...@@ -1040,7 +1046,7 @@ Page({
}) })
.then((res) => { .then((res) => {
let { code, data, message } = res; let { code, data, message } = res;
console.log(subOrderList, 'subOrderList') console.log(subOrderList, res, 'subOrderList')
if (code == 0) { if (code == 0) {
wx.hideLoading(); wx.hideLoading();
data?.forEach((val) => { data?.forEach((val) => {
...@@ -1049,9 +1055,16 @@ Page({ ...@@ -1049,9 +1055,16 @@ Page({
if ([1].includes(subVal.merchantGoodsPosition)) { if ([1].includes(subVal.merchantGoodsPosition)) {
frontGearArr.push(subVal); frontGearArr.push(subVal);
} }
if ([2, 3, 4].includes(subVal.merchantGoodsPosition)) {
if ([2].includes(subVal.merchantGoodsPosition)) {
sideBeforeRearGearArr.push(subVal);
}
if ([3,].includes(subVal.merchantGoodsPosition)) {
sideRearGearArr.push(subVal); sideRearGearArr.push(subVal);
} }
if ([4].includes(subVal.merchantGoodsPosition)) {
sideAfterRearGearArr.push(subVal);
}
if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) { if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) {
skylightArr.push(subVal); skylightArr.push(subVal);
} }
...@@ -1063,8 +1076,10 @@ Page({ ...@@ -1063,8 +1076,10 @@ Page({
subV.upgradeGoodsPosition && subV.upgradeGoodsPosition &&
subVal.merchantGoodsPosition != subV.upgradeGoodsPosition && subVal.merchantGoodsPosition != subV.upgradeGoodsPosition &&
subVal.upgradeGoodsId == subV.upgradeGoodsId subVal.upgradeGoodsId == subV.upgradeGoodsId
) ) {
debugger
subV.upgradeGoodsPosition = subVal.merchantGoodsPosition; subV.upgradeGoodsPosition = subVal.merchantGoodsPosition;
}
}); });
} }
}); });
...@@ -1124,6 +1139,8 @@ Page({ ...@@ -1124,6 +1139,8 @@ Page({
copyGoodsData: goodsData, copyGoodsData: goodsData,
goodsList: subOrderList, goodsList: subOrderList,
frontGearArr, frontGearArr,
sideBeforeRearGearArr,
sideAfterRearGearArr,
sideRearGearArr, sideRearGearArr,
skylightArr, skylightArr,
// orderObj // orderObj
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" /> <gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" />
<!-- class="{{orderObj.selectPayType ==0?'item-disabled':''}}" --> <!-- class="{{orderObj.selectPayType ==0?'item-disabled':''}}" -->
<view class="goods_box"> <view class="goods_box">
<view class="label" style="margin-bottom: {{ !frontGearArr.length && !sideRearGearArr.length && !skylightArr.length ? 'var(--fontSize40)' : '' }};"> <view class="label" style="margin-bottom: {{ !frontGearArr.length && !sideRearGearArr.length && !skylightArr.length&&!sideBeforeRearGearArr.length&&!sideAfterRearGearArr.length ? 'var(--fontSize40)' : '' }};">
请选择产品 请选择产品
<text class="required">*</text> <text class="required">*</text>
</view> </view>
...@@ -148,13 +148,79 @@ ...@@ -148,13 +148,79 @@
</view> </view>
</block> </block>
</block> </block>
<block wx:if="{{ sideBeforeRearGearArr.length }}">
<gl-cell border valueAlign="right" label="前侧窗玻璃" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="2" />
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<!-- 前侧窗玻璃 -->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [2]) }}">
<view class="name_box">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
</view>
</view>
<view class="bottom_box">
<!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
<view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
<view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
<view class="position" wx:else></view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="../../images/del.png" />
</view>
</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ sideRearGearArr.length }}"> <block wx:if="{{ sideRearGearArr.length }}">
<gl-cell border valueAlign="right" label="侧后挡" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" /> <gl-cell border valueAlign="right" label="后侧窗玻璃" logoSrc="{{ sideIcorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="3" />
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<!-- 后侧窗玻璃 -->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [3]) }}">
<view class="name_box">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
</view>
</view>
<view class="bottom_box">
<!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
<view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
<view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
<view class="position" wx:else></view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="../../images/del.png" />
</view>
</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ sideAfterRearGearArr.length }}">
<gl-cell border valueAlign="right" label="后档" logoSrc="{{ afterIcorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="4" />
<block wx:if="{{ goodsList.length > 0 }}"> <block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box"> <view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index"> <block wx:for="{{ goodsList }}" wx:key="index">
<!-- 侧后挡 --> <!-- 后档 -->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [2, 3, 4]) }}"> <view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [4]) }}">
<view class="name_box"> <view class="name_box">
<view class="name text-hide"> <view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!