Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
8c1f591c
ShopXO
项目概览
jcy2004x
/
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,发现更多精彩内容 >>
提交
8c1f591c
编写于
1月 27, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
del
上级
ee923e74
变更
48
隐藏空白更改
内联
并排
Showing
48 changed file
with
0 addition
and
3291 deletion
+0
-3291
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.acss
...mages/distribution/extraction-apply/extraction-apply.acss
+0
-24
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.axml
...mages/distribution/extraction-apply/extraction-apply.axml
+0
-59
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.js
.../images/distribution/extraction-apply/extraction-apply.js
+0
-393
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.json
...mages/distribution/extraction-apply/extraction-apply.json
+0
-8
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.acss
...mages/distribution/extraction-order/extraction-order.acss
+0
-79
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.axml
...mages/distribution/extraction-order/extraction-order.axml
+0
-75
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.js
.../images/distribution/extraction-order/extraction-order.js
+0
-274
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.json
...mages/distribution/extraction-order/extraction-order.json
+0
-11
public/appmini/old/alipay/images/distribution/extraction/extraction.acss
...old/alipay/images/distribution/extraction/extraction.acss
+0
-115
public/appmini/old/alipay/images/distribution/extraction/extraction.axml
...old/alipay/images/distribution/extraction/extraction.axml
+0
-101
public/appmini/old/alipay/images/distribution/extraction/extraction.js
...i/old/alipay/images/distribution/extraction/extraction.js
+0
-119
public/appmini/old/alipay/images/distribution/extraction/extraction.json
...old/alipay/images/distribution/extraction/extraction.json
+0
-8
public/appmini/old/alipay/images/distribution/introduce/introduce.acss
...i/old/alipay/images/distribution/introduce/introduce.acss
+0
-48
public/appmini/old/alipay/images/distribution/introduce/introduce.axml
...i/old/alipay/images/distribution/introduce/introduce.axml
+0
-47
public/appmini/old/alipay/images/distribution/introduce/introduce.js
...ini/old/alipay/images/distribution/introduce/introduce.js
+0
-78
public/appmini/old/alipay/images/distribution/introduce/introduce.json
...i/old/alipay/images/distribution/introduce/introduce.json
+0
-8
public/appmini/old/alipay/images/distribution/order-detail/order-detail.acss
...alipay/images/distribution/order-detail/order-detail.acss
+0
-33
public/appmini/old/alipay/images/distribution/order-detail/order-detail.axml
...alipay/images/distribution/order-detail/order-detail.axml
+0
-31
public/appmini/old/alipay/images/distribution/order-detail/order-detail.js
...d/alipay/images/distribution/order-detail/order-detail.js
+0
-86
public/appmini/old/alipay/images/distribution/order-detail/order-detail.json
...alipay/images/distribution/order-detail/order-detail.json
+0
-8
public/appmini/old/alipay/images/distribution/order/order.acss
...c/appmini/old/alipay/images/distribution/order/order.acss
+0
-47
public/appmini/old/alipay/images/distribution/order/order.axml
...c/appmini/old/alipay/images/distribution/order/order.axml
+0
-44
public/appmini/old/alipay/images/distribution/order/order.js
public/appmini/old/alipay/images/distribution/order/order.js
+0
-171
public/appmini/old/alipay/images/distribution/order/order.json
...c/appmini/old/alipay/images/distribution/order/order.json
+0
-8
public/appmini/old/alipay/images/distribution/poster/poster.acss
...appmini/old/alipay/images/distribution/poster/poster.acss
+0
-40
public/appmini/old/alipay/images/distribution/poster/poster.axml
...appmini/old/alipay/images/distribution/poster/poster.axml
+0
-47
public/appmini/old/alipay/images/distribution/poster/poster.js
...c/appmini/old/alipay/images/distribution/poster/poster.js
+0
-132
public/appmini/old/alipay/images/distribution/poster/poster.json
...appmini/old/alipay/images/distribution/poster/poster.json
+0
-8
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.acss
...ipay/images/distribution/profit-detail/profit-detail.acss
+0
-27
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.axml
...ipay/images/distribution/profit-detail/profit-detail.axml
+0
-24
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.js
...alipay/images/distribution/profit-detail/profit-detail.js
+0
-89
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.json
...ipay/images/distribution/profit-detail/profit-detail.json
+0
-8
public/appmini/old/alipay/images/distribution/profit/profit.acss
...appmini/old/alipay/images/distribution/profit/profit.acss
+0
-37
public/appmini/old/alipay/images/distribution/profit/profit.axml
...appmini/old/alipay/images/distribution/profit/profit.axml
+0
-50
public/appmini/old/alipay/images/distribution/profit/profit.js
...c/appmini/old/alipay/images/distribution/profit/profit.js
+0
-167
public/appmini/old/alipay/images/distribution/profit/profit.json
...appmini/old/alipay/images/distribution/profit/profit.json
+0
-8
public/appmini/old/alipay/images/distribution/statistics/statistics.acss
...old/alipay/images/distribution/statistics/statistics.acss
+0
-69
public/appmini/old/alipay/images/distribution/statistics/statistics.axml
...old/alipay/images/distribution/statistics/statistics.axml
+0
-54
public/appmini/old/alipay/images/distribution/statistics/statistics.js
...i/old/alipay/images/distribution/statistics/statistics.js
+0
-81
public/appmini/old/alipay/images/distribution/statistics/statistics.json
...old/alipay/images/distribution/statistics/statistics.json
+0
-8
public/appmini/old/alipay/images/distribution/team/team.acss
public/appmini/old/alipay/images/distribution/team/team.acss
+0
-39
public/appmini/old/alipay/images/distribution/team/team.axml
public/appmini/old/alipay/images/distribution/team/team.axml
+0
-46
public/appmini/old/alipay/images/distribution/team/team.js
public/appmini/old/alipay/images/distribution/team/team.js
+0
-147
public/appmini/old/alipay/images/distribution/team/team.json
public/appmini/old/alipay/images/distribution/team/team.json
+0
-8
public/appmini/old/alipay/images/distribution/user/user.acss
public/appmini/old/alipay/images/distribution/user/user.acss
+0
-96
public/appmini/old/alipay/images/distribution/user/user.axml
public/appmini/old/alipay/images/distribution/user/user.axml
+0
-52
public/appmini/old/alipay/images/distribution/user/user.js
public/appmini/old/alipay/images/distribution/user/user.js
+0
-171
public/appmini/old/alipay/images/distribution/user/user.json
public/appmini/old/alipay/images/distribution/user/user.json
+0
-8
未找到文件。
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 三级联动
*/
.select-address {
box-sizing: border-box;
height: 70rpx;
line-height: 70rpx;
padding: 0 10rpx;
}
.select-address .section {
width: 33.33%;
box-sizing: border-box;
}
.select-address .section:not(:first-child) {
padding: 0 5rpx;
}
/*
* 表单
*/
.submit-bottom {
background-color: #ff6a80 !important;
color: #fff !important;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<form onSubmit="form_submit" class="form-container spacing-mb oh">
<view class="form-gorup bg-white">
<view class="form-gorup-title">别名<text class="form-group-tips">选填</text></view>
<input type="text" name="alias" value="{{extraction_data.alias || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="别名格式最多 16 个字符" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title">联系人<text class="form-group-tips-must">必填</text></view>
<input type="text" name="name" value="{{extraction_data.name || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="联系人格式 2~16 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title">联系电话<text class="form-group-tips-must">必填</text></view>
<input type="text" name="tel" value="{{extraction_data.tel || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="座机 或 手机" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title">省市区<text class="form-group-tips-must">必选</text></view>
<view class="select-address oh">
<view class="section fl">
<picker name="province" onChange="select_province_event" value="{{province_value}}" range="{{province_list}}" range-key="name">
<view class="name {{(province_value == null) ? 'cr-ccc' : 'cr-666' }}">{{province_list[province_value].name || default_province}}</view>
</picker>
</view>
<view class="section fl">
<picker a:if="{{(province_id || null) != null}}" name="city" onChange="select_city_event" value="{{city_value}}" range="{{city_list}}" range-key="name">
<view class="name {{(city_value == null) ? 'cr-ccc' : 'cr-666' }}">{{city_list[city_value].name || default_city}}</view>
</picker>
<text a:else class="cr-ccc" onTap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
</view>
<view class="section fl">
<picker a:if="{{(city_id || null) != null}}" name="county" onChange="select_county_event" value="{{county_value}}" range="{{county_list}}" range-key="name">
<view class="name {{(county_value == null) ? 'cr-ccc' : 'cr-666' }}">{{county_list[county_value].name || default_county}}</view>
</picker>
<text a:else class="cr-ccc" onTap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
</view>
</view>
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title">详细地址<text class="form-group-tips-must">必填</text></view>
<input type="text" name="address" value="{{extraction_data.address || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<view 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}}" class="cr-888">请选择地理位置</view>
<view a:else class="cr-666">{{((user_location || null) != null && (user_location.name || null) != null) ? user_location.name+' ' : ''}}{{user_location.address || ''}}</view>
</view>
</view>
<view class="form-gorup">
<view a:if="{{(extraction_data || null) != null && (extraction_data.status || 0) == 1}}" class="tips spacing-mb">
注意:编辑信息将重新审核后方可生效
</view>
<button class="submit-bottom" type="default" formType="submit" hover-class="none" disabled="{{form_submit_disabled_status}}">提交</button>
</view>
</form>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
params
:
null
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
extraction_data
:
null
,
province_list
:
[],
city_list
:
[],
county_list
:
[],
province_id
:
null
,
city_id
:
null
,
county_id
:
null
,
default_province
:
"
请选择省
"
,
default_city
:
"
请选择市
"
,
default_county
:
"
请选择区/县
"
,
province_value
:
null
,
city_value
:
null
,
county_value
:
null
,
user_location_cache_key
:
'
cache_userlocation_key
'
,
user_location
:
null
,
form_submit_disabled_status
:
false
,
},
onLoad
(
params
)
{
this
.
setData
({
params
:
params
});
},
onReady
:
function
()
{
// 清除位置缓存信息
my
.
removeStorage
({
key
:
this
.
data
.
user_location_cache_key
});
this
.
init
();
},
onShow
()
{
this
.
user_location_init
();
},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
this
.
setData
({
data_list_loding_status
:
2
,
data_list_loding_msg
:
'
请先绑定手机号码
'
,
});
return
false
;
}
else
{
this
.
get_province_list
();
this
.
applyinfo_init
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
2
,
data_list_loding_msg
:
'
请先授权用户信息
'
,
});
}
},
// 自提点信息
applyinfo_init
()
{
var
self
=
this
;
my
.
request
({
url
:
app
.
get_request_url
(
"
applyinfo
"
,
"
extraction
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
||
null
;
self
.
setData
({
extraction_data
:
data
,
});
// 数据设置
if
(
data
!=
null
)
{
self
.
setData
({
province_id
:
data
.
province
||
null
,
city_id
:
data
.
city
||
null
,
county_id
:
data
.
county
||
null
,
});
// 地理位置
var
lng
=
(
data
.
lng
||
0
)
<=
0
?
null
:
data
.
lng
;
var
lat
=
(
data
.
lat
||
0
)
<=
0
?
null
:
data
.
lat
;
if
(
lng
!=
null
&&
lat
!=
null
)
{
self
.
setData
({
user_location
:
{
lng
:
lng
,
lat
:
lat
,
address
:
data
.
address
||
''
,
}});
}
}
// 获取城市、区县
self
.
get_city_list
();
self
.
get_county_list
();
// 半秒后初始化数据
setTimeout
(
function
()
{
self
.
init_region_value
();
},
500
);
}
else
{
if
(
app
.
is_login_check
(
res
.
data
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
app
.
showToast
(
"
省份信息失败
"
);
}
});
},
// 地区数据初始化
init_region_value
()
{
this
.
setData
({
province_value
:
this
.
get_region_value
(
"
province_list
"
,
"
province_id
"
),
city_value
:
this
.
get_region_value
(
"
city_list
"
,
"
city_id
"
),
county_value
:
this
.
get_region_value
(
"
county_list
"
,
"
county_id
"
),
});
},
// 地区初始化匹配索引
get_region_value
(
list
,
id
)
{
var
data
=
this
.
data
[
list
];
var
data_id
=
this
.
data
[
id
];
var
value
=
null
;
data
.
forEach
((
d
,
i
)
=>
{
if
(
d
.
id
==
data_id
)
{
value
=
i
;
return
false
;
}
});
return
value
;
},
// 获取省份
get_province_list
()
{
var
self
=
this
;
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
province_list
:
data
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
app
.
showToast
(
"
省份获取失败
"
);
}
});
},
// 获取市
get_city_list
()
{
var
self
=
this
;
console
.
log
(
self
.
data
.
province_id
)
if
(
self
.
data
.
province_id
)
{
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{
pid
:
self
.
data
.
province_id
},
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
city_list
:
data
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
app
.
showToast
(
"
城市获取失败
"
);
}
});
}
},
// 获取区/县
get_county_list
()
{
var
self
=
this
;
if
(
self
.
data
.
city_id
)
{
// 加载loding
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{
pid
:
self
.
data
.
city_id
},
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
county_list
:
data
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
app
.
showToast
(
"
区/县获取失败
"
);
}
});
}
},
// 省份事件
select_province_event
(
e
)
{
var
index
=
e
.
detail
.
value
||
0
;
if
(
index
>=
0
)
{
var
data
=
this
.
data
.
province_list
[
index
];
this
.
setData
({
province_value
:
index
,
province_id
:
data
.
id
,
city_value
:
null
,
county_value
:
null
,
city_id
:
null
,
county_id
:
null
});
this
.
get_city_list
();
}
},
// 市事件
select_city_event
(
e
)
{
var
index
=
e
.
detail
.
value
||
0
;
if
(
index
>=
0
)
{
var
data
=
this
.
data
.
city_list
[
index
];
this
.
setData
({
city_value
:
index
,
city_id
:
data
.
id
,
county_value
:
null
,
county_id
:
null
});
this
.
get_county_list
();
}
},
// 区/县事件
select_county_event
(
e
)
{
var
index
=
e
.
detail
.
value
||
0
;
if
(
index
>=
0
)
{
var
data
=
this
.
data
.
county_list
[
index
];
this
.
setData
({
county_value
:
index
,
county_id
:
data
.
id
});
}
},
// 省市区未按照顺序选择提示
region_select_error_event
(
e
)
{
var
value
=
e
.
currentTarget
.
dataset
.
value
||
null
;
if
(
value
!=
null
)
{
app
.
showToast
(
value
);
}
},
// 选择地理位置
choose_location_event
(
e
)
{
my
.
navigateTo
({
url
:
'
/pages/common/open-setting-location/open-setting-location
'
});
},
// 地址信息初始化
user_location_init
()
{
var
result
=
my
.
getStorageSync
(
this
.
data
.
user_location_cache_key
)
||
null
;
var
data
=
null
;
if
(
result
!=
null
)
{
data
=
{
name
:
result
.
name
||
null
,
address
:
result
.
address
||
null
,
lat
:
result
.
latitude
||
null
,
lng
:
result
.
longitude
||
null
}
}
this
.
setData
({
user_location
:
data
});
},
// 数据提交
form_submit
(
e
)
{
var
self
=
this
;
// 表单数据
var
form_data
=
e
.
detail
.
value
;
// 数据校验
var
validation
=
[
{
fields
:
"
name
"
,
msg
:
"
请填写联系人
"
},
{
fields
:
"
tel
"
,
msg
:
"
请填写联系电话
"
},
{
fields
:
"
province
"
,
msg
:
"
请选择省份
"
},
{
fields
:
"
city
"
,
msg
:
"
请选择城市
"
},
{
fields
:
"
county
"
,
msg
:
"
请选择区县
"
},
{
fields
:
"
address
"
,
msg
:
"
请填写详细地址
"
},
{
fields
:
"
lng
"
,
msg
:
"
请选择地理位置
"
},
{
fields
:
"
lat
"
,
msg
:
"
请选择地理位置
"
}
];
form_data
[
"
province
"
]
=
self
.
data
.
province_id
;
form_data
[
"
city
"
]
=
self
.
data
.
city_id
;
form_data
[
"
county
"
]
=
self
.
data
.
county_id
;
// 地理位置
if
((
self
.
data
.
user_location
||
null
)
!=
null
)
{
form_data
[
"
lng
"
]
=
self
.
data
.
user_location
.
lng
||
0
;
form_data
[
"
lat
"
]
=
self
.
data
.
user_location
.
lat
||
0
;
}
// 验证提交表单
if
(
app
.
fields_check
(
form_data
,
validation
))
{
if
((
self
.
data
.
extraction_data
||
null
)
!=
null
&&
(
self
.
data
.
extraction_data
.
status
||
0
)
==
1
)
{
my
.
showModal
({
title
:
'
温馨提示
'
,
content
:
'
数据需重新审核后方可生效
'
,
confirmButtonText
:
'
确认
'
,
cancelButtonText
:
'
暂不
'
,
success
:
(
result
)
=>
{
if
(
result
.
confirm
)
{
self
.
request_data_save
(
form_data
);
}
},
});
}
else
{
self
.
request_data_save
(
form_data
);
}
}
},
// 数据保存
request_data_save
(
data
)
{
var
self
=
this
;
self
.
setData
({
form_submit_disabled_status
:
true
});
my
.
showLoading
({
title
:
"
处理中...
"
});
my
.
request
({
url
:
app
.
get_request_url
(
"
applysave
"
,
"
extraction
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
data
,
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
app
.
showToast
(
res
.
data
.
msg
,
"
success
"
);
setTimeout
(
function
()
{
my
.
navigateBack
();
},
1000
);
}
else
{
self
.
setData
({
form_submit_disabled_status
:
false
});
if
(
app
.
is_login_check
(
res
.
data
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
else
{
app
.
showToast
(
'
提交失败,请重试!
'
);
}
}
},
fail
:
()
=>
{
self
.
setData
({
form_submit_disabled_status
:
false
});
my
.
hideLoading
();
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
});
public/appmini/old/alipay/images/distribution/extraction-apply/extraction-apply.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"取货点信息"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 导航
*/
.nav {
background: #eee;
height: 80rpx;
line-height: 80rpx;
}
.nav .item {
width: 33.33%;
}
.nav .active {
color: #ff6a80;
}
/*
* 列表
*/
.scroll-box {
height: calc(100vh - 80rpx);
}
.data-list .item .base {
padding: 15rpx 10rpx;
}
.data-list .item .base .avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
.data-list .item .base .nickname {
margin-top: 10rpx;
}
.data-list .item .content {
padding: 20rpx 10rpx;
}
.data-list .item .content .multi-text {
line-height: 50rpx;
}
.data-list .item .content .multi-text .title {
margin-right: 30rpx;
}
.data-list .item .content .multi-text .value {
font-weight: 500;
}
.data-list .item .content .multi-text .unit {
margin-left: 10rpx;
}
.data-list .item .operation {
padding: 20rpx 10rpx;
}
.data-list .item .submit-order {
border: 1px solid #e5e5e5;
color: #888 !important;
}
.data-list .item .operation button:not(:first-child) {
margin-left: 30rpx;
}
/*
* 表单
*/
.submit-bottom {
background-color: #ff6a80 !important;
color: #fff !important;
}
/*
* 搜索
*/
.search-drag {
width: 30px;
height: 30px;
padding: 10px;
background: hsla(0, 0%, 0%, 0.1);
border-radius: 50%;
margin-top: calc(100vh - 160px);
margin-left: calc(50% - 25px);
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<!-- 导航 -->
<view class="nav">
<block a:for="{{nav_status_list}}" a:key="key">
<view class="item fl tc cr-888 {{nav_status_index == index ? 'active' : ''}}" data-index="{{index}}" onTap="nav_event">{{item.name}}</view>
</block>
</view>
<movable-area class="wh-auto ht-auto">
<!-- 列表 -->
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view class="data-list">
<view class="item bg-white spacing-mb" a:if="{{data_list.length > 0}}" a:for="{{data_list}}" a:key="key">
<view class="base oh br-b">
<text class="fl cr-666">{{item.add_time}}</text>
<text class="fr nickname cr-888">{{item.status_name}}</text>
</view>
<view class="content">
<view class="multi-text">
<text class="title cr-666">订单号</text>
<text class="value">{{item.order_no}}</text>
</view>
<view class="multi-text">
<text class="title cr-666">支付金额</text>
<text class="value">{{item.pay_price}}</text>
<text class="unit cr-888">元</text>
</view>
</view>
<view a:if="{{item.status == 0}}" class="operation tr br-t-dashed">
<button class="cr-888 br" type="default" size="mini" hover-class="none" class="br" data-index="{{index}}" data-oid="{{item.order_id}}" data-uid="{{item.order_user_id}}" onTap="list_submit_take_event">取货</button>
</view>
</view>
<view a:if="{{data_list.length == 0}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status}}">
</template>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
</scroll-view>
<!-- 拖拽按钮 -->
<movable-view class="search-drag tc" direction="all" onTap="drag_event">
<icon type="search" size="30"/>
</movable-view>
</movable-area>
<!-- 取货 popup -->
<component-popup prop-show="{{is_show_take_popup}}" prop-position="bottom" bindonclose="take_popup_event_close">
<view class="form-container spacing-mt">
<view class="form-gorup tc">
<view class="form-gorup-title">取货码</view>
<input type="number" value="{{extraction_code}}" placeholder-class="cr-ccc" class="cr-666 br-b spacing-mt" placeholder="请输入取货码" maxlength="4" onInput="extraction_code_input_event" />
</view>
<view class="form-gorup">
<button class="submit-bottom" type="default" hover-class="none" disabled="{{form_submit_disabled_status}}" onTap="form_submit_take_event">确认</button>
</view>
</view>
</component-popup>
<!-- 搜索 popup -->
<component-popup prop-show="{{is_show_search_popup}}" prop-position="bottom" bindonclose="search_popup_event_close">
<view class="form-container spacing-mt">
<view class="form-gorup tc">
<view class="form-gorup-title">搜索条件</view>
<input type="number" value="{{search_keywords_value}}" placeholder-class="cr-ccc" class="cr-666 br-b spacing-mt" placeholder="订单号/取货码" onInput="search_input_keywords_event" />
</view>
<view class="form-gorup">
<button class="submit-bottom" type="default" hover-class="none" disabled="{{form_submit_disabled_status}}" onTap="search_submit_event">搜索</button>
</view>
</view>
</component-popup>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list
:
[],
data_page_total
:
0
,
data_page
:
1
,
data_list_loding_status
:
1
,
data_bottom_line_status
:
false
,
params
:
null
,
nav_status_list
:
[
{
name
:
"
全部
"
,
value
:
"
-1
"
},
{
name
:
"
待处理
"
,
value
:
"
0
"
},
{
name
:
"
已处理
"
,
value
:
"
1
"
}
],
nav_status_index
:
0
,
is_show_take_popup
:
false
,
extraction_value
:
null
,
extraction_code
:
''
,
form_submit_disabled_status
:
false
,
is_show_search_popup
:
false
,
search_keywords_value
:
''
,
},
onLoad
(
params
)
{
// 是否指定状态
var
nav_status_index
=
0
;
if
(
params
.
status
!=
undefined
)
{
for
(
var
i
in
this
.
data
.
nav_status_list
)
{
if
(
this
.
data
.
nav_status_list
[
i
][
'
value
'
]
==
params
.
status
)
{
nav_status_index
=
i
;
break
;
}
}
}
this
.
setData
({
params
:
params
,
nav_status_index
:
nav_status_index
,
});
this
.
init
();
},
onShow
()
{
},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
'
init
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
return
false
;
}
else
{
// 获取数据
this
.
get_data_list
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
},
// 获取数据
get_data_list
(
is_mandatory
)
{
// 分页是否还有数据
if
((
is_mandatory
||
0
)
==
0
)
{
if
(
this
.
data
.
data_bottom_line_status
==
true
)
{
return
false
;
}
}
// 加载loding
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
// 参数
var
status
=
((
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
]
||
null
)
==
null
)
?
-
1
:
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
][
'
value
'
];
// 获取数据
my
.
request
({
url
:
app
.
get_request_url
(
"
order
"
,
"
extraction
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
,
status
:
status
||
0
,
keywords
:
this
.
data
.
search_keywords_value
||
''
,
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
data
.
data
.
length
>
0
)
{
if
(
this
.
data
.
data_page
<=
1
)
{
var
temp_data_list
=
res
.
data
.
data
.
data
;
}
else
{
var
temp_data_list
=
this
.
data
.
data_list
;
var
temp_data
=
res
.
data
.
data
.
data
;
for
(
var
i
in
temp_data
)
{
temp_data_list
.
push
(
temp_data
[
i
]);
}
}
this
.
setData
({
data_list
:
temp_data_list
,
data_total
:
res
.
data
.
data
.
total
,
data_page_total
:
res
.
data
.
data
.
page_total
,
data_list_loding_status
:
3
,
data_page
:
this
.
data
.
data_page
+
1
,
});
// 是否还有数据
if
(
this
.
data
.
data_page
>
1
&&
this
.
data
.
data_page
>
this
.
data
.
data_page_total
)
{
this
.
setData
({
data_bottom_line_status
:
true
});
}
else
{
this
.
setData
({
data_bottom_line_status
:
false
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_list
:
[],
data_bottom_line_status
:
false
,
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
});
if
(
app
.
is_login_check
(
res
.
data
,
this
,
'
get_data_list
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
this
.
setData
({
data_list_loding_status
:
2
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
setData
({
data_page
:
1
});
this
.
get_data_list
(
1
);
},
// 滚动加载
scroll_lower
(
e
)
{
this
.
get_data_list
();
},
// 导航事件
nav_event
(
e
)
{
this
.
setData
({
nav_status_index
:
e
.
currentTarget
.
dataset
.
index
||
0
,
data_page
:
1
,
});
this
.
get_data_list
(
1
);
},
// 取件码弹层-开启
list_submit_take_event
(
e
)
{
this
.
setData
({
is_show_take_popup
:
true
,
extraction_code
:
''
,
extraction_value
:
{
index
:
e
.
currentTarget
.
dataset
.
index
,
oid
:
e
.
currentTarget
.
dataset
.
oid
,
uid
:
e
.
currentTarget
.
dataset
.
uid
},
});
},
// 取件码弹层-关闭
take_popup_event_close
()
{
this
.
setData
({
is_show_take_popup
:
false
});
},
// 取件码输入事件
extraction_code_input_event
(
e
)
{
this
.
setData
({
extraction_code
:
e
.
detail
.
value
||
''
});
},
// 取件提交
form_submit_take_event
(
e
)
{
var
self
=
this
;
// 参数
if
((
self
.
data
.
extraction_code
||
null
)
==
null
)
{
app
.
showToast
(
'
请输入取件码
'
);
return
false
;
}
if
((
self
.
data
.
extraction_value
||
null
)
==
null
)
{
app
.
showToast
(
'
操作数据有误
'
);
return
false
;
}
// 提交表单
var
data
=
{
id
:
self
.
data
.
extraction_value
.
oid
,
user_id
:
self
.
data
.
extraction_value
.
uid
,
extraction_code
:
self
.
data
.
extraction_code
,
};
self
.
setData
({
form_submit_disabled_status
:
true
});
my
.
showLoading
({
title
:
"
处理中...
"
});
my
.
request
({
url
:
app
.
get_request_url
(
"
take
"
,
"
extraction
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
data
,
dataType
:
"
json
"
,
success
:
res
=>
{
self
.
setData
({
form_submit_disabled_status
:
false
});
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
var
temp_data_list
=
this
.
data
.
data_list
;
var
index
=
self
.
data
.
extraction_value
.
index
;
temp_data_list
[
index
][
'
status
'
]
=
1
;
temp_data_list
[
index
][
'
status_name
'
]
=
'
已处理
'
;
self
.
setData
({
is_show_take_popup
:
false
,
data_list
:
temp_data_list
,
});
app
.
showToast
(
res
.
data
.
msg
,
"
success
"
);
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
self
.
setData
({
form_submit_disabled_status
:
false
});
my
.
hideLoading
();
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 搜索弹层-开启
drag_event
(
e
)
{
this
.
setData
({
is_show_search_popup
:
true
});
},
// 搜索弹层-关闭
search_popup_event_close
()
{
this
.
setData
({
is_show_search_popup
:
false
});
},
// 搜索关键字输入事件
search_input_keywords_event
(
e
)
{
this
.
setData
({
search_keywords_value
:
e
.
detail
.
value
||
''
});
},
// 搜索确认事件
search_submit_event
(
e
)
{
this
.
setData
({
is_show_search_popup
:
false
,
data_page
:
1
,
});
this
.
get_data_list
(
1
);
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction-order/extraction-order.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"取货订单"
,
"usingComponents"
:
{
"component-popup"
:
"/components/popup/popup"
}
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction/extraction.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 公共
*/
.operation {
margin-top: 30rpx;
}
.title-msg {
font-size: 46rpx;
margin-top: 5%;
}
.mini-msg {
color: #0e90d2;
}
.to-submit {
margin-top: 15rpx;
}
.waiting-audit, .refuse {
padding: 10% 10rpx 60rpx 10rpx;
}
/*
* 未申请
*/
.apply-not {
padding: 10rpx 10rpx 60rpx 10rpx;
}
.apply-not .apply-desc {
margin: 30rpx 30rpx 0 30rpx;
}
.apply-not .to-submit {
margin-top: 10%;
}
/*
* 待审核
*/
.waiting-audit .title-msg {
color: #f37b1d;
}
/*
* 已审核
*/
.valid .base {
padding: 20rpx 10rpx;
}
.valid .base-title {
font-weight: 500;
}
.valid .alias {
border: 1px solid #ff6a80;
color: #ff6a80;
padding: 2rpx 10rpx;
border-radius: 6rpx;
margin-right: 10rpx;
}
.valid .edit-submit {
color: #0e90d2;
}
.valid .content {
line-height: 46rpx;
}
.valid .content, .valid .statistics .item {
padding: 30rpx 10rpx;
}
.valid .extraction-notice {
padding: 0 20rpx;
}
.valid .statistics .item {
width: calc(50% - 1px);
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.valid .statistics .item .value {
font-weight: bold;
font-size: 36rpx;
margin-top: 10rpx;
}
.valid .statistics .item .order-wait-value {
color: #f00;
}
.valid .statistics .item .order-already-value {
color: #2ba245;
}
.valid .relieve {
padding: 0 10rpx;
}
/*
* 拒绝
*/
.refuse .title-msg {
color: #dd514c;
}
.refuse .fail-tips {
padding-left: 10rpx;
background: #ffffeb;
margin-top: 10rpx;
}
.refuse .mini-msg {
margin-top: 50rpx;
}
/*
* 介绍
*/
.apply-desc {
background: #def2fd;
border: 1px solid #cfeeff;
color: #1490d2;
padding: 10rpx;
font-size: 26rpx;
border-radius: 2px;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction/extraction.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<view a:if="{{data_list_loding_status == 0}}">
<!-- 未申请 -->
<view a:if="{{extraction == null}}" class="apply-not bg-white">
<view a:if="{{(data_base || null) != null && (data_base.self_extraction_apply_desc || null) != null && data_base.self_extraction_apply_desc.length > 0}}" class="apply-desc">
<view a:for="{{data_base.self_extraction_apply_desc}}" a:key="key" class="item">
{{item}}
</view>
</view>
<view class="to-submit tc">
<navigator url="/pages/plugins/distribution/extraction-apply/extraction-apply" hover-class="none">
<button type="primary" size="mini" hover-class="none">立即申请</button>
</navigator>
</view>
</view>
<!-- 已存在申请信息 -->
<view a:else class="apply-already">
<!-- status 状态(0待审核, 1已通过, 2已拒绝 -->
<!-- 审核中 -->
<view a:if="{{extraction.status == 0}}" class="waiting-audit bg-white">
<view class="title-msg tc">申请信息正在审核中...</view>
<view class="operation oh tc">
<view class="cr-666 mini-msg">你可以</view>
<view class="to-submit tc">
<navigator url="/pages/plugins/distribution/extraction-apply/extraction-apply" hover-class="none">
<button type="primary" size="mini" hover-class="none">编辑信息</button>
</navigator>
</view>
</view>
</view>
<!-- 审核通过 -->
<view a:elif="{{extraction.status == 1 || extraction.status == 3}}" class="valid">
<view class="base br-b oh bg-white">
<view class="base-title fl">取货点信息</view>
<view class="fr edit-submit">
<navigator url="/pages/plugins/distribution/extraction-apply/extraction-apply" hover-class="none">编辑信息</navigator>
</view>
</view>
<view class="content bg-white" onTap="address_map_event">
<text a:if="{{(extraction.alias || null) != null}}" class="alias">{{extraction.alias}}</text>
<text class="cr-666">{{extraction.province_name}}{{extraction.city_name}}{{extraction.county_name}}{{extraction.address}}</text>
</view>
<view a:if="{{extraction.status == 1}}" >
<view class="base br-b oh bg-white spacing-mt">
<view class="base-title fl">取货订单统计</view>
<view class="fr edit-submit">
<navigator url="/pages/plugins/distribution/extraction-order/extraction-order" hover-class="none">查看取货订单</navigator>
</view>
</view>
<view class="content bg-white statistics oh">
<view class="item fl tc" data-value="0" onTap="order_event">
<view class="title cr-666">待处理</view>
<view class="value single-text order-wait-value">{{statistical.order_wait || 0}}</view>
</view>
<view class="item fl tc br-l" data-value="1" onTap="order_event">
<view class="title cr-666">已处理</view>
<view class="value single-text order-already-value">{{statistical.order_already || 0}}</view>
</view>
</view>
</view>
<view a:else class="spacing-mt relieve">
<view class="tips">
当前状态也解约,可重新编辑数据提交审核。
</view>
</view>
<view a:if="{{extraction.status == 1 && (data_base || null) != null && (data_base.self_extraction_common_notice || null) != null && data_base.self_extraction_common_notice.length > 0}}" class="extraction-notice spacing-mt">
<view class="tips">
<view a:for="{{data_base.self_extraction_common_notice}}" a:key="key" class="item">
{{item}}
</view>
</view>
</view>
</view>
<!-- 审核失败 -->
<view a:else="{{extraction.status == 2}}" class="refuse bg-white">
<view class="title-msg tc">申请信息审核失败</view>
<view a:if="{{(extraction.fail_reason || null) != null}}" class="fail-tips tips">原因:{{extraction.fail_reason}}</view>
<view class="operation oh tc">
<view class="cr-666 mini-msg">你可以重新编辑信息提交</view>
<view class="to-submit tc">
<navigator url="/pages/plugins/distribution/extraction-apply/extraction-apply" hover-class="none">
<button type="primary" size="mini" hover-class="none">编辑信息</button>
</navigator>
</view>
</view>
</view>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
<view a:else>
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
</view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction/extraction.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_bottom_line_status
:
false
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
data_base
:
null
,
extraction
:
null
,
statistical
:
null
,
},
onLoad
(
params
)
{},
onShow
()
{
this
.
init
();
},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
'
init
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
return
false
;
}
else
{
// 获取数据
this
.
get_data
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
},
// 获取数据
get_data
()
{
var
self
=
this
;
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
extraction
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
data_base
:
data
.
base
||
null
,
extraction
:
data
.
extraction
||
null
,
statistical
:
data
.
statistical
||
null
,
data_list_loding_msg
:
''
,
data_list_loding_status
:
0
,
data_bottom_line_status
:
true
,
});
}
else
{
self
.
setData
({
data_bottom_line_status
:
false
,
data_list_loding_status
:
2
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
get_data
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_bottom_line_status
:
false
,
data_list_loding_status
:
2
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
get_data
();
},
// 地图查看
address_map_event
(
e
)
{
if
((
this
.
data
.
extraction
||
null
)
==
null
)
{
return
false
;
}
var
ads
=
this
.
data
.
extraction
;
var
lng
=
parseFloat
(
ads
.
lng
||
0
);
var
lat
=
parseFloat
(
ads
.
lat
||
0
);
if
(
lng
<=
0
||
lat
<=
0
)
{
return
false
;
}
my
.
openLocation
({
latitude
:
lat
,
longitude
:
lng
,
scale
:
18
,
name
:
ads
.
alias
||
''
,
address
:
(
ads
.
province_name
||
''
)
+
(
ads
.
city_name
||
''
)
+
(
ads
.
county_name
||
''
)
+
(
ads
.
address
||
''
),
});
},
// 进入取货订单管理
order_event
(
e
)
{
var
value
=
e
.
currentTarget
.
dataset
.
value
||
0
;
my
.
navigateTo
({
url
:
'
/pages/plugins/distribution/extraction-order/extraction-order?status=
'
+
value
,
});
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/extraction/extraction.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"取货点"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/introduce/introduce.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 等级信息
*/
.panel-item .panel-title {
background: #fff;
font-weight: bold;
padding: 15rpx;
border-bottom: 2px solid #eee;
font-size: 34rpx;
}
.panel-item .panel-content .item {
padding: 20rpx 0;
}
.panel-item .panel-content .item:last-child {
border: 0;
}
.panel-item .panel-content .item .title {
width: 25%;
padding-left: 20rpx;
}
.panel-item .panel-content .item .content {
width: calc(75% - 50rpx);
padding-left: 20rpx;
min-height: 46rpx;
}
.panel-item .panel-content .item view {
line-height: 46rpx;
}
.panel-item .panel-content .item .images image {
width: 60rpx;
height: 60rpx;
}
/*
* 等级介绍
*/
.user-center-level-desc {
padding: 0 10rpx;
}
.user-center-level-desc .tips-desc {
background: #def2fd;
border: 1px solid #cfeeff;
color: #1490d2;
padding: 10rpx;
font-size: 26rpx;
border-radius: 2px;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/introduce/introduce.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<view a:if="{{data_base != null}}">
<!-- 等级信息 -->
<view a:if="{{level_list.length > 0}}" class="panel-item">
<view a:for="{{level_list}}" a:key="item" class="bg-white spacing-mb">
<view class="panel-title">{{item.name}}</view>
<view class="panel-content">
<view class="item br-b oh">
<view class="title fl">等级证书</view>
<view class="content cr-888 fl br-l images">
<image src="{{item.images_url}}" class="avatar dis-block fl" mode="widthFix" />
</view>
</view>
<view class="item br-b oh">
<view class="title fl">返佣比例</view>
<view class="content cr-888 fl br-l">
<view>一级 {{item.level_rate_one}}%</view>
<view>二级 {{item.level_rate_two}}%</view>
<view>三级 {{item.level_rate_three}}%</view>
</view>
</view>
<view class="item br-b oh">
<view class="title fl">消费金额</view>
<view class="content cr-888 fl br-l">{{item.rules_msg}}</view>
</view>
</view>
</view>
</view>
<!-- 等级介绍 -->
<view a:if="{{(data_base.user_center_level_desc || null) != null && data_base.user_center_level_desc.length > 0}}" class="spacing-mt user-center-level-desc">
<view class="tips-desc">
<view a:for="{{data_base.user_center_level_desc}}" a:key="key" class="item">
{{item}}
</view>
</view>
</view>
<view a:if="{{((data_base.user_center_level_desc || null) != null && data_base.user_center_level_desc.length > 0) || level_list.length > 0}}">
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
</view>
<view a:if="{{level_list.length <= 0 && ((data_base.user_center_level_desc || null) == null || data_base.user_center_level_desc.length <= 0)}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
</view>
public/appmini/old/alipay/images/distribution/introduce/introduce.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
params
:
null
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
data_bottom_line_status
:
false
,
data_base
:
null
,
level_list
:
[],
},
onLoad
(
params
)
{
this
.
setData
({
params
:
params
});
this
.
init
();
},
onShow
()
{
},
init
()
{
var
self
=
this
;
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
introduce
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
id
:
this
.
data
.
params
.
id
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
var
data_base
=
data
.
base
||
null
;
var
level_list
=
((
data
.
level_list
||
null
)
!=
null
&&
data
.
level_list
.
length
>
0
)
?
data
.
level_list
:
[];
self
.
setData
({
data_base
:
data_base
,
level_list
:
level_list
,
data_list_loding_status
:
(
data_base
==
null
||
level_list
.
length
<=
0
)
?
0
:
3
,
data_bottom_line_status
:
true
,
data_list_loding_msg
:
''
,
});
}
else
{
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
init
();
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/introduce/introduce.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"等级介绍"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order-detail/order-detail.acss
已删除
100644 → 0
浏览文件 @
ee923e74
.panel-item .panel-title {
background: #fff;
font-weight: bold;
padding: 15rpx;
border-bottom: 2px solid #eee;
font-size: 34rpx;
}
.panel-item .panel-content .item {
padding: 20rpx 0;
}
.panel-item .panel-content .item:last-child {
border: 0;
}
.panel-item .panel-content .item .title {
width: 25%;
padding-left: 20rpx;
}
.panel-item .panel-content .item .content {
width: calc(75% - 50rpx);
padding-left: 20rpx;
min-height: 46rpx;
word-wrap: break-word;
word-break: normal;
}
.panel-item .panel-content .item view {
line-height: 46rpx;
}
.panel-item .panel-content .item .content .avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order-detail/order-detail.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<view a:if="{{detail != null}}">
<view a:if="{{detail_list.length > 0}}" class="panel-item">
<view class="panel-content bg-white">
<view class="item br-b oh">
<view class="title fl">用户头像</view>
<view class="content cr-888 fl br-l">
<image src="{{detail.avatar}}" class="avatar dis-block fl" mode="widthFix" onTap="avatar_event" data-value="{{detail.avatar}}" />
</view>
</view>
<view a:for="{{detail_list}}" a:key="item" class="item br-b oh">
<view class="title fl">{{item.name}}</view>
<view class="content cr-888 fl br-l">{{item.value}}</view>
</view>
</view>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
<view a:if="{{detail == null}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
<view class="nav-back tc wh-auto">
<navigator url="/pages/plugins/distribution/order/order" open-type="navigateBack" hover-class="none">
<button type="default" size="mini" class="cr-888 br" hover-class="none">返回</button>
</navigator>
</view>
</view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order-detail/order-detail.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
params
:
null
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
data_bottom_line_status
:
false
,
detail
:
null
,
detail_list
:
[],
},
onLoad
(
params
)
{
//params['id'] = 1;
this
.
setData
({
params
:
params
});
this
.
init
();
},
onShow
()
{},
init
()
{
var
self
=
this
;
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
my
.
request
({
url
:
app
.
get_request_url
(
"
detail
"
,
"
order
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
id
:
this
.
data
.
params
.
id
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
detail
:
data
.
data
,
detail_list
:
[
{
name
:
"
用户昵称
"
,
value
:
data
.
data
.
user_name_view
||
''
},
{
name
:
"
订单金额
"
,
value
:
data
.
data
.
total_price
+
'
元
'
||
''
},
{
name
:
"
退款金额
"
,
value
:
data
.
data
.
refund_price
+
'
元
'
||
''
},
{
name
:
"
订单状态
"
,
value
:
data
.
data
.
order_status_name
||
''
},
{
name
:
"
支付状态
"
,
value
:
data
.
data
.
order_pay_status_name
||
''
},
{
name
:
"
来源终端
"
,
value
:
data
.
data
.
order_client_type_name
||
''
},
{
name
:
"
下单时间
"
,
value
:
data
.
data
.
add_time_time
||
''
},
],
data_list_loding_status
:
3
,
data_bottom_line_status
:
true
,
data_list_loding_msg
:
''
,
});
}
else
{
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
init
();
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order-detail/order-detail.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"订单详情"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order/order.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 导航
*/
.nav {
background: #eee;
height: 80rpx;
line-height: 80rpx;
}
.nav .item {
width: 16.66%;
}
.nav .active {
color: #ff6a80;
}
/*
* 列表
*/
.scroll-box {
height: calc(100vh - 80rpx);
}
.data-list .item .base {
padding: 15rpx 10rpx;
}
.data-list .item .base .avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
.data-list .item .base .nickname {
margin-top: 10rpx;
}
.data-list .item .content {
padding: 20rpx 10rpx;
}
.data-list .item .content .multi-text {
line-height: 50rpx;
}
.data-list .item .content .multi-text .title {
margin-right: 30rpx;
}
.data-list .item .content .multi-text .value {
font-weight: 500;
}
.data-list .item .content .multi-text .unit {
margin-left: 10rpx;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order/order.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<!-- 导航 -->
<view class="nav">
<block a:for="{{nav_status_list}}" a:key="key">
<view class="item fl tc cr-888 {{nav_status_index == index ? 'active' : ''}}" data-index="{{index}}" onTap="nav_event">{{item.name}}</view>
</block>
</view>
<!-- 列表 -->
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view class="data-list">
<view class="item bg-white spacing-mb" a:if="{{data_list.length > 0}}" a:for="{{data_list}}" a:key="key">
<view class="base oh br-b">
<image src="{{item.avatar}}" class="avatar dis-block fl" mode="widthFix" onTap="avatar_event" data-value="{{item.avatar}}" />
<text class="fr nickname cr-888">{{item.user_name_view || ''}}</text>
</view>
<navigator url="/pages/plugins/distribution/order-detail/order-detail?id={{item.id}}" hover-class="none">
<view class="content">
<view class="multi-text">
<text class="title cr-666">订单金额</text>
<text class="value">{{item.total_price}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">订单状态</text>
<text class="value">{{item.order_status_name}}</text>
</view>
<view class="multi-text">
<text class="title cr-666">来源终端</text>
<text class="value">{{item.order_client_type_name}}</text>
</view>
</view>
</navigator>
</view>
<view a:if="{{data_list.length == 0}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status}}">
</template>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
</scroll-view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order/order.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list
:
[],
data_page_total
:
0
,
data_page
:
1
,
data_list_loding_status
:
1
,
data_bottom_line_status
:
false
,
params
:
null
,
nav_status_list
:
[
{
name
:
"
全部
"
,
value
:
"
-1
"
},
{
name
:
"
待支付
"
,
value
:
"
1
"
},
{
name
:
"
已支付
"
,
value
:
"
2
"
},
{
name
:
"
待收货
"
,
value
:
"
3
"
},
{
name
:
"
已完成
"
,
value
:
"
4
"
},
{
name
:
"
已失效
"
,
value
:
"
5,6
"
},
],
nav_status_index
:
0
,
},
onLoad
(
params
)
{
// 是否指定状态
var
nav_status_index
=
0
;
if
((
params
.
status
||
null
)
!=
null
)
{
for
(
var
i
in
this
.
data
.
nav_status_list
)
{
if
(
this
.
data
.
nav_status_list
[
i
][
'
value
'
]
==
params
.
status
)
{
nav_status_index
=
i
;
break
;
}
}
}
this
.
setData
({
params
:
params
,
nav_status_index
:
nav_status_index
,
});
this
.
init
();
},
onShow
()
{},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
'
init
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
return
false
;
}
else
{
// 获取数据
this
.
get_data_list
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
},
// 获取数据
get_data_list
(
is_mandatory
)
{
// 分页是否还有数据
if
((
is_mandatory
||
0
)
==
0
)
{
if
(
this
.
data
.
data_bottom_line_status
==
true
)
{
return
false
;
}
}
// 加载loding
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
// 参数
var
order_status
=
((
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
]
||
null
)
==
null
)
?
-
1
:
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
][
'
value
'
];
// 获取数据
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
order
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
,
status
:
order_status
,
uid
:
this
.
data
.
params
.
uid
||
0
,
is_more
:
1
,
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
data
.
data
.
length
>
0
)
{
if
(
this
.
data
.
data_page
<=
1
)
{
var
temp_data_list
=
res
.
data
.
data
.
data
;
}
else
{
var
temp_data_list
=
this
.
data
.
data_list
;
var
temp_data
=
res
.
data
.
data
.
data
;
for
(
var
i
in
temp_data
)
{
temp_data_list
.
push
(
temp_data
[
i
]);
}
}
this
.
setData
({
data_list
:
temp_data_list
,
data_total
:
res
.
data
.
data
.
total
,
data_page_total
:
res
.
data
.
data
.
page_total
,
data_list_loding_status
:
3
,
data_page
:
this
.
data
.
data_page
+
1
,
payment_list
:
res
.
data
.
data
.
payment_list
||
[],
});
// 是否还有数据
if
(
this
.
data
.
data_page
>
1
&&
this
.
data
.
data_page
>
this
.
data
.
data_page_total
)
{
this
.
setData
({
data_bottom_line_status
:
true
});
}
else
{
this
.
setData
({
data_bottom_line_status
:
false
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_list
:
[],
data_bottom_line_status
:
false
,
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
});
if
(
app
.
is_login_check
(
res
.
data
,
this
,
'
get_data_list
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
this
.
setData
({
data_list_loding_status
:
2
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
setData
({
data_page
:
1
});
this
.
get_data_list
(
1
);
},
// 滚动加载
scroll_lower
(
e
)
{
this
.
get_data_list
();
},
// 导航事件
nav_event
(
e
)
{
this
.
setData
({
nav_status_index
:
e
.
currentTarget
.
dataset
.
index
||
0
,
data_page
:
1
,
});
this
.
get_data_list
(
1
);
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/order/order.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"分销订单"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/poster/poster.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 公共
*/
.share {
padding: 20rpx 10rpx;
}
.share .title {
border-left: 3px solid #ff6a80;
margin-left: 10rpx;
padding-left: 20rpx;
font-size: 32rpx;
font-weight: 500;
}
.share .desc {
font-size: 32rpx;
padding: 0 10rpx 20rpx 10rpx;
margin-top: 20rpx;
}
.share .content {
padding: 20rpx;
}
.share .submit {
margin: 20rpx 0;
padding: 0 20rpx;
}
.share button {
height: 70rpx;
line-height: 70rpx;
}
.submit-double button {
width: 48%;
}
/*
* 链接
*/
.url .content {
font-size: 32rpx;
color: #ff6a80;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/poster/poster.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<view a:if="{{user_share_poster != null || user_share_qrode != null || user_share_url != null}}">
<view a:if="{{user_share_poster != null}}" class="share qrcode bg-white spacing-mb">
<view class="title">海报分享</view>
<view class="desc cr-888 br-b">
保存海报后,发送给微信好友/群、QQ好友/群,分享到分朋友圈,微博等进行推广,轻轻松松赚返利!
</view>
<view class="content">
<image src="{{user_share_poster}}" class="wh-auto dis-block" mode="widthFix" />
</view>
<view class="submit submit-double oh">
<button type="primary" plain="{{true}}" hover-class="none" size="mini" data-value="{{user_share_poster}}" onTap="images_show_event" class="fl">查看长按保存</button>
<button type="primary" plain="{{true}}" hover-class="none" size="mini" onTap="poster_refresh_event" class="fr">重新生成</button>
</view>
</view>
<view a:if="{{user_share_qrode != null}}" class="share qrcode bg-white spacing-mb">
<view class="title">二维码分享</view>
<view class="desc cr-888 br-b">
保存二维码后,发送给微信好友/群、QQ好友/群,分享到分朋友圈,微博等进行推广,轻轻松松赚返利!
</view>
<view class="content">
<image src="{{user_share_qrode}}" class="wh-auto dis-block" mode="widthFix" />
</view>
<view class="submit">
<button type="primary" plain="{{true}}" hover-class="none" size="mini" class="dis-block wh-auto" data-value="{{user_share_qrode}}" onTap="images_show_event">查看二维码长按保存</button>
</view>
</view>
<view a:if="{{user_share_url != null}}" class="share url bg-white">
<view class="title">链接分享</view>
<view class="desc cr-888 br-b">
复制以下链接,发送给微信好友/群、QQ好友/群,分享到分朋友圈,微博等进行推广,轻轻松松赚返利!
</view>
<view class="content">{{user_share_url}}</view>
<view class="submit">
<button type="primary" plain="{{true}}" hover-class="none" size="mini" class="dis-block wh-auto" onTap="url_event">点击复制链接地址</button>
</view>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
<view a:if="{{user_share_qrode == null && user_share_url == null}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
</view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/poster/poster.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list_loding_status
:
1
,
data_list_loding_msg
:
'
加载中...
'
,
data_bottom_line_status
:
false
,
user_share_poster
:
null
,
user_share_qrode
:
null
,
user_share_url
:
null
,
},
onLoad
()
{
this
.
init
();
},
init
()
{
var
self
=
this
;
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
poster
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
user_share_poster
:
data
.
user_share_poster
||
null
,
user_share_qrode
:
data
.
user_share_qrode
||
null
,
user_share_url
:
data
.
user_share_url
||
null
,
data_list_loding_status
:
3
,
data_bottom_line_status
:
true
,
data_list_loding_msg
:
''
,
});
// 是否全部没数据
if
(
self
.
data
.
user_share_poster
==
null
&&
self
.
data
.
user_share_qrode
==
null
&&
self
.
data
.
user_share_url
==
null
)
{
self
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
}
else
{
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
init
();
},
// 刷新海报
poster_refresh_event
(
e
)
{
my
.
showLoading
({
title
:
"
处理中...
"
});
my
.
request
({
url
:
app
.
get_request_url
(
"
refresh
"
,
"
poster
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
this
.
setData
({
user_share_poster
:
res
.
data
.
data
});
app
.
showToast
(
res
.
data
.
msg
,
"
success
"
);
}
else
{
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 图片查看事件
images_show_event
(
e
)
{
var
value
=
e
.
currentTarget
.
dataset
.
value
||
null
;
if
(
value
!=
null
)
{
my
.
previewImage
({
current
:
value
,
urls
:
[
value
]
});
}
else
{
app
.
showToast
(
'
宣传图片地址有误
'
);
}
},
// url事件
url_event
(
e
)
{
if
((
this
.
data
.
user_share_url
||
null
)
!=
null
)
{
my
.
setClipboardData
({
data
:
this
.
data
.
user_share_url
,
success
(
res
)
{
app
.
showToast
(
'
复制成功
'
,
'
success
'
);
}
})
}
else
{
app
.
showToast
(
'
链接地址有误
'
);
}
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/poster/poster.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"推广返利"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.acss
已删除
100644 → 0
浏览文件 @
ee923e74
.panel-item .panel-title {
background: #fff;
font-weight: bold;
padding: 15rpx;
border-bottom: 2px solid #eee;
font-size: 34rpx;
}
.panel-item .panel-content .item {
padding: 20rpx 0;
}
.panel-item .panel-content .item:last-child {
border: 0;
}
.panel-item .panel-content .item .title {
width: 25%;
padding-left: 20rpx;
}
.panel-item .panel-content .item .content {
width: calc(75% - 50rpx);
padding-left: 20rpx;
min-height: 46rpx;
word-wrap: break-word;
word-break: normal;
}
.panel-item .panel-content .item view {
line-height: 46rpx;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<view a:if="{{detail != null}}">
<view a:if="{{detail_list.length > 0}}" class="panel-item">
<view class="panel-content bg-white">
<view a:for="{{detail_list}}" a:key="item" class="item br-b oh">
<view class="title fl">{{item.name}}</view>
<view class="content cr-888 fl br-l">{{item.value}}</view>
</view>
</view>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
<view a:if="{{detail == null}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
<view class="nav-back tc wh-auto">
<navigator url="/pages/plugins/distribution/profit/profit" open-type="navigateBack" hover-class="none">
<button type="default" size="mini" class="cr-888 br" hover-class="none">返回</button>
</navigator>
</view>
</view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
params
:
null
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
data_bottom_line_status
:
false
,
detail
:
null
,
detail_list
:
[],
},
onLoad
(
params
)
{
//params['id'] = 1;
this
.
setData
({
params
:
params
});
this
.
init
();
},
onShow
()
{},
init
()
{
var
self
=
this
;
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
my
.
request
({
url
:
app
.
get_request_url
(
"
detail
"
,
"
profit
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
id
:
this
.
data
.
params
.
id
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
detail
:
data
.
data
,
detail_list
:
[
{
name
:
"
订单金额
"
,
value
:
data
.
data
.
total_price
+
'
元
'
||
''
},
{
name
:
"
退款金额
"
,
value
:
data
.
data
.
refund_price
+
'
元
'
||
''
},
{
name
:
"
收益金额
"
,
value
:
data
.
data
.
profit_price
+
'
元
'
||
''
},
{
name
:
"
当前级别
"
,
value
:
data
.
data
.
level_name
||
''
},
{
name
:
"
结算状态
"
,
value
:
data
.
data
.
status_name
||
''
},
{
name
:
"
订单状态
"
,
value
:
data
.
data
.
order_status_name
||
''
},
{
name
:
"
订单支付状态
"
,
value
:
data
.
data
.
order_pay_status_name
||
''
},
{
name
:
"
来源终端
"
,
value
:
data
.
data
.
order_client_type_name
||
''
},
{
name
:
"
添加时间
"
,
value
:
data
.
data
.
add_time_time
||
''
},
{
name
:
"
更新时间
"
,
value
:
data
.
data
.
upd_time_text
||
''
},
],
data_list_loding_status
:
3
,
data_bottom_line_status
:
true
,
data_list_loding_msg
:
''
,
});
}
else
{
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
init
();
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit-detail/profit-detail.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"收益详情"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit/profit.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 导航
*/
.nav {
background: #eee;
height: 80rpx;
line-height: 80rpx;
}
.nav .item {
width: 20%;
}
.nav .active {
color: #ff6a80;
}
/*
* 列表
*/
.scroll-box {
height: calc(100vh - 80rpx);
}
.data-list .item .base,
.data-list .item .content {
padding: 20rpx 10rpx;
}
.data-list .item .content .multi-text {
line-height: 50rpx;
}
.data-list .item .content .multi-text .title {
margin-right: 30rpx;
}
.data-list .item .content .multi-text .value {
font-weight: 500;
}
.data-list .item .content .multi-text .unit {
margin-left: 10rpx;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit/profit.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<!-- 导航 -->
<view class="nav">
<block a:for="{{nav_status_list}}" a:key="key">
<view class="item fl tc cr-888 {{nav_status_index == index ? 'active' : ''}}" data-index="{{index}}" onTap="nav_event">{{item.name}}</view>
</block>
</view>
<!-- 列表 -->
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view class="data-list">
<view class="item bg-white spacing-mb" a:if="{{data_list.length > 0}}" a:for="{{data_list}}" a:key="key">
<view class="base oh br-b">
<text class="cr-666">{{item.add_time_time}}</text>
<text class="fr cr-main">{{item.status_name}}</text>
</view>
<navigator url="/pages/plugins/distribution/profit-detail/profit-detail?id={{item.id}}" hover-class="none">
<view class="content">
<view class="multi-text">
<text class="title cr-666">订单金额</text>
<text class="value">{{item.total_price}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">退款金额</text>
<text class="value">{{item.refund_price}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">收益金额</text>
<text class="value">{{item.profit_price}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">当前级别</text>
<text class="value">{{item.level_name}}</text>
</view>
</view>
</navigator>
</view>
<view a:if="{{data_list.length == 0}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status}}">
</template>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
</scroll-view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit/profit.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list
:
[],
data_page_total
:
0
,
data_page
:
1
,
data_list_loding_status
:
1
,
data_bottom_line_status
:
false
,
params
:
null
,
nav_status_list
:
[
{
name
:
"
全部
"
,
value
:
"
-1
"
},
{
name
:
"
待生效
"
,
value
:
"
0
"
},
{
name
:
"
待结算
"
,
value
:
"
1
"
},
{
name
:
"
已结算
"
,
value
:
"
2
"
},
{
name
:
"
已失效
"
,
value
:
"
3
"
},
],
nav_status_index
:
0
,
},
onLoad
(
params
)
{
// 是否指定状态
var
nav_status_index
=
0
;
if
((
params
.
status
||
null
)
!=
null
)
{
for
(
var
i
in
this
.
data
.
nav_status_list
)
{
if
(
this
.
data
.
nav_status_list
[
i
][
'
value
'
]
==
params
.
status
)
{
nav_status_index
=
i
;
break
;
}
}
}
this
.
setData
({
params
:
params
,
nav_status_index
:
nav_status_index
,
});
this
.
init
();
},
onShow
()
{},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
'
init
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
return
false
;
}
else
{
// 获取数据
this
.
get_data_list
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
},
// 获取数据
get_data_list
(
is_mandatory
)
{
// 分页是否还有数据
if
((
is_mandatory
||
0
)
==
0
)
{
if
(
this
.
data
.
data_bottom_line_status
==
true
)
{
return
false
;
}
}
// 加载loding
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
// 参数
var
status
=
((
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
]
||
null
)
==
null
)
?
-
1
:
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
][
'
value
'
];
// 获取数据
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
profit
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
,
status
:
status
,
is_more
:
1
,
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
data
.
data
.
length
>
0
)
{
if
(
this
.
data
.
data_page
<=
1
)
{
var
temp_data_list
=
res
.
data
.
data
.
data
;
}
else
{
var
temp_data_list
=
this
.
data
.
data_list
;
var
temp_data
=
res
.
data
.
data
.
data
;
for
(
var
i
in
temp_data
)
{
temp_data_list
.
push
(
temp_data
[
i
]);
}
}
this
.
setData
({
data_list
:
temp_data_list
,
data_total
:
res
.
data
.
data
.
total
,
data_page_total
:
res
.
data
.
data
.
page_total
,
data_list_loding_status
:
3
,
data_page
:
this
.
data
.
data_page
+
1
,
});
// 是否还有数据
if
(
this
.
data
.
data_page
>
1
&&
this
.
data
.
data_page
>
this
.
data
.
data_page_total
)
{
this
.
setData
({
data_bottom_line_status
:
true
});
}
else
{
this
.
setData
({
data_bottom_line_status
:
false
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_list
:
[],
data_bottom_line_status
:
false
,
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
});
if
(
app
.
is_login_check
(
res
.
data
,
this
,
'
get_data_list
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
this
.
setData
({
data_list_loding_status
:
2
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
setData
({
data_page
:
1
});
this
.
get_data_list
(
1
);
},
// 滚动加载
scroll_lower
(
e
)
{
this
.
get_data_list
();
},
// 导航事件
nav_event
(
e
)
{
this
.
setData
({
nav_status_index
:
e
.
currentTarget
.
dataset
.
index
||
0
,
data_page
:
1
,
});
this
.
get_data_list
(
1
);
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/profit/profit.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"收益明细"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/statistics/statistics.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 公共
*/
.container,
.user-container .item,
.profit-container .item {
padding: 20rpx 10rpx;
}
.container .item {
width: 50%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.container .title {
border-left: 3px solid #ff6a80;
padding-left: 20rpx;
font-size: 32rpx;
font-weight: 500;
}
.container .base-content {
padding: 30rpx 10rpx;
}
.container .base-content .name {
margin-bottom: 10rpx;
}
.container .base-content .value .golden,
.container .base-content .value .yellow,
.container .base-content .value .green {
font-weight: 500;
}
.container .base-content .value .golden {
color: #ff6a80;
}
.container .base-content .value .yellow {
color: #f37b1d;
}
.container .base-content .value .blue {
color: #3bb4f2;
}
.container .base-content .value .green {
color: #5eb95e;
}
/*
* 用户、返利
*/
.user-container .base-content .value .golden,
.user-container .base-content .value .green {
margin-right: 10rpx;
}
.user-container .base-content,
.profit-container .base-content {
padding: 10rpx;
}
/*
* 图表
*/
.chart-container {
width: 100%;
height: 520rpx;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.chart-container .chart-not-data {
margin-top: 230rpx;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/statistics/statistics.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<!-- 推广客户 -->
<view class="container user-container bg-white">
<view class="title">推广客户</view>
<view class="base-content oh tc">
<view class="item fl">
<view class="name cr-666">已推广用户总数</view>
<view class="value single-text">
<text class="golden">{{user_total.user_count || 0}}</text>
<text class="cr-888">人</text>
</view>
</view>
<view class="item fl">
<view class="name cr-666">已消费用户总数</view>
<view class="value single-text">
<text class="green">{{user_total.valid_user_count || 0}}</text>
<text class="cr-888">人</text>
</view>
</view>
</view>
</view>
<!-- 返利概况 -->
<view class="container profit-container bg-white spacing-mt">
<view class="title">返利概况</view>
<view class="base-content oh tc">
<view class="item fl">
<view class="name cr-666">返佣总额</view>
<view class="value single-text">
<text class="golden">¥{{user_profit_total_price || '0.00'}}</text>
</view>
</view>
<view class="item fl">
<view class="name cr-666">待生效</view>
<view class="value single-text">
<text class="yellow">¥{{user_profit_stay_price || '0.00'}}</text>
</view>
</view>
<view class="item fl">
<view class="name cr-666">待结算</view>
<view class="value single-text">
<text class="blue">¥{{user_profit_vaild_price || '0.00'}}</text>
</view>
</view>
<view class="item fl">
<view class="name cr-666">已结算</view>
<view class="value single-text">
<text class="green">¥{{user_profit_already_price || '0.00'}}</text>
</view>
</view>
</view>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: true}}"></template>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/statistics/statistics.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list_loding_status
:
1
,
data_list_loding_msg
:
'
加载中...
'
,
data_bottom_line_status
:
false
,
user_total
:
null
,
user_profit_stay_price
:
0.00
,
user_profit_vaild_price
:
0.00
,
user_profit_already_price
:
0.00
,
user_profit_total_price
:
0.00
,
user_data
:
null
,
profit_data
:
null
,
},
onShow
()
{
this
.
init
();
},
init
()
{
var
self
=
this
;
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
statistics
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
self
.
setData
({
user_total
:
data
.
user_total
||
null
,
user_profit_stay_price
:
data
.
user_profit_stay_price
||
0.00
,
user_profit_vaild_price
:
data
.
user_profit_vaild_price
||
0.00
,
user_profit_already_price
:
data
.
user_profit_already_price
||
0.00
,
user_profit_total_price
:
data
.
user_profit_total_price
||
0.00
,
user_data
:
data
.
user_chart
||
null
,
profit_data
:
data
.
profit_chart
||
null
,
data_list_loding_status
:
3
,
data_bottom_line_status
:
true
,
data_list_loding_msg
:
''
,
});
}
else
{
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
init
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
self
.
setData
({
data_list_loding_status
:
2
,
data_bottom_line_status
:
false
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
init
();
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/statistics/statistics.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"数据统计"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/team/team.acss
已删除
100644 → 0
浏览文件 @
ee923e74
.scroll-box {
height: 100vh;
}
.data-list .item .base {
padding: 15rpx 10rpx;
}
.data-list .item .base .avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
.data-list .item .base .nickname {
margin-top: 10rpx;
}
.data-list .item .content {
padding: 20rpx 10rpx;
}
.data-list .item .content .multi-text {
line-height: 50rpx;
}
.data-list .item .content .multi-text .title {
margin-right: 30rpx;
}
.data-list .item .content .multi-text .value {
font-weight: 500;
}
.data-list .item .content .multi-text .unit {
margin-left: 10rpx;
}
.data-list .item .operation {
padding: 20rpx 10rpx;
}
.data-list .item .submit-order {
border: 1px solid #e5e5e5;
color: #888 !important;
}
.data-list .item .operation button:not(:first-child) {
margin-left: 30rpx;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/team/team.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view class="data-list">
<view class="item bg-white spacing-mb" a:if="{{data_list.length > 0}}" a:for="{{data_list}}" a:key="key">
<view class="base oh br-b">
<image src="{{item.avatar}}" class="avatar dis-block fl" mode="widthFix" onTap="avatar_event" data-value="{{item.avatar}}" />
<text class="fr nickname cr-888">{{item.user_name_view || ''}}</text>
</view>
<view class="content">
<view class="multi-text">
<text class="title cr-666">消费金额</text>
<text class="value">{{item.order_total}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">下级消费</text>
<text class="value">{{item.find_order_total}}</text>
<text class="unit cr-888">元</text>
</view>
<view class="multi-text">
<text class="title cr-666">下级用户</text>
<text class="value">{{item.referrer_count}}</text>
<text class="unit cr-888">人</text>
</view>
<view class="multi-text">
<text class="title cr-666">加入时间</text>
<text class="value">{{item.add_time_time}}</text>
</view>
</view>
<view class="operation tr br-t-dashed">
<navigator url="/pages/plugins/distribution/order/order?uid={{item.id}}" hover-class="none">
<button class="cr-888 br" type="default" size="mini" hover-class="none" class="submit-order">用户订单</button>
</navigator>
</view>
</view>
<view a:if="{{data_list.length == 0}}">
<import src="/pages/common/nodata.axml" />
<template is="nodata" data="{{status: data_list_loding_status}}">
</template>
</view>
<import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</view>
</scroll-view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/team/team.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_list
:
[],
data_page_total
:
0
,
data_page
:
1
,
data_list_loding_status
:
1
,
data_bottom_line_status
:
false
,
params
:
null
,
},
onLoad
(
params
)
{
this
.
setData
({
params
:
params
,
});
this
.
init
();
},
onShow
()
{
},
init
()
{
var
user
=
app
.
get_user_info
(
this
,
'
init
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
redirectTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
return
false
;
}
else
{
// 获取数据
this
.
get_data_list
();
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
}
},
// 获取数据
get_data_list
(
is_mandatory
)
{
// 分页是否还有数据
if
((
is_mandatory
||
0
)
==
0
)
{
if
(
this
.
data
.
data_bottom_line_status
==
true
)
{
return
false
;
}
}
// 加载loding
my
.
showLoading
({
title
:
"
加载中...
"
});
this
.
setData
({
data_list_loding_status
:
1
});
// 获取数据
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
team
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
,
},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
data
.
data
.
length
>
0
)
{
if
(
this
.
data
.
data_page
<=
1
)
{
var
temp_data_list
=
res
.
data
.
data
.
data
;
}
else
{
var
temp_data_list
=
this
.
data
.
data_list
;
var
temp_data
=
res
.
data
.
data
.
data
;
for
(
var
i
in
temp_data
)
{
temp_data_list
.
push
(
temp_data
[
i
]);
}
}
this
.
setData
({
data_list
:
temp_data_list
,
data_total
:
res
.
data
.
data
.
total
,
data_page_total
:
res
.
data
.
data
.
page_total
,
data_list_loding_status
:
3
,
data_page
:
this
.
data
.
data_page
+
1
,
});
// 是否还有数据
if
(
this
.
data
.
data_page
>
1
&&
this
.
data
.
data_page
>
this
.
data
.
data_page_total
)
{
this
.
setData
({
data_bottom_line_status
:
true
});
}
else
{
this
.
setData
({
data_bottom_line_status
:
false
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
data_list
:
[],
data_bottom_line_status
:
false
,
});
}
}
else
{
this
.
setData
({
data_list_loding_status
:
0
,
});
if
(
app
.
is_login_check
(
res
.
data
,
this
,
'
get_data_list
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
this
.
setData
({
data_list_loding_status
:
2
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
setData
({
data_page
:
1
});
this
.
get_data_list
(
1
);
},
// 滚动加载
scroll_lower
(
e
)
{
this
.
get_data_list
();
},
// 头像查看
avatar_event
(
e
)
{
var
value
=
e
.
currentTarget
.
dataset
.
value
||
null
;
if
(
value
!=
null
)
{
my
.
previewImage
({
current
:
value
,
urls
:
[
value
]
});
}
else
{
app
.
showToast
(
'
头像地址有误
'
);
}
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/team/team.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"我的团队"
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/user/user.acss
已删除
100644 → 0
浏览文件 @
ee923e74
/*
* 头部
*/
.head-box{
padding-top: 20rpx;
font-size: 24rpx;
background-color: #ff6a80;
position: relative;
}
.head-item {
padding-bottom: 30rpx;
}
.head-item .avatar {
padding: 10rpx;
background: #fbbec7;
border: 1px solid #fbbec7;
}
.head-item .avatar image {
width: 140rpx;
height: 140rpx;
}
.head-item .avatar,
.head-item .avatar image {
border-radius: 50%;
}
.head-item .item-name{
font-size: 30rpx;
margin-top: 10rpx;
}
.head-item .item-icon {
width: 30rpx;
margin-right: 20rpx;
}
.head-item {
margin-left: 30rpx;
}
.head-base {
margin-left: 60rpx;
width: calc(100% - 280rpx);
}
.head-base .level-name {
font-size: 42rpx;
font-weight: 500;
margin-bottom: 30rpx;
color: #fffbe0;
}
.head-base .head-base-submit {
font-size: 26rpx;
height: 55rpx;
line-height: 55rpx;
border: 1px solid #ffe2e5;
background-color: #ffe2e5;
color: #f77076;
position: absolute;
right: 30rpx;
bottom: 35rpx;
padding: 0 20rpx;
}
/*
* 导航
*/
.nav {
border-top: 1px solid #eee;
}
.nav .item {
padding: 30rpx 0;
width: calc(50% - 1px);
border-bottom: 1px solid #eee;
}
.nav .item:nth-child(odd) {
border-right: 1px solid #eee;
}
.nav .item image {
width: 100rpx;
height: 100rpx;
margin: 0 auto;
}
.nav .item .title {
margin-top: 20rpx;
}
/*
* 提示信息
*/
.tips-container .tips-item {
padding: 0 10rpx;
}
.tips-container .not-opening-vip-desc {
background: #def2fd;
border: 1px solid #cfeeff;
color: #1490d2;
padding: 10rpx;
font-size: 26rpx;
border-radius: 2px;
}
\ No newline at end of file
public/appmini/old/alipay/images/distribution/user/user.axml
已删除
100644 → 0
浏览文件 @
ee923e74
<!-- 头部 -->
<view class="head-box oh">
<view class="head-item tc fl">
<view class="avatar">
<image onTap="preview_event" binderror="user_avatar_error" src="{{avatar}}" mode="widthFix" class="dis-block" />
</view>
<text class="item-name dis-block cr-fff">{{nickname}}</text>
</view>
<view class="head-base fl">
<view a:if="{{(user_level || null) != null && (user_level.name || null) != null}}" class="single-text level-name spacing-mt">{{user_level.name}}</view>
<block a:if="{{(data_base || null) != null && (data_base.is_enable_self_extraction || 0) == 1}}">
<navigator url="/pages/plugins/distribution/extraction/extraction" hover-class="none">
<button size="mini" type="default" hover-class="none" class="head-base-submit">{{(extraction || null) == null ? '申请' : ''}}取货点</button>
</navigator>
</block>
</view>
</view>
<!-- 导航 -->
<view a:if="{{nav_list.length > 0}}" class="nav spacing-mt oh bg-white">
<block a:for="{{nav_list}}" a:key="key">
<navigator url="{{item.url}}" hover-class="none">
<view class="item fl tc">
<image src="{{item.icon}}" mode="scaleToFill" class="dis-block" />
<view class="title">{{item.title}}</view>
</view>
</navigator>
</block>
</view>
<!-- 通知 -->
<view class="tips-container spacing-mb">
<!-- 不符合分销条件描述 -->
<block a:if="{{(user_level || null) == null}}">
<view a:if="{{(data_base.non_conformity_desc || null) != null && data_base.non_conformity_desc.length > 0}}" class="tips-item spacing-mt">
<view class="not-opening-vip-desc">
<view a:for="{{data_base.non_conformity_desc}}" a:key="key" class="item">
{{item}}
</view>
</view>
</view>
</block>
<!-- 会员中心通知 -->
<view a:if="{{(user_level || null) != null && (data_base.user_center_notice || null) != null && data_base.user_center_notice.length > 0}}" class="tips-item spacing-mt">
<view class="tips">
<view a:for="{{data_base.user_center_notice}}" a:key="key" class="item">
{{item}}
</view>
</view>
</view>
</view>
\ No newline at end of file
public/appmini/old/alipay/images/distribution/user/user.js
已删除
100644 → 0
浏览文件 @
ee923e74
const
app
=
getApp
();
Page
({
data
:
{
data_bottom_line_status
:
false
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
data_base
:
null
,
user_level
:
null
,
extraction
:
null
,
avatar
:
app
.
data
.
default_user_head_src
,
nickname
:
"
用户名
"
,
submit_disabled_status
:
false
,
// 导航
nav_list
:
[],
},
onLoad
(
params
)
{
this
.
setData
({
nav_list
:
this
.
nav_list_data
()
});
},
onShow
()
{
this
.
init
();
},
init
(
e
)
{
var
user
=
app
.
get_user_info
(
this
,
"
init
"
),
self
=
this
;
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
my
.
showModal
({
title
:
'
温馨提示
'
,
content
:
'
绑定手机号码
'
,
confirmButtonText
:
'
确认
'
,
cancelButtonText
:
'
暂不
'
,
success
:
(
result
)
=>
{
my
.
stopPullDownRefresh
();
if
(
result
.
confirm
)
{
my
.
navigateTo
({
url
:
"
/pages/login/login?event_callback=init
"
});
}
self
.
setData
({
avatar
:
((
self
.
data
.
avatar
||
null
)
==
null
)
?
(
user
.
avatar
||
app
.
data
.
default_user_head_src
)
:
self
.
data
.
avatar
,
nickname
:
user
.
nickname
||
'
用户名
'
,
});
},
});
}
else
{
self
.
setData
({
avatar
:
((
self
.
data
.
avatar
||
null
)
==
null
)
?
(
user
.
avatar
||
app
.
data
.
default_user_head_src
)
:
self
.
data
.
avatar
,
nickname
:
user
.
nickname
||
'
用户名
'
,
});
self
.
get_data
();
}
}
},
// 导航数据
nav_list_data
()
{
return
[
{
icon
:
"
/images/plugins/distribution/user-center-order-icon.png
"
,
title
:
"
分销订单
"
,
url
:
"
/pages/plugins/distribution/order/order
"
,
},
{
icon
:
"
/images/plugins/distribution/user-center-profit-icon.png
"
,
title
:
"
收益明细
"
,
url
:
"
/pages/plugins/distribution/profit/profit
"
,
},
{
icon
:
"
/images/plugins/distribution/user-center-team-icon.png
"
,
title
:
"
我的团队
"
,
url
:
"
/pages/plugins/distribution/team/team
"
,
},
{
icon
:
"
/images/plugins/distribution/user-center-poster-icon.png
"
,
title
:
"
推广返利
"
,
url
:
"
/pages/plugins/distribution/poster/poster
"
,
},
{
icon
:
"
/images/plugins/distribution/user-center-statistics-icon.png
"
,
title
:
"
数据统计
"
,
url
:
"
/pages/plugins/distribution/statistics/statistics
"
,
}
];
},
// 获取数据
get_data
()
{
var
self
=
this
;
my
.
request
({
url
:
app
.
get_request_url
(
"
index
"
,
"
user
"
,
"
distribution
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
success
:
res
=>
{
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
var
data_base
=
data
.
base
||
null
;
var
user_level
=
data
.
user_level
||
null
;
self
.
setData
({
data_base
:
data_base
,
user_level
:
user_level
,
extraction
:
data
.
extraction
||
null
,
avatar
:
(
user_level
==
null
||
(
user_level
.
images_url
||
null
)
==
null
)
?
self
.
data
.
avatar
:
user_level
.
images_url
,
data_list_loding_msg
:
''
,
data_list_loding_status
:
0
,
data_bottom_line_status
:
false
,
});
// 导航
var
temp_data_list
=
self
.
nav_list_data
();
// 等级介绍
if
(
data_base
!=
null
&&
(
data_base
.
is_show_introduce
||
0
)
==
1
)
{
temp_data_list
.
push
({
icon
:
"
/images/plugins/distribution/user-center-introduce-icon.png
"
,
title
:
"
等级介绍
"
,
url
:
"
/pages/plugins/distribution/introduce/introduce
"
,
});
}
self
.
setData
({
nav_list
:
temp_data_list
});
}
else
{
self
.
setData
({
data_bottom_line_status
:
false
,
data_list_loding_status
:
2
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
is_login_check
(
res
.
data
,
self
,
'
get_data
'
))
{
app
.
showToast
(
res
.
data
.
msg
);
}
}
},
fail
:
()
=>
{
my
.
stopPullDownRefresh
();
self
.
setData
({
data_bottom_line_status
:
false
,
data_list_loding_status
:
2
,
data_list_loding_msg
:
'
服务器请求出错
'
,
});
app
.
showToast
(
"
服务器请求出错
"
);
}
});
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
get_data
();
},
// 头像查看
preview_event
()
{
if
(
app
.
data
.
default_user_head_src
!=
this
.
data
.
avatar
)
{
my
.
previewImage
({
current
:
this
.
data
.
avatar
,
urls
:
[
this
.
data
.
avatar
]
});
}
},
// 头像加载错误
user_avatar_error
(
e
)
{
this
.
setData
({
avatar
:
app
.
data
.
default_user_head_src
});
},
});
\ No newline at end of file
public/appmini/old/alipay/images/distribution/user/user.json
已删除
100644 → 0
浏览文件 @
ee923e74
{
"pullRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ff6a80"
,
"backgroundColorTop"
:
"#ff6a80"
,
"backgroundColorBottom"
:
"#f5f5f5"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarTitleText"
:
"我的分销"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录