Commit 8791c116 authored by chuan.liu's avatar chuan.liu

线索查询详情界面+联调

parent 1f445b2b
......@@ -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
}
......
......@@ -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": {
......
......@@ -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}`
})
}
}
}
......
......@@ -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)
......
......@@ -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 账户名
......
......@@ -10,7 +10,7 @@ const install = (Vue, vm) => {
// 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data
// 设置为true后,就需要在this.$u.http.interceptor.response进行多一次的判断,请打印查看具体值
// originalData: true,
// 设置自定义头部content-type
// 设置自定义头部Content-Type
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 {
......
......@@ -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-type': "application/x-www-form-urlencoded"
'Content-Type': "application/x-www-form-urlencoded"
})
return res
}
......
......@@ -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-type': "application/x-www-form-urlencoded"
'Content-Type': "application/x-www-form-urlencoded"
})
return res
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment