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

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

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