feat(custom):
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-23 18:12:19 +08:00
parent e796bdbc8a
commit f67dc80a49
7 changed files with 54 additions and 37 deletions

View File

@@ -188,23 +188,27 @@ const orderData = ref<any>([]);
const sub = async () => {
const arr: any = list.value.filter(
(item: any) => item.state.checkboxgroup.length > 0,
);
if (arr.length === 0) {
Taro.showToast({
title: '请选择商品',
icon: 'none',
});
return;
}
(item: any) => item.state.checkboxgroup.length > 0,
);
console.log(arr);
if (arr.length === 0) {
Taro.showToast({
title: '请选择商品',
icon: 'none',
});
return;
}
try {
const {data: res} = await createActiveOrder({
Bid: arr.map((item: any) => item.StoreBid),
});
if (res.oid) {
orderData.value = res?.oid;
isShowPay.value = true;
// orderData.value = res?.oid;
// isShowPay.value = true;
// console.log(arr)
Taro.navigateTo({
url: `/pages/goods/pay/index?oid=${res.oid}&bid=${arr[0].StoreBid}`,
});
}
} catch (e) {
Taro.showToast({

View File

@@ -91,11 +91,12 @@
<nut-dialog
title="设置交易密码"
content="您还未设置交易密码,请前往设置"
cancel-text="选择其他支付方式"
cancel-text="其他支付方式"
ok-text="设置交易密码"
v-model:visible="visible2"
@cancel="visible2 = false"
@ok="onTips" />
@ok="onTips">
</nut-dialog>
</view>
</template>

View File

@@ -106,16 +106,19 @@ const tabChange = (index: number) => {
};
const openPay = async (item: OrderList) => {
isShowPay.value = true;
const user_info = Taro.getStorageSync('userInfo');
const data = await getUserPoint({
phone: user_info.data.phone,
bid: item.Store.bid,
// isShowPay.value = true;
// const user_info = Taro.getStorageSync('userInfo');
// const data = await getUserPoint({
// phone: user_info.data.phone,
// bid: item.Store.bid,
// });
// jfInfo.value = {
// jh_info: data.data,
// oid: item.oid,
// };
Taro.navigateTo({
url: `/pages/goods/pay/index?oid=${item.joint_oid}&bid=${item.bid}`,
});
jfInfo.value = {
jh_info: data.data,
oid: item.oid,
};
};
const errPay = () => {

View File

@@ -294,17 +294,21 @@ const toAdder = () => {
};
const openPay = async () => {
isShowPay.value = true;
const mer_info = Taro.getStorageSync('mer_info');
const user_info = Taro.getStorageSync('userInfo');
const data = await getUserPoint({
phone: user_info.data.phone,
bid: mer_info.bid,
// isShowPay.value = true;
// const mer_info = Taro.getStorageSync('mer_info');
// const user_info = Taro.getStorageSync('userInfo');
// const data = await getUserPoint({
// phone: user_info.data.phone,
// bid: mer_info.bid,
// });
// jfInfo.value = {
// jh_info: data.data,
// oid: Taro.getStorageSync('item').oid,
// };
// console.log(goodInfo.value.bid, goodInfo.value.joint_oid);
Taro.navigateTo({
url: `/pages/goods/pay/index?oid=${goodInfo.value.joint_oid}&bid=${goodInfo.value.bid}`,
});
jfInfo.value = {
jh_info: data.data,
oid: Taro.getStorageSync('item').oid,
};
};
const successPay = (val: boolean) => {

View File

@@ -21,6 +21,11 @@
display: flex;
justify-content: space-between;
align-items: center;
.input-placeholder {
font-size: 28px;
color: rgba(176, 176, 176, 1);
}
}
}
}

View File

@@ -11,7 +11,7 @@
maxLength="6"
placeholder="请输入6位数交易密码"
v-model="formVal.password"
placeholder-style="color:rgba(176, 176, 176, 1);font-size: 20px;" />
placeholderClass="input-placeholder" />
</view>
</view>
<view class="form-item">
@@ -24,7 +24,7 @@
maxLength="6"
v-model="formVal.confirmPassword"
placeholder="请再次输入6位数密码"
placeholder-style="color:rgba(176, 176, 176, 1);font-size: 20px;" />
placeholderClass="input-placeholder" />
</view>
</view>
<view class="form-item">
@@ -37,7 +37,7 @@
placeholder="请输入手机号码"
:disabled="true"
:value="userinfo.data?.phone"
placeholder-style="color:rgba(176, 176, 176, 1);font-size: 20px;" />
placeholderClass="input-placeholder" />
</view>
</view>
<view class="form-item">
@@ -50,7 +50,7 @@
placeholder="请输入验证码"
maxLength="6"
v-model="formVal.code"
placeholder-style="color:rgba(176, 176, 176, 1);font-size: 20px;" />
placeholderClass="input-placeholder" />
<text
:style="{
color: !isT ? '#F83D3D' : 'rgba(176, 176, 176, 1)',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 956 B

After

Width:  |  Height:  |  Size: 1.1 KiB