|
@@ -224,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',
|
|
@@ -445,12 +446,42 @@
|
|
|
this.vShow_secondBj = false;
|
|
|
},
|
|
|
gopay(){
|
|
|
- console.log(this.playid);
|
|
|
- let url=`/pages/user/order/order-payment?type=confirm&productID=${this.playid}`
|
|
|
- console.log(url)
|
|
|
- this.$api.navigateTo(`/pages/user/order/order-payment?pageType=1&type=confirm&productID=${this.playid}`)
|
|
|
+ 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;
|
|
|
},
|
|
@@ -481,7 +512,7 @@
|
|
|
.secondradio{display: inline-block;margin-left: 40rpx;}
|
|
|
.Secondary{margin-left: 161rpx;}
|
|
|
.secondradio view.active {color: #e15616;}
|
|
|
- .placeholder{color: #9aa5b5;}
|
|
|
+ .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%;
|
|
@@ -491,14 +522,14 @@
|
|
|
.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: #9aa5b5;position: absolute}
|
|
|
- .xiangliao{font-size: 26rpx;margin-right: 10rpx;color: #9aa5b5}
|
|
|
+ .icon-xiayibu{right: 0rpx;;color: #b2b2b2;position: absolute}
|
|
|
+ .xiangliao{font-size: 26rpx;margin-right: 10rpx;color: #b2b2b2}
|
|
|
.icon-jiagexiangliao{color: #e15616 !important;}
|
|
|
.pricecolor{margin-left: 10rpx;}
|
|
|
- .showflag{color: #9aa5b5;}
|
|
|
+ .showflag{color: #b2b2b2;}
|
|
|
.border-grey{width: 100%;resize: none;padding: 20rpx 0;height: 160rpx;border-bottom: 2rpx solid #e1e1e1;}
|
|
|
.release-main-container {overflow: hidden;margin: 20rpx 0}
|
|
|
.uploadGoodsImages{display: flex;overflow-x: auto;overflow-y: hidden;}
|