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

线索查询详情界面+联调

parent 1f445b2b
...@@ -100,22 +100,28 @@ ...@@ -100,22 +100,28 @@
"port": "8080", "port": "8080",
"disableHostCheck": true, "disableHostCheck": true,
"proxy": { "proxy": {
// "": {
// "target": "http://221.10.127.60:5000",
// "changeOrigin": true
// }
"/sap": { "/sap": {
// "target": "http://10.0.135.139/wlySap", "target": "http://221.10.127.60:5000/wlySap",
"target": "http://10.0.134.182:8000", // "target": "http://10.0.134.182:8000",
"changeOrigin": true "changeOrigin": true
}, },
"/crm-app": { "/crm-app": {
"target": "http://10.0.135.61", // "target": "http://10.0.135.61",
// "target": "http://10.0.135.139", // "target": "http://10.0.135.139",
// "target": "http://221.10.127.60:5000", "target": "http://221.10.127.60:5000",
"changeOrigin": true "changeOrigin": true
}, },
"/wmdpwebservices": { "/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 "changeOrigin": true
}, },
"/adapter": { "/adapter": {
// "target": "http://221.10.127.60:5000/cyj",
"target": "http://api.c0331.dev.guanyingyun.com", "target": "http://api.c0331.dev.guanyingyun.com",
"changeOrigin": true "changeOrigin": true
} }
......
...@@ -742,6 +742,22 @@ ...@@ -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", "path": "pages/breakwords-market/breakwords-market",
"style": { "style": {
......
...@@ -27,16 +27,18 @@ ...@@ -27,16 +27,18 @@
<view class="icon-line"></view> <view class="icon-line"></view>
</view> </view>
<view class="search-input-block"> <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" <input class="search-input" type="text" placeholder-class="uni-combox__input-plac"
@blur="getClueList" v-model="condition.productId" placeholder="请输入产品ID" /> @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> </view>
<view class="search-block" v-if="activeTabIndex===1"> <view class="search-block" v-if="activeTabIndex===1">
<view class="search-input-block"> <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" <input class="search-input" type="text" placeholder-class="uni-combox__input-plac"
@blur="getClueList" v-model="condition.pwd" placeholder="请输入口令进行查询" /> @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> </view>
</view> </view>
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
<!-- <loading-indicator></loading-indicator> --> <!-- <loading-indicator></loading-indicator> -->
</refresh> </refresh>
<cell v-for="(item,index) in lists" :key="index"> <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"> <view v-if="index===0" class="item-block item-block-sum">
<text class="item-block-label">共 {{loadParams.total}} 项</text> <text class="item-block-label">共 {{loadParams.total}} 项</text>
</view> </view>
...@@ -278,6 +280,11 @@ ...@@ -278,6 +280,11 @@
checkTab(i) { checkTab(i) {
this.activeTabIndex = i this.activeTabIndex = i
this.getClueList() this.getClueList()
},
checkDetal(item) {
uni.navigateTo({
url: `/pages/breakwords-clue-detail/breakwords-clue-detail?id=${item.id}`
})
} }
} }
} }
......
...@@ -136,7 +136,7 @@ class Request { ...@@ -136,7 +136,7 @@ class Request {
constructor() { constructor() {
this.config = { this.config = {
baseUrl: 'http://10.0.135.61', // 请求的根域名 baseUrl: 'http://221.10.127.60:5000', // 请求的根域名
// 默认的请求头 // 默认的请求头
header: {}, header: {},
method: 'POST', method: 'POST',
...@@ -157,7 +157,7 @@ class Request { ...@@ -157,7 +157,7 @@ class Request {
this.interceptor = { this.interceptor = {
// 请求前的拦截 // 请求前的拦截
request: (config) => { request: (config) => {
// config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`; config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`;
try { try {
if (config.url.indexOf('crm-app/login') === - if (config.url.indexOf('crm-app/login') === -
1 && 1 &&
...@@ -165,19 +165,25 @@ class Request { ...@@ -165,19 +165,25 @@ class Request {
config.header['X-Auth-Token'] = store config.header['X-Auth-Token'] = store
.state.vuex_token .state.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" config.header['Content-Type'] = "application/json; charset=utf-8"
// config.header['Content-Type'] = "application/x-www-form-urlencoded" }
if (config.url.indexOf('crm-app') !== -1) { 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) { } else if (config.url.indexOf('adapter') !== -1) {
config.baseUrl = 'http://api.c0331.dev.guanyingyun.com' config.baseUrl = 'http://api.c0331.dev.guanyingyun.com'
// config.baseUrl = 'http://221.10.127.60:5000/cyj'
} else if (config.url.indexOf('wmdpwebservices') !== -1) { } else if (config.url.indexOf('wmdpwebservices') !== -1) {
config.baseUrl = 'https://10.0.134.182:9002' config.baseUrl = 'https://10.0.134.182:9002'
// config.baseUrl = 'http://221.10.127.60:5000/sczx'
// config.baseUrl = '' // config.baseUrl = ''
} else { } else {
// config.baseUrl = 'http://10.0.135.139/wlySap' config.baseUrl = 'http://221.10.127.60:5000/wlySap'
config.baseUrl = 'http://10.0.134.182:8000'
} }
} catch (e) { } catch (e) {
console.log('error', e) console.log('error', e)
......
...@@ -70,6 +70,16 @@ export async function apiGetClueInfoPwdList(params) { ...@@ -70,6 +70,16 @@ export async function apiGetClueInfoPwdList(params) {
return res 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 账户名 * @param name 账户名
......
...@@ -10,7 +10,7 @@ const install = (Vue, vm) => { ...@@ -10,7 +10,7 @@ const install = (Vue, vm) => {
// 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data // 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data
// 设置为true后,就需要在this.$u.http.interceptor.response进行多一次的判断,请打印查看具体值 // 设置为true后,就需要在this.$u.http.interceptor.response进行多一次的判断,请打印查看具体值
// originalData: true, // originalData: true,
// 设置自定义头部content-type // 设置自定义头部Content-Type
header: { header: {
"Content-Type": "application/json; charset=utf-8", "Content-Type": "application/json; charset=utf-8",
} }
...@@ -24,6 +24,13 @@ const install = (Vue, vm) => { ...@@ -24,6 +24,13 @@ const install = (Vue, vm) => {
.vuex_token; .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) { // if (config.url.indexOf('crm-app') !== -1) {
// config.baseUrl = 'http://10.0.135.139' // config.baseUrl = 'http://10.0.135.139'
// } else { // } else {
......
...@@ -17,7 +17,7 @@ export async function apiFindUnreadMsg(params) { ...@@ -17,7 +17,7 @@ export async function apiFindUnreadMsg(params) {
*/ */
export async function apiEditStatus(params) { export async function apiEditStatus(params) {
const res = await apiHelper.post('/crm-app//message/editStatus', 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 return res
} }
......
...@@ -7,7 +7,7 @@ import apiHelper from './api.helper.js' ...@@ -7,7 +7,7 @@ import apiHelper from './api.helper.js'
*/ */
export async function apiLogin(params) { export async function apiLogin(params) {
const res = await apiHelper.post('/crm-app/login', 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 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