完善订单页面

This commit is contained in:
wangxiaowei
2025-12-08 01:37:33 +08:00
parent becadb1d0c
commit 4a0d0c1114
6 changed files with 348 additions and 141 deletions

View File

@ -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>