This commit is contained in:
@@ -8,6 +8,7 @@ export default defineAppConfig({
|
||||
'pages/game/gamedetail/index',
|
||||
'pages/game/gameview/index',
|
||||
'pages/game/view/index',
|
||||
'pages/fastBuy/index',
|
||||
],
|
||||
subPackages: [
|
||||
{
|
||||
|
||||
@@ -168,6 +168,11 @@ const create_order = async () => {
|
||||
icon: 'none',
|
||||
});
|
||||
} catch (e) {
|
||||
if (e.msg === '请先设置交易密码') {
|
||||
Taro.navigateTo({
|
||||
url: '/pages/users/pwd/index',
|
||||
});
|
||||
}
|
||||
Taro.showToast({
|
||||
title: e.msg,
|
||||
icon: 'none',
|
||||
|
||||
4
src/pages/fastBuy/index.config.ts
Normal file
4
src/pages/fastBuy/index.config.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '',
|
||||
navigationStyle: 'custom',
|
||||
});
|
||||
6
src/pages/fastBuy/index.scss
Normal file
6
src/pages/fastBuy/index.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
page {
|
||||
background-image: url('https://p1.meituan.net/csc/75a139bcec06745d385ec211aa313a98196174.png');
|
||||
background-size: 100% 40%;
|
||||
background-repeat: no-repeat;
|
||||
background-color: #F9F8F6;
|
||||
}
|
||||
40
src/pages/fastBuy/index.vue
Normal file
40
src/pages/fastBuy/index.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<view class="flex flex-col items-center pt-[208px]">
|
||||
<image class="h-[152px]" :src="par.header" />
|
||||
<view class="list mt-[30px]">
|
||||
<view class="bg-white w-[700px] h-[300px] rounded-[20px]"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {ref} from 'vue';
|
||||
import Taro from '@tarojs/taro';
|
||||
|
||||
const par = ref<any>({});
|
||||
|
||||
Taro.useLoad(e => {
|
||||
switch (e.type) {
|
||||
case '1':
|
||||
par.value = {
|
||||
header:
|
||||
'https://p0.meituan.net/csc/6229068017d3b199aafd9eed47bfd50513859.png',
|
||||
};
|
||||
break;
|
||||
case '2':
|
||||
par.value = {
|
||||
header:
|
||||
'https://p0.meituan.net/csc/ccfb8d3119200f81e2d6a5241081eb4b13797.png',
|
||||
};
|
||||
break;
|
||||
}
|
||||
par.value = {
|
||||
...par.value,
|
||||
type: e.type,
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import './index.scss';
|
||||
</style>
|
||||
@@ -16,13 +16,19 @@
|
||||
<view class="title"></view>
|
||||
<navigator class="jf-btn" hover-class="none"></navigator>
|
||||
<view class="footer">
|
||||
<navigator hover-class="none" class="btn-1"></navigator>
|
||||
<navigator
|
||||
hover-class="none"
|
||||
class="btn-1"
|
||||
url="/pages/fastBuy/index?type=1"></navigator>
|
||||
<navigator
|
||||
hover-class="none"
|
||||
openType="switchTab"
|
||||
url="/pages/game/gamehome/index"
|
||||
class="btn-2"></navigator>
|
||||
<navigator hover-class="none" class="btn-3"></navigator>
|
||||
<navigator
|
||||
hover-class="none"
|
||||
class="btn-3"
|
||||
url="/pages/fastBuy/index?type=2"></navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="navigation">
|
||||
|
||||
@@ -307,6 +307,11 @@ const userMenuList = ref([
|
||||
url: '/pages/users/setting/index',
|
||||
icon: 'http://p0.meituan.net/csc/1d8e6b328d384ff042c282976b82feec6005.png',
|
||||
},
|
||||
{
|
||||
label: '关于我们',
|
||||
url: '',
|
||||
icon: 'http://p0.meituan.net/csc/3e772eca05bd56104e8a0a5c6cffe56c7447.png',
|
||||
},
|
||||
]);
|
||||
|
||||
const clickLogin = () => {
|
||||
|
||||
@@ -121,7 +121,7 @@ const openPay = async (item: OrderList) => {
|
||||
// oid: item.oid,
|
||||
// };
|
||||
Taro.navigateTo({
|
||||
url: `/pages/goods/pay/index?oid=${item.joint_oid}&bid=${item.bid}`,
|
||||
url: `/pages/goods/pay/index?oid=${item.joint_oid}&bid=${item.bid}&OrderType=1`,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -47,4 +47,4 @@ const request = (
|
||||
});
|
||||
};
|
||||
|
||||
export default request;
|
||||
export default request;
|
||||
Reference in New Issue
Block a user