|
@@ -70,7 +70,7 @@
|
|
<view class="bottom-wrapper">
|
|
<view class="bottom-wrapper">
|
|
<text class="price">合计: ¥15</text>
|
|
<text class="price">合计: ¥15</text>
|
|
<view style="width: 150px">
|
|
<view style="width: 150px">
|
|
- <up-button text="去结算" color="#fd9a00"></up-button>
|
|
|
|
|
|
+ <up-button text="去结算" @click="settlement" color="#fd9a00"></up-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</BottomSafeWrapper>
|
|
</BottomSafeWrapper>
|
|
@@ -78,11 +78,36 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref } from "vue";
|
|
|
|
-import { BottomSafeWrapper } from "@/components/bottom-safe-wrapper/index.vue";
|
|
|
|
|
|
+import { reactive, ref } from "vue";
|
|
|
|
+import { createOrder } from "@/api/food";
|
|
|
|
+
|
|
|
|
+import BottomSafeWrapper from "@/components/bottom-safe-wrapper/index.vue";
|
|
|
|
|
|
const remark = ref("");
|
|
const remark = ref("");
|
|
|
|
|
|
|
|
+const param = reactive({
|
|
|
|
+ deliveryOrderDto:{
|
|
|
|
+ shopName: "黄焖鸡德州店",
|
|
|
|
+ deliveryAddress:"",
|
|
|
|
+ deliveryPhone:"",
|
|
|
|
+ deliveryRemark:"",
|
|
|
|
+ tableware:1,
|
|
|
|
+ orderAmount:100,
|
|
|
|
+ payAmount:"100",
|
|
|
|
+ packCharge:10,
|
|
|
|
+ deliveryFee:5
|
|
|
|
+ },
|
|
|
|
+ deliveryOrderItemsDtoList:[{
|
|
|
|
+ foodName:"羊肉泡馍",
|
|
|
|
+ price:30,
|
|
|
|
+ number:2
|
|
|
|
+ },{
|
|
|
|
+ foodName:"鸡蛋灌饼",
|
|
|
|
+ price:5,
|
|
|
|
+ number:5
|
|
|
|
+ }]
|
|
|
|
+})
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* To the address list page
|
|
* To the address list page
|
|
*/
|
|
*/
|
|
@@ -105,6 +130,10 @@ function handleToRemark() {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+async function settlement() {
|
|
|
|
+ const { data } = await createOrder(param)
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|