|
@@ -47,29 +47,7 @@
|
|
<view>
|
|
<view>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="repeat" position="bottom" />
|
|
<u-toast ref="repeat" position="bottom" />
|
|
- <u-popup mode="bottom" v-model="show_s" :mask-close-able="false" :safe-area-inset-bottom="true">
|
|
|
|
- <view class="confrim-btn">
|
|
|
|
- <u-button @click="show_s = false;" style="float: left;border: none;" :hair-line="false" :plain="false">取消</u-button>
|
|
|
|
- <u-button @click="container" style="float: right;border: none;" :hair-line="false" :plain="false">确定</u-button>
|
|
|
|
- </view>
|
|
|
|
- <view class="content_s">
|
|
|
|
- <scroll-view scroll-y="true" style="height: 200rpx;">
|
|
|
|
- {{regular}}
|
|
|
|
- </scroll-view>
|
|
|
|
- </view>
|
|
|
|
- </u-popup>
|
|
|
|
- <u-popup mode="bottom" v-model="show_d" :mask-close-able="false" :safe-area-inset-bottom="true">
|
|
|
|
- <view class="confrim-btn">
|
|
|
|
- <u-button @click="show_d = false;" style="float: left;border: none;" :hair-line="false" :plain="false">取消</u-button>
|
|
|
|
- <u-button @click="container_s" style="float: right;border: none;" :hair-line="false" :plain="false">确定</u-button>
|
|
|
|
- </view>
|
|
|
|
- <view class="content_s">
|
|
|
|
- <scroll-view scroll-y="true" style="height: 200rpx;">
|
|
|
|
- {{regular}}
|
|
|
|
- </scroll-view>
|
|
|
|
- </view>
|
|
|
|
- </u-popup>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -90,7 +68,7 @@
|
|
content: '请输入轮胎胎号',
|
|
content: '请输入轮胎胎号',
|
|
number_s: '',
|
|
number_s: '',
|
|
number_a: '',
|
|
number_a: '',
|
|
- regular: '轮胎非正规是否入库',
|
|
|
|
|
|
+ // regular: '轮胎非正规是否入库',
|
|
lisi: [],
|
|
lisi: [],
|
|
background: {
|
|
background: {
|
|
backgroundColor: '#0094fe',
|
|
backgroundColor: '#0094fe',
|
|
@@ -157,6 +135,10 @@
|
|
this.mounteds()
|
|
this.mounteds()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ switchLang() {
|
|
|
|
+ // 切换为英文
|
|
|
|
+ this.$i18n.locale = 'en';
|
|
|
|
+ },
|
|
mounteds() {
|
|
mounteds() {
|
|
let that = this
|
|
let that = this
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
@@ -169,7 +151,7 @@
|
|
fail: function(e) {
|
|
fail: function(e) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
- title: '获取地址失败, 请检查是否开启定位权限~~'
|
|
|
|
|
|
+ title: '获取地址失败, 请检查是否开启定位权限~'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -508,11 +490,11 @@
|
|
}
|
|
}
|
|
console.log(this.lisi)
|
|
console.log(this.lisi)
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- // this.$refs.repeat.show({
|
|
|
|
- // title: "网络繁忙,请稍后再试",
|
|
|
|
- // type: 'default',
|
|
|
|
- // position: 'bottom'
|
|
|
|
- // })
|
|
|
|
|
|
+ this.$refs.repeat.show({
|
|
|
|
+ title: "网络繁忙,请稍后再试",
|
|
|
|
+ type: 'default',
|
|
|
|
+ position: 'bottom'
|
|
|
|
+ })
|
|
console.log(err)
|
|
console.log(err)
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|