| 12345678910111213141516171819202122232425 |
- import {baseUrl} from "@/common/js/seting.js"
- import {dorequest} from "@/common/js/request.js"
- /** 添加日志
- * {
- json: JSON.stringify({ id: this.properties.shareInfoData.infoData.id}),
- createPin: wx.getStorageSync('userData').id,
- type: '图文分享'
- }
- */
- export function addlog(data,e,callback=null){
- let url=baseUrl+"/index.php/index/Logmanger/addlog";
- dorequest('post',url,data).then(res=>{
- if(callback){
- callback(res)
- }else{
- res = res.data
- if(0==res.code){
- e.$refs.toast.show({
- type: 'error',
- message: res.errmsg
- })
- }
- }
- });
- }
|