页面调整
This commit is contained in:
@@ -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" : {
|
||||
|
||||
@@ -96,18 +96,22 @@
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
marketsInfo(this.$Route.query.marketId).then(res =>{
|
||||
this.info = res
|
||||
this.price = res.price
|
||||
this.loding = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
this.getInfo()
|
||||
},
|
||||
methods:{
|
||||
// 获取数据信息
|
||||
getInfo(){
|
||||
marketsInfo(this.$Route.query.marketId).then(res =>{
|
||||
this.info = res
|
||||
this.price = res.price
|
||||
this.loding = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 查看锚定产品
|
||||
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()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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