Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
22b27f3c
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
22b27f3c
编写于
11月 27, 2020
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户地址[地图/身份证]新增开关控制
上级
cd414b31
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
192 addition
and
70 deletion
+192
-70
application/admin/view/default/site/siteset/extends.html
application/admin/view/default/site/siteset/extends.html
+25
-0
application/index/view/default/useraddress/save_info.html
application/index/view/default/useraddress/save_info.html
+57
-49
application/service/BaseService.php
application/service/BaseService.php
+2
-0
application/service/UserAddressService.php
application/service/UserAddressService.php
+2
-4
changelog.txt
changelog.txt
+1
-0
sourcecode/alipay/default/pages/user-address-save/user-address-save.axml
...ay/default/pages/user-address-save/user-address-save.axml
+2
-2
sourcecode/alipay/default/pages/user-address-save/user-address-save.js
...ipay/default/pages/user-address-save/user-address-save.js
+17
-0
sourcecode/alipay/default/pages/user/user.js
sourcecode/alipay/default/pages/user/user.js
+1
-1
sourcecode/baidu/default/pages/user-address-save/user-address-save.js
...aidu/default/pages/user-address-save/user-address-save.js
+17
-0
sourcecode/baidu/default/pages/user-address-save/user-address-save.swan
...du/default/pages/user-address-save/user-address-save.swan
+2
-2
sourcecode/baidu/default/pages/user/user.js
sourcecode/baidu/default/pages/user/user.js
+1
-1
sourcecode/qq/default/pages/user-address-save/user-address-save.js
...e/qq/default/pages/user-address-save/user-address-save.js
+17
-0
sourcecode/qq/default/pages/user-address-save/user-address-save.qml
.../qq/default/pages/user-address-save/user-address-save.qml
+2
-2
sourcecode/qq/default/pages/user/user.js
sourcecode/qq/default/pages/user/user.js
+1
-1
sourcecode/toutiao/default/pages/user-address-save/user-address-save.js
...tiao/default/pages/user-address-save/user-address-save.js
+17
-0
sourcecode/toutiao/default/pages/user-address-save/user-address-save.ttml
...ao/default/pages/user-address-save/user-address-save.ttml
+2
-2
sourcecode/toutiao/default/pages/user/user.js
sourcecode/toutiao/default/pages/user/user.js
+1
-1
sourcecode/weixin/default/pages/user-address-save/user-address-save.js
...ixin/default/pages/user-address-save/user-address-save.js
+20
-0
sourcecode/weixin/default/pages/user-address-save/user-address-save.wxml
...in/default/pages/user-address-save/user-address-save.wxml
+4
-4
sourcecode/weixin/default/pages/user/user.js
sourcecode/weixin/default/pages/user/user.js
+1
-1
未找到文件。
application/admin/view/default/site/siteset/extends.html
浏览文件 @
22b27f3c
...
...
@@ -34,6 +34,31 @@
</div>
</div>
<!-- 用户地址 -->
<div
class=
"am-panel am-panel-default am-margin-top-sm"
>
<div
class=
"am-panel-hd"
>
<h3
class=
"am-panel-title"
>
用户地址
</h3>
</div>
<div
class=
"am-panel-bd"
>
<div
class=
"am-form-group"
>
<label>
{{$data.home_user_address_map_status.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_user_address_map_status.describe}}
</span></label>
<select
name=
"{{$data.home_user_address_map_status.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.home_user_address_map_status.error_tips}}"
required
>
{{foreach $site_site_state_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
home_user_address_map_status
']['
value
'])
and
$
data
['
home_user_address_map_status
']['
value
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.home_user_address_idcard_status.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_user_address_idcard_status.describe}}
</span></label>
<select
name=
"{{$data.home_user_address_idcard_status.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.home_user_address_idcard_status.error_tips}}"
required
>
{{foreach $site_site_state_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
home_user_address_idcard_status
']['
value
'])
and
$
data
['
home_user_address_idcard_status
']['
value
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing am-margin-top-lg am-padding-left-0"
>
<input
type=
"hidden"
name=
"nav_type"
value=
"{{$nav_type}}"
/>
<input
type=
"hidden"
name=
"view_type"
value=
"{{$view_type}}"
/>
...
...
application/index/view/default/useraddress/save_info.html
浏览文件 @
22b27f3c
...
...
@@ -4,6 +4,10 @@
<div
class=
"am-g am-padding-sm"
>
<!-- form start -->
<form
class=
"am-form form-validation"
method=
"post"
action=
"{{:MyUrl('index/useraddress/save')}}"
request-type=
"ajax-fun"
request-value=
"ViewModalBack"
>
<div
class=
"am-form-group"
>
<label>
别名
<span
class=
"am-form-group-label-tips"
>
选填
</span></label>
<input
type=
"text"
name=
"alias"
placeholder=
"别名"
minlength=
"0"
maxlength=
"16"
data-validation-message=
"别名格式最多 16 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
alias
'])}}
value=
"{{$data.alias}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
姓名
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<input
type=
"text"
name=
"name"
placeholder=
"姓名"
minlength=
"2"
maxlength=
"16"
data-validation-message=
"姓名格式 2~16 个字符之间"
class=
"am-radius"
{{
if
!
empty
($
data
['
name
'])}}
value=
"{{$data.name}}"
{{/
if
}}
required
/>
...
...
@@ -16,62 +20,64 @@
{{include file="lib/region_linkage" /}}
<div
class=
"am-form-group"
>
<label>
详细地址
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"hidden"
name=
"lng"
id=
"form-lng"
{{
if
!
empty
($
data
['
lng
'])}}
value=
"{{$data.lng}}"
{{/
if
}}
/>
<input
type=
"hidden"
name=
"lat"
id=
"form-lat"
{{
if
!
empty
($
data
['
lat
'])}}
value=
"{{$data.lat}}"
{{/
if
}}
/>
<input
type=
"text"
name=
"address"
id=
"form-address"
placeholder=
"详细地址"
minlength=
"2"
maxlength=
"80"
data-validation-message=
"详细地址格式 1~80 个字符之间"
class=
"am-radius"
{{
if
!
empty
($
data
['
address
'])}}
value=
"{{$data.address}}"
{{/
if
}}
required
/>
<span
class=
"am-input-group-btn"
>
<button
type=
"button"
class=
"am-btn am-btn-default am-radius"
id=
"map-location-submit"
><span
class=
"am-icon-map-marker"
></span>
定位
</button>
</span>
</div>
<div
id=
"map"
data-level=
"17"
class=
"am-margin-top-xs"
></div>
{{if MyC('home_user_address_map_status') eq 1}}
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"hidden"
name=
"lng"
id=
"form-lng"
{{
if
!
empty
($
data
['
lng
'])}}
value=
"{{$data.lng}}"
{{/
if
}}
/>
<input
type=
"hidden"
name=
"lat"
id=
"form-lat"
{{
if
!
empty
($
data
['
lat
'])}}
value=
"{{$data.lat}}"
{{/
if
}}
/>
<input
type=
"text"
name=
"address"
id=
"form-address"
placeholder=
"详细地址"
minlength=
"2"
maxlength=
"80"
data-validation-message=
"详细地址格式 1~80 个字符之间"
class=
"am-radius"
{{
if
!
empty
($
data
['
address
'])}}
value=
"{{$data.address}}"
{{/
if
}}
required
/>
<span
class=
"am-input-group-btn"
>
<button
type=
"button"
class=
"am-btn am-btn-default am-radius"
id=
"map-location-submit"
><span
class=
"am-icon-map-marker"
></span>
定位
</button>
</span>
</div>
<div
id=
"map"
data-level=
"17"
class=
"am-margin-top-xs"
></div>
{{else /}}
<input
type=
"text"
name=
"address"
id=
"form-address"
placeholder=
"详细地址"
minlength=
"2"
maxlength=
"80"
data-validation-message=
"详细地址格式 1~80 个字符之间"
class=
"am-radius"
{{
if
!
empty
($
data
['
address
'])}}
value=
"{{$data.address}}"
{{/
if
}}
required
/>
{{/if}}
</div>
<div
class=
"am-form-group"
>
<label>
别名
<span
class=
"am-form-group-label-tips"
>
选填
</span></label>
<input
type=
"text"
name=
"alias"
placeholder=
"别名"
minlength=
"0"
maxlength=
"16"
data-validation-message=
"别名格式最多 16 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
alias
'])}}
value=
"{{$data.alias}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label
class=
"block"
>
是否默认
</label>
<input
name=
"is_default"
value=
"1"
type=
"checkbox"
data-off-text=
"否"
data-on-text=
"是"
data-size=
"xs"
data-on-color=
"success"
data-off-color=
"default"
data-handle-width=
"49"
data-am-switch
{{
if
isset
($
data
['
is_default
'])
and
$
data
['
is_default
']
eq
1}}
checked=
"true"
{{/
if
}}
/>
</div>
<div
class=
"am-alert am-alert-secondary"
>
<div
class=
"am-form-group"
>
<label>
身份证姓名
<span
class=
"am-form-group-label-tips"
>
选填,请务必与上传的身份证件姓名保持一致
</span></label>
<input
type=
"text"
name=
"idcard_name"
placeholder=
"身份证姓名"
minlength=
"0"
maxlength=
"16"
data-validation-message=
"身份证姓名格式最多 16 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
idcard_name
'])}}
value=
"{{$data.idcard_name}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
身份证号码
<span
class=
"am-form-group-label-tips"
>
选填,请务必与上传的身份证件号码保持一致
</span></label>
<input
type=
"text"
name=
"idcard_number"
placeholder=
"身份证号码"
minlength=
"0"
maxlength=
"18"
data-validation-message=
"身份证号码格式最多 18 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
idcard_number
'])}}
value=
"{{$data.idcard_number}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group plug-file-upload-view"
>
<label>
身份证照片
<span
class=
"am-form-group-label-tips"
>
选填,请使用身份证原件拍摄,图片要清晰
</span></label>
<div
class=
"am-nbfc user-address-idcard-images"
>
<div
class=
"am-fl"
>
<ul
class=
"plug-file-upload-view images-idcard_front"
data-form-name=
"idcard_front"
data-max-number=
"1"
data-dialog-type=
"images"
>
<li>
{{if !empty($data['idcard_front_old'])}}
<input
type=
"text"
name=
"idcard_front"
value=
"{{$data.idcard_front_old}}"
/>
{{/if}}
<img
src=
"{{if empty($data['idcard_front'])}}{{$attachment_host}}/static/common/images/default-idcard-front.jpg{{else /}}{{$data.idcard_front}}{{/if}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.images-idcard_front"
>
+上传人像面图片
</div>
</div>
<div
class=
"am-fl am-margin-left-lg"
>
<ul
class=
"plug-file-upload-view images-idcard_back"
data-form-name=
"idcard_back"
data-max-number=
"1"
data-dialog-type=
"images"
>
<li>
{{if !empty($data['idcard_back_old'])}}
<input
type=
"text"
name=
"idcard_back"
value=
"{{$data.idcard_back_old}}"
/>
{{/if}}
<img
src=
"{{if empty($data['idcard_back'])}}{{$attachment_host}}/static/common/images/default-idcard-back.jpg{{else /}}{{$data.idcard_back}}{{/if}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.images-idcard_back"
>
+上传国微面图片
</div>
{{if MyC('home_user_address_idcard_status') eq 1}}
<div
class=
"am-alert am-alert-secondary"
>
<div
class=
"am-form-group"
>
<label>
身份证姓名
<span
class=
"am-form-group-label-tips"
>
选填,请务必与上传的身份证件姓名保持一致
</span></label>
<input
type=
"text"
name=
"idcard_name"
placeholder=
"身份证姓名"
minlength=
"0"
maxlength=
"16"
data-validation-message=
"身份证姓名格式最多 16 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
idcard_name
'])}}
value=
"{{$data.idcard_name}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
身份证号码
<span
class=
"am-form-group-label-tips"
>
选填,请务必与上传的身份证件号码保持一致
</span></label>
<input
type=
"text"
name=
"idcard_number"
placeholder=
"身份证号码"
minlength=
"0"
maxlength=
"18"
data-validation-message=
"身份证号码格式最多 18 个字符"
class=
"am-radius"
{{
if
!
empty
($
data
['
idcard_number
'])}}
value=
"{{$data.idcard_number}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group plug-file-upload-view"
>
<label>
身份证照片
<span
class=
"am-form-group-label-tips"
>
选填,请使用身份证原件拍摄,图片要清晰
</span></label>
<div
class=
"am-nbfc user-address-idcard-images"
>
<div
class=
"am-fl"
>
<ul
class=
"plug-file-upload-view images-idcard_front"
data-form-name=
"idcard_front"
data-max-number=
"1"
data-dialog-type=
"images"
>
<li>
{{if !empty($data['idcard_front_old'])}}
<input
type=
"text"
name=
"idcard_front"
value=
"{{$data.idcard_front_old}}"
/>
{{/if}}
<img
src=
"{{if empty($data['idcard_front'])}}{{$attachment_host}}/static/common/images/default-idcard-front.jpg{{else /}}{{$data.idcard_front}}{{/if}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.images-idcard_front"
>
+上传人像面图片
</div>
</div>
<div
class=
"am-fl am-margin-left-lg"
>
<ul
class=
"plug-file-upload-view images-idcard_back"
data-form-name=
"idcard_back"
data-max-number=
"1"
data-dialog-type=
"images"
>
<li>
{{if !empty($data['idcard_back_old'])}}
<input
type=
"text"
name=
"idcard_back"
value=
"{{$data.idcard_back_old}}"
/>
{{/if}}
<img
src=
"{{if empty($data['idcard_back'])}}{{$attachment_host}}/static/common/images/default-idcard-back.jpg{{else /}}{{$data.idcard_back}}{{/if}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.images-idcard_back"
>
+上传国微面图片
</div>
</div>
</div>
</div>
</div>
</div>
{{/if}}
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"id"
{{
if
!
empty
($
data
['
id
'])}}
value=
"{{$data.id}}"
{{/
if
}}
/>
...
...
@@ -89,8 +95,10 @@
<script
type=
"text/javascript"
>
$
(
function
()
{
// 百度地图初始化
MapInit
({{
if
!
empty
(
$data
[
'
lng
'
])}}{{
$data
[
'
lng
'
]}}{{
else
/}}116.400244{{/i
f
}},{{
if
!
empty
(
$data
[
'
lat
'
])}}{{
$data
[
'
lat
'
]}}{{
else
/}}39.92556{{/i
f
}});
{{
if
MyC
(
'
home_user_address_map_status
'
)
eq
1
}}
// 百度地图初始化
MapInit
({{
if
!
empty
(
$data
[
'
lng
'
])}}{{
$data
[
'
lng
'
]}}{{
else
/}}116.400244{{/i
f
}},{{
if
!
empty
(
$data
[
'
lat
'
])}}{{
$data
[
'
lat
'
]}}{{
else
/}}39.92556{{/i
f
}});
{{
/
if
}}
});
// 返回处理
...
...
application/service/BaseService.php
浏览文件 @
22b27f3c
...
...
@@ -51,6 +51,8 @@ class BaseService
'common_user_is_mandatory_bind_mobile'
=>
(
int
)
MyC
(
'common_user_is_mandatory_bind_mobile'
,
0
),
'common_user_is_onekey_bind_mobile'
=>
(
int
)
MyC
(
'common_user_is_onekey_bind_mobile'
,
0
),
'home_navigation_main_quick_status'
=>
(
int
)
MyC
(
'home_navigation_main_quick_status'
,
0
),
'home_user_address_map_status'
=>
(
int
)
MyC
(
'home_user_address_map_status'
,
0
),
'home_user_address_idcard_status'
=>
(
int
)
MyC
(
'home_user_address_idcard_status'
,
0
),
// 订单相关
'home_is_enable_order_bulk_pay'
=>
(
int
)
MyC
(
'home_is_enable_order_bulk_pay'
,
0
),
...
...
application/service/UserAddressService.php
浏览文件 @
22b27f3c
...
...
@@ -346,6 +346,8 @@ class UserAddressService
// 操作数据
$is_default
=
isset
(
$params
[
'is_default'
])
?
intval
(
$params
[
'is_default'
])
:
0
;
$data
=
[
'alias'
=>
empty
(
$params
[
'alias'
])
?
''
:
$params
[
'alias'
],
'address'
=>
$params
[
'address'
],
'name'
=>
$params
[
'name'
],
'tel'
=>
$params
[
'tel'
],
'province'
=>
intval
(
$params
[
'province'
]),
...
...
@@ -358,10 +360,6 @@ class UserAddressService
'idcard_back'
=>
$attachment
[
'data'
][
'idcard_back'
],
'is_default'
=>
$is_default
,
];
if
(
!
empty
(
$params
[
'alias'
]))
{
$data
[
'alias'
]
=
$params
[
'alias'
];
}
if
(
!
empty
(
$params
[
'lng'
]))
{
$data
[
'lng'
]
=
floatval
(
$params
[
'lng'
]);
...
...
changelog.txt
浏览文件 @
22b27f3c
...
...
@@ -5,6 +5,7 @@
1. 首页商品支持自定义配置
2. 首页左侧二级商品分类支持自定义配置
3. 快捷导航新增开关控制
4. 用户地址[地图/身份证]新增开关控制
web端
1. 后台管理小程序列表新增主题管理
...
...
sourcecode/alipay/default/pages/user-address-save/user-address-save.axml
浏览文件 @
22b27f3c
...
...
@@ -43,7 +43,7 @@
<input type="text" name="address" value="{{address_data.address || ''}}" maxlength="80" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view
a:if="{{home_user_address_map_status == 1}}"
class="form-gorup bg-white">
<view class="form-gorup-title">地理位置<text class="form-group-tips-must">必选</text></view>
<view onTap="choose_location_event" class="form-gorup-text">
<view a:if="{{(user_location || null) == null && (address_data.address || null) == null}}" class="cr-888">请选择地理位置</view>
...
...
@@ -59,7 +59,7 @@
</view>
<!-- 身份证信息 -->
<view class="idcard-container">
<view
a:if="{{home_user_address_idcard_status == 1}}"
class="idcard-container">
<view class="form-gorup bg-white">
<view class="form-gorup-title">身份证姓名<text class="form-group-tips">选填,请务必与上传的身份证件姓名保持一致</text></view>
<input type="text" name="idcard_name" value="{{address_data.idcard_name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证姓名格式 2~16 个字符之间" />
...
...
sourcecode/alipay/default/pages/user-address-save/user-address-save.js
浏览文件 @
22b27f3c
...
...
@@ -26,6 +26,10 @@ Page({
user_location
:
null
,
form_submit_disabled_status
:
false
,
// 基础配置
home_user_address_map_status
:
0
,
home_user_address_idcard_status
:
0
,
},
onLoad
(
params
)
{
...
...
@@ -50,6 +54,19 @@ Page({
this
.
user_location_init
();
},
// 初始化配置
init_config
(
status
)
{
if
((
status
||
false
)
==
true
)
{
this
.
setData
({
home_user_address_map_status
:
app
.
get_config
(
'
config.home_user_address_map_status
'
),
home_user_address_idcard_status
:
app
.
get_config
(
'
config.home_user_address_idcard_status
'
)
});
}
else
{
app
.
is_config
(
this
,
'
init_config
'
);
}
},
// 获取数据
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
...
...
sourcecode/alipay/default/pages/user/user.js
浏览文件 @
22b27f3c
...
...
@@ -138,7 +138,7 @@ Page({
this
.
setData
({
user_order_status_list
:
temp_user_order_status_list
,
avatar
:
((
data
.
avatar
||
null
)
!=
null
)
?
data
.
avatar
:
((
this
.
data
.
avatar
||
null
)
==
null
?
app
.
data
.
default_user_head_src
:
this
.
data
.
avatar
),
nickname
:
(
data
.
nickname
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
nickname
:
(
(
data
.
nickname
||
null
)
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
message_total
:
((
data
.
common_message_total
||
0
)
==
0
)
?
0
:
data
.
common_message_total
,
head_nav_list
:
temp_head_nav_list
,
navigation
:
data
.
navigation
||
[],
...
...
sourcecode/baidu/default/pages/user-address-save/user-address-save.js
浏览文件 @
22b27f3c
...
...
@@ -26,6 +26,10 @@ Page({
user_location
:
null
,
form_submit_disabled_status
:
false
,
// 基础配置
home_user_address_map_status
:
0
,
home_user_address_idcard_status
:
0
,
},
onLoad
(
params
)
{
...
...
@@ -50,6 +54,19 @@ Page({
this
.
user_location_init
();
},
// 初始化配置
init_config
(
status
)
{
if
((
status
||
false
)
==
true
)
{
this
.
setData
({
home_user_address_map_status
:
app
.
get_config
(
'
config.home_user_address_map_status
'
),
home_user_address_idcard_status
:
app
.
get_config
(
'
config.home_user_address_idcard_status
'
)
});
}
else
{
app
.
is_config
(
this
,
'
init_config
'
);
}
},
// 获取数据
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
...
...
sourcecode/baidu/default/pages/user-address-save/user-address-save.swan
浏览文件 @
22b27f3c
...
...
@@ -43,7 +43,7 @@
<input type="text" name="address" value="{{address_data.address || ''}}" maxlength="80" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view
s-if="home_user_address_map_status == 1"
class="form-gorup bg-white">
<view class="form-gorup-title">地理位置<text class="form-group-tips-must">必选</text></view>
<view bindtap="choose_location_event" class="form-gorup-text">
<view s-if="(user_location || null) == null && (address_data.address || null) == null" class="cr-888">请选择地理位置</view>
...
...
@@ -59,7 +59,7 @@
</view>
<!-- 身份证信息 -->
<view class="idcard-container">
<view
s-if="home_user_address_idcard_status == 1"
class="idcard-container">
<view class="form-gorup bg-white">
<view class="form-gorup-title">身份证姓名<text class="form-group-tips">选填,请务必与上传的身份证件姓名保持一致</text></view>
<input type="text" name="idcard_name" value="{{address_data.idcard_name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证姓名格式 2~16 个字符之间" />
...
...
sourcecode/baidu/default/pages/user/user.js
浏览文件 @
22b27f3c
...
...
@@ -129,7 +129,7 @@ Page({
this
.
setData
({
user_order_status_list
:
temp_user_order_status_list
,
avatar
:
(
data
.
avatar
||
null
)
!=
null
?
data
.
avatar
:
(
this
.
data
.
avatar
||
null
)
==
null
?
app
.
data
.
default_user_head_src
:
this
.
data
.
avatar
,
nickname
:
data
.
nickname
!=
null
?
data
.
nickname
:
this
.
data
.
nickname
,
nickname
:
((
data
.
nickname
||
null
)
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
message_total
:
(
data
.
common_message_total
||
0
)
==
0
?
0
:
data
.
common_message_total
,
head_nav_list
:
temp_head_nav_list
,
navigation
:
data
.
navigation
||
[],
...
...
sourcecode/qq/default/pages/user-address-save/user-address-save.js
浏览文件 @
22b27f3c
...
...
@@ -26,6 +26,10 @@ Page({
user_location
:
null
,
form_submit_disabled_status
:
false
,
// 基础配置
home_user_address_map_status
:
0
,
home_user_address_idcard_status
:
0
,
},
onLoad
(
params
)
{
...
...
@@ -50,6 +54,19 @@ Page({
this
.
user_location_init
();
},
// 初始化配置
init_config
(
status
)
{
if
((
status
||
false
)
==
true
)
{
this
.
setData
({
home_user_address_map_status
:
app
.
get_config
(
'
config.home_user_address_map_status
'
),
home_user_address_idcard_status
:
app
.
get_config
(
'
config.home_user_address_idcard_status
'
)
});
}
else
{
app
.
is_config
(
this
,
'
init_config
'
);
}
},
// 获取数据
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
...
...
sourcecode/qq/default/pages/user-address-save/user-address-save.qml
浏览文件 @
22b27f3c
...
...
@@ -43,7 +43,7 @@
<
input
type
=
"
text
"
name
=
"
address
"
value
=
"
{{address_data.address || ''}}
"
maxlength
=
"
80
"
placeholder
-
class
=
"
cr-ccc
"
class
=
"
cr-666
"
placeholder
=
"
详细地址格式 1~80 个字符之间
"
/>
<
/view
>
<
view
class
=
"
form-gorup bg-white
"
>
<
view
qq
:
if
=
"
{{home_user_address_map_status == 1}}
"
class
=
"
form-gorup bg-white
"
>
<
view
class
=
"
form-gorup-title
"
>
地理位置
<
text
class
=
"
form-group-tips-must
"
>
必选
<
/text></
view
>
<
view
bindtap
=
"
choose_location_event
"
class
=
"
form-gorup-text
"
>
<
view
qq
:
if
=
"
{{(user_location || null) == null && (address_data.address || null) == null}}
"
class
=
"
cr-888
"
>
请选择地理位置
<
/view
>
...
...
@@ -59,7 +59,7 @@
<
/view
>
<!--
身份证信息
-->
<
view
class
=
"
idcard-container
"
>
<
view
qq
:
if
=
"
{{home_user_address_idcard_status == 1}}
"
class
=
"
idcard-container
"
>
<
view
class
=
"
form-gorup bg-white
"
>
<
view
class
=
"
form-gorup-title
"
>
身份证姓名
<
text
class
=
"
form-group-tips
"
>
选填
,
请务必与上传的身份证件姓名保持一致
<
/text></
view
>
<
input
type
=
"
text
"
name
=
"
idcard_name
"
value
=
"
{{address_data.idcard_name || ''}}
"
maxlength
=
"
16
"
placeholder
-
class
=
"
cr-ccc
"
class
=
"
cr-666
"
placeholder
=
"
身份证姓名格式 2~16 个字符之间
"
/>
...
...
sourcecode/qq/default/pages/user/user.js
浏览文件 @
22b27f3c
...
...
@@ -124,7 +124,7 @@ Page({
this
.
setData
({
user_order_status_list
:
temp_user_order_status_list
,
avatar
:
((
data
.
avatar
||
null
)
!=
null
)
?
data
.
avatar
:
((
this
.
data
.
avatar
||
null
)
==
null
?
app
.
data
.
default_user_head_src
:
this
.
data
.
avatar
),
nickname
:
(
data
.
nickname
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
nickname
:
(
(
data
.
nickname
||
null
)
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
message_total
:
((
data
.
common_message_total
||
0
)
==
0
)
?
0
:
data
.
common_message_total
,
head_nav_list
:
temp_head_nav_list
,
navigation
:
data
.
navigation
||
[],
...
...
sourcecode/toutiao/default/pages/user-address-save/user-address-save.js
浏览文件 @
22b27f3c
...
...
@@ -26,6 +26,10 @@ Page({
user_location
:
null
,
form_submit_disabled_status
:
false
,
// 基础配置
home_user_address_map_status
:
0
,
home_user_address_idcard_status
:
0
,
},
onLoad
(
params
)
{
...
...
@@ -50,6 +54,19 @@ Page({
this
.
user_location_init
();
},
// 初始化配置
init_config
(
status
)
{
if
((
status
||
false
)
==
true
)
{
this
.
setData
({
home_user_address_map_status
:
app
.
get_config
(
'
config.home_user_address_map_status
'
),
home_user_address_idcard_status
:
app
.
get_config
(
'
config.home_user_address_idcard_status
'
)
});
}
else
{
app
.
is_config
(
this
,
'
init_config
'
);
}
},
// 获取数据
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
...
...
sourcecode/toutiao/default/pages/user-address-save/user-address-save.ttml
浏览文件 @
22b27f3c
...
...
@@ -43,7 +43,7 @@
<input type="text" name="address" value="{{address_data.address || ''}}" maxlength="80" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<!-- <view class="form-gorup bg-white">
<!-- <view
tt:if="{{home_user_address_map_status == 1}}"
class="form-gorup bg-white">
<view class="form-gorup-title">地理位置<text class="form-group-tips-must">必选</text></view>
<view bindtap="choose_location_event" class="form-gorup-text">
<view tt:if="{{(user_location || null) == null && (address_data.address || null) == null}}" class="cr-888">请选择地理位置</view>
...
...
@@ -59,7 +59,7 @@
</view>
<!-- 身份证信息 -->
<view class="idcard-container">
<view
tt:if="{{home_user_address_idcard_status == 1}}"
class="idcard-container">
<view class="form-gorup bg-white">
<view class="form-gorup-title">身份证姓名<text class="form-group-tips">选填,请务必与上传的身份证件姓名保持一致</text></view>
<input type="text" name="idcard_name" value="{{address_data.idcard_name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证姓名格式 2~16 个字符之间" />
...
...
sourcecode/toutiao/default/pages/user/user.js
浏览文件 @
22b27f3c
...
...
@@ -124,7 +124,7 @@ Page({
this
.
setData
({
user_order_status_list
:
temp_user_order_status_list
,
avatar
:
((
data
.
avatar
||
null
)
!=
null
)
?
data
.
avatar
:
((
this
.
data
.
avatar
||
null
)
==
null
?
app
.
data
.
default_user_head_src
:
this
.
data
.
avatar
),
nickname
:
(
data
.
nickname
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
nickname
:
(
(
data
.
nickname
||
null
)
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
message_total
:
((
data
.
common_message_total
||
0
)
==
0
)
?
0
:
data
.
common_message_total
,
head_nav_list
:
temp_head_nav_list
,
navigation
:
data
.
navigation
||
[],
...
...
sourcecode/weixin/default/pages/user-address-save/user-address-save.js
浏览文件 @
22b27f3c
...
...
@@ -26,6 +26,10 @@ Page({
user_location
:
null
,
form_submit_disabled_status
:
false
,
// 基础配置
home_user_address_map_status
:
0
,
home_user_address_idcard_status
:
0
,
},
onLoad
(
params
)
{
...
...
@@ -41,6 +45,9 @@ Page({
}
wx
.
setNavigationBarTitle
({
title
:
title
});
// 初始化配置
this
.
init_config
();
// 清除位置缓存信息
wx
.
removeStorage
({
key
:
this
.
data
.
user_location_cache_key
});
this
.
init
();
...
...
@@ -50,6 +57,19 @@ Page({
this
.
user_location_init
();
},
// 初始化配置
init_config
(
status
)
{
if
((
status
||
false
)
==
true
)
{
this
.
setData
({
home_user_address_map_status
:
app
.
get_config
(
'
config.home_user_address_map_status
'
),
home_user_address_idcard_status
:
app
.
get_config
(
'
config.home_user_address_idcard_status
'
)
});
}
else
{
app
.
is_config
(
this
,
'
init_config
'
);
}
},
// 获取数据
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
...
...
sourcecode/weixin/default/pages/user-address-save/user-address-save.wxml
浏览文件 @
22b27f3c
...
...
@@ -43,11 +43,11 @@
<input type="text" name="address" value="{{address_data.address || ''}}" maxlength="80" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view
wx:if="{{home_user_address_map_status == 1}}"
class="form-gorup bg-white">
<view class="form-gorup-title">地理位置<text class="form-group-tips-must">必选</text></view>
<view bindtap="choose_location_event" class="form-gorup-text">
<view wx:if="{{(user_location || null) == null && (address_data.address || null) == null}}" class="cr-888">请选择地理位置</view>
<view wx:else class="cr-666">{{((user_location || null) != null && (user_location.name || null) != null) ? user_location.name+' ' : ''}}{{user_location.address || address_data.address || ''}}</view>
<view wx:if="{{(user_location || null) == null && (address_data.address || null) == null}}" class="cr-888">请选择地理位置</view>
<view wx:else class="cr-666">{{((user_location || null) != null && (user_location.name || null) != null) ? user_location.name+' ' : ''}}{{user_location.address || address_data.address || ''}}</view>
</view>
</view>
...
...
@@ -59,7 +59,7 @@
</view>
<!-- 身份证信息 -->
<view class="idcard-container">
<view
wx:if="{{home_user_address_idcard_status == 1}}"
class="idcard-container">
<view class="form-gorup bg-white">
<view class="form-gorup-title">身份证姓名<text class="form-group-tips">选填,请务必与上传的身份证件姓名保持一致</text></view>
<input type="text" name="idcard_name" value="{{address_data.idcard_name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证姓名格式 2~16 个字符之间" />
...
...
sourcecode/weixin/default/pages/user/user.js
浏览文件 @
22b27f3c
...
...
@@ -124,7 +124,7 @@ Page({
this
.
setData
({
user_order_status_list
:
temp_user_order_status_list
,
avatar
:
((
data
.
avatar
||
null
)
!=
null
)
?
data
.
avatar
:
((
this
.
data
.
avatar
||
null
)
==
null
?
app
.
data
.
default_user_head_src
:
this
.
data
.
avatar
),
nickname
:
(
data
.
nickname
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
nickname
:
(
(
data
.
nickname
||
null
)
!=
null
)
?
data
.
nickname
:
this
.
data
.
nickname
,
message_total
:
((
data
.
common_message_total
||
0
)
==
0
)
?
0
:
data
.
common_message_total
,
head_nav_list
:
temp_head_nav_list
,
navigation
:
data
.
navigation
||
[],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录