Commit 5772ac75 authored by zhengke's avatar zhengke

修改

parent 6a3ad324
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<view style="margin: 10rpx 0 15rpx 0;display: flex;justify-content: space-between;"> <view style="margin: 10rpx 0 15rpx 0;display: flex;justify-content: space-between;">
<view>游客{{ subIndex + 1 }}</view> <view>游客{{ subIndex + 1 }}</view>
<view v-if="subIndex!=0"> <view v-if="subIndex!=0">
<u-icon size="40" name="delete" color="red" @click="delGuest(index)"></u-icon> <u-icon size="40" name="delete" color="red" @click="delGuest(subIndex)"></u-icon>
</view> </view>
</view> </view>
<view class="form-items"> <view class="form-items">
...@@ -511,6 +511,8 @@ ...@@ -511,6 +511,8 @@
<!-- #ifdef MP-ALIPAY --> <!-- #ifdef MP-ALIPAY -->
<subscribe-msg /> <subscribe-msg />
<!-- #endif --> <!-- #endif -->
<!-- 删除的弹框 -->
<u-modal v-model="showModal" content="确实删除该游客" :show-cancel-button="true" :show-title="false" @confirm="confirm"></u-modal>
</view> </view>
</template> </template>
...@@ -544,7 +546,9 @@ export default { ...@@ -544,7 +546,9 @@ export default {
orderData: "", orderData: "",
Remarks: "", //备注 Remarks: "", //备注
GuestList: [], GuestList: [],
startCityName:'' startCityName:'',
showModal:false,
commonIndex:-1,
}; };
}, },
created() { created() {
...@@ -560,9 +564,13 @@ export default { ...@@ -560,9 +564,13 @@ export default {
methods: { methods: {
//删除游客 //删除游客
delGuest(index){ delGuest(index){
this.GuestList.splice(index,1); this.commonIndex = index;
this.showModal = true;
},
confirm(){
this.GuestList.splice(this.commonIndex,1);
this.orderMsg.ManNum--; this.orderMsg.ManNum--;
this.singleCalc(); this.singleCalc();
}, },
//新增游客 //新增游客
addGuest(){ addGuest(){
...@@ -875,7 +883,7 @@ export default { ...@@ -875,7 +883,7 @@ export default {
}); });
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/jz_SureOrder?orderId=" + OrderId, url: "/pages/jiuzhai/jz_ActiveInfo?orderId=" + OrderId,
}); });
}, 100); }, 100);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment