Commit a75301cc authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 97bb479d
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{{ getRemark1(item.remarks) + '\r\n' + getRemark2(item.remarks) }} {{ getRemark1(item.remarks) + '\r\n' + getRemark2(item.remarks) }}
</view> </view>
<view class="label2" v-if="index==selectedIndex&&item.firstPayPrice>0"> <view class="label2" v-if="index==selectedIndex&&item.firstPayPrice>0.1">
{{ '仅需'+amount(item.firstPayPrice / item.days)+'元/天' }} {{ '仅需'+amount(item.firstPayPrice / item.days)+'元/天' }}
</view> </view>
</view> </view>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</view> </view>
<view @click="handleUnsign" v-if="agreementDto" <view @click="handleUnsign" v-if="agreementDto"
style="margin-top: 12rpx;margin-left: 30rpx;color: black;font-size: 36rpx;font-weight: 700;">自动续费管理 style="margin-left: 20rpx;color: black;font-size: 36rpx;font-weight: 700;">自动续费管理
> >
</view> </view>
...@@ -88,6 +88,12 @@ ...@@ -88,6 +88,12 @@
</uni-popup-dialog> </uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
<uni-popup type="center" ref="select">
<view class="text-box">
{{slotParam}}
</view>
</uni-popup>
</view> </view>
</template> </template>
...@@ -113,7 +119,8 @@ ...@@ -113,7 +119,8 @@
os: 'android', os: 'android',
checked: false, checked: false,
agreementDto: null, agreementDto: null,
hintText: '' hintText: '',
slotParam: ''
} }
}, },
methods: { methods: {
...@@ -221,20 +228,26 @@ ...@@ -221,20 +228,26 @@
let that = this; let that = this;
tt.createSignOrder({ tt.createSignOrder({
businessType: 2, businessType: ttData.params.businessType,
data: ttData.params.data, data: ttData.params.data,
byteAuthorization: ttData.params.byteAuthorization, byteAuthorization: ttData.params.byteAuthorization,
success: (res) => { success: (res) => {
tt.sign({ tt.sign({
businessType: 2, businessType: ttData.params.businessType,
orderId: res.authOrderId, orderId: res.authOrderId,
success: (res) => { success: (res) => {
that.queryOrderStatus(largeType, ttData.tidStr); that.queryOrderStatus(largeType, ttData.tidStr);
},
fail: (res) => {
// this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center');
} }
}) })
}, },
fail: (res) => { fail: (res) => {
console.log('createSignOrdercreateSignOrder->:', JSON.stringify(res)); // this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center');
// console.log('createSignOrdercreateSignOrder->:', JSON.stringify(res));
} }
}) })
...@@ -499,7 +512,7 @@ ...@@ -499,7 +512,7 @@
border-radius: 50rpx; border-radius: 50rpx;
background: #e8c8ae; background: #e8c8ae;
color: #8d5a29; color: #8d5a29;
width: 550rpx; width: 600rpx;
margin: 40rpx auto; margin: 40rpx auto;
} }
} }
...@@ -511,7 +524,6 @@ ...@@ -511,7 +524,6 @@
justify-content: center; justify-content: center;
flex-direction: row; flex-direction: row;
margin: 0 auto; margin: 0 auto;
margin-top: 16rpx;
} }
.agreementWrp { .agreementWrp {
...@@ -520,7 +532,7 @@ ...@@ -520,7 +532,7 @@
color: darkgray; color: darkgray;
font-size: 26rpx; font-size: 26rpx;
margin-top: 30rpx; margin-top: 30rpx;
padding-left: 30rpx; padding-left: 30rpx;
padding-right: 20rpx; padding-right: 20rpx;
.agreementText { .agreementText {
...@@ -534,5 +546,12 @@ ...@@ -534,5 +546,12 @@
font-size: 22rpx; font-size: 22rpx;
color: darkgray; color: darkgray;
} }
}
.text-box {
word-break: break-all;
margin: 10rpx;
padding: 10rpx;
background-color: white;
color: black;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment