diff --git a/pages/bd/mine.vue b/pages/bd/mine.vue
index f893ce3..c6d38f5 100644
--- a/pages/bd/mine.vue
+++ b/pages/bd/mine.vue
@@ -1,4 +1,6 @@
+
+
@@ -27,7 +29,8 @@
-
+
+
{{item.text}}
@@ -73,6 +76,18 @@
+
+
+
+
+
@@ -98,12 +113,13 @@
{
src: require("../../static/img/yy.png"),
text: '邀约',
- url: "/pages/bd/call"
+ url: "/pages/bd/call",
+ isyy: true
},
{
src: require("../../static/img/dyyjl.png"),
text: '代邀约记录',
- url: "/pages/bd/replace"
+ url: "/pages/bd/record?type=call"
}
],
list: [],
@@ -114,7 +130,8 @@
audit_status: 0,
keyword: ""
},
- isEmpty: false
+ isEmpty: false,
+ callshow: false
}
},
onLoad() {
@@ -142,11 +159,21 @@
this.loadList()
}
},
- methods: {
- toUrl(url) {
- uni.navigateTo({
- url: url
- })
+ methods: {
+ toForm(type){
+ uni.navigateTo({
+ url:"/pages/visit/addrecord?iscall=call&type="+type
+ })
+ },
+ toUrl(isyy, url) {
+ if (isyy) {
+ this.callshow = true
+ } else {
+ uni.navigateTo({
+ url: url
+ })
+ }
+
},
toDetail(id) {
uni.navigateTo({
@@ -286,4 +313,21 @@
/deep/ .u-empty {
min-height: 30vh;
}
+
+ /deep/ .u-popup__content {
+ width: 80%;
+ background: #fff;
+ padding: 47rpx;
+ text-align: center;
+
+ }
+
+ .popupVisit>view:first-child{
+ margin-bottom:20rpx
+ }
+ .popupVisit>view button{
+ padding: 0 20rpx;
+ background-color: #044ed7;
+ color:#fff
+ }
diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue
index f8e64e5..2d89a50 100644
--- a/pages/visit/addrecord.vue
+++ b/pages/visit/addrecord.vue
@@ -111,7 +111,7 @@
-
+
@@ -233,12 +233,17 @@
id: 1,
value: '是'
}],
- adminList: []
+ adminList: [],
+ isCall:'',
+ goStudy:'去学习'
}
},
onLoad(options) {
- this.form.type = options.type
+ this.form.type = options.type
+ this.isCall = options.iscall
+ this.goStudy = this.isCall=='call'?'提交':'去学习'
+ this.form.audit_status = 1
this.getVisitArea()
this.getVisitTime()
this.getReason()
@@ -348,7 +353,11 @@
// 去学习
saveFormgoStudy() {
console.log("form", this.form)
- this.$refs['formdata'].validate().then(res => {
+ this.$refs['formdata'].validate().then(res => {
+ if(this.isCall==='call'){
+ this.submitForm()
+ return
+ }
uni.setStorageSync('formdata',this.form)
uni.navigateTo({
url: '/pages/visit/study?type=' + this.form.type
@@ -356,6 +365,32 @@
}).catch(err => {
console.log('err', err);
})
+ },
+ submitForm() {
+ let that = this
+ this.util.request({
+ api: '/api/mobile/visit/visit-save',
+ method: "POST",
+ data: that.form,
+ utilSuccess: function(res) {
+ uni.showToast({
+ title: res.msg,
+ duration: 2000,
+ icon: 'none'
+ })
+ uni.removeStorageSync('formData')
+ uni.navigateTo({
+ url:'/pages/visit/successform'
+ })
+ },
+ utilFail: function(res) {
+ uni.showToast({
+ title: res.errmsg,
+ duration: 2000,
+ icon: 'none'
+ })
+ }
+ })
}
}
}