@@ -3,13 +3,16 @@
< view class = "order-container" >
< view class = "cate-search" >
< view class = "search-box" >
< input class = "uni-input" maxlength = "50" v-model = "searchText" confirm-type="search" placeholder="请输入商品名称/订单编号" @confirm="search()" @click.stop="search()" @tap.stop="search()" / >
< input class = "uni-input" maxlength = "50" v-model = "searchText" confirm-type="search"
placeholder = "请输入商品名称/订单编号" @confirm ="search()" @click.stop ="search()" @tap.stop ="search()" / >
< text class = "iconfont icon-sousuo3" @click.stop ="search()" @tap.stop ="search()" > < / text >
< / view >
< / view >
< view class = "order-nav" v-if = "storeToken" >
< view v-for = "(statusItem, statusIndex) in statusList" :key="statusIndex" class="uni-tab-item" :id="statusItem.id" :data-current="statusIndex" @click="ontabtap" >
< text class = "uni-tab-item-title" : class = "statusItem.status == orderStatus ? 'uni-tab-item-title-active color-base-text' : ''" >
< view v-for = "(statusItem, statusIndex) in statusList" :key="statusIndex" class="uni-tab-item"
:id = "statusItem.id" :data-current = "statusIndex" @click ="ontabtap" >
< text class = "uni-tab-item-title"
: class = "statusItem.status == orderStatus ? 'uni-tab-item-title-active color-base-text' : ''" >
{ { statusItem . name } }
< / text >
< / view >
@@ -24,7 +27,8 @@
< block slot = "list" >
< view class = "order-list" v-if = "orderList.length > 0" >
< view class = "order-item" v-for = "(orderItem, orderIndex) in orderList" :key="orderIndex" >
< view class = "order-header" : class = "{ waitpay: orderStatus == 'waitpay' && orderItem.order_status == 0 }" >
< view class = "order-header"
: class = "{ waitpay: orderStatus == 'waitpay' && orderItem.order_status == 0 }" >
<!-- < view class = "iconfont"
: class = "$util.inArray(orderItem.order_id, mergePayOrder) == -1 ? 'icon-yuan_checkbox' : 'icon-yuan_checked color-base-text'"
@click ="selectOrder(orderItem.order_id, orderItem.pay_money)"
@@ -35,13 +39,17 @@
< / view >
< view class = "order-body" @click ="orderDetail(orderItem)" >
< block v-if = "orderItem.order_goods.length == 1" >
< view class = "goods-wrap" v-for = "(goodsItem, goodsIndex) in orderItem.order_goods" :key="goodsIndex" >
< view class = "goods-wrap" v-for = "(goodsItem, goodsIndex) in orderItem.order_goods"
:key = "goodsIndex" >
< view class = "goods-img" >
< image : src = "$util.img(goodsItem.sku_image, { size: 'mid' })" @error ="imageError(orderIndex, goodsIndex)" mode = "aspectFill" :lazy-load = "true" / >
< image : src = "$util.img(goodsItem.sku_image, { size: 'mid' })"
@error ="imageError(orderIndex, goodsIndex)" mode = "aspectFill"
:lazy-load = "true" / >
< / view >
< view class = "goods-info" >
< view class = "pro-info" >
< view class = "goods-name" v-if = "goodsItem.goods_class == 2" > {{ goodsItem.goods_name }} < / view >
< view class = "goods-name" v-if = "goodsItem.goods_class == 2" > {{
goodsItem.goods_name }} < / view >
< view class = "goods-name" v-else > {{ goodsItem.sku_name }} < / view >
< view class = "sku" v-if = "goodsItem.sku_spec_format" >
< view class = "goods-spec" >
@@ -73,8 +81,12 @@
< view class = "multi-order-goods" >
< scroll-view scroll -x = " true " class = "scroll-view" >
< view class = "goods-wrap" >
< view class = "goods-img" v-for = "(goodsItem, goodsIndex) in orderItem.order_goods" :key="goodsIndex" >
< image : src = "$util.img(goodsItem.sku_image, { size: 'mid' })" @error ="imageError(orderIndex, goodsIndex)" mode = "aspectFill" :lazy-load = "true" / >
< view class = "goods-img"
v-for = "(goodsItem, goodsIndex) in orderItem.order_goods"
:key = "goodsIndex" >
< image : src = "$util.img(goodsItem.sku_image, { size: 'mid' })"
@error ="imageError(orderIndex, goodsIndex)" mode = "aspectFill"
:lazy-load = "true" / >
< / view >
< / view >
< / scroll-view >
@@ -90,7 +102,8 @@
< text class = "font-size-sub" > 共 { { orderItem . goods _num } } 件商品 < / text >
< text class = "align-right font-size-base" >
实付款 :
< text class = "font-size-base price-font" > { { $lang ( 'common.currencySymbol' ) } } { { orderItem . order _money } } < / text >
< text class = "font-size-base price-font" > { { $lang ( 'common.currencySymbol' )
} } { { orderItem . order _money } } < / text >
< / text >
< / view >
< / view >
@@ -117,8 +130,10 @@
{{ operationItem.title }}
< / view >
< / view >
< view class = "order-action" v-else-if = "orderItem.action.length == 0 && orderItem.is_evaluate == 1 && evaluateConfig.evaluate_status == 1" >
< view class = "order-box-btn" v-if = "orderItem.is_evaluate == 1" @click="operation('memberOrderEvaluation', orderItem) ">
< view class = "order-action"
v-else-if = "orderItem.action.length == 0 && orderItem.is_evaluate == 1 && evaluateConfig.evaluate_status == 1 ">
< view class = "order-box-btn" v-if = "orderItem.is_evaluate == 1"
@click ="operation('memberOrderEvaluation', orderItem)" >
< text v-if = "orderItem.evaluate_status == 0" > 评价 < / text >
< text v-else-if = "orderItem.evaluate_status == 1" > 追评 < / text >
< / view >
@@ -131,8 +146,9 @@
< / view >
< view v-else > < ns -empty :isIndex = "false" :text = "$lang('emptyTips')" > < / ns-empty > < / view >
< / block >
<!-- # ifndef MP -- >
< / mescroll-uni >
<!-- # endif -- >
<!-- < view class = "order-batch-action" : class = "{ 'bottom-safe-area': isIphoneX }" v-if = "mergePayOrder.length" >
< view class = "action-btn color-base-text color-base-border" @click ="mergePay()" > 合并付款 < / view >
< / view > - - >
@@ -143,6 +159,9 @@
< ns-login ref = "login" > < / ns-login >
< loading-cover ref = "loadingCover" > < / loading-cover >
<!-- # ifdef MP -- >
< / mescroll-uni >
<!-- # endif -- >
< / view >
< / template >
@@ -451,7 +470,8 @@
< style lang = "scss" >
@ import './public/css/list.scss' ;
< / style >
< style scoped >
< style lang = "scss" scoped >
/deep/ . uni - page {
overflow : hidden ;
}