Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b6a2235b
authored
Oct 08, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
aeada657
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
12 deletions
app.json
pages/form/bj/index.js
pages/form/good/index.js
pages/form/xj/index.js
pages/list/qd/index.js
pages/tab/home/home.js
pages/tab/home/home.wxml
pages/tab/price/price.js
app.json
View file @
b6a2235b
...
...
@@ -74,8 +74,8 @@
"selectedIconPath"
:
"/res/images/icons/home-icon-act.png"
},
{
"pagePath"
:
"pages/
tab/price/price
"
,
"text"
:
"
询报价
"
,
"pagePath"
:
"pages/
list/qd/index
"
,
"text"
:
"
抢单专区
"
,
"iconPath"
:
"/res/images/icons/price-icon.png"
,
"selectedIconPath"
:
"/res/images/icons/price-icon-act.png"
},
...
...
pages/form/bj/index.js
View file @
b6a2235b
...
...
@@ -58,7 +58,10 @@ Page({
if
(
!
obj
.
day
.
trim
().
length
)
{
tips
(
'请填写货期'
);
return
}
}
else
if
(
obj
.
day
.
trim
().
length
>
6
)
{
tips
(
'货期不能大于6个字符'
);
return
}
}
}
this
.
postData
(
obj
);
...
...
pages/form/good/index.js
View file @
b6a2235b
...
...
@@ -122,7 +122,10 @@ Page({
if
(
!
obj
.
day
.
trim
().
length
)
{
tips
(
'请填写货期'
);
return
}
}
else
if
(
obj
.
day
.
trim
().
length
>
6
)
{
tips
(
'货期不能大于6个字符'
);
return
}
}
}
this
.
postData
(
obj
);
...
...
pages/form/xj/index.js
View file @
b6a2235b
...
...
@@ -55,7 +55,10 @@ Page({
if
(
!
obj
.
day
.
trim
().
length
)
{
tips
(
'请填写货期'
);
return
}
}
else
if
(
obj
.
day
.
trim
().
length
>
6
){
tips
(
'货期不能大于6个字符'
);
return
}
}
}
this
.
postData
(
obj
);
...
...
pages/list/qd/index.js
View file @
b6a2235b
// pages/list/qd/index.js
import
{
getData
getData
,
judgeToken
}
from
'../../../utils/util.js'
;
import
{
apis
...
...
pages/tab/home/home.js
View file @
b6a2235b
...
...
@@ -223,10 +223,17 @@ Page({
}
},
toQd
:
function
()
{
if
(
judgeToken
(
true
))
{
wx
.
navigateTo
({
//
if (judgeToken(true)) {
wx
.
switchTab
({
url
:
"/pages/list/qd/index"
})
// }
},
toPrice
:
function
(){
if
(
judgeToken
(
true
))
{
wx
.
navigateTo
({
url
:
"/pages/tab/price/price"
})
}
}
})
\ No newline at end of file
pages/tab/home/home.wxml
View file @
b6a2235b
...
...
@@ -10,9 +10,9 @@
<image src="/res/images/icons/home-s-1.png" class="img"></image>
<text class="text">发布询价</text>
</view>
<view class="function-item column verCenter" bindtap="to
Qd
">
<view class="function-item column verCenter" bindtap="to
Price
">
<image src="/res/images/icons/home-s-2.png" class="img"></image>
<text class="text">
抢单专区
</text>
<text class="text">
询报价
</text>
</view>
<view class="function-item column verCenter" bindtap="fbGood">
<image src="/res/images/icons/home-s-3.png" class="img"></image>
...
...
pages/tab/price/price.js
View file @
b6a2235b
...
...
@@ -21,9 +21,10 @@ Page({
*/
onLoad
:
function
(
options
)
{
let
me
=
this
;
if
(
judgeToken
(
true
))
{
//
if (judgeToken(true)) {
this
.
getData
();
};
// };
getApp
().
globalData
.
bus
.
off
(
'addXj'
);
getApp
().
globalData
.
bus
.
on
(
'addXj'
,
()
=>
{
if
(
me
.
data
.
tabIndex
==
1
)
{
me
.
setData
({
...
...
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