This commit is contained in:
@@ -50,7 +50,7 @@ const config = {
|
||||
prebundle: { enable: false },
|
||||
},
|
||||
cache: {
|
||||
enable: false, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
||||
enable: true, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
||||
},
|
||||
sass: {
|
||||
data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";`,
|
||||
|
||||
48
package.json
48
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jdt-user",
|
||||
"version": "3.0.15",
|
||||
"version": "3.0.16",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"templateInfo": {
|
||||
@@ -9,7 +9,7 @@
|
||||
"css": "sass"
|
||||
},
|
||||
"taroConfig": {
|
||||
"version": "3.0.15"
|
||||
"version": "3.0.16"
|
||||
},
|
||||
"scripts": {
|
||||
"build:weapp": "taro build --type weapp",
|
||||
@@ -61,49 +61,51 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.23.5",
|
||||
"@nutui/icons-vue-taro": "^0.0.9",
|
||||
"@nutui/nutui-taro": "^4.3.3",
|
||||
"@nutui/nutui-taro": "^4.3.6",
|
||||
"@qiun/vue-ucharts": "2.5.0-20230101",
|
||||
"@tarojs/components": "3.6.25",
|
||||
"@tarojs/helper": "3.6.25",
|
||||
"@tarojs/plugin-framework-vue3": "3.6.25",
|
||||
"@tarojs/plugin-html": "3.6.25",
|
||||
"@tarojs/plugin-platform-alipay": "3.6.25",
|
||||
"@tarojs/plugin-platform-h5": "3.6.25",
|
||||
"@tarojs/plugin-platform-jd": "3.6.25",
|
||||
"@tarojs/plugin-platform-qq": "3.6.25",
|
||||
"@tarojs/plugin-platform-swan": "3.6.25",
|
||||
"@tarojs/plugin-platform-tt": "3.6.25",
|
||||
"@tarojs/plugin-platform-weapp": "3.6.25",
|
||||
"@tarojs/runtime": "3.6.25",
|
||||
"@tarojs/shared": "3.6.25",
|
||||
"@tarojs/taro": "3.6.25",
|
||||
"@tarojs/components": "3.6.27",
|
||||
"@tarojs/helper": "3.6.27",
|
||||
"@tarojs/plugin-framework-vue3": "3.6.27",
|
||||
"@tarojs/plugin-html": "3.6.27",
|
||||
"@tarojs/plugin-platform-alipay": "3.6.27",
|
||||
"@tarojs/plugin-platform-h5": "3.6.27",
|
||||
"@tarojs/plugin-platform-jd": "3.6.27",
|
||||
"@tarojs/plugin-platform-qq": "3.6.27",
|
||||
"@tarojs/plugin-platform-swan": "3.6.27",
|
||||
"@tarojs/plugin-platform-tt": "3.6.27",
|
||||
"@tarojs/plugin-platform-weapp": "3.6.27",
|
||||
"@tarojs/runtime": "3.6.27",
|
||||
"@tarojs/shared": "3.6.27",
|
||||
"@tarojs/taro": "3.6.27",
|
||||
"dayjs": "^1.11.10",
|
||||
"pinia": "^2.1.7",
|
||||
"uqrcodejs": "^4.0.7",
|
||||
"vue": "^3.3.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.23.5",
|
||||
"@commitlint/cli": "^18.4.3",
|
||||
"@commitlint/config-conventional": "^18.4.3",
|
||||
"@tarojs/cli": "3.6.25",
|
||||
"@tarojs/plugin-mini-ci": "3.6.25",
|
||||
"@tarojs/taro-loader": "3.6.25",
|
||||
"@tarojs/webpack5-runner": "3.6.25",
|
||||
"@tarojs/cli": "3.6.27",
|
||||
"@tarojs/plugin-mini-ci": "3.6.27",
|
||||
"@tarojs/taro-loader": "3.6.27",
|
||||
"@tarojs/webpack5-runner": "3.6.27",
|
||||
"@types/node": "^18.19.1",
|
||||
"@types/webpack-env": "^1.18.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
||||
"@typescript-eslint/parser": "^6.13.1",
|
||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
||||
"@vue/compiler-sfc": "^3.3.9",
|
||||
"babel-preset-taro": "3.6.25",
|
||||
"babel-preset-taro": "3.6.27",
|
||||
"commitizen": "^4.3.0",
|
||||
"css-loader": "3.4.2",
|
||||
"cz-customizable": "^7.0.0",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-config-taro": "3.6.25",
|
||||
"eslint-config-taro": "3.6.27",
|
||||
"eslint-plugin-vue": "^9.19.2",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^15.1.0",
|
||||
"postcss": "8.4.29",
|
||||
"style-loader": "1.3.0",
|
||||
"stylelint": "9.3.0",
|
||||
"ts-node": "^10.9.1",
|
||||
|
||||
25491
pnpm-lock.yaml
generated
25491
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -57,8 +57,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { confirmAfterOrder, editAfterOrder } from "../../../../../api/admin";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { confirmAfterOrder, editAfterOrder } from "@/api/admin";
|
||||
import Taro from "@tarojs/taro";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -68,6 +68,10 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
console.log(props.info);
|
||||
})
|
||||
|
||||
const emits = defineEmits(["ok"]);
|
||||
|
||||
const visible = ref(false);
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { getAfterOrderList } from "../../../../api/admin";
|
||||
import Footer from "./components/Footer.vue";
|
||||
import { getAfterOrderList } from "@/api/admin";
|
||||
|
||||
const tabsIndex = ref(1);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ page {
|
||||
width: 608px;
|
||||
height: 457px;
|
||||
position: relative;
|
||||
image {
|
||||
canvas {
|
||||
position: absolute;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
<view class="desc">请在这里扫码</view>
|
||||
</view>
|
||||
<view class="box">
|
||||
<image :src="`https://api.pwmqr.com/qrcode/create?url=${code}`"></image>
|
||||
<!-- <image :src="`https://api.pwmqr.com/qrcode/create?url=${code}`"></image> -->
|
||||
<!-- <view ref="qrcode" id="qrcode"></view> -->
|
||||
<canvas canvas-id="qrcode" id="qrcode"></canvas>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -14,8 +16,7 @@
|
||||
import { onUnmounted, ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { getAfterOrder } from "@/api/admin";
|
||||
|
||||
const code = ref("");
|
||||
import UQRCode from "uqrcodejs";
|
||||
|
||||
const time_id = ref();
|
||||
|
||||
@@ -23,7 +24,7 @@ const info = ref<any>({});
|
||||
|
||||
Taro.useLoad((e) => {
|
||||
info.value = e;
|
||||
code.value = Taro.getStorageSync("pay_code");
|
||||
getCode();
|
||||
time_id.value = setInterval(async () => {
|
||||
const { data } = await getAfterOrder({
|
||||
bid: info.value.bid,
|
||||
@@ -45,6 +46,16 @@ Taro.useLoad((e) => {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
const getCode = () => {
|
||||
var qr = new UQRCode();
|
||||
qr.data = Taro.getStorageSync("pay_code");
|
||||
qr.size = 160;
|
||||
qr.make();
|
||||
var canvasContext = Taro.createCanvasContext("qrcode");
|
||||
qr.canvasContext = canvasContext;
|
||||
qr.drawCanvas();
|
||||
};
|
||||
|
||||
Taro.useDidHide(() => {
|
||||
clearInterval(time_id.value);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user