订单相关修改提测
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template xlang="wxml" minapp="mpvue">
|
||||
<view class="tki-barcode">
|
||||
<!-- #ifndef MP-ALIPAY -->
|
||||
<canvas class="tki-barcode-canvas" :canvas-id="cid"
|
||||
<canvas class="tki-barcode-canvas 1" :canvas-id="cid"
|
||||
:style="{width:canvasWidth+'px',height:canvasHeight+'px'}" />
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-ALIPAY -->
|
||||
<canvas :id="cid" :width="canvasWidth" :height="canvasHeight" class="tki-barcode-canvas" />
|
||||
<canvas :id="cid" :width="canvasWidth" :height="canvasHeight" class="tki-barcode-canvas 2" />
|
||||
<!-- #endif -->
|
||||
<image v-show="show" :src="result" :style="{width:canvasWidth+'px',height:canvasHeight+'px'}" />
|
||||
</view>
|
||||
@@ -83,6 +83,7 @@
|
||||
onUnload: function() {},
|
||||
methods: {
|
||||
setval(n) {
|
||||
console.log(n)
|
||||
this.val = n
|
||||
if (!this._empty(n)) {
|
||||
setTimeout(() => {
|
||||
@@ -166,7 +167,10 @@
|
||||
},
|
||||
watch: {
|
||||
val(n, o) {
|
||||
console.log(n,0)
|
||||
console.log(this.onval)
|
||||
if (this.onval) {
|
||||
console.log(!this._empty(n))
|
||||
if (n != o && !this._empty(n)) {
|
||||
setTimeout(() => {
|
||||
this._makeCode()
|
||||
|
||||
Reference in New Issue
Block a user