微信小程序联调
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),t={data:()=>({focus:!1}),props:{modelValue:String,value:String,scene:{type:String,default:()=>""},title:{type:String,default:()=>""}},computed:{val:{get(){return this.value||this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{open(){this.focus=!0,this.val="",this.$refs.popup.open()},close(){this.focus=!1,this.$refs.popup.close()},confirm(){if(!this.val)return e.index.showToast({title:"请填写验证码",icon:"none"});this.close(),this.$emit("confirm")}}};if(!Array){(e.resolveComponent("uni-captcha")+e.resolveComponent("uni-popup"))()}Math||((()=>"../uni-captcha/uni-captcha.js")+(()=>"../../../uni-popup/components/uni-popup/uni-popup.js"))();const o=e._export_sfc(t,[["render",function(t,o,s,n,p,i){return{a:e.t(s.title),b:e.o((e=>i.val=e),"13"),c:e.p({focus:p.focus,scene:s.scene,modelValue:i.val}),d:e.o(((...e)=>i.close&&i.close(...e)),"8d"),e:e.o(((...e)=>i.confirm&&i.confirm(...e)),"1b"),f:e.sr("popup","f0f3582f-0"),g:e.p({type:"center"})}}],["__scopeId","data-v-f0f3582f"]]);wx.createComponent(o);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-captcha": "../uni-captcha/uni-captcha",
|
||||
"uni-popup": "../../../uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<uni-popup wx:if="{{g}}" class="r data-v-f0f3582f" u-s="{{['d']}}" u-r="popup" u-i="f0f3582f-0" bind:__l="__l" u-p="{{g}}"><view class="popup-captcha data-v-f0f3582f"><view class="content data-v-f0f3582f"><text class="title data-v-f0f3582f">{{a}}</text><uni-captcha wx:if="{{c}}" class="data-v-f0f3582f" u-i="f0f3582f-1,f0f3582f-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></uni-captcha></view><view class="button-box data-v-f0f3582f"><view bindtap="{{d}}" class="btn data-v-f0f3582f">取消</view><view bindtap="{{e}}" class="btn confirm data-v-f0f3582f">确认</view></view></view></uni-popup>
|
||||
@@ -0,0 +1 @@
|
||||
view.data-v-f0f3582f{display:flex;flex-direction:column}.popup-captcha.data-v-f0f3582f{display:flex;max-width:600px;width:600rpx;padding-bottom:0;background-color:#fff;border-radius:10px;flex-direction:column;position:relative}.popup-captcha .content.data-v-f0f3582f{padding:1.3em .8em}.popup-captcha .title.data-v-f0f3582f{text-align:center;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;font-weight:400;font-size:18px;overflow:hidden;text-overflow:ellipsis;color:#111;margin-bottom:15px}.button-box.data-v-f0f3582f{height:44px;border-top:solid 1px #eee;flex-direction:row;align-items:center;justify-content:space-around}.button-box.data-v-f0f3582f,.btn.data-v-f0f3582f{height:44px;line-height:44px}.button-box .btn.data-v-f0f3582f{flex:1;margin:1px;text-align:center}.button-box .confirm.data-v-f0f3582f{color:#007aff;border-left:solid 1px #eee}
|
||||
Reference in New Issue
Block a user