123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- <template>
- <view>
- <view class="overlay" v-if="showfx" @click="showwx">
- <image style="height: 100%;width: 100%;" src="/static/img/zz.png"></image>
-
-
- </view>
-
-
-
-
- {{title}}
-
- <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000" :duration="800">
- <swiper-item>
- <image :src="imgurl" class="swiper-item"></image>
- </swiper-item>
- <swiper-item>
- <image :src="imgurl" class="swiper-item"></image>
- </swiper-item>
- </swiper>
-
- <form class="cu-list menu">
-
- <view class="show1">
-
- <view class="textbg">
- <view class="text1">
- {{inputForm.buildingName}}
- </view>
- </view>
-
-
-
- </view>
- <view class="titlebg2">
- <view class="titlet1" ></view>
- <view class="titlet2" >简介</view>
- </view>
-
-
- <view class="textbg">
- <view class="text12">
- {{inputForm.buildingDescribe}}
- </view>
- </view>
-
-
- {{inputForm.industry}}
- {{inputForm.des3}}
-
- <view class="titlebg2" style="margin-top:10rpx ;">
- <view class="titlet1" ></view>
- <view class="titlet2" >产业布局</view>
- </view>
- <image :src="inputForm.picture" mode="widthFix" class="img-item" >
-
- </image>
-
-
- {{inputForm.bz1}}
- {{inputForm.bz2}}
- {{inputForm.bz3}}
- {{inputForm.bz4}}
-
- <view v-if="inputForm.bz3!=''&&inputForm.bz3!=undefined" style="height: 50rpx;background-color: white;"></view>
-
-
- <view style="height: 40rpx;"></view>
- <view class="padding-xl" v-if="isadmin&&inputForm.des6=='1'">
- <button @click="sharezz" class="cu-btn block bg-blue margin-tb-sm lg">分享此企业账号</button>
- </view>
- </form>
- </view>
- </template>
- <script>
- import loginService from '@/api/auth/loginService.js'
- import { wxShare } from "@/common/wxutils.js";
- export default {
- onShow() {
-
- },
- data() {
- return {
- title: '新建企业信息',
- imgurl: "",
- isBack: true,
- backText: '返回',
- bgColor: 'bg-blue',
- autoUpload: false,
- inputForm: {
- id: '',
- buildingName: '',
- buildingDescribe: '',
- picture: '',
- name: '',
- industry: '',
- des1: '',
- des2: '',
- des3: '',
- entryTime: '',
- officeArea: '',
- annualRent: '',
- floor: '',
- lxr: '',
- phone: '',
- htStime: '',
- htEtime: '',
- qyDes: '',
- businessContent: '',
- totalNumber: '',
- securityNumber: '',
- belowUndergraduate: '',
- undergraduate: '',
- postgraduate: '',
- doctoralStudent: '',
- qyDes: '',
- num2: '',
- num3: '',
- softWritingNumbers: '',
- bz1: '',
- bz2: '',
- bz3: '',
- bz4: '',
- bz5: '',
- bz6: '',
- des5: '',
- des6: '',
- des7: '',
- des8: '',
- des9: '',
- },
- text1:'',
- text2:'',
- parkList: [],
- ischeck: false,
- isLogin:"",
- username:"",
- isadmin:false,
- lyIndex: '',
- showLYList: [],
- showfx:false,
- }
- },
- created() {
- },
- mounted() {
-
- },
- onLoad(query) {
- this.isLogin=this.$auth.checkisLogin();
- this.username=this.$auth.getUserInfo();
- if(this.username!=undefined&&this.username!=''&&this.username!=null&&this.isLogin!=null){
- if(this.username.loginName=='admin'){
- this.isadmin=true;
- }
- }
-
- if (query && query.ischeck) {
- this.ischeck = true
- this.title = "查看企业信息";
- }
- if (query && query.id && !query.ischeck) {
- this.title = "修改企业信息";
- }
-
-
-
-
-
- this.getComById(query)
-
-
- },
- methods: {
- getParkList(query) {
- loginService.list({
- current: 1,
- size: 1000000,
- }).then(({
- data
- }) => {
- this.parkList = data.records.map((item) => {
- return {
- label: item.buildingName,
- value: item.id
- }
- })
- this.showLYList = this.parkList.map(item => item.label)
- if (query && query.id) {
- loginService.queryByIdCom(query.id).then(({
- data
- }) => {
- this.inputForm = this.recover(this.inputForm, data)
- this.lyIndex = this.parkList.findIndex(item => item.value == this.inputForm.des1)
- console.log(this.lyIndex, '=====================>lyIndex')
- }).catch((e) => {
-
- })
-
- }
- }).catch(e => {
- console.log(e)
- })
- },
-
- handleBack() {
-
- this.$router.go(-1);
- console.log('返回按钮被点击');
- },
- showwx() {
- this.showfx=false;
- },
-
- getComById(query) {
- loginService.queryByIdBuild(query.id).then(({
- data
- }) => {
- this.setData(data);
- }).catch((e) => {
-
- })
- },
-
-
-
- sharezz(){
- var that=this;
- setTimeout(function() {
- that.showfx=true;
- console.log("1"+ this.showfx);
- }, 500);
-
- loginService.getloginstr(this.inputForm.phone).then(({
- data
- }) => {
-
- if(data.Id=='0'){
- uni.showModal({
- title: '您无权限分享账号,请联系管!',
- showCancel: true,
- success: (res) => {
-
- }
- });
-
- }else{
-
- this.weixin(data);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
- }).catch((e) => {
-
- })
-
-
-
-
-
-
-
-
-
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- async weixin(data) {
-
- try {
- if ( data) {
-
- var obj = {
- appId: data.appid,
- nonceStr: data.nonceStr,
- signature: data.signature,
- timestamp: data.timestamp,
- Id: data.Id,
- }
-
- let shareData = {
- title: '盐都区工业企业产品发布平台',
- desc: '点击直接登录',
- imgUrl: 'https://miniapp.huidutech.com.cn/yd_qycpfbH5/static/img/titlebg.jpg',
- link: 'https://miniapp.huidutech.com.cn/yd_qycpfbH5/#/pages/index/index?loginid='+data.Id + "&t=" + data.timestamp + "&Content=1",
-
- };
-
- wxShare(obj, shareData);
-
- } else {
- uni.showModal({
- title: '获取sdk参数失败!',
- showCancel: true,
- success: (res) => {
-
- }
- });
- }
- } catch (err) {
-
- } finally {
-
- }
- },
-
-
- setData(data){
- this.inputForm = this.recover(this.inputForm, data)
- console.log(this.inputForm.buildingName);
- if(this.inputForm.buildingName=='盐都经开区'){
- this.imgurl="https://miniapp.huidutech.com.cn/yd_qycpfbH5/jin.jpg";
- }else if(this.inputForm.buildingName=='盐城高新区'){
- this.imgurl="https://miniapp.huidutech.com.cn/yd_qycpfbH5/gao.jpg";
- }else if(this.inputForm.buildingName=='龙冈产业园'){
- this.imgurl="https://miniapp.huidutech.com.cn/yd_qycpfbH5/long.jpg";
-
- }
-
-
- this.inputForm.picture="http://47.97.69.114:8089"+this.inputForm.picture;
-
-
- },
-
- goToCompany(companyName) {
-
-
- window.open("https://www.qcc.com/web/search?key="+companyName);
-
- },
-
- call1(){
-
-
-
-
-
-
-
-
-
-
- if(this.isLogin==null){
- uni.showModal({
- title: '您还未登录,是否跳转登录页面?',
- showCancel: true,
- success: (res) => {
- if (res.confirm) {
-
- uni.reLaunch({
- url: '/pages/login/login'
- })
-
- }
- }
- });
- }else{
- window.location.href = 'tel:'+this.inputForm.phone;
- }
-
- },
-
- call2(){
-
- if(this.isLogin==null){
- uni.showModal({
- title: '您还未登录,是否跳转登录页面?',
- showCancel: true,
- success: (res) => {
- if (res.confirm) {
-
- uni.reLaunch({
- url: '/pages/login/login'
- })
-
- }
- }
- });
- }else{
- window.location.href = 'tel:'+this.inputForm.bz6;
- }
- },
-
-
- }
- }
- </script>
- <style>
-
- input,textarea{
- color: #8799a3;
- }
-
- .swiper {
- width: 750rpx;
- height: 310rpx;
- }
-
- .swiper-item {
- width: 750rpx;
- height: 310rpx;
- background-color: aliceblue;
- }
- .show1{
- background-color: #2752eb;
- padding-left: 8rpx;
- }
- .textbg{
- display: flex;
- background-color: white;
- padding-top: 29rpx;
- }
-
-
- .text2{
- flex: 1;
- color: #000000;
- font-size: 30rpx;
- padding-bottom: 2rpx;
- }
- .text22{
- flex: 1;
- color: #666666;
- font-size: 29rpx;
- padding-bottom: 2rpx;
- }
-
-
- .text3{
- display: flex;
- color: #000000;
- }
- .phone{
- display: flex;
- color: #1E8AD7;
- padding-left: 5rpx;
- padding-right: 5rpx;
- font-size: 30rpx;
- align-items: center
- }
- .phoneimg{
- margin-left: 10rpx;
- width: 35rpx;
- height: 35rpx;
- }
- .titlebg2{
- display: flex;
- background-color: white;
- padding-left: 22rpx;
- padding-top: 35rpx;
- padding-bottom: 25rpx;
- margin-bottom: 2rpx;
- }
- .titlet1{
- width: 7rpx;
- margin-top: 7rpx;
- margin-bottom: 7rpx;
- background-color: #2752eb;
- margin-right: 8rpx;
- }
- .titlet2{
- font-weight: 800;
- color: #2752eb;
- }
- .overlay{
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(255, 255, 255, 0.5);
- z-index: 1000;
- }
-
-
- .custom-header {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 10px;
- width: 100%;
- }
-
- .is-back {
- position: relative;
- }
-
- .back-container {
- position: absolute;
- left: 10px;
- cursor: pointer;
- }
-
- .back-text {
- color: white;
- }
-
- .content-container {
- flex: 1;
- text-align: center;
- }
-
- .content-text {
- color: white;
- font-weight: bold;
- }
-
-
- .bg-blue {
- background-color: #4285f4;
- }
-
- .text1{
- width: 100%;
- margin-left: 30rpx;
- font-size: 32rpx;
- color: #333;
- font-weight: bold;
- }
- .text12{
- width: 100%;
- margin-left: 30rpx;
- color: #000000;
- margin-bottom: 20rpx;
- font-size: 29rpx;
- }
-
- .img-item {
- width: 100%;
-
- }
- </style>
|