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
2aaddc54
Commit
2aaddc54
authored
Apr 22, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
9a188fe4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
11 deletions
+25
-11
manifest.json
manifest.json
+2
-2
checkstand.vue
pages/checkstand/checkstand.vue
+1
-1
signcontract.vue
pages/signcontract/signcontract.vue
+12
-7
web.vue
pages/web/web.vue
+10
-1
No files found.
manifest.json
View file @
2aaddc54
...
...
@@ -2,7 +2,7 @@
"name"
:
"shop_mobile_uni"
,
"appid"
:
"__UNI__F904656"
,
"description"
:
""
,
"versionName"
:
"1.0.
9
"
,
"versionName"
:
"1.0.
11
"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"app-plus"
:
{
...
...
@@ -51,7 +51,7 @@
"mode"
:
"history"
,
"base"
:
"/uni"
},
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
test/1.0.9
/"
,
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
mirror/1.0.11
/"
,
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
...
...
pages/checkstand/checkstand.vue
View file @
2aaddc54
...
...
@@ -116,7 +116,7 @@
const
{
origin
}
=
location
;
const
install
=
uni
.
getStorageSync
(
'installment'
);
// 清除存储合同信息
uni
.
removeStorageSync
(
'temporary'
);
//
uni.removeStorageSync('temporary');
const
{
contract_no
,
equipment_id
,
property_id
}
=
install
;
if
(
!
this
.
order_price
||
!
contract_no
){
uni
.
showToast
({
...
...
pages/signcontract/signcontract.vue
View file @
2aaddc54
...
...
@@ -79,10 +79,10 @@
this
.
is_eidt
=
true
;
}
}
else
{
const
temporary
=
uni
.
getStorageSync
(
'temporary'
);
if
(
temporary
)
{
this
.
data
=
JSON
.
parse
(
temporary
);
}
//
const temporary = uni.getStorageSync('temporary');
//
if (temporary) {
//
this.data = JSON.parse(temporary);
//
}
}
uni
.
request
({
url
:
`/uni/api/signcontract/GetContractField?equipment_id=
${
equipment_id
}
`
,
...
...
@@ -115,7 +115,7 @@
}
const
data
=
this
.
getData
();
// 临时存储合同信息
uni
.
setStorageSync
(
'temporary'
,
JSON
.
stringify
(
data
));
//
uni.setStorageSync('temporary', JSON.stringify(data));
const
install
=
uni
.
getStorageSync
(
'installment'
);
const
{
contract_no
,
equipment_id
,
property_id
}
=
install
;
const
url
=
this
.
is_eidt
?
'/uni/api/signcontract/EditContract'
:
'/uni/api/signcontract/AddContract'
;
...
...
@@ -154,7 +154,7 @@
const
data
=
this
.
getData
();
const
install
=
uni
.
getStorageSync
(
'installment'
);
// 临时存储合同信息
uni
.
setStorageSync
(
'temporary'
,
JSON
.
stringify
(
data
));
//
uni.setStorageSync('temporary', JSON.stringify(data));
const
{
contract_no
,
equipment_id
,
property_id
}
=
install
;
uni
.
showLoading
({
title
:
'获取合同中...'
,
...
...
@@ -173,7 +173,11 @@
const
{
data
}
=
res
;
uni
.
hideLoading
();
if
(
data
.
code
==
0
){
this
.
$jump
(
data
.
data
.
viewUrl
);
const
url
=
data
.
data
.
viewUrl
;
// this.$jump(data.data.viewUrl);
uni
.
navigateTo
({
url
:
`/pages/web/web?contract_url=
${
url
}
`
});
}
else
{
uni
.
showToast
({
icon
:
'none'
,
...
...
@@ -208,6 +212,7 @@
.sign_content {
background: #fff;
padding: 80rpx 36rpx 0;
padding-bottom: 100rpx;
.apply_title {
font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC;
...
...
pages/web/web.vue
View file @
2aaddc54
<
template
>
<view>
<TopBar
title=
"分期合同"
/>
<web-view
:src=
"url"
></web-view>
</view>
</
template
>
<
script
>
import
{
parse
}
from
'querystring'
;
import
TopBar
from
'@/components/TopBar/TopBar.vue'
;
export
default
{
data
()
{
return
{
...
...
@@ -12,9 +15,15 @@
}
},
mounted
()
{
const
obj
=
window
.
location
.
href
.
split
(
'?'
)[
1
];
const
{
contract_url
}
=
parse
(
obj
);
if
(
contract_url
){
this
.
url
=
contract_url
;
}
else
{
this
.
url
=
this
.
$store
.
state
.
webviewUrl
;
}
}
}
</
script
>
<
style
>
...
...
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