完善订单页面
This commit is contained in:
@ -9,8 +9,8 @@
|
||||
</view>
|
||||
|
||||
<view class="btn">
|
||||
<view class="btn1">查看订单</view>
|
||||
<view class="btn2">完成</view>
|
||||
<view class="btn1" @click="seeOrder">查看订单</view>
|
||||
<view class="btn2" @click="done">完成</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -19,18 +19,30 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
order_id: 0
|
||||
};
|
||||
},
|
||||
|
||||
onLoad(args) {
|
||||
this.getData();
|
||||
this.order_id = args.order_id || 0;
|
||||
},
|
||||
|
||||
methods: {
|
||||
getData() {
|
||||
|
||||
},
|
||||
|
||||
seeOrder() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/order/cg-my-order'
|
||||
});
|
||||
},
|
||||
|
||||
done() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user