提交 492cd4fc authored 作者: 黄旭新's avatar 黄旭新

xin

上级 594dcd35
......@@ -124,6 +124,7 @@
},
saveimg(url){
let that=this
uni.downloadFile({
url:url, //仅为示例,并非真实的资源
success: (res) => {
......@@ -132,6 +133,7 @@
filePath: res.tempFilePath,
success: function() {
that.dialogShow = true
console.log()
},
fail: function() {
uni.showToast({
......
......@@ -128,6 +128,7 @@
import api from '../../static/util/api.js'
export default {
created() {
console.log('this.tabbar00',this.tabbar)
// this.getCashData()
this.getCashFilter()
// 获取售电公司列表
......@@ -147,6 +148,9 @@
let user = uni.getStorageSync('user')
if (type == 1) {
let userType = user.userType
if(!userType){
return false
}
if (userType == 1 || userType == 5) {
let eleObj = {
label: '普通现货拼团',
......@@ -154,6 +158,7 @@
}
this.groupTypes_xianhuo.push(eleObj)
this.tabbar = true
console.log('this.tabbar11',this.tabbar)
// 子账号管理
let creatById = uni.getStorageSync('user').createById
let roleObj = {}
......@@ -166,9 +171,11 @@
}
} else {
this.tabbar = false
console.log('this.tabbar22',this.tabbar)
}
} else {
this.tabbar = true
console.log('this.tabbar333',this.tabbar)
this.rangli = true
}
},
......@@ -293,7 +300,7 @@
moreIndex: null, // 展开索引
setmealList: [], // 套餐列表
tabbarIndex: 1,
tabbar: false,
tabbar: true,
setIntervaltimer2: '', //定时器
limit: true, // 是否有权限
}
......
......@@ -2,7 +2,7 @@
<view class="login">
<!-- logo区域start -->
<view class="logo">
<image src="https://fire.huoshitou.net/profile/icon/pticon.png" mode="scaleToFill"></image>
<image src="https://fire.huoshitou.net/profile/icon/pticon.png" mode="widthFix"></image>
<view class="login_text">
伙石头拼团
</view>
......@@ -279,8 +279,8 @@
image {
width: 190rpx;
height: 190rpx;
width: 160rpx;
// height: 190rpx;
}
.login_text {
......
......@@ -2,7 +2,7 @@
<view class="register">
<!-- logo区域 -->
<view class="logo" v-if="!clauseShow">
<image src="../../static/images/index/group.png" mode=""></image>
<image src="https://fire.huoshitou.net/profile/icon/pticon.png" mode="widthFix"></image>
伙石头拼团
</view>
<view class="register_box" v-if="!clauseShow">
......@@ -417,8 +417,8 @@
image {
margin-bottom: 40rpx;
width: 190rpx;
height: 190rpx;
width: 160rpx;
// height: 190rpx;
}
}
......
......@@ -282,39 +282,6 @@
})
clearTimeout(urltime)
}, 1500)
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 0) {
uni.showToast({
title: '您还未电客认证,请先去认证!',
icon: 'none'
})
let urltime = setTimeout(function() {
uni.navigateTo({
url: '/pages/authentication/authentication'
})
clearTimeout(urltime)
}, 1500)
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 2) {
uni.showToast({
title: '您的电客认证待审核,请通过后再发布需求!',
icon: 'none'
})
let urltime = setTimeout(function() {
uni.navigateTo({
url: '/pages/authentication/authentication'
})
clearTimeout(urltime)
}, 1500)
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 3) {
uni.showToast({
title: '您的电客认证审核不通过,请重新认证!',
icon: 'none'
})
let urltime = setTimeout(function() {
uni.navigateTo({
url: '/pages/authentication/authentication'
})
clearTimeout(urltime)
}, 1500)
} else if (that.enquiryValue == '') {
uni.showToast({
title: '请选择询价类型',
......
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/bottomWindow/bottomWindow"],{"1c05":function(e,t,o){"use strict";o.r(t);var n=o("2f90"),a=o.n(n);for(var c in n)"default"!==c&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t["default"]=a.a},"2f90":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("86df"),a=c(o("9036"));function c(e){return e&&e.__esModule?e:{default:e}}var s={props:{type:{type:Number,default:0},packageId:{type:Number,default:0}},data:function(){return{dialogShow:!1,saveurl:""}},onLoad:function(){},methods:{onShareAppMessage:function(e){return{title:"张晓敏邀请您绑定成为他的用电企业会员",path:"/pages/login/login?id=张晓敏",imageUrl:"../../static/images/logo.png",content:"邀请您绑定成为他的用电企业会员",desc:"电客",success:function(e){console.log("111111"),console.log(e)},fail:function(e){console.log("222222"),console.log(e)}}},save:function(){var t=this,o=(e.getStorageSync("type"),e.getStorageSync("user").electricId);if(console.log("that.type",t.type),1==t.type){e.getStorageSync("user").inviteCode;(0,n.get)(a.default.getWxCode,{page:"pages/login/login",scene:"3&&"+o}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})}))}else 2==t.type?(console.log("that.packageId",t.packageId),(0,n.get)(a.default.getWxCode,{page:"pages/group/groupInfo",scene:t.packageId}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})}))):3==t.type&&(console.log("that.packageId",t.packageId),(0,n.get)(a.default.getWxCode,{page:"pages/login/login",scene:"33&&"+o}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})})))},saveimg:function(t){e.downloadFile({url:t,success:function(t){200===t.statusCode&&e.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){that.dialogShow=!0},fail:function(){e.showToast({title:"保存失败",icon:"none"})}})},fail:function(){e.showToast({title:"保存失败",icon:"none"})}})},cancleModel:function(){this.$emit("closeModel","closeModel")}}};t.default=s}).call(this,o("543d")["default"])},"36d7":function(e,t,o){},"51b6":function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},c=[]},"54aa":function(e,t,o){"use strict";o.r(t);var n=o("51b6"),a=o("1c05");for(var c in a)"default"!==c&&function(e){o.d(t,e,(function(){return a[e]}))}(c);o("bd82");var s,l=o("f0c5"),i=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);t["default"]=i.exports},bd82:function(e,t,o){"use strict";var n=o("36d7"),a=o.n(n);a.a}}]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/bottomWindow/bottomWindow"],{"0bbf":function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},c=[]},"1c05":function(e,t,o){"use strict";o.r(t);var n=o("2f90"),a=o.n(n);for(var c in n)"default"!==c&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t["default"]=a.a},"2f90":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("86df"),a=c(o("9036"));function c(e){return e&&e.__esModule?e:{default:e}}var s={props:{type:{type:Number,default:0},packageId:{type:Number,default:0}},data:function(){return{dialogShow:!1,saveurl:""}},onLoad:function(){},methods:{onShareAppMessage:function(e){return{title:"张晓敏邀请您绑定成为他的用电企业会员",path:"/pages/login/login?id=张晓敏",imageUrl:"../../static/images/logo.png",content:"邀请您绑定成为他的用电企业会员",desc:"电客",success:function(e){console.log("111111"),console.log(e)},fail:function(e){console.log("222222"),console.log(e)}}},save:function(){var t=this,o=(e.getStorageSync("type"),e.getStorageSync("user").electricId);if(console.log("that.type",t.type),1==t.type){e.getStorageSync("user").inviteCode;(0,n.get)(a.default.getWxCode,{page:"pages/login/login",scene:"3&&"+o}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})}))}else 2==t.type?(console.log("that.packageId",t.packageId),(0,n.get)(a.default.getWxCode,{page:"pages/group/groupInfo",scene:t.packageId}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})}))):3==t.type&&(console.log("that.packageId",t.packageId),(0,n.get)(a.default.getWxCode,{page:"pages/login/login",scene:"33&&"+o}).then((function(o){200==o.code?(t.saveurl=o.msg,t.saveimg(t.saveurl)):e.showToast({title:o.msg,icon:"none"})})))},saveimg:function(t){var o=this;e.downloadFile({url:t,success:function(t){200===t.statusCode&&e.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){o.dialogShow=!0,console.log()},fail:function(){e.showToast({title:"保存失败",icon:"none"})}})},fail:function(){e.showToast({title:"保存失败",icon:"none"})}})},cancleModel:function(){this.$emit("closeModel","closeModel")}}};t.default=s}).call(this,o("543d")["default"])},"36d7":function(e,t,o){},"54aa":function(e,t,o){"use strict";o.r(t);var n=o("0bbf"),a=o("1c05");for(var c in a)"default"!==c&&function(e){o.d(t,e,(function(){return a[e]}))}(c);o("bd82");var s,l=o("f0c5"),i=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);t["default"]=i.exports},bd82:function(e,t,o){"use strict";var n=o("36d7"),a=o.n(n);a.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/bottomWindow/bottomWindow-create-component',
{
......
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"22a3":function(e,t,n){"use strict";var o=n("7fc1"),i=n.n(o);i.a},"433e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("9036")),i=n("86df");function c(e){return e&&e.__esModule?e:{default:e}}var s=function(){Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(function(){return resolve(n("31b9"))}.bind(null,n)).catch(n.oe)},r={onLoad:function(e){e.inviteCode&&(this.inviteCode=e.inviteCode,this.inviteType=e.inviteType,this.contractId=e.contractId),e.culiangcontractId&&(this.scene=e.culiangcontractId),console.log("接受邀请的合同id=",this.contractId)},components:{pickerAddress:s},data:function(){return{inviteCode:"",inviteType:0,contractId:"",wxName:"",headImgUrl:"",phone:"",verifyCode:"",address:"",radioCheck:!1,clauseShow:!1,code:"",count:60,scene:""}},methods:{clickhilden:function(){this.clauseShow=!1,this.radioCheck=!0},getIphone:function(e){this.phone=e.detail.value},getAuthCode:function(){var t=this,n=this.phone,c=/^1[9|3|4|5|7|8][0-9]{9}$/,s=c.test(n);n&&s?(e.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(e){200==e.code&&(console.log(e),t.code=e.msg,t.countSixty())}))):e.showToast({title:"请输入手机号",icon:"none"})},change:function(e){this.address=e.data.join("/")},getInviteCode:function(e){this.inviteCode=e.detail.value},register:function(){var t=this.$data,n=t.phone,o=t.verifyCode,i=t.address,c=t.radioCheck,s=t.code;if(c){var r=this.verifyInfo(n,o,i,s);if(r)e.showToast({title:r,icon:"none"});else{var a=e.getStorageSync("userInfo");this.openId=e.getStorageSync("openId"),this.type=e.getStorageSync("type"),this.wxName=a.nickName,this.headImgUrl=a.avatarUrl,this.registerProt()}}else e.showToast({title:"请同意协议",icon:"none"})},countSixty:function(){var e=this,t=this.count,n=setInterval((function(){e.count=t--,0==t&&(e.count=60,clearInterval(n))}),1e3)},verifyInfo:function(){var e=arguments;return""==e[0]?"请重新输入手机号":""==e[1]?"请输入验证码":""==e[2]?"请选择地址":e[1]!=e[3]&&"验证码输入有误"},registerProt:function(){console.log("inviteType:"+this.inviteType),(0,i.post)(o.default.register,{inviteType:this.inviteType,inviteCode:this.inviteCode,contractId:this.contractId,openId:this.openId,phone:this.phone,code:this.code,type:this.type,wxName:this.wxName,address:this.address,headImgUrl:this.headImgUrl,scene:this.scene}).then((function(t){console.log(t),200==t.code?(e.showToast({title:"注册成功"}),e.setStorageSync("user",t.data),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),500)):e.showToast({title:t.msg,icon:"none"})}))}}};t.default=r}).call(this,n("543d")["default"])},"4aae":function(e,t,n){"use strict";n.r(t);var o=n("433e"),i=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=i.a},5063:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={pickerAddress:function(){return Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(n.bind(null,"31b9"))}},i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){t.stopPropagation(),e.clauseShow=!0})},c=[]},7400:function(e,t,n){"use strict";n.r(t);var o=n("5063"),i=n("4aae");for(var c in i)"default"!==c&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("22a3");var s,r=n("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);t["default"]=a.exports},"7cdb":function(e,t,n){"use strict";(function(e){n("78ef");o(n("66fd"));var t=o(n("7400"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"7fc1":function(e,t,n){}},[["7cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"22a3":function(e,t,n){"use strict";var o=n("7fc1"),i=n.n(o);i.a},"433e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("9036")),i=n("86df");function c(e){return e&&e.__esModule?e:{default:e}}var s=function(){Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(function(){return resolve(n("31b9"))}.bind(null,n)).catch(n.oe)},r={onLoad:function(e){e.inviteCode&&(this.inviteCode=e.inviteCode,this.inviteType=e.inviteType,this.contractId=e.contractId),e.culiangcontractId&&(this.scene=e.culiangcontractId),console.log("接受邀请的合同id=",this.contractId)},components:{pickerAddress:s},data:function(){return{inviteCode:"",inviteType:0,contractId:"",wxName:"",headImgUrl:"",phone:"",verifyCode:"",address:"",radioCheck:!1,clauseShow:!1,code:"",count:60,scene:""}},methods:{clickhilden:function(){this.clauseShow=!1,this.radioCheck=!0},getIphone:function(e){this.phone=e.detail.value},getAuthCode:function(){var t=this,n=this.phone,c=/^1[9|3|4|5|7|8][0-9]{9}$/,s=c.test(n);n&&s?(e.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(e){200==e.code&&(console.log(e),t.code=e.msg,t.countSixty())}))):e.showToast({title:"请输入手机号",icon:"none"})},change:function(e){this.address=e.data.join("/")},getInviteCode:function(e){this.inviteCode=e.detail.value},register:function(){var t=this.$data,n=t.phone,o=t.verifyCode,i=t.address,c=t.radioCheck,s=t.code;if(c){var r=this.verifyInfo(n,o,i,s);if(r)e.showToast({title:r,icon:"none"});else{var a=e.getStorageSync("userInfo");this.openId=e.getStorageSync("openId"),this.type=e.getStorageSync("type"),this.wxName=a.nickName,this.headImgUrl=a.avatarUrl,this.registerProt()}}else e.showToast({title:"请同意协议",icon:"none"})},countSixty:function(){var e=this,t=this.count,n=setInterval((function(){e.count=t--,0==t&&(e.count=60,clearInterval(n))}),1e3)},verifyInfo:function(){var e=arguments;return""==e[0]?"请重新输入手机号":""==e[1]?"请输入验证码":""==e[2]?"请选择地址":e[1]!=e[3]&&"验证码输入有误"},registerProt:function(){console.log("inviteType:"+this.inviteType),(0,i.post)(o.default.register,{inviteType:this.inviteType,inviteCode:this.inviteCode,contractId:this.contractId,openId:this.openId,phone:this.phone,code:this.code,type:this.type,wxName:this.wxName,address:this.address,headImgUrl:this.headImgUrl,scene:this.scene}).then((function(t){console.log(t),200==t.code?(e.showToast({title:"注册成功"}),e.setStorageSync("user",t.data),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),500)):e.showToast({title:t.msg,icon:"none"})}))}}};t.default=r}).call(this,n("543d")["default"])},"4aae":function(e,t,n){"use strict";n.r(t);var o=n("433e"),i=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=i.a},7400:function(e,t,n){"use strict";n.r(t);var o=n("ef2c"),i=n("4aae");for(var c in i)"default"!==c&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("22a3");var s,r=n("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);t["default"]=a.exports},"7cdb":function(e,t,n){"use strict";(function(e){n("78ef");o(n("66fd"));var t=o(n("7400"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"7fc1":function(e,t,n){},ef2c:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={pickerAddress:function(){return Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(n.bind(null,"31b9"))}},i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){t.stopPropagation(),e.clauseShow=!0})},c=[]}},[["7cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -240,6 +240,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
},
saveimg: function saveimg(url) {
var that = this;
uni.downloadFile({
url: url, //仅为示例,并非真实的资源
success: function success(res) {
......@@ -248,6 +249,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
filePath: res.tempFilePath,
success: function success() {
that.dialogShow = true;
console.log();
},
fail: function fail() {
uni.showToast({
......
......@@ -409,12 +409,12 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
//
//
//
var _default = { created: function created() {var _this = this; // this.getCashData()
var _default = { created: function created() {var _this = this;console.log('this.tabbar00', this.tabbar); // this.getCashData()
this.getCashFilter(); // 获取售电公司列表
(0, _fun.get)(_api.default.electricitySalesCompaniesList).then(function (res) {if (res.code == 200) {res.data.map(function (item, index) {var obj = {};obj.value = index + 1;obj.label = item.eName;_this.electricityCompanys.push(obj);}); // console.log(this.electricityCompanys)
}});var type = uni.getStorageSync('type');this.type = type;var user = uni.getStorageSync('user');if (type == 1) {var userType = user.userType;if (userType == 1 || userType == 5) {var eleObj = { label: '普通现货拼团', value: 3 };this.groupTypes_xianhuo.push(eleObj);this.tabbar = true; // 子账号管理
}});var type = uni.getStorageSync('type');this.type = type;var user = uni.getStorageSync('user');if (type == 1) {var userType = user.userType;if (!userType) {return false;}if (userType == 1 || userType == 5) {var eleObj = { label: '普通现货拼团', value: 3 };this.groupTypes_xianhuo.push(eleObj);this.tabbar = true;console.log('this.tabbar11', this.tabbar); // 子账号管理
var creatById = uni.getStorageSync('user').createById;var roleObj = {};roleObj = uni.getStorageSync('user').tenterpriseRole;if (creatById && roleObj) {// console.log(roleObj)
if (roleObj.joinPackage == 1) {this.limit = false;}}} else {this.tabbar = false;}} else {this.tabbar = true;this.rangli = true;}}, onLoad: function onLoad(options) {var id = options.id;if (id) {if (id == 0) {this.tabIndex = 1;this.getCashFilter();} else {this.tabIndex = 2;this.getDifferenceFilter();}}}, onShow: function onShow() {// this.tabIndex = 1
if (roleObj.joinPackage == 1) {this.limit = false;}}} else {this.tabbar = false;console.log('this.tabbar22', this.tabbar);}} else {this.tabbar = true;console.log('this.tabbar333', this.tabbar);this.rangli = true;}}, onLoad: function onLoad(options) {var id = options.id;if (id) {if (id == 0) {this.tabIndex = 1;this.getCashFilter();} else {this.tabIndex = 2;this.getDifferenceFilter();}}}, onShow: function onShow() {// this.tabIndex = 1
// if (this.tabIndex == 1) {
// this.getCashFilter()
// } else {
......@@ -431,8 +431,15 @@ var _default = { created: function created() {var _this = this; // this.getCashD
electricityCompanys: [//售电公司
{ label: '全部', value: 0 }], ratio_xianhuo: [//现货拼团-收益比例
{ label: '全部', value: 0 }, { label: '50%以上', value: 50 }, { label: '60%以上', value: 60 }, { label: '70%以上', value: 70 }, { label: '80%以上', value: 80 }, { label: '90%以上', value: 90 }], prices_jiacha: [//价差拼团-价差
{ label: '全部', value: 0 }, { label: '3分以上', value: 3 }, { label: '4分以上', value: 4 }, { label: '5分以上', value: 5 }, { label: '6分以上', value: 6 }], groupTypes_xianhuo: [//现货拼团类型
{ label: '全部', value: 0 }, {
{ label: '全部', value: 0 }, { label: '3分以上', value: 3 }, { label: '4分以上', value: 4 }, { label: '5分以上', value: 5 }, { label: '6分以上', value: 6 }],
groupTypes_xianhuo: [//现货拼团类型
{
label: '全部',
value: 0 },
{
label: '月竞分成现货拼团',
value: 1 },
......@@ -459,7 +466,7 @@ var _default = { created: function created() {var _this = this; // this.getCashD
moreIndex: null, // 展开索引
setmealList: [], // 套餐列表
tabbarIndex: 1,
tabbar: false,
tabbar: true,
setIntervaltimer2: '', //定时器
limit: true // 是否有权限
};
......
<view class="login"><view class="logo"><image src="https://fire.huoshitou.net/profile/icon/pticon.png" mode="scaleToFill"></image><view class="login_text">伙石头拼团</view></view><view class="login_box"><block wx:if="{{isCreated}}"><view class="login_select"><text>请选择您的身份</text><view class="identity"><radio-group class="identity_radio" name data-event-opts="{{[['change',[['getIdentity',['$event']]]]]}}" bindchange="__e"><label><view class="identity_item"><image src="../../static/images/login_01.png" mode></image><radio class="u-radio" value="1" color="#1989fa"></radio></view></label><label><view class="identity_item"><image src="../../static/images/login_02.png" mode></image><radio class="u-radio" value="2" color="#1989fa"></radio></view></label></radio-group></view></view></block><view class="login_btn"><button data-event-opts="{{[['tap',[['getUserInfo',['$event']]]]]}}" class="sq_button add" bindtap="__e">微信用户一键登录</button></view></view></view>
\ No newline at end of file
<view class="login"><view class="logo"><image src="https://fire.huoshitou.net/profile/icon/pticon.png" mode="widthFix"></image><view class="login_text">伙石头拼团</view></view><view class="login_box"><block wx:if="{{isCreated}}"><view class="login_select"><text>请选择您的身份</text><view class="identity"><radio-group class="identity_radio" name data-event-opts="{{[['change',[['getIdentity',['$event']]]]]}}" bindchange="__e"><label><view class="identity_item"><image src="../../static/images/login_01.png" mode></image><radio class="u-radio" value="1" color="#1989fa"></radio></view></label><label><view class="identity_item"><image src="../../static/images/login_02.png" mode></image><radio class="u-radio" value="2" color="#1989fa"></radio></view></label></radio-group></view></view></block><view class="login_btn"><button data-event-opts="{{[['tap',[['getUserInfo',['$event']]]]]}}" class="sq_button add" bindtap="__e">微信用户一键登录</button></view></view></view>
\ No newline at end of file
......@@ -36,8 +36,7 @@
text-align: center;
}
.login .logo image {
width: 190rpx;
height: 190rpx;
width: 160rpx;
}
.login .logo .login_text {
margin-top: 40rpx;
......
......@@ -49,8 +49,7 @@
}
.register .logo image {
margin-bottom: 40rpx;
width: 190rpx;
height: 190rpx;
width: 160rpx;
}
.register .register_box {
padding: 0 32rpx;
......
......@@ -240,6 +240,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
},
saveimg: function saveimg(url) {
var that = this;
uni.downloadFile({
url: url, //仅为示例,并非真实的资源
success: function success(res) {
......@@ -248,6 +249,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
filePath: res.tempFilePath,
success: function success() {
that.dialogShow = true;
console.log();
},
fail: function fail() {
uni.showToast({
......
......@@ -414,39 +414,6 @@ var _default = { data: function data() {return { userId: null, companys: [], //
clearTimeout(_urltime5);
}, 1500);
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 0) {
uni.showToast({
title: '您还未电客认证,请先去认证!',
icon: 'none' });
var _urltime6 = setTimeout(function () {
uni.navigateTo({
url: '/pages/authentication/authentication' });
clearTimeout(_urltime6);
}, 1500);
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 2) {
uni.showToast({
title: '您的电客认证待审核,请通过后再发布需求!',
icon: 'none' });
var _urltime7 = setTimeout(function () {
uni.navigateTo({
url: '/pages/authentication/authentication' });
clearTimeout(_urltime7);
}, 1500);
} else if (that.type == 2 && that.isAuthenticate == 2 && that.certificationStatus == 3) {
uni.showToast({
title: '您的电客认证审核不通过,请重新认证!',
icon: 'none' });
var _urltime8 = setTimeout(function () {
uni.navigateTo({
url: '/pages/authentication/authentication' });
clearTimeout(_urltime8);
}, 1500);
} else if (that.enquiryValue == '') {
uni.showToast({
title: '请选择询价类型',
......
......@@ -526,6 +526,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
},
saveimg: function saveimg(url) {
var that = this;
uni.downloadFile({
url: url, //仅为示例,并非真实的资源
success: function success(res) {
......@@ -534,6 +535,7 @@ var _default = { props: { type: { type: Number, default: 0 }, packageId: { type:
filePath: res.tempFilePath,
success: function success() {
that.dialogShow = true;
console.log();
},
fail: function fail() {
uni.showToast({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论