|
|
@@ -6,9 +6,18 @@
|
|
|
<image style="width: 40rpx;height: 40rpx;" src="@/static/points/addressIcon.png" mode=""></image>
|
|
|
|
|
|
<text class="name" v-if="defaultAddress">{{ defaultAddress.userName }}</text>
|
|
|
- <text class="address" v-if="defaultAddress">{{ defaultAddress.address + defaultAddress.atlasAdd }}</text>
|
|
|
- <image style="width: 28rpx;height: 28rpx;position: absolute;right: 0;" @click="addressSelectFun"
|
|
|
- src="@/static/points/Keyboard_arrow_rifht.png" mode=""></image>
|
|
|
+
|
|
|
+ <text class="address" v-if="defaultAddress">{{ defaultAddress.address + defaultAddress.atlasAdd
|
|
|
+ }}</text>
|
|
|
+ <view style="position: absolute;right: 0;display: flex;width: 115rpx;align-items: center;height: 33rpx;
|
|
|
+ ">
|
|
|
+ <text class="address" style="color: #999;" v-if='!defaultAddress'>去添加</text>
|
|
|
+
|
|
|
+ <image style="width: 35rpx;height: 35rpx;position: absolute;right: 0;top: 1rpx;" @click="addressSelectFun"
|
|
|
+ src="@/static/points/Keyboard_arrow_rifht.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
<view class="productPrice">
|
|
|
@@ -94,6 +103,100 @@
|
|
|
</view>
|
|
|
</u-radio-group>
|
|
|
|
|
|
+
|
|
|
+ <!-- ========== -->
|
|
|
+ <u-radio-group v-if="selectPayMeth" class="nodeClass" v-model="selectPayMeth">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/weiXin.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">微信支付</view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='1' style="margin: 0;"></u-radio>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;margin-top: 24rpx;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/yue.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">余额支付</view>
|
|
|
+ </view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='2'></u-radio>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-radio-group><u-radio-group v-if="selectPayMeth" class="nodeClass" v-model="selectPayMeth">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/weiXin.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">微信支付</view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='1' style="margin: 0;"></u-radio>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;margin-top: 24rpx;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/yue.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">余额支付</view>
|
|
|
+ </view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='2'></u-radio>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-radio-group><u-radio-group v-if="selectPayMeth" class="nodeClass" v-model="selectPayMeth">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/weiXin.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">微信支付</view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='1' style="margin: 0;"></u-radio>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;margin-top: 24rpx;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/yue.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">余额支付</view>
|
|
|
+ </view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='2'></u-radio>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-radio-group><u-radio-group v-if="selectPayMeth" class="nodeClass" v-model="selectPayMeth">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/weiXin.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">微信支付</view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='1' style="margin: 0;"></u-radio>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;justify-content: space-between;width: 100%;margin-top: 24rpx;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <image style="width: 40rpx;height: 40rpx;" src="@/static/points/yue.png" mode="">
|
|
|
+ </image>
|
|
|
+ <view class="text" style="color: #333;margin-left: 16rpx;">余额支付</view>
|
|
|
+ </view>
|
|
|
+ <u-radio activeColor="#03C1B8 " name='2'></u-radio>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-radio-group>
|
|
|
+
|
|
|
+ <!-- ------------- -->
|
|
|
+
|
|
|
<view class="footer-bar">
|
|
|
|
|
|
<u-button v-if="!selectedObj" :customStyle="{
|
|
|
@@ -127,13 +230,13 @@ export default {
|
|
|
},
|
|
|
defaultAddress: {
|
|
|
type: Object,
|
|
|
- default: {}
|
|
|
+ default: null
|
|
|
},
|
|
|
redeemNowBtnDisable: {
|
|
|
- type: Boolean ,
|
|
|
+ type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -153,6 +256,7 @@ export default {
|
|
|
},
|
|
|
onShow() {
|
|
|
console.log('555')
|
|
|
+ this.$emit('getAddrListFun')
|
|
|
|
|
|
},
|
|
|
onPageScroll() {
|
|
|
@@ -190,7 +294,7 @@ export default {
|
|
|
},
|
|
|
//立即兑换
|
|
|
redeemNowFun() {
|
|
|
- this.$emit('redeemNowFun', this.selectedObj ? JSON.parse(JSON.stringify(this.selectedObj)) : null, this.selectPayMeth, this.orderRemarks,true)
|
|
|
+ this.$emit('redeemNowFun', this.selectedObj ? JSON.parse(JSON.stringify(this.selectedObj)) : null, this.selectPayMeth, this.orderRemarks, true)
|
|
|
},
|
|
|
//点击选规则
|
|
|
selectedSpecFun(specValue, specName) {
|
|
|
@@ -226,7 +330,7 @@ export default {
|
|
|
//去我的地址页面
|
|
|
addressSelectFun() {
|
|
|
uni.navigateTo({
|
|
|
- url:`/pages/address/index?selectedAddressId=${this.defaultAddress.id}`
|
|
|
+ url: `/pages/address/index?selectedAddressId=${this.defaultAddress?this.defaultAddress.id:null}`
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -237,11 +341,12 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
.content {
|
|
|
background-color: #F5F8F8;
|
|
|
- padding: 24rpx 32rpx 0 32rpx;
|
|
|
+ padding: 24rpx 32rpx 32rpx 32rpx;
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
- height: 1250rpx;
|
|
|
+ height: 1000rpx;
|
|
|
border-radius: 20rpx 20rpx 0 0;
|
|
|
-
|
|
|
+ overflow-y: auto;
|
|
|
+ position: relative;
|
|
|
.addressBox {
|
|
|
position: relative;
|
|
|
margin-top: 70rpx;
|
|
|
@@ -379,6 +484,7 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
|
|
|
.u-radio__icon-wrap {
|
|
|
margin: 0;
|