Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
719bf102
authored
Sep 27, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1111
parent
851961de
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
15 additions
and
32 deletions
app.js
app.json
pages/detail/chat/index.js
pages/person/agreement/index.json
pages/person/auth/index.wxml
pages/person/getphone/index.wxml
pages/person/invitation/index.wxml
pages/person/login/index.wxml
pages/person/register/index.wxml
pages/person/verifycode/index.wxml
pages/tab/home/home.json
pages/tab/message/message.wxml
res/css/form.wxss
app.js
View file @
719bf102
...
...
@@ -16,29 +16,11 @@ App({
token
:
wx
.
getStorageSync
(
'access_token'
),
isIPX
:
false
,
//是否为iphone X
customerNum
:
"001"
,
//客服
customerName
:
"
IC助手
客服"
,
//客服名称
customerName
:
"
芯掌柜
客服"
,
//客服名称
isRelogin
:
true
,
//登入环信失败后是否重新登入,只允许重新登入一次
bus
:
bus
,
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
,
conn
:
chat
.
conn
,
addChatMember
:
function
(
id
,
userId
)
{
//id为环信id userId为账户id
...
...
@@ -65,7 +47,6 @@ App({
onLaunch
()
{
wx
.
removeStorageSync
(
'im'
);
this
.
versionUpdate
();
this
.
setNav
();
//验证是否授权
if
(
this
.
globalData
.
auth
)
{
//是否登录
...
...
app.json
View file @
719bf102
{
"debug"
:
true
,
"pages"
:
[
"pages/tab/home/home"
,
"pages/person/auth/index"
,
...
...
pages/detail/chat/index.js
View file @
719bf102
...
...
@@ -19,7 +19,7 @@ Page({
console
.
log
(
username
)
if
(
getApp
().
globalData
.
customerNum
==
username
.
your
){
wx
.
setNavigationBarTitle
({
title
:
'
IC助手
客服'
title
:
'
芯掌柜
客服'
});
}
else
{
wx
.
setNavigationBarTitle
({
...
...
pages/person/agreement/index.json
View file @
719bf102
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"
IC业务助手
用户协议"
"navigationBarTitleText"
:
"
芯掌柜
用户协议"
}
\ No newline at end of file
pages/person/auth/index.wxml
View file @
719bf102
...
...
@@ -4,7 +4,7 @@
<view class='logo'>
<image src="/res/images/imgs/iclogo.png" class="img"></image>
</view>
<text class="t1">
IC业务助手
</text>
<text class="t1">
芯掌柜
</text>
<text class='t2'>让询报价更轻松、便捷</text>
</view>
...
...
pages/person/getphone/index.wxml
View file @
719bf102
...
...
@@ -4,7 +4,7 @@
<view class='logo'>
<image src="/res/images/imgs/iclogo.png" class="img"></image>
</view>
<text class="t1">
IC业务助手
</text>
<text class="t1">
芯掌柜
</text>
<text class='t2'>让询报价更轻松、便捷</text>
</view>
...
...
pages/person/invitation/index.wxml
View file @
719bf102
...
...
@@ -54,6 +54,6 @@
<text class="tit">邀请提示:</text>
<text class="t1">·分享至3个以上微信群/QQ群,邀请成功的几率提升150%</text>
<text class="t1">·可告诉您的朋友,注册可领最高10元红包,并可立即提现。</text>
<text class="t1">·好友必须为
IC业务助手
新注册用户,才能邀请成功。</text>
<text class="t1">·好友必须为
芯掌柜
新注册用户,才能邀请成功。</text>
</view>
</view>
\ No newline at end of file
pages/person/login/index.wxml
View file @
719bf102
...
...
@@ -3,7 +3,7 @@
<view class="column tit">
<text class="t1">Hi,上午好</text>
<text class="t1">欢迎使用
IC业务助手
!</text>
<text class="t1">欢迎使用
芯掌柜
!</text>
</view>
<form bindsubmit="formSubmit">
...
...
pages/person/register/index.wxml
View file @
719bf102
...
...
@@ -64,7 +64,7 @@
<view class="agreement">
<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>
\ No newline at end of file
pages/person/verifycode/index.wxml
View file @
719bf102
...
...
@@ -3,7 +3,7 @@
<view class="column tit">
<text class="t1">Hi,上午好</text>
<text class="t1">欢迎使用
IC业务助手
!</text>
<text class="t1">欢迎使用
芯掌柜
!</text>
</view>
<form bindsubmit="formSubmit">
<view class="inp-wrap row verCenter {{mobileFlag ? 'inp-error':''}}">
...
...
pages/tab/home/home.json
View file @
719bf102
{
"usingComponents"
:
{
"priceItem"
:
"/components/priceItem/priceItem"
},
"navigationBarTitleText"
:
"
IC业务助手
"
,
"navigationBarTitleText"
:
"
芯掌柜
"
,
"navigationBarBackgroundColor"
:
"#0D84D1"
,
"navigationBarTextStyle"
:
"white"
,
"backgroundColor"
:
"#0d84d1"
...
...
pages/tab/message/message.wxml
View file @
719bf102
...
...
@@ -35,7 +35,7 @@
<view class="message-l row ellipsis">
<image src="/res/images/imgs/timg.jpg" class="message-avar"></image>
<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.type == 'img' }}">[图片]</view>
<view class="message-t ellipsis" wx:if="{{customer.msg.type == 'cmd' }}">{{customer.ext.type}} {{customer.ext.price}}</view>
...
...
res/css/form.wxss
View file @
719bf102
...
...
@@ -15,7 +15,7 @@
}
.form-item-title {
flex: 0 0
71
rpx;
flex: 0 0
80
rpx;
text-align: right;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment