Files
2025-04-30 14:04:34 +08:00

306 lines
13 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center editAddress_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub editAddress_fd0_0' >
<view class='flex flex-wrap align-center editAddress_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1" >
<text class='fu-iconfont2 editAddress_fd0_0_c0_c0' >&#xE794;</text>
</view>
<view class='flex flex-wrap align-center' >
<text class='editAddress_fd0_0_c1_c0' >编辑地址</text>
</view>
<view class='flex flex-wrap align-center justify-end editAddress_fd0_0_c2' >
<text class='editAddress_fd0_0_c2_c0' @tap.stop="popupShow1681963398849=true" >删除</text>
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}" ></view>
<!---添加地址flex布局开始-->
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout editAddress_flex_1" >
<view class='flex flex-wrap align-center editAddress_fd1_0' >
<text class='editAddress_fd1_0_c0' >标签</text>
<benben-select-diy ref="showSelectPopup1681962374899" class-name='flex align-center flex' :items.sync="labelType" v-model="label_id" :label.sync="label_name" default-type="value" default-label="name" :allow-cancel='true' type="radio" :disabled='false' >
<template v-for = '(item,key0) in labelType'>
<view v-if="item.isSelected" class='flex align-center flex' :key="key0" @tap="$refs.showSelectPopup1681962374899.tapHandle(key0)" >
<text class='editAddress_fd1_0_c1_c0_c0' >{{item.name}}</text>
</view> <view v-else class='flex align-center flex' :key="key0" @tap="$refs.showSelectPopup1681962374899.tapHandle(key0)" >
<text class='editAddress_fd1_0_c1_c1_c0' >{{item.name}}</text>
</view></template></benben-select-diy>
<text class='editAddress_fd1_0_c2' >+</text>
</view>
<view class='flex flex-wrap align-center editAddress_fd1_1' >
<text class='editAddress_fd1_1_c0' >收货人</text>
<input class='flex-sub editAddress_fd1_1_c1' type="text" placeholder="收货人" confirm-type="done" :maxlength="-1" placeholder-style="color:#BFBFBF;font-size:32rpx" v-model="fd1_1_c1" />
<benben-select-diy ref="showSelectPopup1681962038152" class-name='flex flex' :items.sync="sex" v-model="sex_id" :label.sync="sex_name" default-type="value" default-label="name" :allow-cancel='true' type="radio" :disabled='false' >
<template v-for = '(item,key0) in sex'>
<view v-if="item.isSelected" class='flex align-center flex editAddress_fd1_1_c2_c0' :key="key0" @tap="$refs.showSelectPopup1681962038152.tapHandle(key0)" >
<image class='editAddress_fd1_1_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"33.png"'></image>
<text class='editAddress_fd1_1_c2_c0_c1' >{{item.name}}</text>
</view> <view v-else class='flex align-center flex editAddress_fd1_1_c2_c1' :key="key0" @tap="$refs.showSelectPopup1681962038152.tapHandle(key0)" >
<image class='editAddress_fd1_1_c2_c1_c0' mode="aspectFit" :src='STATIC_URL+"165.png"'></image>
<text class='editAddress_fd1_1_c2_c1_c1' >{{item.name}}</text>
</view></template></benben-select-diy>
</view>
<view class='flex flex-wrap align-center editAddress_fd1_2' >
<text class='editAddress_fd1_2_c0' >联系电话</text>
<input class='flex-sub editAddress_fd1_2_c1' type="number" placeholder="联系电话" confirm-type="done" :maxlength="11" placeholder-style="color:#BFBFBF;font-size:32rpx" v-model="fd1_2_c1" />
</view>
<view class='flex flex-wrap align-center editAddress_fd1_3' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/my/mapSite/mapSite`" >
<text class='editAddress_fd1_3_c0' >所在地区</text>
<input class='flex-sub editAddress_fd1_3_c1' type="text" placeholder="请选择省市区县、乡镇" confirm-type="done" :maxlength="-1" :disabled='true' placeholder-style="color:#BFBFBF;font-size:32rpx" v-model="fd1_3_c1" />
<image class='editAddress_fd1_3_c2' mode="aspectFit" :src='STATIC_URL+"37.png"'></image>
</view>
<view class='flex flex-wrap align-center editAddress_fd1_4' >
<view class='flex flex-wrap editAddress_fd1_4_c0'>
<textarea class='flex editAddress_input_fd1_4_c0' confirm-type="done" :placeholder="'请填写详细地址:如道路、门牌号、小区、楼栋号等'" :maxlength="240" placeholder-style="color:#BFBFBF;font-size:28rpx" v-model="fd1_4_c0" />
</view>
</view>
<view class='flex flex-wrap align-center justify-between editAddress_fd1_5' >
<text class='editAddress_fd1_5_c0' >设为默认地址</text>
<switch color='rgba(255, 125, 0, 1)' style="transform: scale(0.8)" class="flex " :checked="isDefault" />
</view>
</view>
<!---添加地址flex布局结束-->
<!--选择器开始 -->
<benben-picker ref="benbenWritePickerCodepicker2" :visible.sync="pickerDiy1681962239781" mode='region' :mask-show='true' :picker-height='88' :hide-area='false' >
<template #picker-header>
<view class='flex flex-wrap align-center justify-between editAddress_picker2_0' >
<text class='editAddress_picker2_0_c0' @tap="$refs.benbenWritePickerCodepicker2.cancel()" >取消</text>
<text class='editAddress_picker2_0_c1' >选择所在地区</text>
<text class='editAddress_picker2_0_c2' @tap="$refs.benbenWritePickerCodepicker2.pickerConfirm()" >确认</text>
</view>
</template>
</benben-picker>
<!--选择器结束 -->
<view class="flex flex-wrap align-start justify-center benben-position-layout flex editAddress_flex_3" >
<button class='editAddress_fd3_0' @tap.stop="handleJumpDiy" data-type="back" data-url="1" >保存</button>
</view>
<view :style="{height: '120rpx'}" ></view>
<benben-popup v-model="popupShow1681963398849" :mask="true" mode='center'>
<!---删除地址flex布局开始-->
<view class="flex flex-direction flex-wrap align-center editAddress_flex_4" >
<text class='editAddress_fd4_0' >提示</text>
<text class='editAddress_fd4_1' >是否确认删除地址</text>
<view class='flex flex-wrap align-center editAddress_fd4_2' >
</view>
<view class='flex flex-wrap align-center' >
<view class='flex flex-wrap align-center editAddress_fd4_3_c0' @tap.stop="popupShow1681963398849=false" >
<text class='editAddress_fd4_3_c0_c0' >取消</text>
</view>
<view class='flex flex-wrap align-center editAddress_fd4_3_c1' >
<text class='editAddress_fd4_3_c1_c0' >确定</text>
</view>
</view>
</view>
<!---删除地址flex布局结束-->
</benben-popup>
</view>
</template>
<script>
export default {
components:{},
data(){
return {"popupShow1681963398849":false,"pickerDiy1681962239781":false,"fd1_1_c1":"","fd1_2_c1":"","fd1_3_c1":"","fd1_4_c0":"","labelType":[{"name":"公司","value":"1","image":""},{"name":"家","value":"2","image":""},{"name":"学校","value":"3","image":""}],"label_id":"1","label_name":"","sex":[{"name":"先生","value":"1","image":""},{"name":"女士","value":"2","image":""}],"sex_id":"1","sex_name":"","isDefault":true,"address_id":""};
},
computed:{
themeColor() {
return this.$store.getters.themeColor
},
},
watch:{},
onLoad(options){
let {address_id}=options
if (address_id !== undefined) this.address_id = address_id
},
onUnload() {
},
onReady(){
},
onShow(){
},
onHide(){
},
onResize(){
},
onPullDownRefresh(){
},
onReachBottom(e){
},
onPageScroll(e){
},
methods:{
}
};
</script>
<style lang="scss" scoped>
.page{
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background:#F8F8F8;background-size: 100% auto !important;
}
.editAddress_flex_0{
background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
}
.editAddress_fd0_0_c2_c0{
line-height:35rpx;font-size:28rpx;font-weight:400;color:#000000;
}
.editAddress_fd0_0_c2{
width:150rpx;
}
.editAddress_fd0_0_c1_c0{
font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
}
.editAddress_fd0_0_c0_c0{
font-size:36rpx;font-weight:500;color:#333;line-height:36rpx;
}
.editAddress_fd0_0_c0{
width:150rpx;
}
.editAddress_fd0_0{
margin:0rpx 32rpx 0rpx 32rpx;
}
.editAddress_flex_1{
background:#fff;background-size:100% auto !important;padding:0rpx 0rpx 0rpx 32rpx;
}
.editAddress_fd1_5_c0{
font-size:32rpx;font-weight:400;color:#333333;
}
.editAddress_fd1_5{
padding:32rpx 32rpx 32rpx 0rpx;
}
.editAddress_input_fd1_4_c0{
font-size:28rpx;font-weight:400;color:#333;
}
.editAddress_fd1_4_c0{
background:rgba(246, 246, 246, 1);width:680rpx;padding:24rpx 24rpx 24rpx 24rpx;border-radius:8rpx 8rpx 8rpx 8rpx;height:160rpx;
}
.editAddress_fd1_4{
border-bottom:1px solid #eee;padding:32rpx 32rpx 32rpx 0rpx;
}
.editAddress_fd1_3_c2{
width:32rpx;height:32rpx;
}
.editAddress_fd1_3_c1{
padding:0rpx 0rpx 0rpx 40rpx;font-size:32rpx;font-weight:500;color:#333;line-height:45rpx;
}
.editAddress_fd1_3_c0{
font-size:32rpx;font-weight:400;color:#333333;
}
.editAddress_fd1_3{
border-bottom:1px solid #eee;padding:32rpx 32rpx 32rpx 0rpx;
}
.editAddress_fd1_2_c1{
padding:0rpx 0rpx 0rpx 40rpx;font-size:32rpx;font-weight:500;color:#333;line-height:45rpx;
}
.editAddress_fd1_2_c0{
font-size:32rpx;font-weight:400;color:#333333;
}
.editAddress_fd1_2{
border-bottom:1px solid #eee;padding:32rpx 32rpx 32rpx 0rpx;
}
.editAddress_fd1_1_c2_c1_c1{
font-size:32rpx;font-weight:400;color:#999999;margin:0rpx 0rpx 0rpx 12rpx;
}
.editAddress_fd1_1_c2_c1_c0{
width:36rpx;height:36rpx;
}
.editAddress_fd1_1_c2_c1{
margin:0rpx 32rpx 0rpx 0rpx;
}
.editAddress_fd1_1_c2_c0_c1{
font-size:32rpx;font-weight:400;color:#333333;margin:0rpx 0rpx 0rpx 12rpx;
}
.editAddress_fd1_1_c2_c0_c0{
width:36rpx;height:36rpx;
}
.editAddress_fd1_1_c2_c0{
margin:0rpx 32rpx 0rpx 0rpx;
}
.editAddress_fd1_1_c1{
padding:0rpx 0rpx 0rpx 72rpx;font-size:32rpx;font-weight:400;color:#333;line-height:45rpx;
}
.editAddress_fd1_1_c0{
font-size:32rpx;font-weight:400;color:#333333;
}
.editAddress_fd1_1{
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
}
.editAddress_fd1_0_c2{
border:1px solid #eee;background:#fff;margin:0rpx 16rpx 0rpx 0rpx;border-radius:5rpx 5rpx 5rpx 5rpx;font-size:24rpx;font-weight:400;color:#333;padding:4rpx 21rpx 4rpx 21rpx;
}
.editAddress_fd1_0_c1_c1_c0{
border:1px solid #eee;background:#fff;margin:0rpx 16rpx 0rpx 0rpx;border-radius:5rpx 5rpx 5rpx 5rpx;font-size:24rpx;font-weight:400;color:#333;padding:4rpx 12rpx 4rpx 12rpx;
}
.editAddress_fd1_0_c1_c0_c0{
background:rgba(89, 166, 244, 1);margin:0rpx 16rpx 0rpx 0rpx;border-radius:5rpx 5rpx 5rpx 5rpx;font-size:24rpx;font-weight:400;color:#fff;padding:4rpx 12rpx 4rpx 12rpx;
}
.editAddress_fd1_0_c0{
font-size:32rpx;font-weight:400;color:#333333;margin:0rpx 101rpx 0rpx 0rpx;
}
.editAddress_fd1_0{
border-bottom:1px solid #eee;padding:32rpx 32rpx 32rpx 0rpx;
}
.editAddress_picker2_0_c2{
color:rgba(255, 125, 0, 1);font-size:32rpx;
}
.editAddress_picker2_0_c1{
font-size:32rpx;
}
.editAddress_picker2_0_c0{
font-size:32rpx;color:rgba(191, 191, 191, 1);
}
.editAddress_picker2_0{
border-bottom:1px solid #eee;background:#fff;padding:32rpx 32rpx 32rpx 32rpx;border-radius:25rpx 25rpx 0rpx 0rpx;background-size:100% auto !important;
}
.editAddress_flex_3{
width:750rpx;height:120rpx;overflow:hidden;z-index:10;bottom:calc(0rpx + var(--window-bottom));
}
.editAddress_fd3_0{
background:rgba(255, 147, 0, 1);border-radius:40rpx 40rpx 40rpx 40rpx;font-size:32rpx;color:#fff;width:686rpx;height:88rpx;line-height:88rpx;font-weight:500;
}
.editAddress_flex_4{
background:#fff;margin:0rpx 104rpx 0rpx 104rpx;background-size:#eee;border-radius:16rpx 16rpx 16rpx 16rpx;padding:40rpx 0rpx 0rpx 0rpx;
}
.editAddress_fd4_3_c1_c0{
font-size:34rpx;font-weight:500;color:rgba(255, 125, 0, 1);
}
.editAddress_fd4_3_c1{
padding:23rpx 100rpx 23rpx 100rpx;border-radius:0rpx 0rpx 16rpx 0rpx;
}
.editAddress_fd4_3_c0_c0{
font-size:34rpx;font-weight:400;color:rgba(153, 153, 153, 1);
}
.editAddress_fd4_3_c0{
border-right:1px solid #eee;padding:23rpx 100rpx 23rpx 95rpx;border-radius:0rpx 0rpx 0rpx 16rpx;
}
.editAddress_fd4_2{
background:rgba(238, 238, 238, 1);width:540rpx;height:1rpx;background-size:#eee;
}
.editAddress_fd4_1{
padding:40rpx 0rpx 40rpx 0rpx;font-size:32rpx;font-weight:500;color:rgba(51, 51, 51, 1);
}
.editAddress_fd4_0{
font-weight:800;font-size:36rpx;color:rgba(51, 51, 51, 1);
}
</style>