Commit 5772ac75 authored by zhengke's avatar zhengke

修改

parent 6a3ad324
......@@ -316,7 +316,7 @@
<view style="margin: 10rpx 0 15rpx 0;display: flex;justify-content: space-between;">
<view>游客{{ subIndex + 1 }}</view>
<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 class="form-items">
......@@ -511,6 +511,8 @@
<!-- #ifdef MP-ALIPAY -->
<subscribe-msg />
<!-- #endif -->
<!-- 删除的弹框 -->
<u-modal v-model="showModal" content="确实删除该游客" :show-cancel-button="true" :show-title="false" @confirm="confirm"></u-modal>
</view>
</template>
......@@ -544,7 +546,9 @@ export default {
orderData: "",
Remarks: "", //备注
GuestList: [],
startCityName:''
startCityName:'',
showModal:false,
commonIndex:-1,
};
},
created() {
......@@ -560,9 +564,13 @@ export default {
methods: {
//删除游客
delGuest(index){
this.GuestList.splice(index,1);
this.commonIndex = index;
this.showModal = true;
},
confirm(){
this.GuestList.splice(this.commonIndex,1);
this.orderMsg.ManNum--;
this.singleCalc();
this.singleCalc();
},
//新增游客
addGuest(){
......@@ -875,7 +883,7 @@ export default {
});
setTimeout(() => {
uni.redirectTo({
url: "/pages/jiuzhai/jz_SureOrder?orderId=" + OrderId,
url: "/pages/jiuzhai/jz_ActiveInfo?orderId=" + OrderId,
});
}, 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