Commit 719bf102 by 施宇

1111

parent 851961de
...@@ -16,29 +16,11 @@ App({ ...@@ -16,29 +16,11 @@ App({
token: wx.getStorageSync('access_token'), token: wx.getStorageSync('access_token'),
isIPX: false, //是否为iphone X isIPX: false, //是否为iphone X
customerNum: "001",//客服 customerNum: "001",//客服
customerName: "IC助手客服",//客服名称 customerName: "芯掌柜客服",//客服名称
isRelogin: true, //登入环信失败后是否重新登入,只允许重新登入一次 isRelogin: true, //登入环信失败后是否重新登入,只允许重新登入一次
bus: bus, bus: bus,
imBoolean: false, imBoolean: false,
}, },
setNav: function () {//设置导航
let menuButtonObject = wx.getMenuButtonBoundingClientRect();
wx.getSystemInfo({
success: res => {
//导航高度
let statusBarHeight = res.statusBarHeight,
navTop = menuButtonObject.top,
navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2;
this.globalData.navHeight = navHeight;
this.globalData.navTop = navTop;
this.globalData.windowHeight = res.windowHeight;
},
fail(err) {
console.log(err);
}
})
},
getImUser: chat.getImUser, getImUser: chat.getImUser,
conn: chat.conn, conn: chat.conn,
addChatMember: function (id, userId) { //id为环信id userId为账户id addChatMember: function (id, userId) { //id为环信id userId为账户id
...@@ -65,7 +47,6 @@ App({ ...@@ -65,7 +47,6 @@ App({
onLaunch() { onLaunch() {
wx.removeStorageSync('im'); wx.removeStorageSync('im');
this.versionUpdate(); this.versionUpdate();
this.setNav();
//验证是否授权 //验证是否授权
if (this.globalData.auth) { if (this.globalData.auth) {
//是否登录 //是否登录
......
{ {
"debug":true,
"pages": [ "pages": [
"pages/tab/home/home", "pages/tab/home/home",
"pages/person/auth/index", "pages/person/auth/index",
......
...@@ -19,7 +19,7 @@ Page({ ...@@ -19,7 +19,7 @@ Page({
console.log(username) console.log(username)
if (getApp().globalData.customerNum == username.your){ if (getApp().globalData.customerNum == username.your){
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: 'IC助手客服' title: '芯掌柜客服'
}); });
}else{ }else{
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
......
{ {
"usingComponents": {}, "usingComponents": {},
"navigationBarTitleText": "IC业务助手用户协议" "navigationBarTitleText": "芯掌柜用户协议"
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class='logo'> <view class='logo'>
<image src="/res/images/imgs/iclogo.png" class="img"></image> <image src="/res/images/imgs/iclogo.png" class="img"></image>
</view> </view>
<text class="t1">IC业务助手</text> <text class="t1">芯掌柜</text>
<text class='t2'>让询报价更轻松、便捷</text> <text class='t2'>让询报价更轻松、便捷</text>
</view> </view>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class='logo'> <view class='logo'>
<image src="/res/images/imgs/iclogo.png" class="img"></image> <image src="/res/images/imgs/iclogo.png" class="img"></image>
</view> </view>
<text class="t1">IC业务助手</text> <text class="t1">芯掌柜</text>
<text class='t2'>让询报价更轻松、便捷</text> <text class='t2'>让询报价更轻松、便捷</text>
</view> </view>
......
...@@ -54,6 +54,6 @@ ...@@ -54,6 +54,6 @@
<text class="tit">邀请提示:</text> <text class="tit">邀请提示:</text>
<text class="t1">·分享至3个以上微信群/QQ群,邀请成功的几率提升150%</text> <text class="t1">·分享至3个以上微信群/QQ群,邀请成功的几率提升150%</text>
<text class="t1">·可告诉您的朋友,注册可领最高10元红包,并可立即提现。</text> <text class="t1">·可告诉您的朋友,注册可领最高10元红包,并可立即提现。</text>
<text class="t1">·好友必须为IC业务助手新注册用户,才能邀请成功。</text> <text class="t1">·好友必须为芯掌柜新注册用户,才能邀请成功。</text>
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="column tit"> <view class="column tit">
<text class="t1">Hi,上午好</text> <text class="t1">Hi,上午好</text>
<text class="t1">欢迎使用IC业务助手!</text> <text class="t1">欢迎使用芯掌柜!</text>
</view> </view>
<form bindsubmit="formSubmit"> <form bindsubmit="formSubmit">
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<view class="agreement"> <view class="agreement">
<text class="t1">点击注册即默认同意</text> <text class="t1">点击注册即默认同意</text>
<navigator url="/pages/person/agreement/index" class="t2">《IC业务助手用户协议》</navigator> <navigator url="/pages/person/agreement/index" class="t2">《芯掌柜用户协议》</navigator>
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="column tit"> <view class="column tit">
<text class="t1">Hi,上午好</text> <text class="t1">Hi,上午好</text>
<text class="t1">欢迎使用IC业务助手!</text> <text class="t1">欢迎使用芯掌柜!</text>
</view> </view>
<form bindsubmit="formSubmit"> <form bindsubmit="formSubmit">
<view class="inp-wrap row verCenter {{mobileFlag ? 'inp-error':''}}"> <view class="inp-wrap row verCenter {{mobileFlag ? 'inp-error':''}}">
......
{ {
"usingComponents": {"priceItem": "/components/priceItem/priceItem"}, "usingComponents": {"priceItem": "/components/priceItem/priceItem"},
"navigationBarTitleText":"IC业务助手", "navigationBarTitleText":"芯掌柜",
"navigationBarBackgroundColor":"#0D84D1", "navigationBarBackgroundColor":"#0D84D1",
"navigationBarTextStyle":"white", "navigationBarTextStyle":"white",
"backgroundColor":"#0d84d1" "backgroundColor":"#0d84d1"
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<view class="message-l row ellipsis"> <view class="message-l row ellipsis">
<image src="/res/images/imgs/timg.jpg" class="message-avar"></image> <image src="/res/images/imgs/timg.jpg" class="message-avar"></image>
<view class="message-l-view ellipsis"> <view class="message-l-view ellipsis">
<view class="message-c bold ellipsis">IC助手客服</view> <view class="message-c bold ellipsis">芯掌柜客服</view>
<view class="message-t ellipsis" wx:if="{{ customer.msg.data[0].data }}">{{ customer.msg.data[0].data }}</view> <view class="message-t ellipsis" wx:if="{{ customer.msg.data[0].data }}">{{ customer.msg.data[0].data }}</view>
<view class="message-t ellipsis" wx:if="{{customer.msg.type == 'img' }}">[图片]</view> <view class="message-t ellipsis" wx:if="{{customer.msg.type == 'img' }}">[图片]</view>
<view class="message-t ellipsis" wx:if="{{customer.msg.type == 'cmd' }}">{{customer.ext.type}} {{customer.ext.price}}</view> <view class="message-t ellipsis" wx:if="{{customer.msg.type == 'cmd' }}">{{customer.ext.type}} {{customer.ext.price}}</view>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
} }
.form-item-title { .form-item-title {
flex: 0 0 71rpx; flex: 0 0 80rpx;
text-align: right; text-align: right;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment