Commit a75301cc authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 97bb479d
......@@ -32,7 +32,7 @@
{{ getRemark1(item.remarks) + '\r\n' + getRemark2(item.remarks) }}
</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)+'元/天' }}
</view>
</view>
......@@ -48,7 +48,7 @@
</view>
<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>
......@@ -88,6 +88,12 @@
</uni-popup-dialog>
</uni-popup>
</view>
<uni-popup type="center" ref="select">
<view class="text-box">
{{slotParam}}
</view>
</uni-popup>
</view>
</template>
......@@ -113,7 +119,8 @@
os: 'android',
checked: false,
agreementDto: null,
hintText: ''
hintText: '',
slotParam: ''
}
},
methods: {
......@@ -221,20 +228,26 @@
let that = this;
tt.createSignOrder({
businessType: 2,
businessType: ttData.params.businessType,
data: ttData.params.data,
byteAuthorization: ttData.params.byteAuthorization,
success: (res) => {
tt.sign({
businessType: 2,
businessType: ttData.params.businessType,
orderId: res.authOrderId,
success: (res) => {
that.queryOrderStatus(largeType, ttData.tidStr);
},
fail: (res) => {
// this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center');
}
})
},
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 @@
border-radius: 50rpx;
background: #e8c8ae;
color: #8d5a29;
width: 550rpx;
width: 600rpx;
margin: 40rpx auto;
}
}
......@@ -511,7 +524,6 @@
justify-content: center;
flex-direction: row;
margin: 0 auto;
margin-top: 16rpx;
}
.agreementWrp {
......@@ -535,4 +547,11 @@
color: darkgray;
}
}
.text-box {
word-break: break-all;
margin: 10rpx;
padding: 10rpx;
background-color: white;
color: black;
}
</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