页面调整

This commit is contained in:
唐明明
2021-11-10 19:24:56 +08:00
parent f543bed848
commit d3ca6422a0
5 changed files with 46 additions and 24 deletions

View File

@@ -2,8 +2,8 @@
"name" : "链商星球",
"appid" : "__UNI__1F65101",
"description" : "安徽星煌,链商星球商家工具",
"versionName" : "1.1.6",
"versionCode" : 116,
"versionName" : "1.1.7",
"versionCode" : 117,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -96,6 +96,11 @@
};
},
onShow() {
this.getInfo()
},
methods:{
// 获取数据信息
getInfo(){
marketsInfo(this.$Route.query.marketId).then(res =>{
this.info = res
this.price = res.price
@@ -107,7 +112,6 @@
})
})
},
methods:{
// 查看锚定产品
onGoods(){
this.$Router.push({name: 'marketGoods', params: { id: this.info.goods.goods_id }})
@@ -151,19 +155,34 @@
switch (this.payValue){
case 'wechat':
let payConfigObj = JSON.parse(res)
cashierPay.pay('wxpay', payConfigObj, 'market')
cashierPay.pay('wxpay', payConfigObj, 'market').then(() => {
this.paySuccess()
})
break
case 'alipay':
cashierPay.pay('alipay', res, 'market')
cashierPay.pay('alipay', res, 'market').then(() => {
this.paySuccess()
})
break
}
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'
})
})
},
// 支付结果
paySuccess(){
this.$refs.payLay.close()
uni.showModal({
title : '支付成功',
content : '购买成功,可在节点中心我的权证中查看',
showCancel : false,
success : () => {
this.$Router.back()
}
})
}
}
}

View File

@@ -42,10 +42,10 @@
<view class="goods-type">退货方式<span>快递退回</span></view>
<block v-if="info.can.user_deliver">
<view class="goods-type-1">物流公司
<u-input v-model="company" placeholder='请输入退货物流公司' />
<u-input class="goods-type-input" v-model="company" placeholder='请输入退货物流公司' />
</view>
<view class="goods-type-1">物流单号
<u-input v-model="number" placeholder='请输入物流单号' />
<u-input class="goods-type-input" v-model="number" placeholder='请输入物流单号' />
</view>
</block>
</view>
@@ -206,8 +206,8 @@
.order-status {
width: 100%;
height: 300rpx;
background-image: linear-gradient(to bottom, $mian-color, $mian-color-light);
color: #Fff;
background-image: linear-gradient(to right, #7c52fc, #976dff);
color: #fff;
font-size: 36rpx;
padding: 30rpx 50rpx;
display: flex;
@@ -286,8 +286,7 @@
box-sizing: border-box;
padding: 30rpx 0;
border-bottom: solid 1rpx #f7f7f7;
u-input {
.goods-type-input {
flex: 1;
margin-left: 50rpx;
}

View File

@@ -250,6 +250,7 @@
.list-right {
width: 100%;
margin-top: 30rpx;
margin-bottom: 20rpx;
}
}
@@ -312,6 +313,7 @@
background-color: #f7f7f7;
display: flex;
justify-content: center;
border:solid 1rpx $border-color;
}
}
}

File diff suppressed because one or more lines are too long