ts_aimz/pages/treaty/privacy/privacy.js
itgaojian163 7c7d85373d 页面
2025-03-21 18:05:54 +08:00

37 lines
846 B
JavaScript

// pages/treaty/service/service.js
import CommonService from "../../../net/api/commonApi"
Page({
/**
* 页面的初始数据
*/
data: {
content: "",
title: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getDeal()
},
//获取协议内容
getDeal() {
var _self = this
CommonService.doGetPrivacy("privacy")
.then(res => {
if (res.content) {
_self.setData({
content: res.content,
title: res.title
})
wx.setNavigationBarTitle({
title: res.title,
})
}
}, err => {
console.log(err)
})
}
})