Browse Source

去除依赖

master
Enzo 4 years ago
parent
commit
947ae2c55d
  1. 4
      main.js
  2. 13
      pages/order/order-details.vue

4
main.js

@ -37,10 +37,6 @@ Vue.prototype.$toast=msg=>{
}) })
} }
//H5复制到剪切板
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
//路由跳转 //路由跳转
Vue.prototype.$routerGo = (obj) => { Vue.prototype.$routerGo = (obj) => {
uni.navigateTo({ uni.navigateTo({

13
pages/order/order-details.vue

@ -37,7 +37,7 @@
<text class="text-gray">订单编号</text> <text class="text-gray">订单编号</text>
<view> <view>
<text class="margin-right">67432428794847982374</text> <text class="margin-right">67432428794847982374</text>
<text class="text-orange text-sm">复制</text>
<text class="text-orange text-sm" @click="copy()">复制</text>
</view> </view>
</view> </view>
<view class="cu-bar padding-lr solid-bottom"> <view class="cu-bar padding-lr solid-bottom">
@ -65,8 +65,7 @@
<self-line/> <self-line/>
<view class="bg-white flex flex-direction justify-around align-center text-center padding-tb"> <view class="bg-white flex flex-direction justify-around align-center text-center padding-tb">
<view> <view>
<tki-qrcode ref="qrcode" @result="qrR" :val="area" :size="120" unit="px" background="#fff" foreground="#000"
pdground="#000" :onval="true" :loadMake="true" :icon="require('@/static/images/system/user-default.jpg')" />
<image src="../../static/tu.png" mode="widthFix" style="height: 150px;width: 150px;"></image>
</view> </view>
<view class="flex justify-around align-center text-center margin-top-sm"> <view class="flex justify-around align-center text-center margin-top-sm">
<view> <view>
@ -95,7 +94,6 @@
</template> </template>
<script> <script>
import tkiQrcode from "tki-qrcode" //
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
export default { export default {
mixins: [MescrollMixin], // 使mixin mixins: [MescrollMixin], // 使mixin
@ -113,9 +111,6 @@
price: '', // price: '', //
} }
}, },
components: {
tkiQrcode
},
computed: { computed: {
disabled() { disabled() {
// //
@ -133,10 +128,6 @@
},1000) },1000)
}, },
methods: { methods: {
//
qrR(data) {
this.base64Img = data;
},
// //
copy(text) { copy(text) {
//app //app

Loading…
Cancel
Save