Merge branch 'master' into ma

master
mabo 2021-06-25 16:03:21 +08:00
commit 830cc3e83c
7 changed files with 42 additions and 17 deletions

View File

@ -111,7 +111,7 @@
<span class="inventory"> 库存{{skuDetail.quantity}}</span> <span class="inventory"> 库存{{skuDetail.quantity}}</span>
</div> </div>
</div> </div>
<div class="item-select"> <div class="item-select" v-if="skuDetail.goodsType !== 'VIRTUAL_GOODS'">
<div class="item-select-title"> <div class="item-select-title">
<p>重量</p> <p>重量</p>
</div> </div>
@ -119,10 +119,10 @@
<span class="inventory"> {{skuDetail.weight}}kg</span> <span class="inventory"> {{skuDetail.weight}}kg</span>
</div> </div>
</div> </div>
<div class="add-buy-car" v-if="$route.query.way === 'POINT'"> <div class="add-buy-car" v-if="$route.query.way === 'POINT' && skuDetail.isAuth === 'PASS'">
<Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="pointPay"></Button> <Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="pointPay"></Button>
</div> </div>
<div class="add-buy-car" v-else> <div class="add-buy-car" v-if="$route.query.way !== 'POINT' && skuDetail.isAuth === 'PASS'">
<Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="addShoppingCartBtn"></Button> <Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="addShoppingCartBtn"></Button>
<Button type="warning" :loading="loading1" :disabled="skuDetail.quantity === 0" @click="buyNow"></Button> <Button type="warning" :loading="loading1" :disabled="skuDetail.quantity === 0" @click="buyNow"></Button>
</div> </div>

View File

@ -98,14 +98,14 @@ export default {
} }
}, },
created () { created () {
this.getImg(); // this.getImg();
}, },
watch: { watch: {
verifyType: { verifyType: {
immediate: true, immediate: true,
handler: function (v) { handler: function (v) {
this.type = v; this.type = v;
this.refresh(); // this.refresh();
} }
}, },
show (v) { show (v) {

View File

@ -30,13 +30,13 @@
</div> </div>
<empty v-else /> <empty v-else />
<!-- 分页 --> <!-- 分页 -->
<div class="page-size mt_10" v-if="paging"> <!-- <div class="page-size mt_10" v-if="paging">
<Page :total="total" @on-change="changePageNum" <Page :total="total" @on-change="changePageNum"
@on-page-size-change="changePageSize" @on-page-size-change="changePageSize"
:page-size="params.pageSize" :page-size="params.pageSize"
show-sizer> show-sizer>
</Page> </Page>
</div> </div> -->
</div> </div>
</template> </template>
@ -61,7 +61,7 @@ export default {
total: 0, // total: 0, //
params: { // params: { //
pageNumber: 1, pageNumber: 1,
pageSize: 10, pageSize: 100,
type: 'GOODS' type: 'GOODS'
}, },
spinShow: false // spinShow: false //

View File

@ -3,6 +3,7 @@
<card _Title="订单详情" :_Size="16"></card> <card _Title="订单详情" :_Size="16"></card>
<div class="order-card"> <div class="order-card">
<p class="global_color fontsize_18">{{ order.orderStatusValue }}</p> <p class="global_color fontsize_18">{{ order.orderStatusValue }}</p>
<p class="global_color fontsize_16" v-if="order.orderStatusValue === '待核验'">{{order.orderCode || 'AHDN4123'}}</p>
<p class="global_color">订单号{{ order.order.sn }}</p> <p class="global_color">订单号{{ order.order.sn }}</p>
<div style="color:#999;" class="operation-time">操作时间{{order.order.updateTime}}</div> <div style="color:#999;" class="operation-time">操作时间{{order.order.updateTime}}</div>
<Steps class="progress" :current="progressList.length" direction="vertical"> <Steps class="progress" :current="progressList.length" direction="vertical">
@ -22,8 +23,8 @@
</div> </div>
<div class="order-card"> <div class="order-card">
<h3>付款信息</h3> <h3>付款信息</h3>
<p>支付方式在线支付</p> <p>支付方式{{order.paymentMethodValue}}</p>
<p>付款状态未付款</p> <p>付款状态{{order.payStatusValue}}</p>
</div> </div>
<div class="order-card"> <div class="order-card">
<h3>配送信息</h3> <h3>配送信息</h3>

View File

@ -15,6 +15,14 @@
</span> </span>
</li> </li>
</ul> </ul>
<!-- 分页 -->
<div class="page-size">
<Page :total="total" @on-change="changePageNum"
@on-page-size-change="changePageSize"
:page-size="params.pageSize"
show-sizer>
</Page>
</div>
</div> </div>
</template> </template>
@ -25,7 +33,14 @@ export default {
data () { data () {
return { return {
list: [], // list: [], //
spinShow: false // loading spinShow: false, // loading
params: {
pageNumber: 1,
pageSize: 30,
order: 'desc',
sort: 'createTime'
},
total: 0
}; };
}, },
mounted () { mounted () {
@ -71,7 +86,16 @@ export default {
} }
}) })
}, },
getList () { changePageNum (val) { //
this.params.pageNumber = val;
this.getList()
},
changePageSize (val) { //
this.pageNumber = 1;
this.params.pageSize = val;
this.getList()
},
getList () { //
this.spinShow = true; this.spinShow = true;
tracksList(this.params).then(res => { tracksList(this.params).then(res => {
this.spinShow = false this.spinShow = false

View File

@ -98,14 +98,14 @@ export default {
} }
}, },
created () { created () {
this.getImg(); // this.getImg();
}, },
watch: { watch: {
verifyType: { verifyType: {
immediate: true, immediate: true,
handler: function (v) { handler: function (v) {
this.type = v; this.type = v;
this.refresh(); // this.refresh();
} }
}, },
show (v) { show (v) {

View File

@ -98,14 +98,14 @@ export default {
} }
}, },
created () { created () {
this.getImg(); // this.getImg();
}, },
watch: { watch: {
verifyType: { verifyType: {
immediate: true, immediate: true,
handler: function (v) { handler: function (v) {
this.type = v; this.type = v;
this.refresh(); // this.refresh();
} }
}, },
show (v) { show (v) {