Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
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
刘川
wly-APP
Commits
8791c116
Commit
8791c116
authored
Aug 01, 2022
by
chuan.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线索查询详情界面+联调
parent
1f445b2b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
176 additions
and
467 deletions
+176
-467
manifest.json
manifest.json
+11
-5
pages.json
pages.json
+16
-0
breakwords-clue-detail.vue
pages/breakwords-clue-detail/breakwords-clue-detail.vue
+106
-449
breakwords-market.nvue
pages/breakwords-market/breakwords-market.nvue
+10
-3
api.helper.js
servers/api.helper.js
+13
-7
breakwords.js
servers/breakwords.js
+10
-0
http.interceptor.js
servers/http.interceptor.js
+8
-1
message.js
servers/message.js
+1
-1
user.js
servers/user.js
+1
-1
No files found.
manifest.json
View file @
8791c116
...
...
@@ -100,22 +100,28 @@
"port"
:
"8080"
,
"disableHostCheck"
:
true
,
"proxy"
:
{
//
""
:
{
//
"target"
:
"http://221.10.127.60:5000"
,
//
"changeOrigin"
:
true
//
}
"/sap"
:
{
//
"target"
:
"http://10.0.135.139
/wlySap"
,
"target"
:
"http://10.0.134.182:8000"
,
"target"
:
"http://221.10.127.60:5000
/wlySap"
,
//
"target"
:
"http://10.0.134.182:8000"
,
"changeOrigin"
:
true
},
"/crm-app"
:
{
"target"
:
"http://10.0.135.61"
,
//
"target"
:
"http://10.0.135.61"
,
//
"target"
:
"http://10.0.135.139"
,
//
"target"
:
"http://221.10.127.60:5000"
,
"target"
:
"http://221.10.127.60:5000"
,
"changeOrigin"
:
true
},
"/wmdpwebservices"
:
{
"target"
:
"https://10.0.134.182:9002"
,
"target"
:
"http://221.10.127.60:5000/sczx"
,
//
"target"
:
"https://10.0.134.182:9002"
,
"changeOrigin"
:
true
},
"/adapter"
:
{
//
"target"
:
"http://221.10.127.60:5000/cyj"
,
"target"
:
"http://api.c0331.dev.guanyingyun.com"
,
"changeOrigin"
:
true
}
...
...
pages.json
View file @
8791c116
...
...
@@ -742,6 +742,22 @@
}
}
},
{
"path"
:
"pages/breakwords-clue-detail/breakwords-clue-detail"
,
"style"
:
{
"app-plus"
:
{
"titleNView"
:
{
"titleAlign"
:
"left"
,
"titleColor"
:
"#333"
,
"titleSize"
:
"17px"
,
"backgroundColor"
:
"transparent"
,
"titleText"
:
"违约线索明细"
,
"autoBackButton"
:
true
},
"bounce"
:
"none"
}
}
},
{
"path"
:
"pages/breakwords-market/breakwords-market"
,
"style"
:
{
...
...
pages/breakwords-clue-detail/breakwords-clue-detail.vue
View file @
8791c116
This diff is collapsed.
Click to expand it.
pages/breakwords-market/breakwords-market.nvue
View file @
8791c116
...
...
@@ -27,16 +27,18 @@
<view class="icon-line"></view>
</view>
<view class="search-input-block">
<image class="icon-search" src="@/static/image/search_b@3x.png" mode=""></image>
<input class="search-input" type="text" placeholder-class="uni-combox__input-plac"
@blur="getClueList" v-model="condition.productId" placeholder="请输入产品ID" />
<image @click="getClueList" class="icon-search" src="@/static/image/search_b@3x.png" mode="">
</image>
</view>
</view>
<view class="search-block" v-if="activeTabIndex===1">
<view class="search-input-block">
<image class="icon-search" src="@/static/image/search_b@3x.png" mode=""></image>
<input class="search-input" type="text" placeholder-class="uni-combox__input-plac"
@blur="getClueList" v-model="condition.pwd" placeholder="请输入口令进行查询" />
<image @click="getClueList" class="icon-search" src="@/static/image/search_b@3x.png" mode="">
</image>
</view>
</view>
</view>
...
...
@@ -47,7 +49,7 @@
<!-- <loading-indicator></loading-indicator> -->
</refresh>
<cell v-for="(item,index) in lists" :key="index">
<view class="scroll-item">
<view class="scroll-item"
@click="checkDetal(item)"
>
<view v-if="index===0" class="item-block item-block-sum">
<text class="item-block-label">共 {{loadParams.total}} 项</text>
</view>
...
...
@@ -278,6 +280,11 @@
checkTab(i) {
this.activeTabIndex = i
this.getClueList()
},
checkDetal(item) {
uni.navigateTo({
url: `/pages/breakwords-clue-detail/breakwords-clue-detail?id=${item.id}`
})
}
}
}
...
...
servers/api.helper.js
View file @
8791c116
...
...
@@ -136,7 +136,7 @@ class Request {
constructor
()
{
this
.
config
=
{
baseUrl
:
'http://
10.0.135.61
'
,
// 请求的根域名
baseUrl
:
'http://
221.10.127.60:5000
'
,
// 请求的根域名
// 默认的请求头
header
:
{},
method
:
'POST'
,
...
...
@@ -157,7 +157,7 @@ class Request {
this
.
interceptor
=
{
// 请求前的拦截
request
:
(
config
)
=>
{
//
config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`;
config
.
header
[
'Authorization'
]
=
`Basic
${
Base64
.
encode
(
'wangpc:LZY888@@'
)}
`
;
try
{
if
(
config
.
url
.
indexOf
(
'crm-app/login'
)
===
-
1
&&
...
...
@@ -165,19 +165,25 @@ class Request {
config
.
header
[
'X-Auth-Token'
]
=
store
.
state
.
vuex_token
}
config
.
header
[
'Content-Type'
]
=
"application/json; charset=utf-8"
// config.header['Content-Type'] = "application/x-www-form-urlencoded"
if
(
config
.
header
[
'Content-Type'
]
&&
config
.
header
[
'Content-Type'
].
indexOf
(
'x-www-form-urlencoded'
)
===
-
1
)
{
config
.
header
[
'Content-Type'
]
=
"application/json; charset=utf-8"
}
if
(
config
.
url
.
indexOf
(
'crm-app'
)
!==
-
1
)
{
config
.
baseUrl
=
'http://10.0.135.61'
// config.baseUrl = 'http://10.0.135.61'
config
.
baseUrl
=
'http://221.10.127.60:5000'
}
else
if
(
config
.
url
.
indexOf
(
'adapter'
)
!==
-
1
)
{
config
.
baseUrl
=
'http://api.c0331.dev.guanyingyun.com'
// config.baseUrl = 'http://221.10.127.60:5000/cyj'
}
else
if
(
config
.
url
.
indexOf
(
'wmdpwebservices'
)
!==
-
1
)
{
config
.
baseUrl
=
'https://10.0.134.182:9002'
// config.baseUrl = 'http://221.10.127.60:5000/sczx'
// config.baseUrl = ''
}
else
{
// config.baseUrl = 'http://10.0.135.139/wlySap'
config
.
baseUrl
=
'http://10.0.134.182:8000'
config
.
baseUrl
=
'http://221.10.127.60:5000/wlySap'
}
}
catch
(
e
)
{
console
.
log
(
'error'
,
e
)
...
...
servers/breakwords.js
View file @
8791c116
...
...
@@ -70,6 +70,16 @@ export async function apiGetClueInfoPwdList(params) {
return
res
}
/**
* 线索详情接口
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiGetClueInfo
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/clue/info'
,
params
)
return
res
}
/**
* 联络函打款信息列表查询
* @param name 账户名
...
...
servers/http.interceptor.js
View file @
8791c116
...
...
@@ -10,7 +10,7 @@ const install = (Vue, vm) => {
// 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data
// 设置为true后,就需要在this.$u.http.interceptor.response进行多一次的判断,请打印查看具体值
// originalData: true,
// 设置自定义头部
content-t
ype
// 设置自定义头部
Content-T
ype
header
:
{
"Content-Type"
:
"application/json; charset=utf-8"
,
}
...
...
@@ -24,6 +24,13 @@ const install = (Vue, vm) => {
.
vuex_token
;
}
if
(
config
.
header
[
'Content-Type'
]
&&
config
.
header
[
'Content-Type'
].
indexOf
(
'x-www-form-urlencoded'
)
===
-
1
)
{
config
.
header
[
'Content-Type'
]
=
"application/json; charset=utf-8"
}
// if (config.url.indexOf('crm-app') !== -1) {
// config.baseUrl = 'http://10.0.135.139'
// } else {
...
...
servers/message.js
View file @
8791c116
...
...
@@ -17,7 +17,7 @@ export async function apiFindUnreadMsg(params) {
*/
export
async
function
apiEditStatus
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/crm-app//message/editStatus'
,
params
,
{
'
content-t
ype'
:
"application/x-www-form-urlencoded"
'
Content-T
ype'
:
"application/x-www-form-urlencoded"
})
return
res
}
...
...
servers/user.js
View file @
8791c116
...
...
@@ -7,7 +7,7 @@ import apiHelper from './api.helper.js'
*/
export
async
function
apiLogin
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/crm-app/login'
,
params
,
{
'
content-t
ype'
:
"application/x-www-form-urlencoded"
'
Content-T
ype'
:
"application/x-www-form-urlencoded"
})
return
res
}
...
...
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