|
@@ -264,18 +264,17 @@ struct PurchaseView :View {
|
|
|
VStack(spacing: 12) {
|
|
|
|
|
|
ZStack(alignment: .topTrailing) {
|
|
|
- PurchaseItemView(title: "One Month", type: .month, selectedType: $viewModel.selectedType).onTapGesture {
|
|
|
- viewModel.selectedType = .month
|
|
|
+ PurchaseItemView(title: "One Year", type: .year, selectedType: $viewModel.selectedType).onTapGesture {
|
|
|
+ viewModel.selectedType = .year
|
|
|
}
|
|
|
TSVipRecView()
|
|
|
.offset(y:-14)
|
|
|
}
|
|
|
|
|
|
HStack {
|
|
|
- PurchaseItemView(title: "One Year", type: .year, selectedType: $viewModel.selectedType).onTapGesture {
|
|
|
- viewModel.selectedType = .year
|
|
|
+ PurchaseItemView(title: "One Month", type: .month, selectedType: $viewModel.selectedType).onTapGesture {
|
|
|
+ viewModel.selectedType = .month
|
|
|
}
|
|
|
-
|
|
|
PurchaseItemView(title: "One Week", type: .week, selectedType: $viewModel.selectedType).onTapGesture {
|
|
|
viewModel.selectedType = .week
|
|
|
}
|
|
@@ -358,12 +357,10 @@ struct PurchaseItemView: View {
|
|
|
//推荐选择view
|
|
|
struct TSVipRecView: View {
|
|
|
var body: some View {
|
|
|
-
|
|
|
- let corner = 16.0
|
|
|
-
|
|
|
+
|
|
|
HStack(spacing: 4) {
|
|
|
Image("upvote_black").resizable().frame(width: 16, height: 16)
|
|
|
- Text("80% Choose").font(.font(size: 12,weight: .medium)).foregroundColor(.hex("#111111"))
|
|
|
+ Text("Save 60%").font(.font(size: 12,weight: .medium)).foregroundColor(.hex("#111111"))
|
|
|
}
|
|
|
.padding(EdgeInsets(top: 6, leading: 6, bottom: 6, trailing: 6))
|
|
|
.background(Color.hex("#FECB34"))
|