Procházet zdrojové kódy

1 修改详情掉接口传参。

2 修复我的-联系客服跳转报错。
release/210823_需求对对碰
王饶冀 před 3 roky
rodič
revize
b793adfe28

+ 5
- 1
pages/index/components/listDetails/Details.js Zobrazit soubor

@@ -99,6 +99,7 @@ Page({
listDetail.createdOn = listDetail.createdOn.replaceAll('/', '-');
if (typeof listDetail.type == 'string') {
listDetail.type = listDetail.type.split(',');
// console.log(listDetail.type)
}
this.setData({
currentData: listDetail,
@@ -130,7 +131,7 @@ Page({
this.getListData();
}
}).catch(err => {
console.log(error, 'error appletLogin')
console.log(err, 'error appletLogin')
})
},
// 切换收藏
@@ -176,6 +177,9 @@ Page({
// 获取list数据
getListData() {
let { page, size, type, currentData } = this.data;
if(typeof type == 'object'){
type = type.join(',');
}
$request.get('/businessCommunicationDemand/getDemandByKeywordOrType.action',
{ page, size, type, isInterest: 1, demandId: currentData.businessCommunicationDemandId }
).then(res => {

+ 1
- 1
pages/outLink/outLink.js Zobrazit soubor

@@ -13,7 +13,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let htmlUrl = `${app.mangerUrl}/customerService/dist/mobileClient.html?entryType=1&miniUrl=` + options.url + `&customerId=` + app.globalData.customerId;
let htmlUrl = `${app.mangerUrl}/customerService/dist/mobileClient.html?entryType=1&miniUrl=/pages/myModule/index`+ `&customerId=` + (app.globalData.customerId || "");
// 如果是去关注
if (options.followApplets == "true") {
htmlUrl = "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNDEzNzk5MA==&scene=124#wechat_redirect";

+ 2
- 1
pages/outLink/outLink.wxml Zobrazit soubor

@@ -1,2 +1,3 @@
<!--pages/outLink/outLink.wxml-->
<web-view src="{{htmlUrl}}"></web-view>
<web-view src="{{htmlUrl}}"></web-view>
<!-- {{htmlUrl}} -->

Načítá se…
Zrušit
Uložit