Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑秀明
shop_mobile_uni
Commits
55747b98
Commit
55747b98
authored
Apr 10, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购分期
parent
db3bafaf
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
689 additions
and
157 deletions
+689
-157
TopBar.vue
components/TopBar/TopBar.vue
+1
-1
main.js
main.js
+110
-92
pages.json
pages.json
+6
-0
applypage1.vue
pages/apply/applypage1.vue
+59
-21
applypage2.vue
pages/apply/applypage2.vue
+60
-6
applypage3.vue
pages/apply/applypage3.vue
+41
-3
category.vue
pages/category/category.vue
+1
-1
certification.vue
pages/certification/certification.vue
+312
-0
detail.vue
pages/detail/detail.vue
+1
-1
financialstage.vue
pages/financial/financialstage.vue
+11
-6
index.vue
pages/index/index.vue
+1
-1
installmentinfo.vue
pages/installment/installmentinfo.vue
+38
-15
refuse.vue
pages/refuse/refuse.vue
+46
-8
searchhistory.vue
pages/searchhistory/searchhistory.vue
+1
-1
iconfont.css
static/iconfont.css
+1
-1
No files found.
components/TopBar/TopBar.vue
View file @
55747b98
...
...
@@ -15,7 +15,7 @@
},
methods
:
{
back
()
{
uni
.
navigateBack
();
this
.
$backup
();
}
}
}
...
...
main.js
View file @
55747b98
import
Vue
from
'vue'
import
App
from
'./App'
import
store
from
'@/store/store.js'
;
import
{
php
,
gp
}
from
'@/common/host.js'
;
import
{
getNavigationBarTitle
}
from
'./common/util.js'
;
import
{
php
,
gp
}
from
'@/common/host.js'
;
import
{
getNavigationBarTitle
}
from
'./common/util.js'
;
// 微信分享公共接口
// #ifdef H5
import
wechat
from
'./common/wechat.js'
;
if
(
wechat
.
isWechat
()){
if
(
wechat
.
isWechat
())
{
Vue
.
prototype
.
$wechat
=
wechat
;
}
// #endif
...
...
@@ -16,14 +21,14 @@ Vue.config.productionTip = false;
// 加入购物车
function
addCart
(
spec_id
,
quantity
,
isLogin
)
{
if
(
!
isLogin
)
{
if
(
!
isLogin
)
{
uni
.
showToast
({
title
:
'请登录后加入购物车'
,
duration
:
2000
,
icon
:
'none'
});
setTimeout
(()
=>
{
window
.
location
.
href
=
php
+
'app=member&act=login'
;
window
.
location
.
href
=
php
+
'app=member&act=login'
;
},
2000
);
return
}
...
...
@@ -37,7 +42,7 @@ function addCart(spec_id, quantity, isLogin) {
},
success
:
(
res
)
=>
{
let
msg
=
''
;
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
msg
=
'已加入购物车'
}
else
{
msg
=
res
.
data
.
messages
...
...
@@ -51,8 +56,9 @@ function addCart(spec_id, quantity, isLogin) {
})
}
// 默认图片加载失败的情况
function
__reloadResource
(
_this
){
_this
.
_source
.
default_image
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190605/goods/5cf78b96601be.png?x-oss-process=image/resize,m_lfit,w_300,h_300/auto-orient,0/quality,Q_85/format,jpg'
;
function
__reloadResource
(
_this
)
{
_this
.
_source
.
default_image
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190605/goods/5cf78b96601be.png?x-oss-process=image/resize,m_lfit,w_300,h_300/auto-orient,0/quality,Q_85/format,jpg'
;
}
// 跳转商品详情页,只传一个商品ID,方便以后全局修改
...
...
@@ -61,6 +67,15 @@ function jumpGoodDetail(goods_id) {
window
.
location
.
href
=
`
${
php
}
app=goods&id=
${
goods_id
}
`
;
}
function
backup
()
{
const
routes
=
getCurrentPages
();
if
(
routes
.
length
>
1
)
{
uni
.
navigateBack
();
}
else
{
history
.
back
();
}
}
// 跳转外部链接,使用webview
function
jump
(
url
)
{
// #ifdef H5
...
...
@@ -69,7 +84,7 @@ function jump(url) {
// #ifndef H5
const
link
=
url
store
.
dispatch
(
'changeWebviewUrl'
,
link
)
store
.
dispatch
(
'changeWebviewUrl'
,
link
)
uni
.
redirectTo
({
url
:
`/pages/web/web`
,
});
...
...
@@ -79,11 +94,14 @@ function jump(url) {
Vue
.
prototype
.
$jumpGoodDetail
=
jumpGoodDetail
;
Vue
.
prototype
.
$jump
=
jump
;
Vue
.
prototype
.
$addCart
=
addCart
;
Vue
.
prototype
.
$backup
=
backup
;
Vue
.
prototype
.
$__reloadResource
=
__reloadResource
;
Vue
.
prototype
.
$getNavigationBarTitle
=
getNavigationBarTitle
;
Vue
.
prototype
.
$noGoodsImg
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190605/goods/5cf78b96601be.png?x-oss-process=image/resize,m_lfit,w_300,h_300/auto-orient,0/quality,Q_85/format,jpg'
;
Vue
.
prototype
.
$noGoodsImg
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190605/goods/5cf78b96601be.png?x-oss-process=image/resize,m_lfit,w_300,h_300/auto-orient,0/quality,Q_85/format,jpg'
;
Vue
.
prototype
.
$defaultPortrait
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit/default_user_portrait.gif'
;
Vue
.
prototype
.
$defaultClassImg
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190520/img/5ce2636edf912.png'
;
Vue
.
prototype
.
$defaultClassImg
=
'https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190520/img/5ce2636edf912.png'
;
App
.
mpType
=
'app'
...
...
pages.json
View file @
55747b98
...
...
@@ -102,6 +102,12 @@
"style"
:
{
"navigationBarTitleText"
:
"退定金-谛宝多多商城"
}
},
{
"path"
:
"pages/certification/certification"
,
"style"
:
{
"navigationBarTitleText"
:
"金融分期-谛宝多多商城"
}
}
],
"globalStyle"
:
{
...
...
pages/apply/applypage1.vue
View file @
55747b98
...
...
@@ -79,12 +79,13 @@
<view
class=
"apply_title"
>
企业半年银行流水(需含户名)
</view>
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
</view>
<view
class=
"apply_data_item"
@
click=
"uploadZip('bank_card_record')"
>
<view
class=
"apply_upload"
v-if=
"!params.bank_card_record"
>
<view
class=
"apply_data_item"
>
<view
class=
"apply_upload"
v-if=
"!params.bank_card_record"
@
click=
"uploadZip('bank_card_record')"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
企业半年银行流水
</text>
</view>
<view
class=
"apply_upload"
style=
"line-height: 200rpx;"
v-if=
"params.bank_card_record"
>
<text
class=
"close_icon"
@
click=
"clearParams('bank_card_record')"
></text>
<text
class=
"upload_font"
>
{{
compressName
}}
</text>
</view>
</view>
...
...
@@ -105,19 +106,37 @@
vet_certificate
:
''
,
//兽医证
business_license
:
''
,
//营业执照
certification_materials
:
''
,
//经营场所
bank_card_record
:
'
xxxxx
'
,
//企业银行流水
bank_card_record
:
''
,
//企业银行流水
},
compressName
:
''
compressName
:
''
,
data
:
null
,
submitFlag
:
true
,
contract_no
:
''
,
qualification_id
:
''
}
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
contract_no
)
{
this
.
contract_no
=
option
.
contract_no
;
uni
.
request
({
url
:
'/uni/app/userqualification/GetUserQualification'
,
url
:
`/uni/api/userqualification/GetUserQualification/
${
option
.
contract_no
}
`
,
method
:
'GET'
,
success
:
(
res
)
=>
{
console
.
log
(
res
)
const
d
=
res
.
data
.
data
;
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
});
this
.
qualification_id
=
d
.
qualification_id
;
}
})
});
}
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
},
methods
:
{
uploadImage
(
key
)
{
...
...
@@ -170,6 +189,9 @@
url
:
'/uni/api/resources'
,
filePath
:
url
,
name
:
'file'
,
formData
:
{
name
:
file
.
name
},
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
...
...
@@ -183,13 +205,7 @@
this
.
params
[
key
]
=
''
;
},
submit
()
{
let
data
=
null
;
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
data
=
res
.
data
;
}
});
if
(
!
this
.
submitFlag
)
return
if
(
!
this
.
params
.
business_street
)
{
uni
.
showToast
({
title
:
'请上传所在街道照片'
,
...
...
@@ -239,15 +255,37 @@
});
return
}
this
.
submitFlag
=
false
;
const
methond
=
this
.
qualification_id
?
'PUT'
:
'POST'
;
const
url
=
this
.
qualification_id
?
'/uni/api/userqualification/EditUserQualification/first'
:
'/uni/api/userqualification/AddUserQualification'
;
uni
.
request
({
url
:
'/uni/api/userqualification/AddUserQualification'
,
method
:
'POST'
,
url
:
url
,
method
:
methond
,
data
:
{
...
this
.
params
,
...
data
...
this
.
data
},
success
:
(
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
===
0
)
{
uni
.
setStorage
({
key
:
'installment'
,
data
:
{
...
this
.
data
,
qualification_id
:
res
.
data
.
data
.
qualification_id
},
success
:
()
=>
{
uni
.
navigateTo
({
url
:
`/pages/apply/applypage2?contract_no=
${
this
.
contract_no
}
`
});
}
})
}
else
{
this
.
submitFlag
=
true
;
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
message
})
}
}
});
}
...
...
pages/apply/applypage2.vue
View file @
55747b98
...
...
@@ -55,17 +55,18 @@
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
</view>
<view
class=
"apply_data_item"
>
<view
class=
"apply_upload"
@
click=
"uploadZip(
)
"
>
<view
class=
"apply_upload"
@
click=
"uploadZip(
'legal_card_record')"
v-if=
"!params.legal_card_record
"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
法人半年银行流水
</text>
</view>
<view
class=
"apply_upload"
style=
"line-height: 200rpx;"
>
<view
class=
"apply_upload"
style=
"line-height: 200rpx;"
v-if=
"params.legal_card_record"
>
<text
class=
"close_icon"
@
click=
"clearParams('legal_card_record')"
></text>
<text
class=
"upload_font"
>
{{
compressName
}}
</text>
</view>
</view>
<view
class=
"apply_btn_box"
>
<view
class=
"apply_btn"
>
上一步
</view>
<view
class=
"apply_btn next_btn"
>
下一步
</view>
<view
class=
"apply_btn"
@
click=
"backup()"
>
上一步
</view>
<view
class=
"apply_btn next_btn"
@
click=
"submit()"
>
下一步
</view>
</view>
</view>
</view>
...
...
@@ -83,9 +84,33 @@
bank_credit_report
:
''
,
//征信报告
legal_card_record
:
''
//个人流水
},
compressName
:
''
compressName
:
''
,
data
:
null
,
submitFlag
:
true
,
contract_no
:
''
}
},
onLoad
(
option
)
{
if
(
option
.
contract_no
)
{
this
.
contract_no
=
option
.
contract_no
;
uni
.
request
({
url
:
`/uni/api/userqualification/GetUserQualification/
${
option
.
contract_no
}
`
,
method
:
'GET'
,
success
:
(
res
)
=>
{
const
d
=
res
.
data
.
data
;
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
});
}
});
}
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
},
methods
:
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
...
...
@@ -103,7 +128,7 @@
}
})
},
uploadZip
()
{
uploadZip
(
key
)
{
// #ifdef H5
const
_input
=
document
.
createElement
(
'input'
);
_input
.
type
=
'file'
;
...
...
@@ -137,6 +162,9 @@
url
:
'/uni/api/resources'
,
filePath
:
url
,
name
:
'file'
,
formData
:
{
name
:
file
.
name
},
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
...
...
@@ -149,7 +177,11 @@
clearParams
(
key
)
{
this
.
params
[
key
]
=
''
;
},
backup
()
{
this
.
$backup
();
},
submit
()
{
if
(
!
this
.
submitFlag
)
return
if
(
!
this
.
params
.
card_positive
)
{
uni
.
showToast
({
title
:
'请上传法人手持身份证正面'
,
...
...
@@ -185,6 +217,28 @@
});
return
}
this
.
submitFlag
=
false
;
uni
.
request
({
url
:
'/uni/api/userqualification/EditUserQualification/second'
,
method
:
'PUT'
,
data
:
{
...
this
.
params
,
...
this
.
data
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
uni
.
navigateTo
({
url
:
'/pages/apply/applypage3'
});
}
else
{
this
.
submitFlag
=
true
;
uni
.
showToast
({
icon
:
'none'
,
title
:
'提交失败请重试'
})
}
}
});
}
},
components
:
{
...
...
pages/apply/applypage3.vue
View file @
55747b98
...
...
@@ -55,8 +55,8 @@
</view>
</view>
<view
class=
"apply_btn_box"
>
<view
class=
"apply_btn"
>
上一步
</view>
<view
class=
"apply_btn next_btn"
>
下一步
</view>
<view
class=
"apply_btn"
@
click=
"backup()"
>
上一步
</view>
<view
class=
"apply_btn next_btn"
@
click=
"submit()"
>
下一步
</view>
</view>
</view>
</view>
...
...
@@ -73,8 +73,18 @@
user_sesame_level
:
''
,
//法人芝麻信用
business_sesame_level
:
''
,
//企业芝麻信用
vehicle_license
:
''
,
//机动车
},
submitFlag
:
true
,
data
:
null
}
},
onLoad
()
{
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
},
methods
:
{
uploadImage
(
key
)
{
...
...
@@ -95,6 +105,34 @@
},
clearParams
(
key
)
{
this
.
params
[
key
]
=
''
;
},
backup
()
{
this
.
$backup
();
},
submit
()
{
if
(
!
this
.
submitFlag
)
return
this
.
submitFlag
=
false
;
uni
.
request
({
url
:
'/uni/api/userqualification/EditUserQualification/second'
,
method
:
'PUT'
,
data
:
{
...
this
.
params
,
...
this
.
data
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
uni
.
navigateTo
({
url
:
'/pages/signcontract/signcontract'
});
}
else
{
this
.
submitFlag
=
true
;
uni
.
showToast
({
icon
:
'none'
,
title
:
'提交失败请重试'
})
}
}
});
}
},
components
:
{
...
...
pages/category/category.vue
View file @
55747b98
...
...
@@ -95,7 +95,7 @@
},
methods
:
{
goBack
()
{
history
.
back
()
this
.
$backup
();
},
getData
(
params
)
{
uni
.
request
({
...
...
pages/certification/certification.vue
0 → 100644
View file @
55747b98
<
template
>
<view
class=
"cer_content"
>
<TopBar
title=
"金融分期"
/>
<view
class=
"apply_data_content"
>
<view
:style=
"
{'margin-top':'40rpx'}">
<view
class=
"apply_title"
>
选择单位类型
</view>
</view>
<view>
<text
class=
"busi_type"
:class=
"
{act: params.enterprise_type === 1}" @click="changeEnterpriseType(1)">企业
</text>
<text
class=
"busi_type"
:class=
"
{act: params.enterprise_type === 2}" @click="changeEnterpriseType(2)">个体工商户
</text>
</view>
<view
:style=
"
{'margin-top':'40rpx'}">
<view
class=
"apply_title"
>
资质信息
</view>
</view>
<view
class=
"sign_title"
>
企业名称
</view>
<view>
<input
type=
"text"
class=
"sign_input"
v-model=
"params.enterprise_name"
>
</view>
<view
class=
"selector"
>
<picker
@
change=
"changeCompanyType"
mode=
"selector"
:range=
"range"
>
<view>
{{
range
[
index
]
}}
</view>
</picker>
<text
class=
"eosfont icon"
>

</text>
</view>
<view>
<input
type=
"text"
class=
"sign_input"
v-model=
"params.social_credit_code"
>
</view>
<view
class=
"sign_title"
>
法定代表人姓名
</view>
<view>
<input
type=
"text"
class=
"sign_input"
v-model=
"params.legal_name"
>
</view>
<view
class=
"sign_title"
>
法定代表人身份证号
</view>
<view>
<input
type=
"text"
class=
"sign_input"
v-model=
"params.legal_card"
>
</view>
<view
:style=
"
{'margin-top':'40rpx'}">
<view
class=
"apply_title"
>
法人身份证照片
</view>
<view
class=
"apply_desc"
>
请上传法人身份证清晰照片,以便顺利帮您认证
</view>
</view>
<view
class=
"apply_data_item"
>
<view
v-if=
"!params.card_positive"
class=
"apply_upload"
@
click=
"uploadImage('card_positive')"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
身份证 (人像面)
</text>
</view>
<view
v-if=
"params.card_positive"
class=
"apply_upload"
>
<text
class=
"close_icon"
@
click=
"clearParams('card_positive')"
></text>
<image
class=
"preview_img"
:src=
"params.card_positive"
></image>
</view>
<view
v-if=
"!params.card_reverse"
class=
"apply_upload"
@
click=
"uploadImage('card_reverse')"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
身份证 (国徽面)
</text>
</view>
<view
v-if=
"params.card_reverse"
class=
"apply_upload"
>
<text
class=
"close_icon"
@
click=
"clearParams('card_reverse')"
></text>
<image
class=
"preview_img"
:src=
"params.card_reverse"
></image>
</view>
</view>
</view>
<view
class=
"submitBtn"
@
click=
"submit()"
>
提交
</view>
</view>
</
template
>
<
script
>
import
TopBar
from
'@/components/TopBar/TopBar.vue'
export
default
{
data
()
{
return
{
range
:
[
'社会统一信用代码'
,
'组织机构代码'
,
'工商注册号'
],
index
:
0
,
params
:
{
enterprise_type
:
1
,
enterprise_name
:
''
,
organ_type
:
10
,
social_credit_code
:
''
,
legal_name
:
''
,
legal_card
:
''
,
card_positive
:
''
,
card_reverse
:
''
},
title
:
'社会统一信用代码'
,
submitFlag
:
true
}
},
methods
:
{
changeEnterpriseType
(
type
)
{
this
.
params
.
enterprise_type
=
type
;
},
changeCompanyType
(
e
)
{
const
index
=
e
.
target
.
value
;
this
.
index
=
index
;
this
.
title
=
this
.
range
[
index
];
switch
(
index
)
{
case
0
:
this
.
params
.
organ_type
=
11
;
break
;
case
1
:
this
.
params
.
organ_type
=
10
;
break
;
case
2
:
this
.
params
.
organ_type
=
12
;
break
;
}
},
uploadImage
(
key
)
{
uni
.
chooseImage
({
success
:
(
res
)
=>
{
const
tempFilePaths
=
res
.
tempFilePaths
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
filePath
:
tempFilePaths
[
0
],
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
}
});
}
})
},
clearParams
(
key
)
{
this
.
params
[
key
]
=
''
;
},
submit
()
{
if
(
!
this
.
submitFlag
)
return
console
.
log
(
this
.
params
)
if
(
!
this
.
params
.
enterprise_name
)
{
uni
.
showToast
({
title
:
'请填写企业名称'
,
icon
:
'none'
});
return
}
if
(
!
this
.
params
.
social_credit_code
)
{
uni
.
showToast
({
title
:
`请填写
${
this
.
title
}
`
,
icon
:
'none'
});
return
}
if
(
!
this
.
params
.
legal_name
)
{
uni
.
showToast
({
title
:
'请填写法人姓名'
,
icon
:
'none'
});
return
}
if
(
this
.
params
.
legal_card
.
length
!==
18
&&
this
.
params
.
legal_card
.
length
!==
15
)
{
uni
.
showToast
({
title
:
'请填写正确的法人身份证号'
,
icon
:
'none'
});
return
}
if
(
!
this
.
params
.
card_positive
)
{
uni
.
showToast
({
title
:
'请上传法人身份证正面'
,
icon
:
'none'
});
return
}
if
(
!
this
.
params
.
card_reverse
)
{
uni
.
showToast
({
title
:
'请上传法人身份证反面'
,
icon
:
'none'
});
return
}
this
.
submitFlag
=
false
;
uni
.
request
({
url
:
'/uni/api/certification/AddRealnameAuth'
,
data
:
this
.
params
,
method
:
'POST'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
uni
.
navigateTo
({
url
:
'/pages/apply/applypage1'
});
}
else
{
this
.
submitFlag
=
true
;
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
data
.
message
})
}
}
})
}
},
components
:
{
TopBar
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.cer_content {
background: #fff;
padding-top: 80rpx;
.apply_title {
font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
line-height: 44rpx;
color: #212121;
}
.apply_desc {
font-size:24rpx;
line-height: 34rpx;
color: #979797;
margin-top: 8rpx;
}
.apply_data_content {
background: #fff;
padding: 0 36rpx;
box-sizing: border-box;
width: 100%;
.apply_data_item {
display: flex;
justify-content: space-between;
.apply_upload {
margin-top: 40rpx;
width: 328rpx;
height: 200rpx;
background: rgba(248,248,248,1);
border-radius: 16rpx;
position: relative;
.icons {
width: 36rpx;
height: 36rpx;
color: #AEAEAE;
display: block;
margin: 72rpx auto 10rpx;
}
.upload_font {
font-size: 24rpx;
color: #AEAEAE;
display: block;
text-align: center;
}
.preview_img {
width: 100%;
height: 100%;
}
.close_icon {
width: 28rpx;
height: 28rpx;
position: absolute;
top: -14rpx;
right: -14rpx;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAYFBMVEUhISFVSRlWSRlpWBZxXxWfgw6jhg30xAH38Ob38ef38ej49O369vH69vL7+PT8+/n+/v3+/v7/zQD/zQL/1Cb/2T7/4GT/43H/43L/54f/88P/9Mj/+eX//ff//v7///+7HAjXAAAA3ElEQVQoz4XSWRKDIAwAUKFW4tIqQS2uvf8tK4iAojZ/5DFMEhJ9byLyD9M4TufYy1ogilr2AQ4N2miGHc6dQC9ENzucWzxEO1vsMIhuw0GEKAaDupYkZmuaxYmuasVe5+KIaGUkinWi1yjRJJUyai6h1FijU2dYK5y2cpQSayimBUdb4aLOEMc/yP1n6eFZ7hVEGSO7gkrXCmW2I9NKYYdAtyE87BAyHozvaccH75vBQ1pdfxlAzi8/GwBel2sCSvnFgimEvHKr+fFWUyOkb3621GAiK0q+XOA+/gCtlj2I+YoKDQAAAABJRU5ErkJggg==') no-repeat;
background-size: 100% 100%;
z-index: 10;
}
}
}
}
.busi_type {
width: 180rpx;
height: 60rpx;
line-height: 60rpx;
display: inline-block;
margin: 20rpx 36rpx 0 0;
font-size: 28rpx;
text-align: center;
border-radius: 30rpx;
background: #ececec;
color: #212121;
}
.busi_type.act {
background: #FAC341;
color: #fff;
}
.sign_title {
color: #464646;
height:40rpx;
font-size:28rpx;
margin-top: 32rpx;
}
.sign_input {
width:100%;
height:72rpx;
background:rgba(248,248,248,1);
border-radius:16rpx;
margin-top: 20rpx;
line-height: 72rpx;
padding: 0 20rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #212121;
}
.selector {
background: #f8f8f8;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
margin-top: 40rpx;
border-radius: 16rpx;
padding: 0 20rpx;
position: relative;
}
.icon {
position: absolute;
right: 20rpx;
top: 0;
}
.submitBtn {
width: 678rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
text-align: center;
background-color: #FFCD00;
border-radius: 16rpx;
margin: 36rpx auto;
}
}
</
style
>
pages/detail/detail.vue
View file @
55747b98
...
...
@@ -95,7 +95,7 @@
},
methods
:
{
goBack
()
{
history
.
back
()
this
.
$backup
();
},
getData
(
params
)
{
uni
.
request
({
...
...
pages/financial/financialstage.vue
View file @
55747b98
...
...
@@ -2,9 +2,9 @@
<view
class=
"fin_content"
>
<SearchBar
:isLogin=
"isLogin"
/>
<view
class=
"tab_bar"
>
<text
@
click=
"
jumpPhpPage(
)"
>
首页
</text>
<text
@
click=
"
$jump('/pages/home/home'
)"
>
首页
</text>
<!--
<text
@
click=
"jumpPhpPage('app=promotion')"
>
精彩活动
</text>
-->
<text>
<text
@
click=
"$jump('/pages/index/index')"
>
<i
class=
"credit_icon"
></i>
谛宝白条
</text>
...
...
@@ -30,7 +30,7 @@
<view
class=
"fin_goods_item"
@
click=
"jumpDetail(vo.equipment_id)"
>
<image
:src=
"vo.img_url"
></image>
<text
class=
"fin_goods_name"
>
{{
vo
.
equipment_name
}}
</text>
<text
class=
"fin_goods_price"
>
¥
{{
vo
.
remaining_payment
}}
</text>
<text
class=
"fin_goods_price"
>
<text
v-if=
"isLogin"
>
¥
</text>
{{
isLogin
?
vo
.
equipment_price
:
'登录显示价格'
}}
</text>
</view>
</view>
</swiper-item>
...
...
@@ -48,14 +48,14 @@
<i></i>
</view>
<view
class=
"fin_rec_goods"
>
<view
class=
"fin_rec_goods_item"
v-for=
"(val, index) in EquipmentRecommendList"
:key=
"index"
>
<view
class=
"fin_rec_goods_item"
v-for=
"(val, index) in EquipmentRecommendList"
:key=
"index"
@
click=
"jumpDetail(val.equipment_id)"
>
<image
:src=
"val.img_url"
></image>
<i
class=
"fin_rec_label fin_rec_label1"
>
限时
</i>
<i
class=
"fin_rec_label fin_rec_label2"
>
免息
</i>
<text
class=
"fin_rec_goodsname"
>
{{
val
.
equipment_name
}}
</text>
<text
class=
"fin_rec_goodssubname"
>
限量版宝璐天然粮
</text>
<text
class=
"fin_rec_goodprice"
>
<text
>
¥
</text>
{{
val
.
remaining_payment
}}
<text
v-if=
"isLogin"
>
¥
</text>
{{
isLogin
?
val
.
equipment_price
:
'登录显示价格'
}}
</text>
<text
class=
"fin_rec_goodssubname"
>
{{
val
.
periods_num
}}
期免息
</text>
</view>
...
...
@@ -114,6 +114,11 @@
uni
.
navigateTo
({
url
:
`/pages/installment/installmentinfo?id=
${
id
}
`
,
});
},
navigate
(
url
)
{
uni
.
navigateTo
({
url
:
url
})
}
},
components
:
{
...
...
@@ -199,7 +204,7 @@
box-shadow:0px 4px 16px 0px rgba(0,0,0,0.04);
width: 702rpx;
margin: 36rpx auto 0;
height: 580rpx;
max-
height: 580rpx;
padding: 0 46rpx;
box-sizing: border-box;
.fin_swiper_item {
...
...
pages/index/index.vue
View file @
55747b98
...
...
@@ -20,7 +20,7 @@
<i
class=
"credit_icon"
></i>
谛宝白条
</text>
<
!--
<text
:class=
"
{act: tabIndex === 4}">采购分期
</text>
--
>
<
text
:class=
"
{act: tabIndex === 4}" @cliick="$jump('/pages/financial/financialstage')">采购分期
</text
>
</view>
</view>
<view
class=
"backimg"
>
...
...
pages/installment/installmentinfo.vue
View file @
55747b98
...
...
@@ -16,8 +16,8 @@
<view
class=
"goods_info"
>
<view
class=
"goods_info_flex"
>
<view>
<text
class=
"symbol"
>
¥
</text>
<text
class=
"goods_price"
>
{{
e_info
.
equipment_price
}}
</text>
<text
class=
"symbol"
v-if=
"isLogin"
>
¥
</text>
<text
class=
"goods_price"
>
{{
isLogin
?
e_info
.
equipment_price
:
'登录显示价格'
}}
</text>
<text
class=
"goods_label"
>
分期购
</text>
</view>
<text
class=
"sales_num"
>
已售出
{{
data
.
EquipmentInfo
.
sales
}}
件
</text>
...
...
@@ -91,7 +91,7 @@
<view
class=
"shop_goods_item"
v-for=
"(val, index) in data.EquipmentList"
:key=
"index"
>
<image
:src=
"val.img_url"
></image>
<view
class=
"shop_goods_name"
>
{{
val
.
equipment_name
}}
</view>
<view
class=
"shop_goods_price"
>
¥
{{
val
.
equipment_price
}}
</view>
<view
class=
"shop_goods_price"
>
<text
v-if=
"isLogin"
>
¥
</text>
{{
isLogin
?
val
.
equipment_price
:
'登录显示价格'
}}
</view>
</view>
</view>
<view
class=
"equipment_detail"
v-if=
"equipment_detail"
>
...
...
@@ -180,7 +180,8 @@
periodTab
:
0
,
isLogin
:
0
,
contract_no
:
''
,
equipment_id
:
''
equipment_id
:
''
,
is_auth
:
'0'
}
},
onLoad
(
option
)
{
...
...
@@ -189,6 +190,16 @@
},
methods
:
{
open
()
{
if
(
!
this
.
isLogin
)
{
uni
.
showToast
({
title
:
'请登录'
,
icon
:
'none'
});
setTimeout
(()
=>
{
this
.
$jump
(
`
${
php
}
app=member&act=login`
)
},
2000
)
return
}
this
.
$refs
.
popup
.
open
()
},
close
()
{
...
...
@@ -211,6 +222,7 @@
this
.
equipment_detail
=
res
.
data
.
data
.
EquipmentInfo
.
equipment_details
.
replace
(
/\<img/g
,
`<image style="max-width: 100%;width: auto !important;height: auto !important"`
);
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
contract_no
=
res
.
data
.
data
.
contract_no
;
this
.
is_auth
=
res
.
data
.
data
.
is_auth
;
}
});
},
...
...
@@ -223,7 +235,7 @@
window
.
location
.
href
=
link
;
},
backup
()
{
uni
.
navigateBack
();
this
.
$backup
();
},
buy_now
()
{
const
data
=
{
...
...
@@ -231,6 +243,7 @@
equipment_id
:
this
.
equipment_id
,
property_id
:
this
.
e_info
.
property_id
}
if
(
this
.
is_auth
===
'1'
)
{
uni
.
setStorage
({
key
:
'installment'
,
data
:
data
,
...
...
@@ -240,7 +253,17 @@
});
}
});
}
else
{
uni
.
setStorage
({
key
:
'installment'
,
data
:
data
,
success
:
()
=>
{
uni
.
navigateTo
({
url
:
'/pages/certification/certification'
});
}
});
}
},
collectGoods
(
id
,
type
)
{
uni
.
request
({
...
...
pages/refuse/refuse.vue
View file @
55747b98
...
...
@@ -3,20 +3,21 @@
<TopBar
title=
"驳回原因"
/>
<view
class=
"refuse_flex"
>
<view
class=
"flex"
>
<image
class=
"refuse_img"
src=
"https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190424/goods/5cc03cef241dc.jpeg?x-oss-process=image/resize,m_lfit,w_300,h_300/auto-orient,0/quality,Q_85/format,jp
g"
></image>
<image
class=
"refuse_img"
:src=
"data.default_image || $noGoodsIm
g"
></image>
<view
class=
"dlb dlb_box"
>
<view
class=
"refuse_goods_name"
>
采购分期 l 精灵DR
</view>
<view
class=
"refuse_goods_price"
>
¥
1,234,800.0
</view>
<view
class=
"refuse_goods_name"
>
{{
data
.
equipment_name
}}
</view>
<view
class=
"refuse_goods_price"
>
¥
{{
data
.
price
}}
</view>
</view>
</view>
<
text
class=
"refuse_refund"
>
退定金
</text
>
<
!--
<text
class=
"refuse_refund"
>
退定金
</text>
--
>
</view>
<view
class=
"refuse_view"
>
<view
class=
"title"
>
还款异常
</view>
<view
class=
"refuse_content"
>
尊敬的用户,您好!您本次的采购分期申请
由于资质信息不准确,被驳回,请更换您的如下资质
:
<view
class=
"title"
>
已驳回
</view>
<view
class=
"refuse_content"
>
尊敬的用户,您好!您本次的采购分期申请
已被驳回,定金已退还至您的余额,驳回原因如下
:
</view>
<view
class=
"refuse_item"
>
1:营业执照
</view>
<view
class=
"refuse_item"
>
{{
data
.
dismiss_reason
}}
</view>
</view>
<view
class=
"reupload"
@
click=
"reupload()"
>
重新上传资质
</view>
</view>
</
template
>
...
...
@@ -25,7 +26,34 @@
export
default
{
data
()
{
return
{
data
:
{
contract_no
:
''
,
default_image
:
''
,
dismiss_reason
:
''
,
equipment_name
:
''
,
price
:
''
}
}
},
onLoad
(
option
)
{
uni
.
request
({
url
:
`/uni/api/userqualification/GetDismissReason/
${
option
.
apply_id
}
`
,
method
:
'GET'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
this
.
data
=
{
...
this
.
data
,
...
res
.
data
.
data
[
0
]
}
}
}
});
},
methods
:
{
reupload
()
{
uni
.
navigateTo
({
url
:
`/pages/apply/applypage1?contract_no=
${
this
.
data
.
contract_no
}
`
})
}
},
components
:
{
...
...
@@ -104,4 +132,14 @@
font-size: 28rpx;
}
}
.reupload {
width: 238rpx;
height: 68rpx;
text-align: center;
line-height: 68rpx;
border-radius: 12rpx;
background-color: #FFCD00;
margin: 40rpx auto;
font-size: 28rpx;
}
</
style
>
pages/searchhistory/searchhistory.vue
View file @
55747b98
...
...
@@ -99,7 +99,7 @@
},
methods
:
{
goBack
()
{
history
.
back
();
this
.
$backup
();
},
handleIconSearch
(){
// #ifndef APP-PLUS
...
...
static/iconfont.css
View file @
55747b98
@font-face
{
font-family
:
"eosfont"
;
src
:
url('https://at.alicdn.com/t/font_1682539_
n5w0owl8p69
.ttf')
format
(
'truetype'
);
src
:
url('https://at.alicdn.com/t/font_1682539_
q13x2nw5kqc
.ttf')
format
(
'truetype'
);
}
.eosfont
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment