Browse Source

前端gjy

gjy 3 years ago
parent
commit
89aef878df
3 changed files with 52 additions and 31 deletions
  1. 4 1
      config/index.js
  2. 0 1
      pageD/myRelease/buyDetails.vue
  3. 48 29
      pages/grain_pulse/enter.vue

+ 4 - 1
config/index.js

@@ -3,10 +3,13 @@ const dev = {
 	baseUrlNew: 'http://192.168.1.120:8090/',
 	// baseUrlNew: 'http://api.eliangeyun.com/',
 	// baseUrlNew: 'http://192.168.1.110:8090/',
+	// baseUrl: 'https://www.zthymaoyi.com',
+	// baseUrlNew: 'http://192.168.1.120:9100/',
+	//baseUrlNew: 'http://api.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }
 
 export function def() {
 	return dev
-}
+}

+ 0 - 1
pageD/myRelease/buyDetails.vue

@@ -188,7 +188,6 @@
 			getList(id1){
 				this.$api.doRequest('get','/procurementPlanInfo/getProcurementPlan',{id:id1}).then(res => {
 					this.procurementPlanInfos = res.data.data
-					
 				})
 				.catch(res => {
 					if(res.errmsg){

+ 48 - 29
pages/grain_pulse/enter.vue

@@ -9,7 +9,8 @@
 		<u-form class="forList">
 			<view class="modular">
 				<u-form-item label="公司名称" label-width="30%" class="title Regular">
-					<u-input v-model="deptList.compName" input-align="right" class="write Medium" placeholder="请输入公司名称" />
+					<u-input v-model="deptList.compName" input-align="right" class="write Medium"
+						placeholder="请输入公司名称" />
 				</u-form-item>
 				<view>
 					<view class="title Regular" style="margin-top: 15rpx;">主要类型(可多选,必须为真实经营类型)</view>
@@ -33,7 +34,7 @@
 				</u-form-item>
 			</view>
 			<view class="modular">
-				<u-form-item  label="上传坐标" label-width="30%" class="title Regular">
+				<u-form-item label="上传坐标" label-width="30%" class="title Regular">
 					<text @click='naviageToPage("/pages/grain_pulse/localtion/coordinate")'
 						class="con-list Regular">{{deptList.buyer == null ? "未上传":deptList.buyer}}<text
 							class='tip_text cuIcon-right'></text></text>
@@ -48,13 +49,13 @@
 				</u-form-item>
 				<view>
 					<view class="title Regular" style="margin-top: 15rpx;">上传图片</view>
-		<view v-if="license1 != ''">
+					<view v-if="license1 != ''">
 						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
 							:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError"
 							@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
 							:options="uploadOptions" :custom="uploadCustom" @on-progress="onProgress"></upload>
 					</view>
-								<view v-if="license2 != ''">
+					<view v-if="license2 != ''">
 						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
 							:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError"
 							@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
@@ -71,13 +72,11 @@
 					<image src="../../static/img/liangmai/tijiaochenggong@3x.png" mode=""
 						style="width: 180rpx;height: 180rpx;"></image>
 				</view>
-
 				<view class="successText">提交成功,等待平台审核。</view>
 				<u-button type="success" style="width: 400rpx; margin: 20rpx auto; " shape="circle" @click="perfect">
 					完善更多信息</u-button>
 				<view style="color: #AFB3BF;text-align: center;" @click="navBack1">返回</view>
 			</u-popup>
-
 		</view>
 	</view>
 </template>
@@ -106,18 +105,38 @@
 					"text": "上传营业执照",
 					"bgc": ""
 				},
-				mainBusinessType:[],
+				mainBusinessType: [],
 				uploadCustom: true,
 				deptList: {},
-				management: [
-					{name:"粮库",checked:false},
-					{name:"加工厂",checked:false},
-					{name:"烘干厂",checked:false},
-					{name:"饲料厂",checked:false},
-					{name:"养殖场",checked:false},
-					{name:"粮贸",checked:false},
-					{name:"期货",checked:false},
-					 ],
+				management: [{
+						name: "粮库",
+						checked: false
+					},
+					{
+						name: "加工厂",
+						checked: false
+					},
+					{
+						name: "烘干厂",
+						checked: false
+					},
+					{
+						name: "饲料厂",
+						checked: false
+					},
+					{
+						name: "养殖场",
+						checked: false
+					},
+					{
+						name: "粮贸",
+						checked: false
+					},
+					{
+						name: "期货",
+						checked: false
+					},
+				],
 				types: [],
 				show: false,
 				// anNiuCss:"types",
@@ -131,23 +150,23 @@
 			...mapState(['hasLogin', 'userInfo'])
 		},
 		methods: {
-			getImgUrl(res){
+			getImgUrl(res) {
 				console.log(res)
-				this.deptList.attachmentAddress=res
+				this.deptList.attachmentAddress = res
 			},
-			naviageToPage(item){
+			naviageToPage(item) {
 				uni.navigateTo({
-					url:item
+					url: item
 				})
 			},
-			getImgUrl1(res){
+			getImgUrl1(res) {
 				console.log(res)
-				this.deptList.licenseAddress=res
+				this.deptList.licenseAddress = res
 			},
 			singleClick(item) {
-				if(this.mainBusinessType.indexOf(item)==-1){
+				if (this.mainBusinessType.indexOf(item) == -1) {
 					this.mainBusinessType.push(item.name)
-					item.checked=true
+					item.checked = true
 				}
 			},
 			filterFileType(index, lists) {
@@ -165,10 +184,10 @@
 			navBack() {
 				uni.navigateBack()
 			},
-			navBack() {
-				this.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',this.deptList).then(res => {
-					if(res.data.code==200){
-						uni.navigateBack(-1)
+			navBack1() {
+				this.$api.doRequest('post', '/settledCompanyInfo/api/addSettledCompanyInfo', this.deptList).then(res => {
+					if (res.data.code == 200) {
+						uni.navigateBack(1)
 					}
 				})
 			},
@@ -203,7 +222,7 @@
 							that.show = true
 							// that.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',that.deptList).then(res => {
 							// 	if(res.data.code==200){
-									
+
 							// 	}
 							// })
 							// //成功后