zsk 1 year ago
parent c1132de27d
commit 5089af3ad6

@ -7,7 +7,8 @@ Page({
* 页面的初始数据
*/
data: {
storeInfo: {}
storeInfo: {},
infoList:[]
},
/**
@ -23,20 +24,21 @@ Page({
onReady () {
},
goDetail(){
goDetail(e){
console.log("0000")
wx.navigateTo({
url: '../companyDetail/index',
url: '../companyDetail/index?id='+e.mark.id,
})
},
goMap () {
console.log("123")
goMap (e) {
console.log(e.mark.address)
let that = this
var detail = e.mark.address;
wx.openLocation({
latitude: Number(that.data.storeInfo.lat),
longitude: Number(that.data.storeInfo.lng),
name: that.data.storeInfo.fullName,
address: that.data.storeInfo.address,
latitude: Number(detail.lat),
longitude: Number(detail.lng),
name: detail.storeName,
address: detail.address,
scale: 18
})
},
@ -52,19 +54,19 @@ Page({
getInfo () {
let that = this
wx.request({
url: app.globalData.ip + "/yicai/agency/store/list",
url: app.globalData.ip + "/yishoudan/agency/store/list",
data: { pageSize: 100, pageNum: 1, keys: "",agencyId:2743},
header: app.globalData.headers,
method: "post",
success: function (res) {
console.log(res);
if (res.data.status == 200) {
res.data.data.pageBean.recordList.forEach(item => {
item['pubTime'] = dateUtil.timeShow(item.publishTime);
res.data.data.recordList.forEach(item => {
// item['pubTime'] = dateUtil.timeShow(item.publishTime);
console.log(item);
});
that.setData({
infoList: res.data.data.pageBean.recordList,
infoList: res.data.data.recordList,
});
}
},
@ -73,9 +75,9 @@ Page({
/**
* 拨打电话
*/
makePhoneCall () {
makePhoneCall (e) {
var that = this;
if (!that.data.storeInfo.contactTel) {
if (!e.mark.tel) {
wx.showToast({
title: '暂无联系方式',
icon: 'none'
@ -83,7 +85,7 @@ Page({
return
}
wx.makePhoneCall({
phoneNumber: that.data.storeInfo.contactTel,
phoneNumber: e.mark.tel,
});
},
/**

@ -1,74 +1,28 @@
<view class hover-class="none" hover-stop-propagation="false">
<view class="pr p10">
<view class="bgf br8 mb10" style="padding: 0px 10px 4px;" hover-class="thover" bindtap="goDetail">
<view class="bgf br8 mb10" style="padding: 8px 10px 4px;" hover-class="thover" bindtap="goDetail" wx:for="{{infoList}}" wx:key="index" mark:id="{{item.id}}" mark:item="{{item}}" mark:index="{{index}}">
<view class="v-center">
<view class="flex-1 pr20">
<view class="f16 c3 mt6">
{{storeInfo.fullName || '-'}}
{{item.storeName || '-'}}
</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-shijian f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
营业时间8:00 - 23:00</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-dizhi11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
{{storeInfo.address || '-'}}</view>
</view>
<view class="mt4 tc" hover-class="thover">
<view class="mt4 tc" hover-class="thover">
<view class="iconfont icon-dianhua dib" catchtap="makePhoneCall" hover-class="thover06"></view>
<view>
<image class="dhImg" catchtap="goMap" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/daohang.svg"></image>
</view>
</view>
</view>
<view class="iconfont icon-dianhua dib" mark:tel="{{item.phone}}" hover-stop-propagation="false" catchtap="makePhoneCall" hover-class="thover"></view>
</view>
</view>
<view class="bgf br8 mb10" style="padding: 0px 10px 4px;" hover-class="thover" bindtap="goDetail">
<view class="v-center">
<view class="flex-1 pr20">
<view class="f16 c3 mt6">
{{storeInfo.fullName || '-'}}
</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-shijian f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
营业时间8:00 - 23:00</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-dizhi11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
{{storeInfo.address || '-'}}</view>
</view>
<view class="mt4 tc" hover-class="thover">
<view class="iconfont icon-dianhua dib" catchtap="makePhoneCall" hover-class="thover06"></view>
<view>
<image class="dhImg" catchtap="goMap" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/daohang.svg"></image>
{{item.address || '-'}}</view>
</view>
<view class="mt4 tc" hover-class="thover" hover-stop-propagation="false" >
<image class="dhImg" mark:address="{{item}}" catchtap="goMap" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/daohang.svg"></image>
</view>
</view>
</view>
<view class="bgf br8 mb10" style="padding: 0px 10px 4px;" hover-class="thover" bindtap="goDetail">
<view class="v-center">
<view class="flex-1 pr20">
<view class="f16 c3 mt6">
{{storeInfo.fullName || '-'}}
</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-shijian f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
营业时间8:00 - 23:00</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<i class="iconfont icon-dizhi11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
{{storeInfo.address || '-'}}</view>
</view>
<view class="mt4 tc" hover-class="thover">
<view class="iconfont icon-dianhua dib" catchtap="makePhoneCall" hover-class="thover06"></view>
<view>
<image class="dhImg" catchtap="goMap" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/daohang.svg" style=""></image>
</view>
</view>
</view>
</view>
<!-- <view class="br8 bgf">
<swiper class="" style="width: 100%;height:200px;border-radius: 6px 6px 0px 0px;overflow:hidden" indicator-dots="{{true}}" indicator-color="rgba(0,0,0,.3)" autoplay="{{true}}" interval='{{5000}}' circular='{{true}}'>

@ -23,9 +23,8 @@ page{
}
.icon-dianhua{
position: relative;
top:12px;
width:28px;height:28px;border-radius: 50%;background-color: var(--color-ysd-bg);color:var(--color-hover);display: flex;align-items: center;justify-content: center;font-size: 16px;float: right;
}
.dhImg{
width: 28px;height:28px;margin-top:40px
width: 28px;height:28px;margin-top:8px
}

@ -7,14 +7,18 @@ Page({
* 页面的初始数据
*/
data: {
storeInfo: {}
storeInfo: {},
storeId:""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad (options) {
this.getInfo()
console.log(options.id)
this.setData({
storeId:options.id
})
},
/**
@ -29,7 +33,7 @@ Page({
wx.openLocation({
latitude: Number(that.data.storeInfo.lat),
longitude: Number(that.data.storeInfo.lng),
name: that.data.storeInfo.fullName,
name: that.data.storeInfo.storeName,
address: that.data.storeInfo.address,
scale: 18
})
@ -38,7 +42,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow () {
this.getInfo()
},
/**
* 获取企业信息
@ -46,16 +50,16 @@ Page({
getInfo () {
let that = this
wx.request({
url: app.globalData.ip + "/yishoudan/agency/getInfo",
url: app.globalData.ip + "/yishoudan/agency/store/get/"+that.data.storeId,
method: "get",
header: app.globalData.headers,
success: function (res) {
console.log(res)
let data = res.data.data
if (res.data.status == 200) {
data.agency.imgList = data.agency.imgs.split(',')
data.imgList = data.imgs.split(',')
that.setData({
storeInfo: data.agency
storeInfo: data
})
}
@ -67,7 +71,7 @@ Page({
*/
makePhoneCall () {
var that = this;
if (!that.data.storeInfo.contactTel) {
if (!that.data.storeInfo.phone) {
wx.showToast({
title: '暂无联系方式',
icon: 'none'
@ -75,7 +79,7 @@ Page({
return
}
wx.makePhoneCall({
phoneNumber: that.data.storeInfo.contactTel,
phoneNumber: that.data.storeInfo.phone,
});
},
/**

@ -12,7 +12,7 @@
</swiper>
<view style="padding:16px 10px;">
<view class="f16 c3 fwb">关于我们</view>
<view class="c9 f16 mt8">{{storeInfo.aboutUs || '对方还未介绍自己'}}</view>
<view class="c9 f16 mt8">{{storeInfo.desp || '对方还未介绍自己'}}</view>
</view>
</view>
@ -20,7 +20,7 @@
<view class="v-center">
<view class="flex-1 pr20">
<view class="f16 c3 mt6">
{{storeInfo.fullName || '-'}}
{{storeInfo.storeName || '-'}}
</view>
<view class="f14 c9 mt8" style=" width: calc(100vw - 120px); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{storeInfo.address || '-'}}</view>
</view>
@ -34,13 +34,13 @@
<view class="servicebox mt_10 br8 fsa" style="margin-bottom: 60px;">
<view class="serviceinfo display-flex" hover-class="none">
<view class="mr10">
<image wx:if="{{storeInfo.contactAvatar}}" class="br_8" src="{{storeInfo.contactAvatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:if="{{storeInfo.avatar}}" class="br_8" src="{{storeInfo.avatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:else class="br_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
<view class="servicenamebox">
<view class="mb2 f20 fw500"> {{storeInfo.contactUserName || '暂无联系人' }}</view>
<view class="mb2 f20 fw500"> {{storeInfo.userName || '暂无联系人' }}</view>
<view class="c3 f16">
<p class="f14">{{storeInfo.contactTel || '暂无联系方式'}}</p>
<p class="f14">{{storeInfo.phone || '暂无联系方式'}}</p>
</view>
</view>
</view>

@ -17,7 +17,7 @@
</swiper>
<!-- <view class="weui-search-bar__input f14 oelps {{!chaShowed ? 'c9' : 'c3'}}" style="max-width: 70px;">{{inputVal}}</view> -->
<!-- <view class="iconfont icon-guanbi11 f10 c9" wx:if="{{chaShowed}}" style="color:#333" catchtap="clearInput"></view> -->
<view class="search f14" catchtap="goSearch" style="color: var(--color-ysd);">搜索</view>
<view class="search" catchtap="goSearch" style="color: var(--color-ysd);">搜索</view>
</view>
</view>
</view>

@ -554,24 +554,24 @@ Page({
this.getJobList();
},
onShareAppMessage: function () {
var path = commonUtil.getCurrentPageUrlWithArgs();
if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) {
//当前用户是代理人
path += (path.indexOf("?") >= 0 ? "&" : "?") + "agencyUserId=" + app.globalData.loginUserInfo.id;
}
console.log(path);
let img;
// var path = commonUtil.getCurrentPageUrlWithArgs();
// if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) {
// //当前用户是代理人
// path += (path.indexOf("?") >= 0 ? "&" : "?") + "agencyUserId=" + app.globalData.loginUserInfo.id;
// }
// console.log(path);
// let img;
this.data.templateList.forEach((element) => {
if (element.title == "职位云小程序首页卡片分享封面") {
img = element.img + "?" + new Date().getTime();
}
});
return {
title: " ",
path: path,
imageUrl: img,
};
// this.data.templateList.forEach((element) => {
// if (element.title == "职位云小程序首页卡片分享封面") {
// img = element.img + "?" + new Date().getTime();
// }
// });
// return {
// title: " ",
// path: path,
// imageUrl: img,
// };
},
goSearch () {
if (!this.data.isLogin) {

@ -33,7 +33,7 @@
</swiper>
<!-- <view class="weui-search-bar__input f14 oelps {{!chaShowed ? 'c9' : 'c3'}}" style="max-width: 70px;">{{inputVal}}</view> -->
<!-- <view class="iconfont icon-guanbi11 f10 c9" wx:if="{{chaShowed}}" style="color:#333" catchtap="clearInput"></view> -->
<view class="search f14" catchtap="goSearch" style="color: var(--color-ysd);">搜索</view>
<view class="search" catchtap="goSearch" style="color: var(--color-ysd);">搜索</view>
</view>
</view>
</view>

Loading…
Cancel
Save