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

Loading…
Cancel
Save