statusConfirm.js 648 Bytes
import urlAlias from '../url';
import request from '../request';

const {
  statusConfirm
} = urlAlias;

// const openid = uni.getStorageSync('openid');
const actions = {
  confirm({ commit }, param) {
      request({
        url: statusConfirm,
        data: param|| { },
			success: (res) => {
			console.log(res.data);
			if(res.data.code === 1){
				uni.showToast({
					title:'已确认',
					mask:true,
					duration:1500,
					icon:'success'
				})
			}else{
				uni-uni.showToast({
					title: '服务器错误,确认失败!',
					mask:true
				});
			}
		},
    })
  }
}

export default {
  namespaced: true,
  actions,
}