| @@ -1,5 +1,5 @@ | |||
| { | |||
| "name" : "数智工牌", | |||
| "name" : "AI营销辅助", | |||
| "appid" : "__UNI__7A1611D", | |||
| "description" : "AI营销助理", | |||
| "versionName" : "1.1.0", | |||
| @@ -91,7 +91,7 @@ | |||
| }, | |||
| "quickapp" : {}, | |||
| "mp-weixin" : { | |||
| "appid" : "wxe044603515ff2cb5", | |||
| "appid" : "wx5700a3ff66ea4e4c", | |||
| "setting" : { | |||
| "urlCheck" : false, | |||
| "es6" : true, | |||
| @@ -1,7 +1,7 @@ | |||
| <template> | |||
| <view class="boox"> | |||
| <view class="title"> | |||
| 数智工牌 | |||
| {{ isPuqiang ? "数智工牌" : "AI营销辅助"}} | |||
| </view> | |||
| <view class="booximg"> | |||
| <!-- <image class="img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/guidepage.png" mode=""></image> --> | |||
| @@ -52,6 +52,15 @@ | |||
| pathur3:'/pages/center/prohibited/index', | |||
| }; | |||
| }, | |||
| computed: { | |||
| // 是否是普强小程序 | |||
| isPuqiang() { | |||
| return config.service.host.indexOf('xitong.pachira.cn') == -1 | |||
| }, | |||
| }, | |||
| onLoad(opts) { | |||
| this.name=opts.loginName ||''; | |||
| let stat=opts.path||''; | |||
| @@ -4,7 +4,7 @@ | |||
| <view class="Switching1"> | |||
| <image class="Switching1-img" src="../../static/images/building.png" mode=""></image> | |||
| </view> | |||
| <view class="Switching2">项目:</view> | |||
| <view class="Switching2">{{ isPuqiang ? '项目' : '客户' }}:</view> | |||
| <view class="Switching3">{{buildingname}}</view> | |||
| <view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view> | |||
| </view> | |||
| @@ -285,6 +285,7 @@ | |||
| computed: { | |||
| // 是否是普强小程序 | |||
| showMenu() { | |||
| return name => { | |||
| if (this.needShow.findIndex(item => item == name) != -1) { | |||
| @@ -293,11 +294,26 @@ | |||
| return false | |||
| } | |||
| } | |||
| } | |||
| }, | |||
| // 是否是普强小程序 | |||
| isPuqiang() { | |||
| return config.service.host.indexOf('xitong.pachira.cn') == -1 | |||
| }, | |||
| }, | |||
| components: { | |||
| uParse | |||
| }, | |||
| onLoad() { | |||
| if (!this.isPuqiang) { | |||
| uni.setNavigationBarTitle({ | |||
| title: 'AI营销辅助平台' | |||
| }) | |||
| } | |||
| this.initPopup() | |||
| }, | |||
| onShow() { | |||
| this.getMenu() | |||
| @@ -335,6 +351,7 @@ | |||
| this.initrealTimeStatistics() | |||
| this.updateInit() | |||
| }, | |||
| onPullDownRefresh() { | |||
| this.getMenu() | |||
| @@ -374,9 +391,6 @@ | |||
| uni.stopPullDownRefresh() | |||
| }, 3000) | |||
| }, | |||
| onLoad() { | |||
| this.initPopup() | |||
| }, | |||
| methods: { | |||
| close() { | |||
| this.isShowUpdate = false; | |||
| @@ -24,15 +24,17 @@ | |||
| <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | |||
| </view> | |||
| </navigator> | |||
| <navigator class="line" url="/pages/mine/subscribe"> | |||
| <view class="title"> | |||
| <image src="/static/images/studyhot.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||
| 订阅消息 | |||
| </view> | |||
| <view class="right"> | |||
| <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | |||
| </view> | |||
| </navigator> | |||
| <template v-if="isPuqiang"> | |||
| <navigator class="line" url="/pages/mine/subscribe"> | |||
| <view class="title"> | |||
| <image src="/static/images/studyhot.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||
| 订阅消息 | |||
| </view> | |||
| <view class="right"> | |||
| <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | |||
| </view> | |||
| </navigator> | |||
| </template> | |||
| <navigator class="line" url="/pages/mine/Myprofile"> | |||
| <view class="title"> | |||
| <image src="/static/images/setting.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||
| @@ -89,32 +91,37 @@ | |||
| var util = require("../../utils/util.js"); | |||
| var config = require("../../config"); | |||
| import tabbarList from '@/utils/tabbar.js' | |||
| export default { | |||
| data() { | |||
| return { | |||
| tabbarList:tabbarList, | |||
| tabbarList: tabbarList, | |||
| current: 0, | |||
| tabList: [ | |||
| { | |||
| tabList: [{ | |||
| name: '系统消息' | |||
| }, | |||
| { | |||
| name: '升级公告' | |||
| }, | |||
| }, | |||
| ], | |||
| name: "", | |||
| photo: "", | |||
| mobile: "", | |||
| count:0, | |||
| count: 0, | |||
| }; | |||
| }, | |||
| computed: { | |||
| isPuqiang() { | |||
| return config.service.host.indexOf('xitong.pachira.cn') == -1 | |||
| } | |||
| }, | |||
| onShow: function() { | |||
| var userInfos = uni.getStorageSync('weapp_session_userInfo_data'); | |||
| this.name = userInfos.name, | |||
| this.photo = userInfos.picUrl, | |||
| this.mobile = userInfos.loginName | |||
| this.photo = userInfos.picUrl, | |||
| this.mobile = userInfos.loginName | |||
| this.updateInit() | |||
| console.log(config.service.host.indexOf('xitong.pachira.cn') != -1) | |||
| }, | |||
| methods: { | |||
| updateInit() { | |||
| @@ -135,10 +142,10 @@ | |||
| } | |||
| }) | |||
| }, | |||
| scan(){ | |||
| scan() { | |||
| uni.navigateTo({ | |||
| url:"../mine/registerCode" | |||
| url: "../mine/registerCode" | |||
| }) | |||
| }, | |||
| //拨打电话 | |||
| @@ -194,23 +201,23 @@ | |||
| // }) | |||
| // } | |||
| // }) | |||
| // } else { | |||
| // console.log('登录失败!' + res.errMsg) | |||
| // } | |||
| // } | |||
| // }) | |||
| // // /pages/mine/subscribe | |||
| // }, | |||
| } | |||
| }; | |||
| </script> | |||
| <style lang="scss" scoped> | |||
| .count{ | |||
| .count { | |||
| background: red; | |||
| width: 50rpx; | |||
| height: 50rpx; | |||
| @@ -222,6 +229,7 @@ | |||
| font-size: 24rpx; | |||
| margin-right: 20rpx; | |||
| } | |||
| .main { | |||
| padding: 0 30rpx; | |||
| background: #F8F8F8; | |||
| @@ -1,11 +1,12 @@ | |||
| // http.js使用域名 | |||
| const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||
| // const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||
| // const baseUrl = 'http://192.168.31.148:8080/api';// 泽明 | |||
| // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 | |||
| // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 | |||
| // const baseUrl = 'http://192.168.31.86:9090/api'; // 盛浩 | |||
| // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
| // const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||
| const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | |||
| // config使用域名 | |||