提交
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "收货地址",
|
||||
"usingComponents": {
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-modal": "/components/uview-ui/components/u-modal/u-modal"
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
<view class="user-address"><block wx:if="{{!hasAddress}}"><view class="no-address column-center"><view class="sm muted">暂无添加地址,请添加~</view></view></block><block wx:else><view class="address-list"><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" class="radio-group" bindchange="__e"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item bg-white mb20" data-id="{{item.id}}" data-event-opts="{{[['tap',[['onSelect',['$event']]]]]}}" bindtap="__e"><view class="address"><view class="consignee md bold">{{''+item.contact+''}}<text class="phone ml10">{{item.telephone}}</text></view><view class="lighter sm mt10">{{''+item.province+" "+item.city+" "+item.district+"\n "+item.address+''}}</view></view><view class="operation row-between"><view><radio class="radio row" color="{{themeColor}}" value="{{item.id+''}}" checked="{{item.is_default=='1'?true:false}}"><text>设为默认</text></radio></view><view class="row-center"><view data-event-opts="{{[['tap',[['editAddress',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="row mr20" catchtap="__e"><u-icon vue-id="{{'3461d217-1-'+index}}" name="edit-pen-fill" size="32" bind:__l="__l"></u-icon>编辑</view><view class="row ml20" data-id="{{item.id}}" data-event-opts="{{[['tap',[['showSurePop',['$event']]]]]}}" catchtap="__e"><u-icon vue-id="{{'3461d217-2-'+index}}" name="trash" size="32" bind:__l="__l"></u-icon>删除</view></view></view></view></block></radio-group></view></block><u-modal vue-id="3461d217-3" id="delete-dialog" showCancelButton="{{true}}" confirm-text="删除" confirm-color="#FF2C3C" show-title="{{false}}" value="{{deleteSure}}" data-event-opts="{{[['^confirm',[['delAddressFun']]],['^cancel',[['hidePop']]],['^input',[['__set_model',['','deleteSure','$event',[]]]]]]}}" bind:confirm="__e" bind:cancel="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="column-center tips-dialog"><view style="margin-top:30rpx;">确认删除该地址吗?</view></view></u-modal><view class="footer row-between fixed bg-white"><view data-event-opts="{{[['tap',[['addAddress',['$event']]]]]}}" class="btn bg-default white md row-center br60" bindtap="__e">新增收货地址</view></view></view>
|
||||
@ -1,54 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
.user-address {
|
||||
padding-bottom: calc(140rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
.user-address .no-address {
|
||||
padding-top: 300rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.user-address .address-list {
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
.user-address .address-list .item {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.user-address .address-list .item .address {
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
}
|
||||
.user-address .address-list .item .operation {
|
||||
height: 80rpx;
|
||||
}
|
||||
.user-address .footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 118rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: content-box;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
.user-address .footer .btn {
|
||||
flex: 1;
|
||||
height: 80rpx;
|
||||
}
|
||||
.tips-dialog {
|
||||
height: 230rpx;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "收货地址",
|
||||
"usingComponents": {
|
||||
"u-form": "/components/uview-ui/components/u-form/u-form",
|
||||
"u-form-item": "/components/uview-ui/components/u-form-item/u-form-item",
|
||||
"u-input": "/components/uview-ui/components/u-input/u-input",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-checkbox": "/components/uview-ui/components/u-checkbox/u-checkbox",
|
||||
"u-button": "/components/uview-ui/components/u-button/u-button",
|
||||
"u-select": "/components/uview-ui/components/u-select/u-select"
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
<view class="address u-p-l-32 u-p-r-32"><u-form class="vue-ref" vue-id="55a6351c-1" model="{{addressObj}}" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('55a6351c-2')+','+('55a6351c-1')}}" label="收货人" label-width="160" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('55a6351c-3')+','+('55a6351c-2')}}" placeholder="请填写收货人姓名" value="{{addressObj.contact}}" data-event-opts="{{[['^input',[['__set_model',['$0','contact','$event',[]],['addressObj']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('55a6351c-4')+','+('55a6351c-1')}}" label="联系方式" label-width="160" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('55a6351c-5')+','+('55a6351c-4')}}" placeholder="请填写手机号码" value="{{addressObj.telephone}}" data-event-opts="{{[['^input',[['__set_model',['$0','telephone','$event',[]],['addressObj']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('55a6351c-6')+','+('55a6351c-1')}}" label="所在地区" label-width="160" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="row-between w-full" bindtap="__e"><view class="{{[[(!addressObj.region)?'placeholder-color':'']]}}">{{addressObj.region||'请选择地区'}}</view><view><u-icon vue-id="{{('55a6351c-7')+','+('55a6351c-6')}}" name="arrow-right" size="32" color="rgb(192, 196, 204)" bind:__l="__l"></u-icon></view></view></u-form-item><u-form-item vue-id="{{('55a6351c-8')+','+('55a6351c-1')}}" label="详细地址" label-width="160" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('55a6351c-9')+','+('55a6351c-8')}}" type="textarea" placeholder="请填写小区、街道、门牌号等信息" value="{{addressObj.address}}" data-event-opts="{{[['^input',[['__set_model',['$0','address','$event',[]],['addressObj']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('55a6351c-10')+','+('55a6351c-1')}}" border-bottom="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><u-checkbox bind:input="__e" vue-id="{{('55a6351c-11')+','+('55a6351c-10')}}" shape="circle" active-color="{{themeColor}}" value="{{addressObj.is_default}}" data-event-opts="{{[['^input',[['__set_model',['$0','is_default','$event',[]],['addressObj']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}">设为默认</u-checkbox></u-form-item><view class="u-m-t-60"><u-button vue-id="{{('55a6351c-12')+','+('55a6351c-1')}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',borderRadius:'100rpx',fontSize:'24rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['save']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">保存</u-button></view></u-form><u-select vue-id="55a6351c-13" mode="mutil-column-auto" list="{{lists}}" value="{{showPopup}}" data-event-opts="{{[['^confirm',[['regionChange']]],['^input',[['__set_model',['','showPopup','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-select></view>
|
||||
@ -1,22 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
.placeholder-color {
|
||||
color: #c0c4cc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user