更新小程序仓库
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// components/navbar/navbar.js
|
||||
const app=getApp();
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
keyWord:'',
|
||||
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static'
|
||||
},
|
||||
pageLifetimes: {
|
||||
// 组件所在页面的生命周期函数
|
||||
show() {
|
||||
this.setData({
|
||||
img_host:app.hostConfig().imghost
|
||||
});
|
||||
},
|
||||
hide: function () { },
|
||||
resize: function () { },
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleFocus(){
|
||||
this.triggerEvent('handleFocus',true)
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<!--components/navbar/navbar.wxml-->
|
||||
<view class="barcontain">
|
||||
<view class="barcon">
|
||||
<text class="text">肝胆相照互联网医院</text>
|
||||
<view class="scon">
|
||||
<input type="text" placeholder="输入姓名或医院查找医生" value="{{keyWord}}" disabled="{{true}}" bindtap="handleFocus" confirm-type="search" class="ipt"/>
|
||||
<image src="{{img_host+'/ss.png'}}" class="ss"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user