Browse Source

bug fix

master
kola-web 2 days ago
parent
commit
4120d5843e
  1. 2
      project.private.config.json
  2. 9
      src/doctor/pages/home/index.scss
  3. 4
      src/doctor/pages/home/index.wxml
  4. 4
      src/doctor/pages/invite/index.wxml
  5. 2
      src/doctor/pages/login/index.wxml
  6. 2
      src/doctor/pages/loginForm/index.wxml
  7. 2
      src/doctor/pages/my/index.wxml
  8. 2
      src/ground/components/ground-tab-bar/index.ts
  9. 6
      src/ground/pages/home/index.scss
  10. 4
      src/ground/pages/home/index.ts
  11. 4
      src/ground/pages/home/index.wxml
  12. 2
      src/ground/pages/login/index.wxml
  13. 2
      src/ground/pages/pharmacist/index.scss
  14. 10
      src/ground/pages/pharmacist/index.ts
  15. 6
      src/ground/pages/pharmacist/index.wxml
  16. 8
      src/ground/pages/stat/index.ts
  17. 2
      src/pages/index/index.ts
  18. 4
      src/pages/work/index.wxml
  19. 2
      src/utils/page.ts

2
project.private.config.json

@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
"scene": null
},
{
"name": "地推端-药师管理",
"name": "地推端-店员管理",
"pathName": "ground/pages/pharmacist/index",
"query": "",
"launchMode": "default",

9
src/doctor/pages/home/index.scss

@ -39,7 +39,6 @@ page { @@ -39,7 +39,6 @@ page {
align-items: center;
gap: 12rpx;
.label {
margin-top: 8rpx;
padding: 4rpx 12rpx;
display: inline-block;
font-size: 28rpx;
@ -167,7 +166,7 @@ page { @@ -167,7 +166,7 @@ page {
border-radius: 16rpx 16rpx 0 0;
.col {
flex: 1;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
.name {
font-size: 28rpx;
color: #ffffff;
@ -197,7 +196,7 @@ page { @@ -197,7 +196,7 @@ page {
overflow: hidden;
.col {
position: relative;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
flex: 1;
.name {
font-size: 24rpx;
@ -318,7 +317,7 @@ page { @@ -318,7 +317,7 @@ page {
border-radius: 16rpx 16rpx 0 0;
.col {
flex: 1;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
.name {
font-size: 28rpx;
color: #ffffff;
@ -347,7 +346,7 @@ page { @@ -347,7 +346,7 @@ page {
display: flex;
.col {
position: relative;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
flex: 1;
.name {
font-size: 24rpx;

4
src/doctor/pages/home/index.wxml

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
<image class="avatar" mode="aspectFill" src="{{pharmacistAvatar}}"></image>
<view class="wrap">
<view class="name">
{{pharmacistName || '药师'}}
<view class="label">药师</view>
{{pharmacistName || '店员'}}
<view class="label">店员</view>
</view>
<view class="site">{{pharmacyName || '药店名称'}}</view>
</view>

4
src/doctor/pages/invite/index.wxml

@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
<view class="user">
<image class="avatar" src="{{pharmacistAvatar}}" mode="aspectFill"></image>
<view class="wrap">
<view class="nickname">{{pharmacistName || '药师'}}</view>
<view class="label">药师</view>
<view class="nickname">{{pharmacistName || '店员'}}</view>
<view class="label">店员</view>
</view>
</view>
<view class="title">邀请您加入健康管理项目</view>

2
src/doctor/pages/login/index.wxml

@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
<image wx:else class="icon" src="{{imageUrl}}icon12.png?t={{Timestamp}}"></image>
<view class="p">
我特此同意依照此
<text class="link" catch:tap="handleLink">《隐私协议保护政策》</text>
<text class="link" bind:tap="handleLink">《个人信息及隐私保护政策》</text>
规定收集我的个人敏感信息
</view>
</view>

2
src/doctor/pages/loginForm/index.wxml

@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
</view>
</view>
</view>
<button class="phone" bind:tap="handleSubmit">立即加入药师端</button>
<button class="phone" bind:tap="handleSubmit">立即加入店员端</button>
</view>
<van-popup show="{{ show }}" title="选择所属药店" position="bottom" round closeable bind:close="onClose">

2
src/doctor/pages/my/index.wxml

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
<image class="icon" src="{{imageUrl}}icon3.png?t={{Timestamp}}"></image>
</view>
</view>
<view class="name">{{pharmacistInfo.name || '药师'}}</view>
<view class="name">{{pharmacistInfo.name || '店员'}}</view>
<view class="phone">{{pharmacistInfo.pharmacyName || ''}}</view>
</view>
<view class="list">

2
src/ground/components/ground-tab-bar/index.ts

@ -20,7 +20,7 @@ Component({ @@ -20,7 +20,7 @@ Component({
},
{
pagePath: '/ground/pages/pharmacist/index',
text: '药师管理',
text: '店员管理',
icon: 'tab2',
iconActive: 'tab2-active',
},

6
src/ground/pages/home/index.scss

@ -152,7 +152,7 @@ page { @@ -152,7 +152,7 @@ page {
display: flex;
.col {
position: relative;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
flex: 1;
.name {
font-size: 24rpx;
@ -271,7 +271,7 @@ page { @@ -271,7 +271,7 @@ page {
border-radius: 16rpx 16rpx 0 0;
.col {
flex: 1;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
.name {
font-size: 28rpx;
color: #ffffff;
@ -301,7 +301,7 @@ page { @@ -301,7 +301,7 @@ page {
display: flex;
.col {
position: relative;
padding: 28rpx 34rpx;
padding: 28rpx 24rpx;
flex: 1;
.name {
font-size: 24rpx;

4
src/ground/pages/home/index.ts

@ -54,7 +54,7 @@ Page({ @@ -54,7 +54,7 @@ Page({
chart1StartMonth: '',
chart1EndMonth: '',
// 日期范围 - 图表2(邀约药师统计)
// 日期范围 - 图表2(邀约店员统计)
chart2StartDate: '',
chart2EndDate: '',
// 图表2显示用的月份(YYYY-MM)
@ -277,7 +277,7 @@ Page({ @@ -277,7 +277,7 @@ Page({
})
},
// 获取邀约药师统计图表(使用 chart2 的日期)
// 获取邀约店员统计图表(使用 chart2 的日期)
getPharmacistChart() {
// 根据统计类型选择日期格式
const startDate = this.data.statType === 'month' ? this.data.chart2StartMonth : this.data.chart2StartDate

4
src/ground/pages/home/index.wxml

@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
</view>
<view class="line"></view>
<view class="col">
<view class="name">药师数</view>
<view class="name">店员数</view>
<view class="num">{{totalInvitePharmacistCount}}</view>
</view>
</view>
@ -165,7 +165,7 @@ @@ -165,7 +165,7 @@
</view>
<view class="chat-data">
<view class="c-header">
<view class="title">邀约药师数统计</view>
<view class="title">邀约店员数统计</view>
</view>
<view class="chart-range">
<picker class="picker" mode="date" fields="{{statType === 'month' ? 'month' : 'day'}}" value="{{chart2StartDate}}" end="{{today}}" bindchange="onChart2DateChange" data-field="startDate">

2
src/ground/pages/login/index.wxml

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
<image wx:else class="icon" src="{{imageUrl}}icon12.png?t={{Timestamp}}"></image>
<view class="p">
我特此同意依照此
<text class="link" catch:tap="handleLink">《隐私协议保护政策》</text>
<text class="link" bind:tap="handleLink">《个人信息及隐私保护政策》</text>
规定收集我的个人敏感信息
</view>
</view>

2
src/ground/pages/pharmacist/index.scss

@ -98,7 +98,7 @@ page { @@ -98,7 +98,7 @@ page {
border-radius: 24rpx 24rpx 24rpx 24rpx;
border: 2rpx solid #ffffff;
/* 药师基本信息 */
/* 店员基本信息 */
.user {
display: flex;
align-items: center;

10
src/ground/pages/pharmacist/index.ts

@ -16,7 +16,7 @@ Page({ @@ -16,7 +16,7 @@ Page({
currentProjectName: '',
projectIndex: 0,
// 药师列表
// 店员列表
pharmacistList: [] as any[],
totalCount: 0,
@ -32,7 +32,7 @@ Page({ @@ -32,7 +32,7 @@ Page({
},
},
onLoad() {
// 地推端药师页面,仅允许地推人员访问
// 地推端店员页面,仅允许地推人员访问
app.waitLogin({ types: [3] }).then(() => {
this.getProjectList()
})
@ -56,7 +56,7 @@ Page({ @@ -56,7 +56,7 @@ Page({
projectIndex: projectIndex >= 0 ? projectIndex : 0,
})
// 获取药师列表
// 获取店员列表
this.getPharmacistList()
})
},
@ -103,7 +103,7 @@ Page({ @@ -103,7 +103,7 @@ Page({
})
}
},
// 获取药师列表
// 获取店员列表
getPharmacistList() {
if (this.data.loading || !this.data.hasMore) return
@ -141,7 +141,7 @@ Page({ @@ -141,7 +141,7 @@ Page({
this.setData({ loading: false })
})
},
// 搜索药师
// 搜索店员
handleSearch(e: WechatMiniprogram.CustomEvent) {
this.setData({
keyword: e.detail.value,

6
src/ground/pages/pharmacist/index.wxml

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
<input
type="text"
placeholder="搜索药店名/药师姓名"
placeholder="搜索药店名/店员姓名"
class="input"
placeholder-class="place-input"
confirm-type="search"
@ -39,9 +39,9 @@ @@ -39,9 +39,9 @@
<text class="num">{{totalCount}}</text>
</view>
<!-- 药师信息卡片 -->
<!-- 店员信息卡片 -->
<view class="pharmacist-card" wx:for="{{pharmacistList}}" wx:key="id" data-id="{{item.id}}" bind:tap="handleInfo">
<!-- 药师基本信息 -->
<!-- 店员基本信息 -->
<view class="user">
<image class="avatar" mode="aspectFill" src="{{item.avatar}}"></image>
<view class="wrap">

8
src/ground/pages/stat/index.ts

@ -3,7 +3,7 @@ const app = getApp<IAppOption>() @@ -3,7 +3,7 @@ const app = getApp<IAppOption>()
Page({
data: {
// 药师ID(从药师列表进入时)
// 店员ID(从店员列表进入时)
pharmacistId: 0,
// 时间筛选
@ -60,7 +60,7 @@ Page({ @@ -60,7 +60,7 @@ Page({
})
}
// 设置药师ID(从药师列表进入)
// 设置店员ID(从店员列表进入)
if (options?.id) {
this.setData({
pharmacistId: Number.parseInt(options.id),
@ -96,7 +96,7 @@ Page({ @@ -96,7 +96,7 @@ Page({
// 根据是否有 pharmacistId 决定调用哪个接口
if (pharmacistId > 0) {
// 从药师列表进入 - 查看指定药师的统计
// 从店员列表进入 - 查看指定店员的统计
this.getPharmacistStatistics(pharmacistId, startDate, endDate, currentPage, pageSize, reset)
} else {
// 从首页进入 - 查看全部统计
@ -162,7 +162,7 @@ Page({ @@ -162,7 +162,7 @@ Page({
})
},
// 获取药师统计(从药师列表进入时使用)
// 获取店员统计(从店员列表进入时使用)
getPharmacistStatistics(
pharmacistId: number,
startDate: string,

2
src/pages/index/index.ts

@ -17,7 +17,7 @@ Page({ @@ -17,7 +17,7 @@ Page({
projectIndex: 0,
projectList: [] as Array<{ projectId: number; projectName: string; projectDescription: string }>,
// 扫码获取的药师ID
// 扫码获取的店员ID
pharmacistId: '',
isPatient: 0,

4
src/pages/work/index.wxml

@ -19,8 +19,8 @@ @@ -19,8 +19,8 @@
<view class="card" bind:tap="handleDoctor">
<image class="icon" src="{{imageUrl}}icon20.png?t={{Timestamp}}"></image>
<view class="wrap">
<view class="title">我是药师</view>
<view class="content">登录药师专属版本</view>
<view class="title">我是店员</view>
<view class="content">登录店员专属版本</view>
</view>
<image class="more" src="{{imageUrl}}icon10.png?t={{Timestamp}}"></image>
</view>

2
src/utils/page.ts

@ -67,7 +67,7 @@ function page(config: WechatMiniprogram.Page.Instance<WechatMiniprogram.IAnyObje @@ -67,7 +67,7 @@ function page(config: WechatMiniprogram.Page.Instance<WechatMiniprogram.IAnyObje
}
return {
title: '药师业务管理提效小助手',
title: '店员业务管理提效小助手',
path: url,
imageUrl,
}

Loading…
Cancel
Save