日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.3 KiB

import { wxRequestPost } from "@utils/promise-wx-api";
import { cookRichContent } from "@utils/tools";
const app = getApp();
// pages/vocal/detail.js
Component({
/**
*
*/
properties: {},
/**
*
*/
data: {
//iniLoaded: false,
id: "",
detailInfo: {},
},
/**
*
*/
methods: {
async onLoad(options) {
// const { iniLoaded } = this.data;
// const $loading = this.selectComponent("#loading");
// if (!iniLoaded) {
// $loading.show();
// }
this.setData({
id: options.id,
});
await this.getDetail();
},
// 初始化访问
async getDetail() {
const { id } = this.data;
const {
data: {
data: { code, data },
},
msg,
} = await wxRequestPost(
"resi/partymember/icpartymemberstyle/detail",
{
id: id,
},
{
// isMock: true,
isQuiet: false,
}
);
if (msg === "success" && code === 0) {
this.setData({
detailInfo: data,
});
}
},
},
});