地址
This commit is contained in:
@@ -6,7 +6,7 @@ Component({
|
||||
properties: {
|
||||
left: String,
|
||||
right: String,
|
||||
ifarrow: Boolean
|
||||
ifarrow: Boolean,
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -20,6 +20,12 @@ Component({
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
get(e){
|
||||
// console.log(e)
|
||||
this.triggerEvent('myevent', e.detail.value)
|
||||
},
|
||||
choose(e){
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1,11 +1,11 @@
|
||||
<view class="shuru">
|
||||
<view class="left">{{left}}</view>
|
||||
<view class="right"wx:if="{{ifarrow}}">
|
||||
<view class="right"wx:if="{{ifarrow}}" bindtap="choose">
|
||||
<text class="shurupla">{{right}}</text>
|
||||
<view class="arrow"></view>
|
||||
</view>
|
||||
<view class="right" wx:else>
|
||||
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value=""/>
|
||||
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value="" bindinput="get" no="0" data-left="{{left}}"/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
Reference in New Issue
Block a user