This commit is contained in:
曹辉 2022-11-14 12:31:02 +08:00
parent 38387c3d90
commit 17aa437317
3 changed files with 7 additions and 14 deletions

View File

@ -131,6 +131,7 @@
export default { export default {
data() { data() {
return { return {
goodsInfoId: null, //id
usershow: false, // usershow: false, //
image: null, // image: null, //
baseurl: '', //url baseurl: '', //url
@ -354,12 +355,12 @@
onLoad(options) { // onLoad(options) { //
this.updata.buySource = options.buySource this.updata.buySource = options.buySource
this.goodsPrice = options.goodsPrice // this.goodsPrice = options.goodsPrice //
uni.setStorageSync("goodsInfoId", options.goodsInfoId) this.goodsInfoId = options.goodsInfoId
}, },
onShow() { onShow() {
this.baseurl = baseurl this.baseurl = baseurl
this.usershow = false this.usershow = false
this.baseurl = baseurl; this.goodsDetailsinfo(this.goodsInfoId)
let that = this let that = this
try { try {
const value = uni.getStorageSync('patientId'); const value = uni.getStorageSync('patientId');
@ -371,14 +372,6 @@
} catch (e) { } catch (e) {
// error // error
} }
try {
const value = uni.getStorageSync('goodsInfoId');
if (value) {
this.goodsDetailsinfo(value)
} else {}
} catch (e) {
// error
}
}, },
} }
</script> </script>

View File

@ -7,10 +7,10 @@
<span>姓名:</span> <span>姓名:</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='' maxlength='5' /> <u-input :clearable='false' v-model="query.patientName" type="text" placeholder='' maxlength='5' />
</view> </view>
<view class="item"> <!-- <view class="item">
<span>电话:</span> <span>电话:</span>
<u-input :clearable='false' v-model="query.phone" maxlength='11' type="text" placeholder='' /> <u-input :clearable='false' v-model="query.phone" maxlength='11' type="text" placeholder='' />
</view> </view> -->
<view class="item"> <view class="item">
<span>身份证号:</span> <span>身份证号:</span>
<u-input :clearable='false' v-model="query.cardNo" type="text" placeholder='' maxlength='18' /> <u-input :clearable='false' v-model="query.cardNo" type="text" placeholder='' maxlength='18' />

View File

@ -10,10 +10,10 @@
<span>姓名:</span> <span>姓名:</span>
<u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text" maxlength='5' /> <u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text" maxlength='5' />
</view> </view>
<view class="item"> <!-- <view class="item">
<span>电话:</span> <span>电话:</span>
<u-input :clearable='false' v-model="appPersonallist.phone" placeholder="请输入" maxlength='11' type="text" /> <u-input :clearable='false' v-model="appPersonallist.phone" placeholder="请输入" maxlength='11' type="text" />
</view> </view> -->
<view class="item"> <view class="item">
<span>身份证号:</span> <span>身份证号:</span>
<u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入" type="text" maxlength='18' /> <u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入" type="text" maxlength='18' />