From 10075d149acc3496e3656e0ee3e2b80876bb3981 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Wed, 11 Aug 2021 21:27:39 +0800
Subject: [PATCH] no message
---
pages/agent/address/index.js | 10 ++--
pages/agent/address/index.wxml | 6 +-
pages/api/ztb.js | 6 +-
pages/home/certificate/index.js | 94 ++++++++++++-------------------
pages/home/certificate/index.wxml | 16 +++---
pages/index/index.js | 2 +-
6 files changed, 59 insertions(+), 75 deletions(-)
diff --git a/pages/agent/address/index.js b/pages/agent/address/index.js
index 95a3cdb..b39f42f 100644
--- a/pages/agent/address/index.js
+++ b/pages/agent/address/index.js
@@ -1,5 +1,5 @@
// pages/shop/apply/index.js
-import { updateUserInfoZtb } from "../../api/ztb"
+import { saveFactory } from "../../api/ztb"
const util = require('../../../utils/util')
import regions from '../../../utils/region'
const app = getApp()
@@ -39,7 +39,7 @@ Page({
this.data.locateCityTag['provinceId'] = e.detail.value[0]
this.data.locateCityTag['cityId'] = e.detail.value[1]
this.data.locateCityTag['districtId'] = e.detail.value[2]
- this.data.form['locateDistrictTag'] = e.detail.value[2]
+ this.data.form['locDistrictId'] = e.detail.value[2]
}
},
submitForm: function(){
@@ -50,11 +50,11 @@ Page({
util.showToast('请输入工厂全称')
return
}
- if(util.isEmpty(this.data.form.locateDistrictTag)){
+ if(util.isEmpty(this.data.form.locDistrictId)){
util.showToast('请选择所在区域')
return
}
- if(util.isEmpty(this.data.form.locateDetails)){
+ if(util.isEmpty(this.data.form.locDetail)){
util.showToast('请输入详细地址')
return
}
@@ -64,7 +64,7 @@ Page({
}
this.data.requesting = true
wx.showLoading({ title: '处理中', mask: true })
- updateUserInfoZtb(this.data.form).then(res => {
+ saveFactory(this.data.form).then(res => {
wx.hideLoading()
app.globalData.userInfo.hasShipmentsInfo = true
const channel = this.getOpenerEventChannel()
diff --git a/pages/agent/address/index.wxml b/pages/agent/address/index.wxml
index 1c837ca..3b2a6ce 100644
--- a/pages/agent/address/index.wxml
+++ b/pages/agent/address/index.wxml
@@ -12,7 +12,7 @@
工厂全称:
-
+
@@ -23,11 +23,11 @@
详细地址:
-
+
发货人姓名:
-
+