+
- 已开通29天
+ 开通时间:{{ riceInfo.openTime }}
- 剩余一天到期
@@ -132,7 +137,7 @@
-
+
@@ -165,7 +170,7 @@
customerServicePopup,
},
computed: {
- ...mapState(['userInfo', 'riceInfo', 'configList']),
+ ...mapState(['riceInfo']),
adList() {
let arr = [];
if (this.configList?.shop_get_image) {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 39b1d8f..bf01149 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -19,7 +19,9 @@
-
+
-
- 温馨提示,下单前请仔细查看下单需知
+
+ {{ payOrderProduct[0].orderDetails }}
@@ -150,8 +159,9 @@
addressTotal: 0,
remark: '',
num: 1,
- agreement: true,
+ agreement: false,
coupon: {},
+ payMethod : 0,
}
},
computed: {
@@ -246,39 +256,64 @@
})
return
}
+
+ if (!this.agreement) {
+ uni.showToast({
+ title: '请先同意使用协议',
+ icon: 'none'
+ })
+ return
+ }
let data = {}
let api = ''
- if (this.payOrderProduct[0].shopId || this.payOrderProduct[0].type == 2) { //普通商品
+ // if (this.payOrderProduct[0].shopId || this.payOrderProduct[0].type == 2) { //普通商品
- let list = []
- this.payOrderProduct.forEach(n => {
- list.push({
- num: n.num,
- shopId: n.shopId || n.id,
- })
- })
- data = {
- addressId,
- list: JSON.stringify(list),
- }
- api = 'createSumOrder'
+ // let list = []
+ // this.payOrderProduct.forEach(n => {
+ // list.push({
+ // num: n.num,
+ // shopId: n.shopId || n.id,
+ // })
+ // })
+ // data = {
+ // addressId,
+ // list: JSON.stringify(list),
+ // }
+ // api = 'createSumOrder'
- this.deleteCart(this.payOrderProduct.map(n => n.id).join(','))
+ // this.deleteCart(this.payOrderProduct.map(n => n.id).join(','))
- } else { //体验、常规商品
+ // } else { //体验、常规商品
data = {
addressId,
num: this.payOrderProduct[0].num,
shopId: this.payOrderProduct[0].id,
+ payType : this.payMethod,
}
api = 'createOrder'
+ // }
+
+ if(this.coupon.id){
+ data.couponId = this.coupon.id
}
this.$api(api, data, res => {
if (res.code == 200) {
+
+ if(this.payMethod == 1){
+ uni.showToast({
+ title: '下单成功',
+ icon: 'none'
+ })
+ setTimeout(uni.redirectTo, 700, {
+ url: '/pages/index/order'
+ })
+ return
+ }
+
uni.requestPaymentWxPay(res)
.then(res => {
uni.showToast({
@@ -314,10 +349,6 @@
ids
})
},
- //选择支付方式
- selectPayMethod(e) {
- console.log(e.detail.value)
- }
}
}
diff --git a/pages_order/order/orderDetail.vue b/pages_order/order/orderDetail.vue
index 3d263fe..7a81d38 100644
--- a/pages_order/order/orderDetail.vue
+++ b/pages_order/order/orderDetail.vue
@@ -181,7 +181,7 @@
- 下单须知下单须知下单须知下单须知下单须知下单须知
+ {{ order.orderDetails }}
diff --git a/pages_order/product/productDetail.vue b/pages_order/product/productDetail.vue
index 286591d..44b0924 100644
--- a/pages_order/product/productDetail.vue
+++ b/pages_order/product/productDetail.vue
@@ -16,7 +16,7 @@
-
+
diff --git a/uni_modules/uv-empty/components/uv-empty/props.js b/uni_modules/uv-empty/components/uv-empty/props.js
index 26c282d..59968a6 100644
--- a/uni_modules/uv-empty/components/uv-empty/props.js
+++ b/uni_modules/uv-empty/components/uv-empty/props.js
@@ -18,7 +18,7 @@ export default {
// 文字大小
textSize: {
type: [String, Number],
- default: 14
+ default: 30
},
// 图标的颜色
iconColor: {
@@ -28,7 +28,7 @@ export default {
// 图标的大小
iconSize: {
type: [String, Number],
- default: 90
+ default: 180
},
// 选择预置的图标类型
mode: {
@@ -38,12 +38,12 @@ export default {
// 图标宽度,单位px
width: {
type: [String, Number],
- default: 160
+ default: 320
},
// 图标高度,单位px
height: {
type: [String, Number],
- default: 160
+ default: 320
},
// 是否显示组件
show: {
diff --git a/uni_modules/uv-radio/components/uv-radio/props.js b/uni_modules/uv-radio/components/uv-radio/props.js
index 1e5e2ac..b46cccd 100644
--- a/uni_modules/uv-radio/components/uv-radio/props.js
+++ b/uni_modules/uv-radio/components/uv-radio/props.js
@@ -33,12 +33,12 @@ export default {
// 图标的大小,单位px
iconSize: {
type: [String, Number],
- default: ''
+ default: '26rpx'
},
// label的字体大小,px单位
labelSize: {
type: [String, Number],
- default: ''
+ default: '30rpx'
},
// label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
label: {
@@ -48,7 +48,7 @@ export default {
// 整体的大小
size: {
type: [String, Number],
- default: ''
+ default: '30rpx'
},
// 图标颜色
iconColor: {