Commit 10fcbcf7 authored by 俞嘉婷's avatar 俞嘉婷

feat: 活动列表接口 传channel和city参数

parent 8a3fa3d1
...@@ -32,6 +32,8 @@ ComponentWithStore({ ...@@ -32,6 +32,8 @@ ComponentWithStore({
methods: { methods: {
onShow() { onShow() {
this.updateHomeInfo(); this.updateHomeInfo();
const {channel, city} = this.options || {};
store.paramsObj = {channel, city};
}, },
getPhoneNumber(e: any) { getPhoneNumber(e: any) {
console.log(e.detail) console.log(e.detail)
......
...@@ -5,6 +5,13 @@ import { API_PATH } from "../utils/config"; ...@@ -5,6 +5,13 @@ import { API_PATH } from "../utils/config";
class Store { class Store {
paramsObj = {
longitude: 0,
latitude: 0,
channel: '',
city: ''
}
homeInfo = { homeInfo = {
nickname: '', nickname: '',
avatar: "", avatar: "",
...@@ -48,6 +55,10 @@ class Store { ...@@ -48,6 +55,10 @@ class Store {
// }); // });
const { success, data } = await request({ const { success, data } = await request({
url: API_PATH.activity, url: API_PATH.activity,
data: {
channel: this.paramsObj.channel,
city: this.paramsObj.city,
},
}); });
if (!success) return; if (!success) return;
......
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