@@ -156,9 +156,9 @@
icon:'none',
duration: 2000,
});
- uni.navigateTo({
+ /* uni.navigateTo({
url:'entryReport'
- })
+ }) */
})
}
@@ -80,6 +80,32 @@
this.address=item.name;
},
signin(){
+ uni.showLoading({ });
+ var that=this;
+ this.$http('accompany/SuperAccounts/queryManagerTodaySign', {
+ shopId:this.shopId,
+
+ },'GET').then(res => {
+ if(res.data.today){
+ uni.showModal({
+ title: '提示',
+ content: '是否更新签到位置?',
+ success: function (res) {
+ if (res.confirm) {
+ that.gotoQd()
+ } else if (res.cancel) {
+ console.log('用户点击取消');
+ }
+ });
+ }else{
+ this.gotoQd()
+ })
+ },
+ gotoQd(){
uni.showLoading({ });
this.$http('accompany/SuperAccounts/addSuperSignIn', {
shopId:this.shopId,