Commit f88c8861 authored by 郑秀明's avatar 郑秀明

设备分期

parent f10ceec0
......@@ -29,4 +29,12 @@ export function getNavigationBarTitle() {
}
}
return undefined;
}
export function isWeixin(){
if (/MicroMessenger/.test(window.navigator.userAgent)) {
return true;
} else {
return false;
}
}
\ No newline at end of file
......@@ -47,7 +47,7 @@
</view>
<text :class="type ===1 ? 'check' : 'uncheck'"></text>
</view>
<view class="flex pay_item pay_item_other" @click="handleSelect(2)">
<view v-if="isWx" class="flex pay_item pay_item_other" @click="handleSelect(2)">
<view class="flex">
<text class="pay_methods_icon weixin"></text>
<view>
......@@ -56,7 +56,7 @@
</view>
<text :class="type === 2 ? 'check' : 'uncheck'"></text>
</view>
<view class="flex pay_item pay_item_other" @click="handleSelect(3)">
<view v-if="!isWx" class="flex pay_item pay_item_other" @click="handleSelect(3)">
<view class="flex">
<text class="pay_methods_icon alipay"></text>
<view>
......@@ -74,17 +74,20 @@
<script>
import TopBar from '@/components/TopBar/TopBar.vue';
import uniPopup from "@/components/uni-popup/uni-popup.vue";
import { isWeixin } from '../../common/util.js';
export default {
data() {
return {
data: {},
type: 1,
order_price: '',
money: ''
money: '',
isWx: false
}
},
onLoad(){
this.loadData();
this.isWx = isWeixin();
},
methods: {
loadData(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment