新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -40,7 +40,6 @@
|
||||
placeholder="请输入详细地址"
|
||||
v-model="addressData.detail"
|
||||
/>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -66,9 +65,11 @@
|
||||
</view>
|
||||
<view class="list-content">
|
||||
<input
|
||||
type="number"
|
||||
type="tel"
|
||||
placeholder="请输入电话"
|
||||
maxlength="11"
|
||||
v-model="addressData.phone"
|
||||
@input="phoneInput"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@ -201,7 +202,7 @@ const onSave = async () => {
|
||||
uni.hideLoading()
|
||||
main.restAddress()
|
||||
if (actionType.value == 'select') {
|
||||
push({url: '/pages/address/address'}, {data: {type: 'select'},type:'redirectTo'})
|
||||
push({url: '/pages/address/address'}, {data: {type: 'select'}, type: 'redirectTo'})
|
||||
} else {
|
||||
main.getAddressList(1)
|
||||
goBack()
|
||||
@ -299,6 +300,16 @@ function handleChooseAddress() {
|
||||
unref(addressPickerRef).open()
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号验证
|
||||
*/
|
||||
function phoneInput(event){
|
||||
const pattern = /[^\d]/g;
|
||||
nextTick(() => {
|
||||
addressData.value.phone = event.detail.value.replace(pattern,'');
|
||||
})
|
||||
}
|
||||
|
||||
onLoad(async (options) => {
|
||||
const params = getParams(options)
|
||||
let id = params.id
|
||||
@ -322,6 +333,7 @@ onLoad(async (options) => {
|
||||
province: data.province,
|
||||
}
|
||||
}
|
||||
console.log(addressData.value)
|
||||
// 设置默认选择
|
||||
handleFindDefault(data)
|
||||
isDefaultList.value = data.isDefault ? ['isDefault'] : []
|
||||
|
Reference in New Issue
Block a user