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

设备分期

parent f10ceec0
...@@ -30,3 +30,11 @@ export function getNavigationBarTitle() { ...@@ -30,3 +30,11 @@ export function getNavigationBarTitle() {
} }
return undefined; 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 @@ ...@@ -47,7 +47,7 @@
</view> </view>
<text :class="type ===1 ? 'check' : 'uncheck'"></text> <text :class="type ===1 ? 'check' : 'uncheck'"></text>
</view> </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"> <view class="flex">
<text class="pay_methods_icon weixin"></text> <text class="pay_methods_icon weixin"></text>
<view> <view>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</view> </view>
<text :class="type === 2 ? 'check' : 'uncheck'"></text> <text :class="type === 2 ? 'check' : 'uncheck'"></text>
</view> </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"> <view class="flex">
<text class="pay_methods_icon alipay"></text> <text class="pay_methods_icon alipay"></text>
<view> <view>
...@@ -74,17 +74,20 @@ ...@@ -74,17 +74,20 @@
<script> <script>
import TopBar from '@/components/TopBar/TopBar.vue'; import TopBar from '@/components/TopBar/TopBar.vue';
import uniPopup from "@/components/uni-popup/uni-popup.vue"; import uniPopup from "@/components/uni-popup/uni-popup.vue";
import { isWeixin } from '../../common/util.js';
export default { export default {
data() { data() {
return { return {
data: {}, data: {},
type: 1, type: 1,
order_price: '', order_price: '',
money: '' money: '',
isWx: false
} }
}, },
onLoad(){ onLoad(){
this.loadData(); this.loadData();
this.isWx = isWeixin();
}, },
methods: { methods: {
loadData(){ 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