初始化代码

This commit is contained in:
2025-12-22 17:13:05 +08:00
parent ed0de08e3a
commit 1f7e9d401b
2947 changed files with 526137 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "添加新地址",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<block wx:if="{{isLoad}}"><view class="mine-address-edit"><view class="fill-base f-title"><view class="flex-between pd-lg b-1px-b"><view>联系人</view><input class="flex-1 f-paragraph text-right" type="text" placeholder-class="c-placeholder" placeholder="{{rule[0].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','user_name','$event',[]],['subForm']]]]]}}" value="{{subForm.user_name}}" bindinput="__e"/></view><view class="flex-between pd-lg b-1px-b"><view>手机号</view><input class="flex-1 f-paragraph text-right" type="number" placeholder-class="c-placeholder" placeholder="{{rule[1].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','mobile','$event',[]],['subForm']]]]]}}" value="{{subForm.mobile}}" bindinput="__e"/><button class="clear-btn" style="{{'color:'+(primaryColor)+';'+('margin-left:'+('15rpx')+';')+('font-size:'+('28rpx')+';')}}" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['toAuthPhone',['$event']]]]]}}" bindgetphonenumber="__e">授权</button></view><view class="flex-between pd-lg b-1px-b"><view class="flex-1">选择地区</view><view data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" class="flex-y-center f-paragraph max-500 text-right" catchtap="__e"><view class="{{['flex-1','text-right',[(!subForm.address)?'c-placeholder':''],[(subForm.address)?'c-title':'']]}}">{{''+(subForm.address||'点击右边图标设置')+''}}</view><view class="iconfont icon-dingwei-fill ml-sm _i" style="{{'color:'+(primaryColor)+';'}}"></view></view></view><view class="pd-lg f-title"><view>详细地址</view><textarea class="pt-lg textarea-item f-paragraph" maxlength="100" placeholder-class="c-placeholder" placeholder="{{rule[3].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','address_info','$event',[]],['subForm']]]]]}}" value="{{subForm.address_info}}" bindinput="__e"></textarea></view></view><view class="fill-base mt-md pt-sm pb-sm pl-lg pr-lg f-paragraph"><view class="flex-between"><view class="f-paragraph">设为默认地址</view><view data-event-opts="{{[['tap',[['toSetItem',['$event']]]]]}}" class="flex-1 text-right" catchtap="__e"><view class="{{['iconfont','icon-switch','ml-sm','_i',[(subForm.status==1)?'icon-switch-on':'']]}}" style="{{'color:'+(subForm.status==1?primaryColor:'#999')+';'}}"></view></view></view></view><view class="f-caption c-title mt-md pl-lg">设置后,下单时优先展示该地址</view><view class="space-max-footer"></view><fix-bottom-button vue-id="4e2a68f8-1" text="{{subForm.id?[{text:'删除',type:'cancel'},{text:'保存',type:'confirm'}]:[{text:'提交',type:'confirm'}]}}" bgColor="#fff" data-event-opts="{{[['^cancel',[['e0']]],['^confirm',[['confirmSubmit']]]]}}" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></fix-bottom-button><common-popup class="vue-ref" vue-id="4e2a68f8-2" type="DEL_ITEM" info="{{popupInfo}}" data-ref="del_item" data-event-opts="{{[['^confirm',[['confirmDel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view></block>

View File

@@ -0,0 +1,2 @@
.mine-address-edit .icon-dingwei-fill{font-size:40rpx}.mine-address-edit .icon-switch,
.mine-address-edit .icon-switch-on{font-size:80rpx}.mine-address-edit .textarea-item{width:690rpx;height:200rpx;overflow-y:auto}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "我的地址",
"enablePullDownRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="mine-address-list"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toUpdateItem',[index]]]]]}}" class="list-item fill-base mt-md" catchtap="__e"><view class="flex-warp pd-lg b-1px-b"><view class="address-icon flex-center c-base radius" style="{{'background:'+(primaryColor)+';'}}"><view class="iconfont icon-dingwei-fill _i"></view></view><view class="address-info flex-1 ml-md"><view class="flex-y-baseline username c-title text-bold">{{item.user_name+''}}<view class="ml-md f-desc c-paragraph">{{item.mobile}}</view></view><view class="f-desc c-title">{{item.address+' '+item.address_info}}</view></view></view><view class="oper-info pl-lg pr-lg f-paragraph c-paragraph flex-between"><view class="flex-y-center" style="{{'color:'+(options.check&&item.id==check_id||!options.check&&item.status==1?primaryColor:'')+';'}}"><view class="{{['iconfont','icon-xuanze','mr-sm','_i',[(options.check&&item.id==check_id||!options.check&&item.status==1)?'icon-xuanze-fill':'']]}}" style="{{'color:'+(options.check&&item.id==check_id||!options.check&&item.status==1?primaryColor:'')+';'}}"></view><block wx:if="{{options.check}}"><block>{{item.id==check_id?'当前选择地址':'点击选择'}}</block></block><block wx:else><block>{{item.status==1?'默认地址':'设为默认'}}</block></block></view><view class="flex-center"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="pl-lg pr-lg" catchtap="__e">编辑</view><view data-event-opts="{{[['tap',[['toDel',[index]]]]]}}" class="pl-lg" catchtap="__e">删除</view></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="746da2e4-1" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="746da2e4-2" title="暂未设置地址信息" tip="{{[{text:'点击下方按钮添加',color:0}]}}" bind:__l="__l"></abnor></block><view class="space-max-footer"></view><fix-bottom-button vue-id="746da2e4-3" text="{{[{text:'新增地址',type:'confirm'}]}}" data-event-opts="{{[['^confirm',[['e0']]]]}}" bind:confirm="__e" bind:__l="__l"></fix-bottom-button><common-popup class="vue-ref" vue-id="746da2e4-4" type="DEL_ITEM" info="{{popupInfo}}" data-ref="del_item" data-event-opts="{{[['^confirm',[['confirmDel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>

View File

@@ -0,0 +1 @@
.mine-address-list .address-icon{width:64rpx;height:64rpx}.mine-address-list .address-icon .iconfont{font-size:38rpx}.mine-address-list .address-info{max-width:606rpx}.mine-address-list .username{font-size:30rpx}.mine-address-list .oper-info{height:80rpx}