You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.4 KiB
74 lines
1.4 KiB
<template>
|
|
<view>
|
|
<view @tap='goList("1")' class="box">拍照入库</view>
|
|
<view @tap='goList("2")' class="box">AI入库列表</view>
|
|
<view @tap='goList("3")' class="box">AI开单</view>
|
|
<view style="margin-bottom: 50px;">
|
|
<uni-easyinput type="textarea" v-model="address" />
|
|
<button @tap="submit">提交</button>
|
|
</view>
|
|
<view style="width:100%;height:500px;overflow: scroll;">{{res}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
components: {},
|
|
data() {
|
|
return {
|
|
address:'',
|
|
res:[]
|
|
}
|
|
},
|
|
onShow() {
|
|
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
methods: {
|
|
submit(){
|
|
console.log(this.address)
|
|
this.tui.request("/app/sale/buyAi","post", {
|
|
aiMsg: this.address
|
|
}, false, true).then((res) => {
|
|
if (res.code == 200) {
|
|
this.res = JSON.stringify(res.result)
|
|
} else {
|
|
this.res = JSON.stringify(res.result)
|
|
this.tui.toast(res.message)
|
|
}
|
|
}).catch((res) => {
|
|
this.res = JSON.stringify(res.result)
|
|
})
|
|
},
|
|
goList(type){
|
|
if(type == 1){
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIPicture'
|
|
})
|
|
}else if(type == 2){
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIInventoryList'
|
|
})
|
|
}else{
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIHangOrderList'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.box{
|
|
width: 100%;
|
|
height: 100rpx;
|
|
line-height: 100rpx;
|
|
text-align: center;
|
|
font-weight: 800;
|
|
font-size: 48rpx;
|
|
border-bottom: 1px solid #777;
|
|
}
|
|
</style>
|