提交 01f85102 authored 作者: 彭涛's avatar 彭涛

bug修复

上级 44ee9971
......@@ -425,7 +425,7 @@
}
},
created() {
console.log(this.isClick)
// console.log(this.isClick)
let user = uni.getStorageSync('user')
let type = uni.getStorageSync('type')
this.enterpriseId = user.enterpriseId
......@@ -442,6 +442,10 @@
},
onShow() {
this.isClick = true
console.log('1111111111')
},
onHide() {
},
methods: {
// switch开关选择
......
......@@ -179,7 +179,6 @@
statustext = '待审核'
}
that.certificationStatus = uni.getStorageSync('user').certificationStatus // 电客认证状态
console.log(that.certificationStatus)
let stateText = ''
if (that.certificationStatus == 0) {
stateText = '未认证'
......@@ -247,8 +246,8 @@
that.isCreated = true
that.earningsList = that.earningsList_dianke
}
console.log(statustext)
console.log(stateText)
// console.log(statustext)
// console.log(stateText)
that.earningsList.map((item, index) => {
if (index == 0) {
item.message = user.phone
......@@ -268,7 +267,6 @@
// 跳转页面
linkto(url) {
console.log(url)
if (url == '') {
uni.showToast({
title: '你没有权限, 请联系管理员',
......
......@@ -315,7 +315,7 @@
}
if (user) {
// 获取用户的认证情况
that.getUserMessage()
// that.getUserMessage()
//获取参与套餐的企业
that.getallParticipatingCompanies()
// 是否满足拼包
......
......@@ -2,9 +2,9 @@
<view class="search">
<view class="content">
<!-- 背景图 -->
<view class="search_bg">
<!-- <view class="search_bg">
<image :src="bgImg" mode="scaleToFill" @click="lingToUrl"></image>
</view>
</view> -->
<!-- 搜索栏 -->
<view class="search_inp">
<input type="search" v-model="userName" value="" placeholder="请输入售电公司/用电企业名称" />
......@@ -112,14 +112,15 @@
<style lang="scss">
.search {
padding-top: 32rpx;
// padding-top: 32rpx;
width: 100%;
height: 100%;
background-color: #f4f5f7;
.content {
width: 100%;
padding: 0 32rpx;
width: 100%;
overflow: hidden;
background-color: #fff;
.search_bg {
......@@ -176,7 +177,7 @@
.search_condition {
display: flex;
justify-content: space-around;
margin-top: 64rpx;
margin-top: 50rpx;
padding-bottom: 22rpx;
.search_item {
......
......@@ -71,7 +71,7 @@
<view class="myInfo_items" v-for="(item,index) in earningsList" :key="index"
@click="linkToEarnings(index)">
{{item.name}}
<view class="text"><text v-if="item.others!='null'">{{item.others?item.others:'00'}}</text>
<view class="text"><text v-if="item.others!='null'">{{item.others?item.others:'0.00'}}</text>
</view>
</view>
</view>
......@@ -729,7 +729,6 @@
}).then(res => {
if (res.code == 200) {
that.contractNum = res.data
console.log(res)
if (this.type == 1) {
let userType = uni.getStorageSync('user').userType
if (userType == 1 || userType == 5) {
......
......@@ -3,7 +3,7 @@
<!-- 头部背景start -->
<view class="requirements_top">
<view class="requirements_top_nav" @click="linktoBack">
<image src="../../static/images/left.png" mode="widthFix"></image>电客中心
<image src="../../static/images/left.png" mode="widthFix"></image>电客报名
</view>
</view>
<!-- 头部背景end -->
......@@ -56,7 +56,7 @@
</view>
</view>
<view class="requirements_box_message_btn">
<view @click="linktoBack">已报名,去认证电客</view>
<view @click="linktoAuthentication">已报名,去认证电客</view>
</view>
</view>
......@@ -128,7 +128,13 @@
// 返回下一页
linktoBack() {
uni.navigateBack({
delta: 1
delta:1
})
},
// 去认证电客
linktoAuthentication(){
uni.navigateTo({
url:'/pages/authentication/authentication'
})
},
// 60s倒计时
......
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
// const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/'
......
......@@ -155,5 +155,6 @@
"permission": {},
"usingComponents": {
"tab-bar": "/components/custom-tab-bar/index"
}
},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/serach"],{"2ffb":function(t,e,n){"use strict";n.r(e);var i=n("9075"),a=n.n(i);for(var u in i)"default"!==u&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=a.a},"31fa":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},u=[]},"715c":function(t,e,n){"use strict";var i=n("f54a"),a=n.n(i);a.a},9075:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(n("7363")),a=n("a000");function u(t){return t&&t.__esModule?t:{default:t}}var c={created:function(){var e=this,n=t.getStorageSync("type"),u=t.getStorageSync("user"),c=null;c=1==n?u.enterpriseId:u.electricId,(0,a.get)(i.default.advertisingList,{userId:c,type:n}).then((function(t){if(console.log(t),200==t.code){var n=t.data;n.map((function(t){2==t.position&&(e.bgImg=t.image,e.bgUrl=t.url)}))}}))},data:function(){return{bgImg:"",bgUrl:"",userName:"",searchList:[{title:"售电公司",image:"../../static/images/icons/icon_company.png",type:3},{title:"大用户",image:"../../static/images/icons/icon_biguser.png",type:1},{title:"一般用户",image:"../../static/images/icons/icon_smalluser.png",type:2}]}},methods:{lingToUrl:function(){t.navigateTo({url:"/pagesA/webView/index?link="+this.bgUrl})},linktoSearch:function(){this.userName?(t.navigateTo({url:"/pages/index/companyLists?userName="+this.userName}),this.userName=""):t.showToast({title:"请输入售电公司或用电企业名称",icon:"none"})},linktoCompanyLists:function(e){t.navigateTo({url:"/pages/index/companyLists?type="+e})}}};e.default=c}).call(this,n("543d")["default"])},"9b52":function(t,e,n){"use strict";n.r(e);var i=n("31fa"),a=n("2ffb");for(var u in a)"default"!==u&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n("715c");var c,r=n("f0c5"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],c);e["default"]=o.exports},dfc7:function(t,e,n){"use strict";(function(t){n("0cf7");i(n("66fd"));var e=i(n("9b52"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f54a:function(t,e,n){}},[["dfc7","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/serach"],{"2ffb":function(t,e,n){"use strict";n.r(e);var i=n("9075"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"715c":function(t,e,n){"use strict";var i=n("f54a"),a=n.n(i);a.a},9075:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(n("7363")),a=n("a000");function c(t){return t&&t.__esModule?t:{default:t}}var u={created:function(){var e=this,n=t.getStorageSync("type"),c=t.getStorageSync("user"),u=null;u=1==n?c.enterpriseId:c.electricId,(0,a.get)(i.default.advertisingList,{userId:u,type:n}).then((function(t){if(console.log(t),200==t.code){var n=t.data;n.map((function(t){2==t.position&&(e.bgImg=t.image,e.bgUrl=t.url)}))}}))},data:function(){return{bgImg:"",bgUrl:"",userName:"",searchList:[{title:"售电公司",image:"../../static/images/icons/icon_company.png",type:3},{title:"大用户",image:"../../static/images/icons/icon_biguser.png",type:1},{title:"一般用户",image:"../../static/images/icons/icon_smalluser.png",type:2}]}},methods:{lingToUrl:function(){t.navigateTo({url:"/pagesA/webView/index?link="+this.bgUrl})},linktoSearch:function(){this.userName?(t.navigateTo({url:"/pages/index/companyLists?userName="+this.userName}),this.userName=""):t.showToast({title:"请输入售电公司或用电企业名称",icon:"none"})},linktoCompanyLists:function(e){t.navigateTo({url:"/pages/index/companyLists?type="+e})}}};e.default=u}).call(this,n("543d")["default"])},"9b52":function(t,e,n){"use strict";n.r(e);var i=n("dec3"),a=n("2ffb");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("715c");var u,r=n("f0c5"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=o.exports},dec3:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},c=[]},dfc7:function(t,e,n){"use strict";(function(t){n("0cf7");i(n("66fd"));var e=i(n("9b52"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f54a:function(t,e,n){}},[["dfc7","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view class="search"><view class="content"><view class="search_bg"><image src="{{bgImg}}" mode="scaleToFill" data-event-opts="{{[['tap',[['lingToUrl',['$event']]]]]}}" bindtap="__e"></image></view><view class="search_inp"><input type="search" value="{{userName}}" placeholder="请输入售电公司/用电企业名称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['linktoSearch',['$event']]]]]}}" class="search_btn" bindtap="__e">查询</view><image src="../../static/images/icon_search_sel.png" mode="scaleToFill"></image></view><view class="search_condition"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['linktoCompanyLists',['$0'],[[['searchList','',index,'type']]]]]]]}}" class="search_item" bindtap="__e"><image src="{{item.image}}" mode="scaleToFill"></image><view class="search_item_title">{{item.title}}</view></view></block></view></view></view>
\ No newline at end of file
<view class="search"><view class="content"><view class="search_inp"><input type="search" value="{{userName}}" placeholder="请输入售电公司/用电企业名称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['linktoSearch',['$event']]]]]}}" class="search_btn" bindtap="__e">查询</view><image src="../../static/images/icon_search_sel.png" mode="scaleToFill"></image></view><view class="search_condition"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['linktoCompanyLists',['$0'],[[['searchList','',index,'type']]]]]]]}}" class="search_item" bindtap="__e"><image src="{{item.image}}" mode="scaleToFill"></image><view class="search_item_title">{{item.title}}</view></view></block></view></view></view>
\ No newline at end of file
.search{padding-top:32rpx;width:100%;height:100%;background-color:#f4f5f7}.search .content{width:100%;padding:0 32rpx;background-color:#fff}.search .content .search_bg{width:100%;height:200rpx;padding-top:32rpx}.search .content .search_bg image{border-radius:16px}.search .content .search_inp{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;position:relative;margin:24rpx 0;height:64rpx}.search .content .search_inp input{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:20%;height:64rpx;background-color:#fff;font-size:24rpx;border-radius:32rpx;border:none;background:#f4f5f7}.search .content .search_inp .search_btn{margin-left:10rpx;width:120rpx;height:60rpx;line-height:60rpx;text-align:center;font-size:24rpx;color:#fff;background-color:#1989fa;border-radius:8rpx}.search .content .search_inp image{position:absolute;left:14%;top:15rpx;width:40rpx;height:40rpx}.search .content .search_condition{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;margin-top:64rpx;padding-bottom:22rpx}.search .content .search_condition .search_item{width:20%;height:150rpx;text-align:center;font-size:22rpx;color:#333}.search .content .search_condition .search_item image{margin-bottom:10rpx;width:80rpx;height:80rpx;border-radius:50%}
\ No newline at end of file
.search{width:100%;height:100%;background-color:#f4f5f7}.search .content{padding:0 32rpx;width:100%;overflow:hidden;background-color:#fff}.search .content .search_bg{width:100%;height:200rpx;padding-top:32rpx}.search .content .search_bg image{border-radius:16px}.search .content .search_inp{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;position:relative;margin:24rpx 0;height:64rpx}.search .content .search_inp input{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:20%;height:64rpx;background-color:#fff;font-size:24rpx;border-radius:32rpx;border:none;background:#f4f5f7}.search .content .search_inp .search_btn{margin-left:10rpx;width:120rpx;height:60rpx;line-height:60rpx;text-align:center;font-size:24rpx;color:#fff;background-color:#1989fa;border-radius:8rpx}.search .content .search_inp image{position:absolute;left:14%;top:15rpx;width:40rpx;height:40rpx}.search .content .search_condition{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;margin-top:50rpx;padding-bottom:22rpx}.search .content .search_condition .search_item{width:20%;height:150rpx;text-align:center;font-size:22rpx;color:#333}.search .content .search_condition .search_item image{margin-bottom:10rpx;width:80rpx;height:80rpx;border-radius:50%}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/requirements/requirements"],{3121:function(t,e,n){"use strict";var o=n("8237"),i=n.n(o);i.a},"350c":function(t,e,n){"use strict";n.r(e);var o=n("bde0"),i=n("f35a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3121");var u,c=n("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);e["default"]=s.exports},"4a5a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("7363")),i=n("a000");function a(t){return t&&t.__esModule?t:{default:t}}var u={created:function(){this.user=t.getStorageSync("user"),this.status=this.user.certificationStatus,console.log(this.status),this.phone=this.user.phone,this.name=this.user.certificationName},data:function(){return{user:"",count:"60",status:"0",name:"",phone:"",code:"",timeId:""}},methods:{linktoBack:function(){t.navigateBack({delta:1})},countSixty:function(){var t=this,e=this,n=this.count;this.timeId=setInterval((function(){t.count=n--,0==n&&(t.count=60,clearInterval(e.timeId))}),1e3)},getcode:function(){var e=this;console.log(this.phone);var n=this.phone,a=/^1[3|4|5|7|8][0-9]{9}$/,u=a.test(n);n&&u?(t.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(t){200==t.code&&(console.log(t),e.code=t.msg,e.countSixty())}))):t.showToast({title:"请输入手机号",icon:"none"})},enroll:function(){var e=this;if(1==this.status)return!1;""==this.code?t.showToast({title:"请输入验证码",icon:"none"}):(0,i.get)(o.default.checkPhoneCodeIsExpired,{phone:e.phone,code:e.code}).then((function(n){n.data?(e.count=60,clearInterval(e.timeId),e.trainingRegistration()):t.showToast({title:"验证码已过期,请重新获取",icon:"none"})}))},trainingRegistration:function(){var e=this;(0,i.get)(o.default.trainingRegistration,{userId:e.user.electricId}).then((function(n){200==n.code?(e.status=1,t.showToast({title:"报名成功!"}),e.user.certificationStatus=1,t.removeStorageSync("user"),t.setStorageSync("user",e.user)):t.showToast({title:n.msg,icon:"none"})}))}}};e.default=u}).call(this,n("543d")["default"])},8237:function(t,e,n){},bde0:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},f35a:function(t,e,n){"use strict";n.r(e);var o=n("4a5a"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},fd95:function(t,e,n){"use strict";(function(t){n("0cf7");o(n("66fd"));var e=o(n("350c"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fd95","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/requirements/requirements"],{3121:function(t,e,n){"use strict";var o=n("8237"),i=n.n(o);i.a},"350c":function(t,e,n){"use strict";n.r(e);var o=n("c9dd"),i=n("f35a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3121");var c,u=n("f0c5"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);e["default"]=s.exports},"4a5a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("7363")),i=n("a000");function a(t){return t&&t.__esModule?t:{default:t}}var c={created:function(){this.user=t.getStorageSync("user"),this.status=this.user.certificationStatus,console.log(this.status),this.phone=this.user.phone,this.name=this.user.certificationName},data:function(){return{user:"",count:"60",status:"0",name:"",phone:"",code:"",timeId:""}},methods:{linktoBack:function(){t.navigateBack({delta:1})},countSixty:function(){var t=this,e=this,n=this.count;this.timeId=setInterval((function(){t.count=n--,0==n&&(t.count=60,clearInterval(e.timeId))}),1e3)},getcode:function(){var e=this;console.log(this.phone);var n=this.phone,a=/^1[3|4|5|7|8][0-9]{9}$/,c=a.test(n);n&&c?(t.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(t){200==t.code&&(console.log(t),e.code=t.msg,e.countSixty())}))):t.showToast({title:"请输入手机号",icon:"none"})},enroll:function(){var e=this;if(1==this.status)return!1;""==this.code?t.showToast({title:"请输入验证码",icon:"none"}):(0,i.get)(o.default.checkPhoneCodeIsExpired,{phone:e.phone,code:e.code}).then((function(n){n.data?(e.count=60,clearInterval(e.timeId),e.trainingRegistration()):t.showToast({title:"验证码已过期,请重新获取",icon:"none"})}))},trainingRegistration:function(){var e=this;(0,i.get)(o.default.trainingRegistration,{userId:e.user.electricId}).then((function(n){200==n.code?(e.status=1,t.showToast({title:"报名成功!"}),e.user.certificationStatus=1,t.removeStorageSync("user"),t.setStorageSync("user",e.user)):t.showToast({title:n.msg,icon:"none"})}))}}};e.default=c}).call(this,n("543d")["default"])},8237:function(t,e,n){},c9dd:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},f35a:function(t,e,n){"use strict";n.r(e);var o=n("4a5a"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},fd95:function(t,e,n){"use strict";(function(t){n("0cf7");o(n("66fd"));var e=o(n("350c"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fd95","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view class="requirements"><view class="requirements_top"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" class="requirements_top_nav" bindtap="__e"><image src="../../static/images/left.png" mode="widthFix"></image>电客中心</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><block wx:if="{{status==0}}"><view class="requirements_box"><view class="requirements_box_message"><view class="userInput">你的姓名</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入您的姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/><view class="hexian"></view></view><view class="userInput">你的联系方式</view><view class="requirements_box_message_item requirements_code"><input type="text" placeholder="请输入您的手机号码" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{count==60}}"><view data-event-opts="{{[['tap',[['getcode',['$event']]]]]}}" class="input_code" bindtap="__e">获取验证码</view></block><block wx:else><view class="input_code">{{count+"S后重新获取"}}</view></block><view class="hexian"></view></view><view class="userInput">验证码</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['enroll',['$event']]]]]}}" bindtap="__e">立刻报名</view></view><view class="requirements_box_message_hint"><image src="../../static/images/gou.png" mode></image>成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您</view></view></block><block wx:else><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" bindtap="__e">已报名,去认证电客</view></view></view></block><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><view><image src="../../static/images/major.png" mode></image>专业培训</view><view><image src="../../static/images/success.png" mode></image>更高成功率</view><view><image src="../../static/images/platform.png" mode></image>平台资源</view></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
<view class="requirements"><view class="requirements_top"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" class="requirements_top_nav" bindtap="__e"><image src="../../static/images/left.png" mode="widthFix"></image>电客报名</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><block wx:if="{{status==0}}"><view class="requirements_box"><view class="requirements_box_message"><view class="userInput">你的姓名</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入您的姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/><view class="hexian"></view></view><view class="userInput">你的联系方式</view><view class="requirements_box_message_item requirements_code"><input type="text" placeholder="请输入您的手机号码" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{count==60}}"><view data-event-opts="{{[['tap',[['getcode',['$event']]]]]}}" class="input_code" bindtap="__e">获取验证码</view></block><block wx:else><view class="input_code">{{count+"S后重新获取"}}</view></block><view class="hexian"></view></view><view class="userInput">验证码</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['enroll',['$event']]]]]}}" bindtap="__e">立刻报名</view></view><view class="requirements_box_message_hint"><image src="../../static/images/gou.png" mode></image>成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您</view></view></block><block wx:else><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" bindtap="__e">已报名,去认证电客</view></view></view></block><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><view><image src="../../static/images/major.png" mode></image>专业培训</view><view><image src="../../static/images/success.png" mode></image>更高成功率</view><view><image src="../../static/images/platform.png" mode></image>平台资源</view></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
// const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/'
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16505,9 +16505,9 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
var DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
// const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
var DOMAIN = 'http://192.168.1.178:9099/'; // 国禄
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
var HOST = DOMAIN + 'api/';
......
......@@ -921,10 +921,11 @@ var _default = { data: function data() {return { id: null, enterpriseId: '', //
isEdit: false, //是否编辑
imgList: [], // 电费通知单(最多六张)
hide: false // 是否隐藏上传按钮
};}, created: function created() {var _this = this;console.log(this.isClick);var user = uni.getStorageSync('user');var type = uni.getStorageSync('type');this.enterpriseId = user.enterpriseId;this.getUserInfo(type); //获取用户信息
};}, created: function created() {var _this = this; // console.log(this.isClick)
var user = uni.getStorageSync('user');var type = uni.getStorageSync('type');this.enterpriseId = user.enterpriseId;this.getUserInfo(type); //获取用户信息
// 获取行业表
(0, _fun.get)(_api.default.getIndustryList).then(function (res) {if (res.code == 200) {_this.industrys = res.data;_this.industryList = res.data.map(function (item) {return item.industryName;});}}); // console.log(this.isAuthenticate)
}, onShow: function onShow() {this.isClick = true;}, methods: { // switch开关选择
}, onShow: function onShow() {this.isClick = true;console.log('1111111111');}, onHide: function onHide() {}, methods: { // switch开关选择
switchChange: function switchChange(event) {var flag = event.target.value;this.whetherAdmit = flag ? 1 : 2; // console.log(this.enterpriseCode)
this.switchChecked = flag;}, //行业选择
industryChange: function industryChange(event) {var _this2 = this; // console.log(event.target.value)
......
......@@ -311,7 +311,6 @@ var _default = { data: function data() {return { type: null, // 用户类型
statustext = '待审核';
}
that.certificationStatus = uni.getStorageSync('user').certificationStatus; // 电客认证状态
console.log(that.certificationStatus);
var stateText = '';
if (that.certificationStatus == 0) {
stateText = '未认证';
......@@ -379,8 +378,8 @@ var _default = { data: function data() {return { type: null, // 用户类型
that.isCreated = true;
that.earningsList = that.earningsList_dianke;
}
console.log(statustext);
console.log(stateText);
// console.log(statustext)
// console.log(stateText)
that.earningsList.map(function (item, index) {
if (index == 0) {
item.message = user.phone;
......@@ -400,7 +399,6 @@ var _default = { data: function data() {return { type: null, // 用户类型
// 跳转页面
linkto: function linkto(url) {
console.log(url);
if (url == '') {
uni.showToast({
title: '你没有权限, 请联系管理员',
......
......@@ -553,7 +553,7 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
}
if (user) {
// 获取用户的认证情况
that.getUserMessage();
// that.getUserMessage()
//获取参与套餐的企业
that.getallParticipatingCompanies();
// 是否满足拼包
......
<view class="search"><view class="content"><view class="search_bg"><image src="{{bgImg}}" mode="scaleToFill" data-event-opts="{{[['tap',[['lingToUrl',['$event']]]]]}}" bindtap="__e"></image></view><view class="search_inp"><input type="search" value="{{userName}}" placeholder="请输入售电公司/用电企业名称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['linktoSearch',['$event']]]]]}}" class="search_btn" bindtap="__e">查询</view><image src="../../static/images/icon_search_sel.png" mode="scaleToFill"></image></view><view class="search_condition"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['linktoCompanyLists',['$0'],[[['searchList','',index,'type']]]]]]]}}" class="search_item" bindtap="__e"><image src="{{item.image}}" mode="scaleToFill"></image><view class="search_item_title">{{item.title}}</view></view></block></view></view></view>
\ No newline at end of file
<view class="search"><view class="content"><view class="search_inp"><input type="search" value="{{userName}}" placeholder="请输入售电公司/用电企业名称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['linktoSearch',['$event']]]]]}}" class="search_btn" bindtap="__e">查询</view><image src="../../static/images/icon_search_sel.png" mode="scaleToFill"></image></view><view class="search_condition"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['linktoCompanyLists',['$0'],[[['searchList','',index,'type']]]]]]]}}" class="search_item" bindtap="__e"><image src="{{item.image}}" mode="scaleToFill"></image><view class="search_item_title">{{item.title}}</view></view></block></view></view></view>
\ No newline at end of file
......@@ -25,14 +25,14 @@
/* 透明度 */
/* 文章场景相关 */
.search {
padding-top: 32rpx;
width: 100%;
height: 100%;
background-color: #f4f5f7;
}
.search .content {
width: 100%;
padding: 0 32rpx;
width: 100%;
overflow: hidden;
background-color: #fff;
}
.search .content .search_bg {
......@@ -93,7 +93,7 @@
display: flex;
-webkit-justify-content: space-around;
justify-content: space-around;
margin-top: 64rpx;
margin-top: 50rpx;
padding-bottom: 22rpx;
}
.search .content .search_condition .search_item {
......
......@@ -861,7 +861,6 @@ var app = getApp();var _default = { data: function data() {return { contractNum:
then(function (res) {
if (res.code == 200) {
that.contractNum = res.data;
console.log(res);
if (_this3.type == 1) {
var userType = uni.getStorageSync('user').userType;
if (userType == 1 || userType == 5) {
......
......@@ -334,12 +334,18 @@ var _default = { created: function created() {this.user = uni.getStorageSync('us
count: '60', status: '0', //1已报名
name: '', phone: '', code: '', //验证码
timeId: '' };}, methods: { // 返回下一页
linktoBack: function linktoBack() {uni.navigateBack({ delta: 1 });}, // 60s倒计时
linktoBack: function linktoBack() {uni.navigateBack({ delta: 1 });}, // 去认证电客
linktoAuthentication: function linktoAuthentication() {uni.navigateTo({ url: '/pages/authentication/authentication' });}, // 60s倒计时
countSixty: function countSixty() {var _this = this;var that = this;var count = this.count;this.timeId = setInterval(function () {_this.count = count--;if (count == 0) {_this.count = 60;clearInterval(that.timeId);}}, 1000);}, // 请求验证码
getcode: function getcode() {var _this2 = this;console.log(this.phone);var phone = this.phone;var phoneReg = /^1[3|4|5|7|8][0-9]{9}$/;var flag = phoneReg.test(phone);if (phone && flag) {uni.showToast({ title: '验证码已发送' });(0, _fun.get)(_api.default.VerificationCode, { phone: phone }).then(function (res) {if (res.code == 200) {console.log(res);_this2.code = res.msg;_this2.countSixty();}});} else {uni.showToast({ title: '请输入手机号', icon: 'none' });}}, enroll: function enroll() {var that = this;if (this.status == 1) {return false;}if (this.code == '') {uni.showToast({ title: '请输入验证码', icon: 'none' });} else {// 验证码是否过期
(0, _fun.get)(_api.default.checkPhoneCodeIsExpired, { phone: that.phone, code: that.code }).then(function (res) {if (res.data) {that.count = 60;clearInterval(that.timeId);that.trainingRegistration();} else {uni.showToast({ title: '验证码已过期,请重新获取', icon: 'none' });}});}}, // 提交认证end
//我要参与培训接口
trainingRegistration: function trainingRegistration() {var that = this;(0, _fun.get)(_api.default.trainingRegistration, { userId: that.user.electricId }).then(function (res) {if (res.code == 200) {that.status = 1;
trainingRegistration: function trainingRegistration() {var that = this;
(0, _fun.get)(_api.default.trainingRegistration, {
userId: that.user.electricId }).
then(function (res) {
if (res.code == 200) {
that.status = 1;
uni.showToast({
title: '报名成功!' });
......
<view class="requirements"><view class="requirements_top"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" class="requirements_top_nav" bindtap="__e"><image src="../../static/images/left.png" mode="widthFix"></image>电客中心</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><block wx:if="{{status==0}}"><view class="requirements_box"><view class="requirements_box_message"><view class="userInput">你的姓名</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入您的姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/><view class="hexian"></view></view><view class="userInput">你的联系方式</view><view class="requirements_box_message_item requirements_code"><input type="text" placeholder="请输入您的手机号码" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{count==60}}"><view data-event-opts="{{[['tap',[['getcode',['$event']]]]]}}" class="input_code" bindtap="__e">获取验证码</view></block><block wx:else><view class="input_code">{{count+"S后重新获取"}}</view></block><view class="hexian"></view></view><view class="userInput">验证码</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['enroll',['$event']]]]]}}" bindtap="__e">立刻报名</view></view><view class="requirements_box_message_hint"><image src="../../static/images/gou.png" mode></image>成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您</view></view></block><block wx:else><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" bindtap="__e">已报名,去认证电客</view></view></view></block><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><view><image src="../../static/images/major.png" mode></image>专业培训</view><view><image src="../../static/images/success.png" mode></image>更高成功率</view><view><image src="../../static/images/platform.png" mode></image>平台资源</view></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
<view class="requirements"><view class="requirements_top"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" class="requirements_top_nav" bindtap="__e"><image src="../../static/images/left.png" mode="widthFix"></image>电客报名</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><block wx:if="{{status==0}}"><view class="requirements_box"><view class="requirements_box_message"><view class="userInput">你的姓名</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入您的姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/><view class="hexian"></view></view><view class="userInput">你的联系方式</view><view class="requirements_box_message_item requirements_code"><input type="text" placeholder="请输入您的手机号码" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{count==60}}"><view data-event-opts="{{[['tap',[['getcode',['$event']]]]]}}" class="input_code" bindtap="__e">获取验证码</view></block><block wx:else><view class="input_code">{{count+"S后重新获取"}}</view></block><view class="hexian"></view></view><view class="userInput">验证码</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['enroll',['$event']]]]]}}" bindtap="__e">立刻报名</view></view><view class="requirements_box_message_hint"><image src="../../static/images/gou.png" mode></image>成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您</view></view></block><block wx:else><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['linktoAuthentication',['$event']]]]]}}" bindtap="__e">已报名,去认证电客</view></view></view></block><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><view><image src="../../static/images/major.png" mode></image>专业培训</view><view><image src="../../static/images/success.png" mode></image>更高成功率</view><view><image src="../../static/images/platform.png" mode></image>平台资源</view></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
// const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论