add
This commit is contained in:
parent
25c609e39a
commit
f71924219f
|
@ -82,6 +82,9 @@
|
||||||
<view class="store-info">
|
<view class="store-info">
|
||||||
报备人:{{ STORE_INFO.name }}
|
报备人:{{ STORE_INFO.name }}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="store-info" style="font-size: 40rpx;" v-if="Role==1">
|
||||||
|
¥500.00
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-btn" @click="submit">
|
<view class="submit-btn" @click="submit">
|
||||||
<view
|
<view
|
||||||
|
@ -325,7 +328,7 @@
|
||||||
// code: ''
|
// code: ''
|
||||||
})
|
})
|
||||||
const resetFormData = () => {
|
const resetFormData = () => {
|
||||||
for (ket key in formData) {
|
for (let key in formData) {
|
||||||
formData[key] = ''
|
formData[key] = ''
|
||||||
}
|
}
|
||||||
tabsList.forEach(item => {
|
tabsList.forEach(item => {
|
||||||
|
|
|
@ -113,6 +113,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<ZyPasswordboard v-if='passwordBoardVisible' v-model:visible="passwordBoardVisible" v-bind="passwordBoardProps"
|
||||||
|
@close='closeKeyBord' />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
@ -127,6 +129,7 @@
|
||||||
import good from "./component/good.vue";
|
import good from "./component/good.vue";
|
||||||
import orderCanclePopup from "@/components/orderCanclePopup.vue"
|
import orderCanclePopup from "@/components/orderCanclePopup.vue"
|
||||||
import modal from "@/components/modal.vue"
|
import modal from "@/components/modal.vue"
|
||||||
|
import ZyPasswordboard from '@/uni_modules/zy-passwordboard/components/zy-passwordboard/zy-passwordboard.vue';
|
||||||
import {
|
import {
|
||||||
cancelOrderApi,
|
cancelOrderApi,
|
||||||
rePaymentApi,
|
rePaymentApi,
|
||||||
|
@ -134,6 +137,11 @@
|
||||||
orderListApi,
|
orderListApi,
|
||||||
purchaseAgainApi
|
purchaseAgainApi
|
||||||
} from "@/api/order.js"
|
} from "@/api/order.js"
|
||||||
|
import {
|
||||||
|
userInfoApi
|
||||||
|
} from "@/api/user.js"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const tabsActive = ref(0)
|
const tabsActive = ref(0)
|
||||||
const changeTab = ({
|
const changeTab = ({
|
||||||
|
@ -284,7 +292,36 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rePay = (e) => {
|
const pay_type = ref('3')
|
||||||
|
|
||||||
|
const rePay = async (e) => {
|
||||||
|
if (!pay_type.value) return uni.$u.toast('请选择支付方式');
|
||||||
|
if (pay_type.value == 3 || pay_type.value == 18) {
|
||||||
|
let res = await userInfoApi()
|
||||||
|
return res.data.pay_password ? passwordBoardVisible.value = true : showModal.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 支付密码
|
||||||
|
const password = ref(''); // 支付密码
|
||||||
|
const passwordBoardVisible = ref(false);
|
||||||
|
const passwordBoardProps = {
|
||||||
|
title: '输入支付密码',
|
||||||
|
onComplete(value) {
|
||||||
|
password.value = value
|
||||||
|
passwordBoardVisible.value = false
|
||||||
|
console.log(password.value)
|
||||||
|
// payFn()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const closeKeyBord = () => {
|
||||||
|
password.value = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const payFn = () => {
|
||||||
rePaymentApi({
|
rePaymentApi({
|
||||||
order_id: e.id,
|
order_id: e.id,
|
||||||
address_id: e.address_id,
|
address_id: e.address_id,
|
||||||
|
@ -317,6 +354,11 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const notWxPay = () => {
|
||||||
|
alert("不是微信支付")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 订单
|
// 订单
|
||||||
const where = ref([{
|
const where = ref([{
|
||||||
page_no: 1,
|
page_no: 1,
|
||||||
|
|
|
@ -379,11 +379,6 @@
|
||||||
const passwordBoardProps = {
|
const passwordBoardProps = {
|
||||||
title: '输入支付密码',
|
title: '输入支付密码',
|
||||||
onComplete(value) {
|
onComplete(value) {
|
||||||
// uni.vibrateShort({
|
|
||||||
// success: function() {
|
|
||||||
// console.log('success');
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
password.value = value
|
password.value = value
|
||||||
passwordBoardVisible.value = false
|
passwordBoardVisible.value = false
|
||||||
payFn()
|
payFn()
|
||||||
|
|
Loading…
Reference in New Issue