5.23(优化

This commit is contained in:
Hong
2024-05-23 19:32:11 +08:00
parent 38104940f8
commit 98fc95c11a
8 changed files with 24 additions and 14 deletions

View File

@@ -1,10 +1,10 @@
// 应用全局配置
module.exports = {
//正式
baseUrl: 'https://cms.diyouzhijia.com/car_app_api',
// baseUrl: 'https://cms.diyouzhijia.com/car_app_api',
TOKENNAME: 'Authori-zation',
//薛磊测试
// baseUrl: 'http://192.168.31.226:8081/car_app_api',
baseUrl: 'http://192.168.31.226:8081/car_app_api',
fileUploadUrl: 'https://cms.diyouzhijia.com/car_app_api/api/front/upload/image',
WebSocketUrl: 'ws://121.199.24.205:9107/lxk/websocket',
WebSocketOpen: false,

View File

@@ -70,7 +70,7 @@
"share" : {
"weixin" : {
"appid" : "wx4aebc21c2e0b4858",
"UniversalLinks" : "https://cms.diyouzhijia.com/universal/apple-app-site-association.txt"
"UniversalLinks" : "https://cms.diyouzhijia.com/universal/apple-app-site-association.txt/"
}
},
"geolocation" : {

View File

@@ -30,7 +30,7 @@
</view>
<view>
<view class="personal-header-name">{{userDetail.nickname}}</view>
<view class="personal-header-introduce">{{userDetail.signature || "这个人很懒,什么都没有留下"}}</view>
<view class="personal-header-introduce">{{userDetail.content || "这个人很懒,什么都没有留下"}}</view>
</view>
</view>
<view class="personal-number">

View File

@@ -37,12 +37,12 @@
// 去活动详情
toMyactivityPages(item) {
// console.log(item,'列表--活动详情');
uni.navigateTo({
url: `/pages/driver/serve/hot_list?type=help&id=${item && item.id}&name=${item && item.name}`
})
// uni.navigateTo({
// url:`/pages/mine/my_activity/detail`
// url: `/pages/driver/serve/hot_list?type=help&id=${item && item.id}&name=${item && item.name}`
// })
uni.navigateTo({
url: `/pages/driver/mine/my_activity/detail?id=${item.productId}&helpGenre=${item.helpType}&activityId=${item.id}`
})
},
}
}

View File

@@ -108,7 +108,7 @@
url: `/pages/driver/serve/coupons/cou_detail?id=${item.id}&helpGenre=${this.helpGenre}&activityId=${this.activityId}`
})
} else {
console.log('detail');
console.log('detail',item.id,this.helpGenre,this.activityId);
uni.navigateTo({
url: `/pages/driver/mine/my_activity/detail?id=${item.id}&helpGenre=${this.helpGenre}&activityId=${this.activityId}`
})

View File

@@ -159,9 +159,15 @@
},
// 去热销列表
toHotPages(type, item) {
uni.navigateTo({
url: `/pages/driver/serve/hot_list?type=${type}&id=${item && item.id}&name=${item && item.name}`
})
if(type=='hot'){
uni.navigateTo({
url: `/pages/driver/serve/hot_list?type=${type}&id=${item && item.id}&name=${item && item.name}`
})
}else{
uni.navigateTo({
url: `/pages/driver/mine/my_activity/detail?id=${item.productId}&helpGenre=${item.helpType}&activityId=${item.id}`
})
}
},
// 活动列表
toMyActivityListPage() {

View File

@@ -320,11 +320,13 @@
},
//请求列表
queryList(page, limit) {
const city = uni.getStorageSync('current_city');
if (this.form.type == 2) {
getInformationList({
page: page,
limit: limit,
powerType: this.powerId
powerType: this.powerId,
city:city
}).then(res => {
this.$refs.paging.complete(res.data.list);
})
@@ -332,7 +334,8 @@
getProductList({
page: page,
limit: limit,
type: this.form.type
type: this.form.type,
city:city
}).then(res => {
console.log(res.data.list);
this.$refs.paging.complete(res.data.list);

View File

@@ -46,6 +46,7 @@ export function getLocationFn() {
longitude: res.longitude
},
success: res1 => {
uni.setStorageSync('current_city',res1.result.address_component.city)
store.dispatch('SetCity', res1.result.address_component.city)
},
fail: res => {},