Fix:4457 【旅居商城小程序】收礼—【商品】类的填写地址弹窗需改回原来的样式
This commit is contained in:
@@ -84,6 +84,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<giftTips ref="giftTips" :richText="giftNotice"></giftTips>
|
||||
<AddressDialog ref="addressDialog" @save="getReceive"></AddressDialog>
|
||||
<AddressList ref="AddressList" :addressList="address" @save="getReceive"></AddressList>
|
||||
<GiftAddressForm
|
||||
ref="giftAddressForm"
|
||||
:show="showAddressForm"
|
||||
@@ -99,14 +101,18 @@
|
||||
<script>
|
||||
import { getGiftCardSendNotice, getGiftCardReceive, receiveSojoumGroupBuyGift } from '@/api/gift'
|
||||
import cookie from "@/utils/store/cookie";
|
||||
import { getAddressList } from '@/api/user'
|
||||
import { getAddressList } from '@/api/user'
|
||||
import giftTips from './giftTips.vue'
|
||||
import GiftAddressForm from './GiftAddressForm.vue'
|
||||
import AddressDialog from './AddressDialog.vue'
|
||||
import AddressList from './AddressList.vue'
|
||||
export default {
|
||||
name: 'GiftCard',
|
||||
components: {
|
||||
giftTips,
|
||||
GiftAddressForm
|
||||
GiftAddressForm,
|
||||
AddressDialog,
|
||||
AddressList
|
||||
},
|
||||
props: {
|
||||
isTravelGroup: {
|
||||
@@ -129,6 +135,7 @@ export default {
|
||||
// 组件数据
|
||||
giftNotice: '',
|
||||
order: '',
|
||||
address: [],
|
||||
showAddressForm: false,
|
||||
unavailableDates: ['2025-08-13', '2025-08-14', '2025-08-15', '2025-08-16', '2025-08-17', '2025-08-18', '2025-08-19', '2025-08-20', '2025-08-21', '2025-08-22', '2025-08-23']
|
||||
}
|
||||
@@ -140,7 +147,7 @@ export default {
|
||||
return gitfNum === isReceiveNum
|
||||
},
|
||||
isLogin() {
|
||||
return !!cookie.get('login_status');
|
||||
return !!cookie.get('login_status');
|
||||
},
|
||||
myGift() {
|
||||
return this.card.giftProducts && this.card.giftProducts.filter(item => item.isCurrentUser === 1).length > 0 && this.card.giftProducts.filter(item => item.isCurrentUser === 1)[0] || this.card.giftProduct && this.card.giftProducts[0]
|
||||
@@ -218,8 +225,16 @@ export default {
|
||||
}).finally(() => {
|
||||
})
|
||||
},
|
||||
setAddress() {
|
||||
this.showAddressForm = true;
|
||||
setAddress(flag) {
|
||||
getAddressList().then(res => {
|
||||
if (res.data.length === 0) {
|
||||
this.$refs.addressDialog.open()
|
||||
} else {
|
||||
this.address = res.data
|
||||
if(flag) return
|
||||
this.$refs.AddressList.open()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
closeAddressForm() {
|
||||
|
||||
Reference in New Issue
Block a user