第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

View File

@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/apply/apply"],{"0243":function(e,t,n){},"27de":function(e,t,n){"use strict";var a=n("0243"),i=n.n(a);i.a},"3da7":function(e,t,n){"use strict";n.r(t);var a=n("f393"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=i.a},8616:function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("7d57");a(n("3240"));var i=a(n("c380"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a389:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.isPopup=!0},e.e1=function(t){e.isPopup=!1})},i=[]},c380:function(e,t,n){"use strict";n.r(t);var a=n("a389"),i=n("3da7");for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("27de");var r=n("828b"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=u.exports},f393:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={components:{Popup:function(){n.e("components/uni-popup").then(function(){return resolve(n("b892"))}.bind(null,n)).catch(n.oe)}},data:function(){return{isPopup:!1,is_read:!1,agreement:"",is_applying:!1,referee_name:"",words:{},is_agent:"",top_background:"",temlIds:[]}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;e.showLoading({title:"加载中"}),t._get("user.agent/apply",{platform:t.getPlatform(),referee_id:e.getStorageSync("referee_id")},(function(n){e.hideLoading(),t.top_background=n.data.background,t.is_applying=n.data.is_applying,t.referee_name=null!=n.data.referee_name?n.data.referee_name:"平台",t.is_agent=n.data.is_agent,t.words=n.data.words,t.temlIds=n.data.template_arr,t.agreement=n.data.license,e.setNavigationBarTitle({title:t.words.apply.title.value}),t.is_agent&&e.navigateBack({})}))},formSubmit:function(t){var n=t.detail.value;n.referee_id=e.getStorageSync("referee_id");var a=this;if(""!=n.name)if(""!=n.mobile.length)if(/^1(3|4|5|6|7|8|9)\d{9}$/.test(n.mobile))if(a.is_read){a.subMessage(a.temlIds,(function(){e.showLoading({title:"正在提交",mask:!0}),a._post("plus.agent.apply/submit",n,(function(t){e.hideLoading(),e.showToast({title:"申请成功"}),a.getData()}))}))}else e.showToast({title:"请同意协议!",icon:"none"});else e.showToast({title:"手机有误,请重填!",icon:"none"});else e.showToast({title:"请输入手机号!",icon:"none"});else e.showToast({title:"请输入姓名!",icon:"none"})},gotoShop:function(){e.switchTab({url:"/pages/index/index"})},changeFunc:function(e){e.target.value.length>0?this.is_read=!0:this.is_read=!1}}};t.default=a}).call(this,n("df3c")["default"])}},[["8616","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,6 @@
{
"navigationBarTitleText": "申请成为分销商",
"usingComponents": {
"popup": "/components/uni-popup"
}
}

View File

@ -0,0 +1 @@
<view class="apply-agent"><block wx:if="{{top_background!=''}}"><view class="banner d-c-c d-c"><image src="{{top_background}}" mode="aspectFill"></image></view></block><block wx:if="{{!is_applying}}"><view class="form-wrap p30 f30"><view class="p30 d-c-c gray3 f36 fb">{{''+(words.apply.words.title.value||'')+''}}</view><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]],['reset',[['formReset',['$event']]]]]}}" bindsubmit="__e" bindreset="__e"><view class="form-item border-b"><view class="field-name">邀请人</view>{{''+(referee_name||'')+''}}</view><view class="form-item border-b"><view class="field-name">姓名</view><input class="flex-1 ml20" name="name" type="text" value="" placeholder-class="grary" placeholder="请输入姓名"/></view><view class="form-item border-b"><view class="field-name">手机号</view><input class="flex-1 ml20" name="mobile" type="number" value="" placeholder-class="grary" placeholder="请输入手机"/></view><view class="d-s-c p-20-0 f24"><checkbox-group data-event-opts="{{[['change',[['changeFunc',['$event']]]]]}}" bindchange="__e"><checkbox style="transform:scale(0.7);" value="checkbox" checked="{{is_read}}"></checkbox></checkbox-group><text>我已阅读并了解</text><text data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="red" bindtap="__e">{{'【'+(words.apply.words.license.value||'')+'】'}}</text></view><view class="d-c-c mt30"><button class="btn-red" form-type="submit">{{words.apply.words.submit.value||''}}</button></view></form></view></block><block wx:if="{{is_applying}}"><view class="d-c-c pt30"><image style="width:532rpx;height:340rpx;margin:0 auto;" src="/static/agen_applay.png" mode></image></view><view class="p-30-0 d-c-c gray9 f26">{{''+(words.apply.words.wait_audit.value||'')+''}}</view><view class="p30 mt30 d-c-c"><button class="btn-red" type="primary" data-event-opts="{{[['tap',[['gotoShop',['$event']]]]]}}" bindtap="__e">{{words.apply.words.goto_mall.value||''}}</button></view></block><popup vue-id="28afaf6c-1" show="{{isPopup}}" msg="申请协议" bind:__l="__l" vue-slots="{{['default']}}"><view class="agreement-content f28 lh150">{{''+agreement+''}}</view><view class="ww100 pt20 d-c-c"><button class="btn-red" type="primary" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e">我已阅读</button></view></popup></view>

View File

@ -0,0 +1 @@
page{background-color:#fff}.apply-agent .banner{background-repeat:no-repeat;background-size:100%}.apply-agent .banner image{width:750rpx;height:348rpx}.form-wrap{background:#fff;box-shadow:0 0 8rpx 0 rgba(0,0,0,.2)}.form-item{padding:20rpx 0;display:flex;justify-content:flex-start;align-items:center;font-size:28rpx;height:100rpx;box-sizing:border-box}.form-item .field-name{width:180rpx}.form-item input{font-size:28rpx}.agreement-content{max-height:60vh;overflow-y:auto}.apply-agent .btn-red{width:600rpx;height:88rpx;line-height:88rpx;border-radius:44rpx;background:#ff5649;border-color:#ff5649}