|
@@ -1,25 +1,29 @@
|
|
<template name="secondHandrelease">
|
|
<template name="secondHandrelease">
|
|
<view class="fleaMarketForm">
|
|
<view class="fleaMarketForm">
|
|
- <view class="bannerimg"><image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/banner3.png"></image></view>
|
|
|
|
|
|
+ <view class="bannerimg"><image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/secondbg.jpg"></image></view>
|
|
<view class="my-maintenance" >
|
|
<view class="my-maintenance" >
|
|
<view class="newsTitle">
|
|
<view class="newsTitle">
|
|
- <view>欢迎您来到采美365网二手商品市场,您可以在这里发布二手
|
|
|
|
|
|
+ <view class="nestext">欢迎您来到采美365网二手商品市场,您可以在这里发布二手
|
|
设备/产品信息,每个商品需要收取您100元的展示费,展示期为6个月; 为了完整展示您的商品,请您认真填写以下内容,谢谢合作</view>
|
|
设备/产品信息,每个商品需要收取您100元的展示费,展示期为6个月; 为了完整展示您的商品,请您认真填写以下内容,谢谢合作</view>
|
|
</view>
|
|
</view>
|
|
<form>
|
|
<form>
|
|
<view class="row fenlei">
|
|
<view class="row fenlei">
|
|
<view class="label">分类</view>
|
|
<view class="label">分类</view>
|
|
<view class="secondradio">
|
|
<view class="secondradio">
|
|
- <view v-for="(item,index) in fenlei" :key="index" v-model="secondParams.secondHandType" @click="secondHandRidio(item)"
|
|
|
|
- :class="currentId==item.value?'active':''">
|
|
|
|
- <label class="iconfont" :class="currentId==item.value?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
|
|
|
|
- </view>
|
|
|
|
|
|
+ <radio-group class="row-group" @change="secondHandRidio" >
|
|
|
|
+ <label class="row-input" v-for="(item, index) in fenlei" :key="index">
|
|
|
|
+ <radio class="row-radio" :value="item.value" color="#E15616"/>
|
|
|
|
+ <view class="row-text">{{item.name}}</view>
|
|
|
|
+ </label>
|
|
|
|
+ </radio-group>
|
|
</view>
|
|
</view>
|
|
<view class="secondradio Secondary" v-if="isShow" >
|
|
<view class="secondradio Secondary" v-if="isShow" >
|
|
- <view v-for="(item ,index) in radioList" :key="index" :class="item.isChecked ? 'active':''"
|
|
|
|
- @click="secondHandType(item)" class="icon mIcon ">
|
|
|
|
- <label class="iconfont" :class="item.isChecked?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
|
|
|
|
- </view>
|
|
|
|
|
|
+ <checkbox-group class="row-group" @change="secondHandType">
|
|
|
|
+ <label class="row-input" v-for="(item, index) in radioList" :key="item.value" >
|
|
|
|
+ <checkbox class="row-check" :value="item.value" ></checkbox>
|
|
|
|
+ <view class="row-text">{{item.name}}</view>
|
|
|
|
+ </label>
|
|
|
|
+ </checkbox-group>
|
|
</view>
|
|
</view>
|
|
<view class="linqi_text" v-show="secondParams.secondHandType==2">
|
|
<view class="linqi_text" v-show="secondParams.secondHandType==2">
|
|
<view class="jiaobiao"></view>
|
|
<view class="jiaobiao"></view>
|
|
@@ -28,13 +32,32 @@
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="label">商品品牌</view>
|
|
<view class="label">商品品牌</view>
|
|
- <view class="select spacing" @click="showBrand">
|
|
|
|
- <view class="placeholder" >{{brandname}}</view>
|
|
|
|
- <!-- <ul v-show="selectBrand">
|
|
|
|
- <li v-for="(item,index) in BrandList" :key="index" :value='item.id' @click="ChangeBrand(item)">{{item.name}}</li>
|
|
|
|
- </ul> -->
|
|
|
|
|
|
+ <view class="select spacing" @click="hanldOperationConfim">
|
|
|
|
+ <view class="placeholder">{{brandname}}</view>
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 品牌弹窗 -->
|
|
|
|
+ <tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
|
|
|
|
+ <view class="tui-popup-box clearfix">
|
|
|
|
+ <text class="iconfont icon-iconfontguanbi" @click="hidePopup()"></text>
|
|
|
|
+ <view class="content">
|
|
|
|
+ <view class="freight-radio">
|
|
|
|
+ <radio-group class="row-group" @change="radioChange" >
|
|
|
|
+ <label class="row-input" v-for="(item, index) in BrandList" :key="item.id">
|
|
|
|
+ <view class="row-text">{{item.name}}</view>
|
|
|
|
+ <radio class="row-radio" :value="item.id" color="#E15616"/>
|
|
|
|
+ </label>
|
|
|
|
+ </radio-group>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </tui-bottom-popup>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row" v-if="secondParams.brandID==161">
|
|
|
|
+ <view class="label">其它品牌</view>
|
|
|
|
+ <view class="spacing">
|
|
|
|
+ <input type="text" maxlength="40" v-model="secondParams.brandName" placeholder="请输入商品品牌">
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="label">商品名称</view>
|
|
<view class="label">商品名称</view>
|
|
@@ -112,9 +135,15 @@
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="label">商品类型</view>
|
|
<view class="label">商品类型</view>
|
|
<view class="secondradio">
|
|
<view class="secondradio">
|
|
- <view class="buy " v-for="(item ,index) in beauty" :key='index' value="item.value" @click="getProductType(item.value)" :class="secondType==item.value?' active':''">
|
|
|
|
|
|
+ <!-- <view class="buy " v-for="(item ,index) in beauty" :key='index' value="item.value" @click="getProductType(item.value)" :class="secondType==item.value?' active':''">
|
|
<label class="iconfont" :class="secondType==item.value?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
|
|
<label class="iconfont" :class="secondType==item.value?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+ <radio-group class="row-group" @change="getProductType" >
|
|
|
|
+ <label class="row-input" v-for="(item, index) in beauty" :key="index">
|
|
|
|
+ <radio class="row-radio" :value="item.value" color="#E15616"/>
|
|
|
|
+ <view class="row-text">{{item.name}}</view>
|
|
|
|
+ </label>
|
|
|
|
+ </radio-group>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="row" >
|
|
<view class="row" >
|
|
@@ -170,6 +199,7 @@
|
|
<view @click="submitBtn" class="btn-submit">发布</view>
|
|
<view @click="submitBtn" class="btn-submit">发布</view>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
|
|
+ <!-- 地址弹窗 -->
|
|
<mpvue-city-picker :themeColor="themeColor"
|
|
<mpvue-city-picker :themeColor="themeColor"
|
|
ref="mpvueCityPicker"
|
|
ref="mpvueCityPicker"
|
|
:pickerValueDefault="cityPickerValueDefault"
|
|
:pickerValueDefault="cityPickerValueDefault"
|
|
@@ -195,7 +225,7 @@
|
|
<script>
|
|
<script>
|
|
import listCell from "@/components/tui-components/list-cell/list-cell.vue"
|
|
import listCell from "@/components/tui-components/list-cell/list-cell.vue"
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
- import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord'
|
|
|
|
|
|
+ import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord'
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
import { mapState,mapMutations } from 'vuex';
|
|
import { mapState,mapMutations } from 'vuex';
|
|
export default{
|
|
export default{
|
|
@@ -203,16 +233,16 @@
|
|
components:{
|
|
components:{
|
|
listCell,
|
|
listCell,
|
|
mpvueCityPicker,
|
|
mpvueCityPicker,
|
|
- paymentRecord
|
|
|
|
|
|
+ paymentRecord,
|
|
},
|
|
},
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ popupShow:false,
|
|
fenlei:[
|
|
fenlei:[
|
|
{name:'二手仪器',value:'1'},
|
|
{name:'二手仪器',value:'1'},
|
|
{name:'临期产品',value:'2'},
|
|
{name:'临期产品',value:'2'},
|
|
{name:'其他',value:'3'},
|
|
{name:'其他',value:'3'},
|
|
],
|
|
],
|
|
- currentId:0,
|
|
|
|
radioList:[
|
|
radioList:[
|
|
{name:'轻光电',value:'1',isChecked:false},
|
|
{name:'轻光电',value:'1',isChecked:false},
|
|
{name:'重光电',value:'2',isChecked:false},
|
|
{name:'重光电',value:'2',isChecked:false},
|
|
@@ -226,10 +256,7 @@
|
|
BrandList:[],
|
|
BrandList:[],
|
|
isShow:false,
|
|
isShow:false,
|
|
GoodsImagesList:[],
|
|
GoodsImagesList:[],
|
|
- oldNum:0,
|
|
|
|
- secondType:0,
|
|
|
|
vShow_GoodsImages:false,
|
|
vShow_GoodsImages:false,
|
|
- fromMessage:'',//提示文字
|
|
|
|
secondParams:{
|
|
secondParams:{
|
|
secondHandType:'',//一级分类
|
|
secondHandType:'',//一级分类
|
|
instrumentType:'',//二手仪器分类
|
|
instrumentType:'',//二手仪器分类
|
|
@@ -264,26 +291,25 @@
|
|
brandname:'请选择品牌名称',
|
|
brandname:'请选择品牌名称',
|
|
checkbox:false,
|
|
checkbox:false,
|
|
shoplogoTwo:false,
|
|
shoplogoTwo:false,
|
|
- provinceIndex:'',
|
|
|
|
- provinceArray:[],
|
|
|
|
- cityArray: [],//市
|
|
|
|
- townArray: [],//区
|
|
|
|
- playid:'',
|
|
|
|
- checkVal:[],
|
|
|
|
vShow_secondBj:false,
|
|
vShow_secondBj:false,
|
|
resultBj:false,
|
|
resultBj:false,
|
|
vShow_detailTalkFlag:false,
|
|
vShow_detailTalkFlag:false,
|
|
- isShowInput:true,
|
|
|
|
- showtips:false
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ radioChange(e){//品牌
|
|
|
|
+ this.secondParams.brandID = e.target.value;
|
|
|
|
+ this.BrandList.forEach((item,index)=>{
|
|
|
|
+ if(item.id==this.secondParams.brandID){
|
|
|
|
+ this.brandname = item.name;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
showMulLinkageThreePicker() {//三级地址联动
|
|
showMulLinkageThreePicker() {//三级地址联动
|
|
this.isShowInput = true
|
|
this.isShowInput = true
|
|
this.$refs.mpvueCityPicker.show()
|
|
this.$refs.mpvueCityPicker.show()
|
|
},
|
|
},
|
|
onConfirm(e) {//获取选择的地址信息
|
|
onConfirm(e) {//获取选择的地址信息
|
|
- console.log('地址',e);
|
|
|
|
this.addressData.address = e.name;
|
|
this.addressData.address = e.name;
|
|
this.addressData.townID = e.townCode;
|
|
this.addressData.townID = e.townCode;
|
|
this.addressData.cityID = e.cityCode;
|
|
this.addressData.cityID = e.cityCode;
|
|
@@ -291,168 +317,150 @@
|
|
this.secondParams.townId = this.addressData.townID;
|
|
this.secondParams.townId = this.addressData.townID;
|
|
this.secondParams.address = this.addressData.address;
|
|
this.secondParams.address = this.addressData.address;
|
|
},
|
|
},
|
|
- onConfirmbrand(e){
|
|
|
|
- this.brandname = e.name;
|
|
|
|
- },
|
|
|
|
- showBrand:function(){
|
|
|
|
- this.isShowInput = true
|
|
|
|
- this.$refs.listCell.show()
|
|
|
|
- },
|
|
|
|
- secondHandRidio: function(item) {
|
|
|
|
- this.currentId = item.value;
|
|
|
|
- this.secondParams.secondHandType = item.value;
|
|
|
|
- if (item.value==1){
|
|
|
|
- this.isShow = true;
|
|
|
|
- }else {
|
|
|
|
- this.isShow = false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- secondHandType:function(item){ //二手仪器
|
|
|
|
- item.isChecked = ! item.isChecked;
|
|
|
|
- if(item.isChecked){
|
|
|
|
- this.checkVal.push(item.value);
|
|
|
|
- this.secondParams.instrumentType = this.checkVal.toString();
|
|
|
|
- } else {
|
|
|
|
- this.checkVal.splice(this.checkVal.indexOf(item.value), 1);
|
|
|
|
- this.secondParams.instrumentType = this.checkVal.toString();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- ChangeBrand:function(item){ //品牌列表
|
|
|
|
- this.brandname = item.name;
|
|
|
|
- this.secondParams.brandID = item.id;
|
|
|
|
- if(this.secondParams.brandID==161){
|
|
|
|
- this.shoplogoTwo = true;
|
|
|
|
- }else {
|
|
|
|
- this.shoplogoTwo = false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- Detailed:function(){
|
|
|
|
- this.vShow_detailTalkFlag = !this.vShow_detailTalkFlag;
|
|
|
|
- if(this.vShow_detailTalkFlag){
|
|
|
|
- this.secondParams.detailTalkFlag = 2 ;//启用价格详聊
|
|
|
|
- }else {
|
|
|
|
- this.secondParams.detailTalkFlag = 1 ;//不启用价格详聊
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- dragstart: function(value) { // 记录初始信息
|
|
|
|
- this.oldNum = value;
|
|
|
|
- },
|
|
|
|
- uploadGoodsImagesFn: function(event){//上传商品图片
|
|
|
|
- uploadFileImage().then(res =>{
|
|
|
|
- this.GoodsImagesList.push(JSON.parse(res.data).data);
|
|
|
|
- this.secondParams.image1 =this.GoodsImagesList.toString()+',';
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- removeGoodsImagesFn: function(index){//删除商品图片
|
|
|
|
- this.GoodsImagesList.splice(index,1);
|
|
|
|
- this.secondParams.image1 =this.GoodsImagesList.toString()+',';
|
|
|
|
- },
|
|
|
|
- getProductType:function(item){
|
|
|
|
- this.secondType=item;
|
|
|
|
- this.secondParams.secondProductType = item ;
|
|
|
|
- },
|
|
|
|
- submitBtn:function () {
|
|
|
|
- if(this.secondParams.secondHandType == ''){
|
|
|
|
- this.$util.msg('请选择分类',2000);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.secondHandType == 1 ){
|
|
|
|
- if(this.secondParams.instrumentType ==''){
|
|
|
|
- this.$util.msg('请完善仪器分类',2000);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- // if(this.secondParams.brandID == ''){
|
|
|
|
- // this.$util.msg('请选择商品品牌',2000);
|
|
|
|
- // return;
|
|
|
|
- // }
|
|
|
|
- if(this.secondParams.name == ''){
|
|
|
|
- this.$util.msg('请输入商品名称',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.secondHandType ==2) {
|
|
|
|
- if (this.secondParams.normalPrice == '') {
|
|
|
|
- this.$util.msg('请输入市场价',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.secondParams.maturityYears == '') {
|
|
|
|
- this.$util.msg('请输入产品到期日',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.price1 == ''){
|
|
|
|
- this.$util.msg('请输入交易价',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.secondHandType ==2){
|
|
|
|
- if(this.secondParams.originalPrice == ''){
|
|
|
|
- this.$util.msg('请输入采购价/原价',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.stock == ''){
|
|
|
|
- this.$util.msg('请输入数量',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.productQuality == ''){
|
|
|
|
- this.$util.msg('请输入商品成色',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.contactName == ''){
|
|
|
|
- this.$util.msg('请输入联系人姓名',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.contactMobile == ''){
|
|
|
|
- console.log(this.secondParams.contactMobile)
|
|
|
|
- this.$util.msg('请输入联系方式',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.contactMobile.length !=11){
|
|
|
|
- this.$util.msg('联系方式格式不正确',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
|
|
|
|
- this.$util.msg('请完善联系地址',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.secondParams.address == ''){
|
|
|
|
- this.$util.msg('请填写详细地址',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.GoodsImagesList ==''){
|
|
|
|
- this.$util.msg('请上传图片',2000);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if(this.checkbox==false){
|
|
|
|
- this.$util.msg('请勾选已阅读',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- console.log(this.secondParams)
|
|
|
|
- this.SecondService.SecondHandProduct(this.secondParams).then(res=>{ //提交发布
|
|
|
|
- if (res.code==0){
|
|
|
|
- this.vShow_secondBj = true;
|
|
|
|
- this.playid= res.data;
|
|
|
|
- }else{
|
|
|
|
- this.$util.msg(res.msg,2000)
|
|
|
|
- this.secondBj = false;
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- quxiao:function(){
|
|
|
|
- this.vShow_secondBj = false;
|
|
|
|
- },
|
|
|
|
- gopay:function(){
|
|
|
|
- this.$api.navigateTo(`/pages/user/order/order-payment?type=confirm&productID=${this.playid}`)
|
|
|
|
- this.vShow_secondBj = false;
|
|
|
|
- },
|
|
|
|
- changeBox:function () {
|
|
|
|
- this.checkbox = !this.checkbox;
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
|
|
+ hanldOperationConfim(){
|
|
|
|
+ this.popupShow = true;
|
|
|
|
+ },
|
|
|
|
+ hidePopup(){
|
|
|
|
+ this.popupShow = false;
|
|
|
|
+ },
|
|
|
|
+ secondHandRidio(e) {
|
|
|
|
+ this.secondParams.secondHandType = e.target.value;
|
|
|
|
+ if (e.target.value == 1){
|
|
|
|
+ this.isShow = true;
|
|
|
|
+ }else {
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ secondHandType(e){ //二手仪器
|
|
|
|
+ this.secondParams.instrumentType = e.target.value.toString();
|
|
|
|
+ },
|
|
|
|
+ Detailed(){
|
|
|
|
+ this.vShow_detailTalkFlag = !this.vShow_detailTalkFlag;
|
|
|
|
+ if(this.vShow_detailTalkFlag){
|
|
|
|
+ this.secondParams.detailTalkFlag = 2 ;//启用价格详聊
|
|
|
|
+ }else {
|
|
|
|
+ this.secondParams.detailTalkFlag = 1 ;//不启用价格详聊
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ uploadGoodsImagesFn(event){//上传商品图片
|
|
|
|
+ uploadFileImage().then(res =>{
|
|
|
|
+ this.GoodsImagesList.push(JSON.parse(res.data).data);
|
|
|
|
+ this.secondParams.image1 =this.GoodsImagesList.toString()+',';
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ removeGoodsImagesFn(index){//删除商品图片
|
|
|
|
+ this.GoodsImagesList.splice(index,1);
|
|
|
|
+ this.secondParams.image1 =this.GoodsImagesList.toString()+',';
|
|
|
|
+ },
|
|
|
|
+ getProductType(e){
|
|
|
|
+ this.secondParams.secondProductType = e.target.value ;
|
|
|
|
+ },
|
|
|
|
+ submitBtn () {
|
|
|
|
+ if(this.secondParams.secondHandType == ''){
|
|
|
|
+ this.$util.msg('请选择分类',2000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.secondHandType == 1 ){
|
|
|
|
+ if(this.secondParams.instrumentType ==''){
|
|
|
|
+ this.$util.msg('请完善仪器分类',2000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.brandID == ''){
|
|
|
|
+ this.$util.msg('请选择商品品牌',2000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.name == ''){
|
|
|
|
+ this.$util.msg('请输入商品名称',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.secondHandType ==2) {
|
|
|
|
+ if (this.secondParams.normalPrice == '') {
|
|
|
|
+ this.$util.msg('请输入市场价',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.secondParams.maturityYears == '') {
|
|
|
|
+ this.$util.msg('请输入产品到期日',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.price1 == ''){
|
|
|
|
+ this.$util.msg('请输入交易价',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.secondHandType ==2){
|
|
|
|
+ if(this.secondParams.originalPrice == ''){
|
|
|
|
+ this.$util.msg('请输入采购价/原价',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.stock == ''){
|
|
|
|
+ this.$util.msg('请输入数量',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.productQuality == ''){
|
|
|
|
+ this.$util.msg('请输入商品成色',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.contactName == ''){
|
|
|
|
+ this.$util.msg('请输入联系人姓名',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.contactMobile == ''){
|
|
|
|
+ console.log(this.secondParams.contactMobile)
|
|
|
|
+ this.$util.msg('请输入联系方式',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.contactMobile.length !=11){
|
|
|
|
+ this.$util.msg('联系方式格式不正确',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
|
|
|
|
+ this.$util.msg('请完善联系地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.address == ''){
|
|
|
|
+ this.$util.msg('请填写详细地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.GoodsImagesList =='https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/secondbg.jpg'){
|
|
|
|
+ this.$util.msg('请上传图片',2000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(this.checkbox==false){
|
|
|
|
+ this.$util.msg('请勾选已阅读',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ console.log(this.secondParams)
|
|
|
|
+ this.SecondService.SecondHandProduct(this.secondParams).then(res=>{ //提交发布
|
|
|
|
+ if (res.code==0){
|
|
|
|
+ this.vShow_secondBj = true;
|
|
|
|
+ this.playid= res.data;
|
|
|
|
+ }else{
|
|
|
|
+ this.$util.msg(res.msg,2000)
|
|
|
|
+ this.secondBj = false;
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ quxiao:function(){
|
|
|
|
+ this.vShow_secondBj = false;
|
|
|
|
+ },
|
|
|
|
+ gopay:function(){
|
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=confirm&productID=${this.playid}`)
|
|
|
|
+ this.vShow_secondBj = false;
|
|
|
|
+ },
|
|
|
|
+ changeBox:function () {
|
|
|
|
+ this.checkbox = !this.checkbox;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- created(){
|
|
|
|
- },
|
|
|
|
|
|
+ created(){
|
|
|
|
+ this.SecondService.brandList().then(res =>{//品牌列表
|
|
|
|
+ if(res.code == 0){
|
|
|
|
+ this.BrandList = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -466,25 +474,24 @@
|
|
.my-maintenance{padding: 20rpx;}
|
|
.my-maintenance{padding: 20rpx;}
|
|
.bannerimg {height: 66rpx;width: 100%;}
|
|
.bannerimg {height: 66rpx;width: 100%;}
|
|
.bannerimg image{width: 100%;height: 100% ;}
|
|
.bannerimg image{width: 100%;height: 100% ;}
|
|
- .newsTitle {line-height: 48rpx;text-align: left;color: #e15616;padding:20rpx;background-color: rgba(225, 86, 22, .1);font-size: 28rpx;}
|
|
|
|
- .secondradio view{display: inline-block;color: #333333;padding: 0 20rpx;}
|
|
|
|
|
|
+ .newsTitle {line-height: 48rpx;text-align: left;color: #e15616;padding:20rpx;background-color: rgba(225, 86, 22, .1);}
|
|
|
|
+ .nestext{font-size: 24rpx;}
|
|
|
|
+ .secondradio view{display: inline-block;color: #333333;margin-right: 21rpx}
|
|
.secondradio{display: inline-block;margin-left: 40rpx;}
|
|
.secondradio{display: inline-block;margin-left: 40rpx;}
|
|
- .Secondary{width: 100%;text-align: center;margin: 0;}
|
|
|
|
|
|
+ .Secondary{margin-left: 161rpx;}
|
|
.secondradio view.active {color: #e15616;}
|
|
.secondradio view.active {color: #e15616;}
|
|
- .label .red{color: #f94b4b;}
|
|
|
|
- input[type="text"]::placeholder, textarea::placeholder {color: #b2b2b2;}
|
|
|
|
|
|
+ input[type="text"]::placeholder{color: #b2b2b2;}
|
|
|
|
+ textarea::placeholder{color: #b2b2b2;}
|
|
input[type="text"]{line-height: 90rpx;overflow: unset;}
|
|
input[type="text"]{line-height: 90rpx;overflow: unset;}
|
|
- .row label.iconfont{margin-right: 10rpx;}
|
|
|
|
- .icon-weixuanze{color: #b2b2b2;}
|
|
|
|
.linqi_text { width: 100%; height: 68rpx;background-color: #1890f9;box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);text-align: center;
|
|
.linqi_text { width: 100%; height: 68rpx;background-color: #1890f9;box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);text-align: center;
|
|
line-height: 68rpx;color: #ffffff;margin: auto;font-size:24rpx;position: relative;}
|
|
line-height: 68rpx;color: #ffffff;margin: auto;font-size:24rpx;position: relative;}
|
|
.jiaobiao {width: 0;height: 0;border-left: 20rpx solid transparent;border-right: 20rpx solid transparent;top: -30%;
|
|
.jiaobiao {width: 0;height: 0;border-left: 20rpx solid transparent;border-right: 20rpx solid transparent;top: -30%;
|
|
- right: 48%;border-bottom: 20rpx solid #1890f9;position: absolute;}
|
|
|
|
- .label{color: #666666;display: inline-block;idth: 120rpx;}
|
|
|
|
|
|
+ right: 40%;border-bottom: 20rpx solid #1890f9;position: absolute;}
|
|
|
|
+ .label{color: #666666;display: inline-block;width: 120rpx;}
|
|
.row{border-bottom: 2rpx solid #e1e1e1;line-height: 90rpx;height: 90rpx;}
|
|
.row{border-bottom: 2rpx solid #e1e1e1;line-height: 90rpx;height: 90rpx;}
|
|
- .row.fenlei{height: auto;}
|
|
|
|
|
|
+ .row.fenlei{height: auto;margin: 10rpx 0;border: 0}
|
|
.select {position: relative;color: #9aa5b5;text-align: left;user-select: none;}
|
|
.select {position: relative;color: #9aa5b5;text-align: left;user-select: none;}
|
|
- .row .spacing{display: inline-block;margin-left: 60rpx;width: 68%;vertical-align:middle;position: relative}
|
|
|
|
|
|
+ .row .spacing{display: inline-block;margin-left: 50rpx;width: 75%;vertical-align:middle;position: relative}
|
|
.select .placeholder {position: relative;cursor: pointer;width: 100%;display: inline-block;}
|
|
.select .placeholder {position: relative;cursor: pointer;width: 100%;display: inline-block;}
|
|
.icon-xiayibu{right: 0rpx;;color: #b2b2b2;position: absolute}
|
|
.icon-xiayibu{right: 0rpx;;color: #b2b2b2;position: absolute}
|
|
.xiangliao{font-size: 26rpx;margin-right: 10rpx;color: #b2b2b2}
|
|
.xiangliao{font-size: 26rpx;margin-right: 10rpx;color: #b2b2b2}
|
|
@@ -494,6 +501,12 @@
|
|
.border-grey{width: 100%;resize: none;padding: 20rpx 0;height: 160rpx;border-bottom: 2rpx solid #e1e1e1;}
|
|
.border-grey{width: 100%;resize: none;padding: 20rpx 0;height: 160rpx;border-bottom: 2rpx solid #e1e1e1;}
|
|
.release-main-container {overflow: hidden;margin: 20rpx 0}
|
|
.release-main-container {overflow: hidden;margin: 20rpx 0}
|
|
.uploadGoodsImages{display: flex;overflow-x: auto;overflow-y: hidden;}
|
|
.uploadGoodsImages{display: flex;overflow-x: auto;overflow-y: hidden;}
|
|
|
|
+ .secondradio{
|
|
|
|
+ .row-radio{
|
|
|
|
+ transform: scale(.8);
|
|
|
|
+ }
|
|
|
|
+ .row-input{margin-right: 10rpx;}
|
|
|
|
+ }
|
|
.upload-file {
|
|
.upload-file {
|
|
position: relative;
|
|
position: relative;
|
|
float: left;
|
|
float: left;
|
|
@@ -673,5 +686,71 @@
|
|
width: 50rpx;
|
|
width: 50rpx;
|
|
}
|
|
}
|
|
.form-upload-tips:hover .wen-tips {display: block;}
|
|
.form-upload-tips:hover .wen-tips {display: block;}
|
|
-
|
|
|
|
|
|
+ .tui-popup-box {
|
|
|
|
+ z-index: 22;
|
|
|
|
+ width: 702rpx;
|
|
|
|
+ padding: 24rpx 24rpx 36rpx 24rpx;
|
|
|
|
+ height: 670rpx;
|
|
|
|
+ position: relative;
|
|
|
|
+ .icon-iconfontguanbi{
|
|
|
|
+ font-size: 40rpx;
|
|
|
|
+ color: #b2b2b2;
|
|
|
|
+ width: 60rpx;
|
|
|
|
+ float: right;
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ .content{
|
|
|
|
+ .freight-radio{
|
|
|
|
+ height: 66rpx;
|
|
|
|
+ line-height: 66rpx;
|
|
|
|
+ padding: 0 35rpx;
|
|
|
|
+ .row-group{
|
|
|
|
+ width: 100%;
|
|
|
|
+ max-height: 605rpx;
|
|
|
|
+ overflow: auto;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .row-input{
|
|
|
|
+ height: 66rpx;
|
|
|
|
+ line-height: 66rpx;
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: block;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .row-radio{
|
|
|
|
+ float: right;
|
|
|
|
+ transform: scale(0.9);
|
|
|
|
+ color: #b2b2b2;
|
|
|
|
+ }
|
|
|
|
+ .row-text{
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ color: #666666;
|
|
|
|
+ float: left;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ checkbox .wx-checkbox-input{
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ }
|
|
|
|
+ .row-check{
|
|
|
|
+ transform: scale(0.8);
|
|
|
|
+ }
|
|
|
|
+ checkbox .wx-checkbox-input.wx-checkbox-input-checked{
|
|
|
|
+ background: #E15616;
|
|
|
|
+ border: 2rpx solid #e15616;
|
|
|
|
+ }
|
|
|
|
+ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ border: 2rpx solid #e15616;
|
|
|
|
+ width: 34rpx;
|
|
|
|
+ height: 34rpx;
|
|
|
|
+ line-height: 34rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size:34rpx;
|
|
|
|
+ color:#fff;
|
|
|
|
+ background: transparent;
|
|
|
|
+ transform:translate(-50%, -50%) scale(.8);
|
|
|
|
+ -webkit-transform:translate(-50%, -50%) scale(.8);
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|