Browse Source

优化

master
453530270@qq.com 2 years ago
parent
commit
db2bd784e9
  1. 34
      pages/order/index.vue

34
pages/order/index.vue

@ -27,10 +27,15 @@
<!-- 商品信息 -->
<view class="goods-content">
<view class="goods-title"><text class="twoline-hide">{{ goods.goods_name }}</text></view>
<!-- 委托方 -->
<!-- <view class="goods-suply">
<text>委托方{{goods.entrust_name}}</text>
</view> -->
<view class="goods-props clearfix">
<view class="goods-props-item" v-for="(props, idx) in goods.goods_props" :key="idx">
<text>{{ props.value.name }}</text>
</view>
<view class="goods-props-item">
<text>{{goods.goods_entrust=="1"?'转让':'授权'}}</text>
</view>
<view class="goods-props-item">{{goods.entrust_name}}</view>
</view>
</view>
<!-- 交易信息 -->
@ -40,11 +45,16 @@
<text class="value">{{goods.price }}</text>
</view>
<view class="goods-num">
<text>×{{ goods.transaction_count }}</text>
<text>×{{ goods.transaction_count }}</text>
</view>
</view>
<!-- 委托方等信息 -->
<!-- <view class="goods-other">
<text>{{goods.entrust_name}}</text>
</view> -->
</view>
</view>
<!-- 订单合计 -->
<view class="order-total">
<text>{{ item.total_num }}件商品总金额</text>
@ -226,11 +236,11 @@
//
initCurTab(options) {
// const app = this
// if (options.dataType) {
// const index = app.tabs.findIndex(item => item.value == options.dataType)
// app.curTab = index > -1 ? index : 0
// }
const app = this
if (options.dataType) {
const index = app.tabs.findIndex(item => item.value == options.dataType)
app.curTab = index > -1 ? index : 0
}
},
/**
@ -258,11 +268,11 @@
OrderApi.ordquery(data)
//OrderApi.list({ dataType: app.getTabValue(), page: pageNo }, { load: false })
.then(result => {
//
let nlist = {data:result.data,total:result.count,current_page:pageNo}
//
let nlist = {data:result.data,total:result.count,current_page:pageNo}
//
const newList = app.initList(nlist)
console.log(newList,"newlist")
app.list.data = getMoreListData(newList, app.list, pageNo)
resolve(newList)
})

Loading…
Cancel
Save