|
@@ -56,37 +56,37 @@
|
|
|
<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="请输入商品品牌">
|
|
|
+ <input type="text" maxlength="40" v-model="secondParams.brandName" placeholder="请输入商品品牌" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">商品名称</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" maxlength="40" v-model="secondParams.name" placeholder="请输入商品名称,不超过40个汉字">
|
|
|
+ <input type="text" maxlength="40" v-model="secondParams.name" placeholder="请输入商品名称,不超过40个汉字" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">出厂日期</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.fixedYears" maxlength="10" placeholder="请输入出厂日期 如:2020年06月">
|
|
|
+ <input type="text" v-model="secondParams.fixedYears" maxlength="10" placeholder="请输入出厂日期 如:2020年06月" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label second">产品到期日</view>
|
|
|
<view class="spacing second">
|
|
|
- <input type="text" v-model="secondParams.maturityYears" maxlength="10" placeholder="请输入产品到期日,如:2020年12月">
|
|
|
+ <input type="text" v-model="secondParams.maturityYears" maxlength="10" placeholder="请输入产品到期日,如:2020年12月" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">公司名称</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.companyName" maxlength="30" placeholder="请输入公司名称,不超过30个汉字">
|
|
|
+ <input type="text" v-model="secondParams.companyName" maxlength="30" placeholder="请输入公司名称,不超过30个汉字" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">交易价</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" maxlength="20" v-model="secondParams.price1" placeholder="请输入交易价">
|
|
|
+ <input type="text" maxlength="20" v-model="secondParams.price1" placeholder="请输入交易价" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="margin-top: 15rpx;">
|
|
@@ -99,45 +99,42 @@
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label">市场价</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.normalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入市场价">
|
|
|
+ <input type="text" v-model="secondParams.normalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入市场价" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label second">采购价/原价</view>
|
|
|
<view class="spacing second">
|
|
|
- <input type="text" v-model="secondParams.originalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入采购价/原价"/>
|
|
|
+ <input type="text" v-model="secondParams.originalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入采购价/原价" placeholder-class="placeholder"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label">数量</view>
|
|
|
- <view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.stock" maxlength="30" placeholder="请输入数量">
|
|
|
+ <view class="spacing">
|
|
|
+ <input type="text" v-model="secondParams.stock" maxlength="30" placeholder="请输入数量" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">商品成色</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" maxlength="10" v-model="secondParams.productQuality" placeholder="请输入商品成色,如“9成新”">
|
|
|
+ <input type="text" maxlength="10" v-model="secondParams.productQuality" placeholder="请输入商品成色,如“9成新”" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">联系人</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" maxlength="6" v-model="secondParams.contactName" placeholder="请输入联系人姓名">
|
|
|
+ <input type="text" maxlength="6" v-model="secondParams.contactName" placeholder="请输入联系人姓名" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">联系方式</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.contactMobile" maxlength="11" placeholder="请输入联系人手机号 / 固话">
|
|
|
+ <input type="text" v-model="secondParams.contactMobile" maxlength="11" placeholder="请输入联系人手机号 / 固话" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">商品类型</view>
|
|
|
<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':''">
|
|
|
- <label class="iconfont" :class="secondType==item.value?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
|
|
|
- </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"/>
|
|
@@ -149,14 +146,14 @@
|
|
|
<view class="row" >
|
|
|
<view class="label">联系地址</view>
|
|
|
<view class="spacing" @click="showMulLinkageThreePicker">
|
|
|
- <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none' : ''">
|
|
|
+ <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none,placeholder' : ''" >
|
|
|
{{addressData.address}}
|
|
|
</text>
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<textarea type="text" class="border-grey address-details" v-model="secondParams.address" maxlength="50"
|
|
|
- placeholder="请填写详细地址,如街道/小区/门牌等" /></textarea>
|
|
|
+ placeholder="请填写详细地址,如街道/小区/门牌等" placeholder-class="placeholder"/></textarea>
|
|
|
<view class="release-main-container">
|
|
|
<view class="release-from">
|
|
|
<view class="label">商品图片</view>
|
|
@@ -180,13 +177,13 @@
|
|
|
<view class="productinfo">
|
|
|
<view class="label unlogin-label" style="width: 100%;">商品详细信息</view>
|
|
|
<div class="textarea-wrapper">
|
|
|
- <textarea maxlength="200" v-model="secondParams.productDetails" cols="70" class="description" rows="6" placeholder="请填写商品详细信息,对商品进行更详细的描述"></textarea>
|
|
|
+ <textarea maxlength="200" v-model="secondParams.productDetails" cols="70" class="description" rows="6" placeholder="请填写商品详细信息,对商品进行更详细的描述" placeholder-class="placeholder"></textarea>
|
|
|
<span class="word-limit">{{secondParams.productDetails.length}}/200</span>
|
|
|
</div>
|
|
|
</view>
|
|
|
<view class="productinfo">
|
|
|
<view class="label unlogin-label" style="width: 100%;">免责声明</view>
|
|
|
- <textarea class="smText">
|
|
|
+ <textarea type="text" class="smText" >
|
|
|
鉴于本网站提供的二手版块信息包括但不限于公司名称,商品的简介、性能、描述与说明,相关图片、视频等均由卖家自行提供,
|
|
|
由卖家对其提供的信息承担相应法律责任。买家应自行甄别商品信息并查验商品性状。本网站对二手版块中买卖双方的交易不提供任何形式的担保与保证,特此声明!
|
|
|
</textarea>
|
|
@@ -227,6 +224,7 @@
|
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
|
import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord'
|
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
|
+ import authorize from '@/common/config/authorize.js'
|
|
|
import { mapState,mapMutations } from 'vuex';
|
|
|
export default{
|
|
|
name:'secondHandrelease',
|
|
@@ -277,7 +275,7 @@
|
|
|
secondProductType:null,//
|
|
|
townId:'',//县区地址
|
|
|
address:'',//详细地址
|
|
|
- image1:'',//图片
|
|
|
+ image1:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/secondbg.jpg',//图片
|
|
|
productDetails:'',//商品详细信息
|
|
|
source:1,
|
|
|
},
|
|
@@ -294,6 +292,7 @@
|
|
|
vShow_secondBj:false,
|
|
|
resultBj:false,
|
|
|
vShow_detailTalkFlag:false,
|
|
|
+ playid:'',
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -423,10 +422,10 @@
|
|
|
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.GoodsImagesList ==''){
|
|
|
+ // this.$util.msg('请上传图片',2000);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if(this.checkbox==false){
|
|
|
this.$util.msg('请勾选已阅读',2000);
|
|
|
return
|
|
@@ -446,10 +445,43 @@
|
|
|
quxiao:function(){
|
|
|
this.vShow_secondBj = false;
|
|
|
},
|
|
|
- gopay:function(){
|
|
|
- this.$api.navigateTo(`/pages/user/order/order-payment?type=confirm&productID=${this.playid}`)
|
|
|
+ gopay(){
|
|
|
+ this.MiniWxPayFor()
|
|
|
this.vShow_secondBj = false;
|
|
|
},
|
|
|
+ MiniWxPayFor(){
|
|
|
+ authorize.getCode('weixin').then(wechatcode =>{
|
|
|
+ let params ={
|
|
|
+ code:wechatcode,
|
|
|
+ productId:this.playid
|
|
|
+ }
|
|
|
+ this.PayService.SecondHandPay(params).then(response =>{
|
|
|
+ let PayInfo = JSON.parse(response.data.data.payInfo);
|
|
|
+ this.WxRequestPayment(PayInfo)
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ WxRequestPayment(data){
|
|
|
+ let self = this
|
|
|
+ wx.requestPayment({
|
|
|
+ 'timeStamp': data.timeStamp,
|
|
|
+ 'nonceStr': data.nonceStr,
|
|
|
+ 'package': data.package,
|
|
|
+ 'signType': data.signType,
|
|
|
+ 'paySign': data.paySign,
|
|
|
+ 'success':function(res){
|
|
|
+ wx.reLaunch({url: 'second/pages/product/product-list'});
|
|
|
+ },
|
|
|
+ 'fail':function(res){
|
|
|
+ self.$util.msg('用户取消支付~')
|
|
|
+ },
|
|
|
+ 'complete':function(res){
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeBox:function () {
|
|
|
this.checkbox = !this.checkbox;
|
|
|
},
|
|
@@ -480,9 +512,7 @@
|
|
|
.secondradio{display: inline-block;margin-left: 40rpx;}
|
|
|
.Secondary{margin-left: 161rpx;}
|
|
|
.secondradio view.active {color: #e15616;}
|
|
|
- input[type="text"]::placeholder{color: #b2b2b2;}
|
|
|
- textarea::placeholder{color: #b2b2b2;}
|
|
|
- input[type="text"]{line-height: 90rpx;overflow: unset;}
|
|
|
+ .placeholder{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;
|
|
|
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%;
|
|
@@ -492,7 +522,7 @@
|
|
|
.row .spacing.second{width: 70%;}
|
|
|
.row{border-bottom: 2rpx solid #e1e1e1;line-height: 90rpx;height: 90rpx;}
|
|
|
.row.fenlei{height: auto;margin: 10rpx 0;border: 0}
|
|
|
- .select {position: relative;color: #9aa5b5;text-align: left;user-select: none;}
|
|
|
+ .select {position: relative;color: #b2b2b2;text-align: left;user-select: none;}
|
|
|
.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;}
|
|
|
.icon-xiayibu{right: 0rpx;;color: #b2b2b2;position: absolute}
|