页面调整
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "链商星球",
|
"name" : "链商星球",
|
||||||
"appid" : "__UNI__1F65101",
|
"appid" : "__UNI__1F65101",
|
||||||
"description" : "安徽星煌,链商星球商家工具",
|
"description" : "安徽星煌,链商星球商家工具",
|
||||||
"versionName" : "1.1.6",
|
"versionName" : "1.1.7",
|
||||||
"versionCode" : 116,
|
"versionCode" : 117,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -96,6 +96,11 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.getInfo()
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
// 获取数据信息
|
||||||
|
getInfo(){
|
||||||
marketsInfo(this.$Route.query.marketId).then(res =>{
|
marketsInfo(this.$Route.query.marketId).then(res =>{
|
||||||
this.info = res
|
this.info = res
|
||||||
this.price = res.price
|
this.price = res.price
|
||||||
@@ -107,7 +112,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods:{
|
|
||||||
// 查看锚定产品
|
// 查看锚定产品
|
||||||
onGoods(){
|
onGoods(){
|
||||||
this.$Router.push({name: 'marketGoods', params: { id: this.info.goods.goods_id }})
|
this.$Router.push({name: 'marketGoods', params: { id: this.info.goods.goods_id }})
|
||||||
@@ -151,19 +155,34 @@
|
|||||||
switch (this.payValue){
|
switch (this.payValue){
|
||||||
case 'wechat':
|
case 'wechat':
|
||||||
let payConfigObj = JSON.parse(res)
|
let payConfigObj = JSON.parse(res)
|
||||||
cashierPay.pay('wxpay', payConfigObj, 'market')
|
cashierPay.pay('wxpay', payConfigObj, 'market').then(() => {
|
||||||
|
this.paySuccess()
|
||||||
|
})
|
||||||
break
|
break
|
||||||
case 'alipay':
|
case 'alipay':
|
||||||
cashierPay.pay('alipay', res, 'market')
|
cashierPay.pay('alipay', res, 'market').then(() => {
|
||||||
|
this.paySuccess()
|
||||||
|
})
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 支付结果
|
||||||
|
paySuccess(){
|
||||||
|
this.$refs.payLay.close()
|
||||||
|
uni.showModal({
|
||||||
|
title : '支付成功',
|
||||||
|
content : '购买成功,可在节点中心我的权证中查看',
|
||||||
|
showCancel : false,
|
||||||
|
success : () => {
|
||||||
|
this.$Router.back()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,10 +42,10 @@
|
|||||||
<view class="goods-type">退货方式<span>快递退回</span></view>
|
<view class="goods-type">退货方式<span>快递退回</span></view>
|
||||||
<block v-if="info.can.user_deliver">
|
<block v-if="info.can.user_deliver">
|
||||||
<view class="goods-type-1">物流公司
|
<view class="goods-type-1">物流公司
|
||||||
<u-input v-model="company" placeholder='请输入退货物流公司' />
|
<u-input class="goods-type-input" v-model="company" placeholder='请输入退货物流公司' />
|
||||||
</view>
|
</view>
|
||||||
<view class="goods-type-1">物流单号
|
<view class="goods-type-1">物流单号
|
||||||
<u-input v-model="number" placeholder='请输入物流单号' />
|
<u-input class="goods-type-input" v-model="number" placeholder='请输入物流单号' />
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@@ -206,8 +206,8 @@
|
|||||||
.order-status {
|
.order-status {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
background-image: linear-gradient(to bottom, $mian-color, $mian-color-light);
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
color: #Fff;
|
color: #fff;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
padding: 30rpx 50rpx;
|
padding: 30rpx 50rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -286,8 +286,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
border-bottom: solid 1rpx #f7f7f7;
|
border-bottom: solid 1rpx #f7f7f7;
|
||||||
|
.goods-type-input {
|
||||||
u-input {
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-left: 50rpx;
|
margin-left: 50rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,6 +250,7 @@
|
|||||||
.list-right {
|
.list-right {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,6 +313,7 @@
|
|||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
border:solid 1rpx $border-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
unpackage/dist/dev/app-plus/app-service.js
vendored
8
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user