wx.request({
url: 'https://huyahaha.com/xxxx/xxx',
data: {
pid: _this.data.info.id,
nickname: _this.data.user_nickname,
avatar: _this.data.user_avatar,
saytext: _this.data.inputValue,
openid: _this.data.user_openid
},
/** 注意header要修改, 否则无效 */
header: {
'content-type': 'application/x-www-form-urlencoded'
},
method: 'POST',
success: function(res) {
if (res.data.errcode == 0) {
wx.showToast({
title: res.data.errmsg,
icon: 'success',
duration: 2000
}) _this.setData({
inputValue: ''
});
/**重新加载评论列表*/
_this.loadComment(_this.data.info.id);
} else {
wx.showModal({
title: '提示',
content: res.data.errmsg,
showCancel: false,
confirmText: '确定'
}) return;
}
}
})
01-19
547
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
京东医疗器械分类汇总
09-21
181
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-18
2828
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-18
709
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-18
863
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-13
1832
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-25
1855
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
PHP根据经纬度得到城市
11-25
1182
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交