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
9a188fe4
Commit
9a188fe4
authored
Apr 22, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
af6cb2e2
b28ad368
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
host.js
common/host.js
+4
-4
checkstand.vue
pages/checkstand/checkstand.vue
+2
-0
signcontract.vue
pages/signcontract/signcontract.vue
+9
-0
No files found.
common/host.js
View file @
9a188fe4
// php测试环境
export
const
php
=
'http://test.pet-dbc.cn/mobile/index.php?'
//
export const php = 'http://test.pet-dbc.cn/mobile/index.php?'
// php镜像
//
export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?'
export
const
php
=
'https://jingxiang.pet-dbc.cn/mobile/index.php?'
// php正式环境
// export const php = 'https://shop.pet-dbc.cn/mobile/index.php?'
// go测试环境
export
const
go
=
'https://tm.pet-dbc.cn'
//
export const go = 'https://tm.pet-dbc.cn'
// go镜像环境
//
export const go = 'https://jxm.pet-dbc.cn'
export
const
go
=
'https://jxm.pet-dbc.cn'
// go正式环境
// export const go = 'https://m.pet-dbc.cn';
\ No newline at end of file
pages/checkstand/checkstand.vue
View file @
9a188fe4
...
...
@@ -115,6 +115,8 @@
handleSubmit
(){
const
{
origin
}
=
location
;
const
install
=
uni
.
getStorageSync
(
'installment'
);
// 清除存储合同信息
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 @
9a188fe4
...
...
@@ -78,6 +78,11 @@
this
.
data
=
JSON
.
parse
(
contract_content
);
this
.
is_eidt
=
true
;
}
}
else
{
const
temporary
=
uni
.
getStorageSync
(
'temporary'
);
if
(
temporary
)
{
this
.
data
=
JSON
.
parse
(
temporary
);
}
}
uni
.
request
({
url
:
`/uni/api/signcontract/GetContractField?equipment_id=
${
equipment_id
}
`
,
...
...
@@ -109,6 +114,8 @@
return
;
}
const
data
=
this
.
getData
();
// 临时存储合同信息
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'
;
...
...
@@ -146,6 +153,8 @@
previewContract
(){
const
data
=
this
.
getData
();
const
install
=
uni
.
getStorageSync
(
'installment'
);
// 临时存储合同信息
uni
.
setStorageSync
(
'temporary'
,
JSON
.
stringify
(
data
));
const
{
contract_no
,
equipment_id
,
property_id
}
=
install
;
uni
.
showLoading
({
title
:
'获取合同中...'
,
...
...
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