Browse Source

feat(api): 添加公共端获取配置项接口

- 在 apiRoute.js 中添加 common_getConfig 方法,用于获取配置项
- 在 login.vue 中调用该方法获取微信小程序配置信息
- 优化了多处组件中图片资源的引用方式,使用统一的 util.img 方法
master
liutong 10 months ago
parent
commit
4f6b664f11
  1. 7
      api/apiRoute.js
  2. 53
      components/AQ/AQTabber.vue
  3. 2
      components/list-cell/list-cell.vue
  4. 2
      manifest.json
  5. 4
      pages/coach/student/physical_examination.vue
  6. 4
      pages/common/im_chat_info.vue
  7. 6
      pages/common/my_message.vue
  8. 14
      pages/market/clue/add_clues.vue
  9. 10
      pages/market/clue/clue_info.vue
  10. 14
      pages/market/clue/edit_clues.vue
  11. 22
      pages/market/clue/index.vue
  12. 44
      pages/market/index/index.vue
  13. 2
      pages/market/my/signed_client_list.vue
  14. 2
      pages/student/index/index.vue
  15. 2
      pages/student/index/job_list.vue
  16. 4
      pages/student/index/physical_examination.vue
  17. 67
      pages/student/login/login.vue
  18. 2
      pages/student/my/my.vue

7
api/apiRoute.js

@ -95,6 +95,13 @@ export default {
return res;
})
},
//公共端-获取配置项
common_getConfig(data = {}) {
let url = '/common/getConfig'
return http.post(url, data).then(res => {
return res;
})
},

53
components/AQ/AQTabber.vue

@ -18,7 +18,8 @@
<!-- </view>-->
<!-- </view>-->
<view class="but-style-below" @click="addClues">
<image src="@/static/images/index/addto.png" class="drop-image-x"></image>
<!-- <image src="@/static/images/index/addto.png" class="drop-image-x"></image>-->
<image :src="$util.img('/uniapp_src/static/images/index/addto.png')" class="drop-image-x"></image>
<view class="title-x">添加客户</view>
</view>
</view>
@ -29,6 +30,7 @@
<script>
import fuiTabbar from "@/components/firstui/fui-tabbar/fui-tabbar.vue"
import util from '@/common/util.js';
export default {
name: "AQTabber",
components: {
@ -64,26 +66,27 @@
this.tabBar = [{
text: "首页",
urlPath: '/pages/coach/home/index', //
iconPath: "/static/images/tabbar/index.png",
selectedIconPath: "/static/images/tabbar/indexs.png"
// iconPath: "/static/images/tabbar/index.png",
iconPath: util.img('/uniapp_src/static/images/tabbar/index.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/indexs.png")
},
{
text: "课表",
urlPath: '/pages/coach/course/list', //
iconPath: "/static/images/tabbar/timetable.png",
selectedIconPath: "/static/images/tabbar/timetables.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/timetable.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/timetables.png")
},
{
text: "班级",
urlPath: '/pages/coach/class/list', //
iconPath: "/static/images/tabbar/banji.png",
selectedIconPath: "/static/images/tabbar/banjis.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/banji.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/banjis.png")
},
{
text: "我的",
urlPath: '/pages/coach/my/index', //
iconPath: "/static/images/tabbar/my.png",
selectedIconPath: "/static/images/tabbar/my.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/my.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/my.png")
}
]
break;
@ -91,20 +94,20 @@
this.tabBar = [{
text: "首页",
urlPath: '/pages/market/index/index', //
iconPath: "/static/images/tabbar/index.png",
selectedIconPath: "/static/images/tabbar/indexs.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/index.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/indexs.png")
},
{
text: "线索",
urlPath: '/pages/market/clue/index', //
iconPath: "/static/images/tabbar/clue.png",
selectedIconPath: "/static/images/tabbar/clues.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/clue.png'),
selectedIconPath: util.img("/uniapp_src/static/images/tabbar/clues.png")
},
{
text: "",
urlPath: '/pages/market/clue/add_clues', //
iconPath: "/static/images/tabbar/plus.png",
selectedIconPath: "/static/images/tabbar/plus.png",
iconPath: util.img('/uniapp_src/static/images/tabbar/plus.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/plus.png'),
midButton: true,
width: 70,
height: 70
@ -112,14 +115,14 @@
{
text: "数据",
urlPath: '/pages/market/data/index', //
iconPath: "/static/images/tabbar/timetable.png",
selectedIconPath: "/static/images/tabbar/timetables.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/timetable.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/timetables.png'),
},
{
text: "我的",
urlPath: '/pages/market/my/index', //
iconPath: "/static/images/tabbar/my.png",
selectedIconPath: "/static/images/tabbar/mys.png"
iconPath: util.img('/uniapp_src/static/images/tabbar/my.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/mys.png')
}
]
break;
@ -128,20 +131,20 @@
{
text: "首页",
urlPath: '/pages/student/index/index', //
iconPath: "/static/images/tabbar/index.png",
selectedIconPath: "/static/images/tabbar/indexs.png",
iconPath: util.img('/uniapp_src/static/images/tabbar/index.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/indexs.png')
},
{
text: "课表",
urlPath: '/pages/student/timetable/index', //
iconPath: "/static/images/tabbar/timetable.png",
selectedIconPath: "/static/images/tabbar/timetables.png",
iconPath: util.img('/uniapp_src/static/images/tabbar/timetable.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/timetables.png')
},
{
text: "我的",
urlPath: '/pages/student/my/my', //
iconPath: "/static/images/tabbar/my.png",
selectedIconPath: "/static/images/tabbar/mys.png",
iconPath: util.img('/uniapp_src/static/images/tabbar/my.png'),
selectedIconPath: util.img('/uniapp_src/static/images/tabbar/mys.png')
}
]
break;

2
components/list-cell/list-cell.vue

@ -8,7 +8,7 @@
@tap="handleClick"
>
<slot></slot>
<image src="/static/images/common/icon_jump_black3.png" class="arrow" v-if="arrow"></image>
<image :src="$util.img('/uniapp_src/static/images/common/icon_jump_black3.png')" class="arrow" v-if="arrow"></image>
</view>
</template>

2
manifest.json

@ -62,7 +62,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx675f2696abf932c5",
"appid" : "wx26182c3e34af2dc5",
"setting" : {
"urlCheck" : false,
"minified" : true,

4
pages/coach/student/physical_examination.vue

@ -6,7 +6,7 @@
<view class="content">
<view class="circle-container">
<view class="card-con-txt1-left">
<image src="@/static/images/index/score.png" class="overlay-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/score.png')" class="overlay-image"></image>
</view>
<view class="card-con-txt1-left-txt">{{surveyInfo.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view>
@ -24,7 +24,7 @@
</view>
<view class="coach-message">
<view>
<image src="@/static/images/index/lv.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lv.png')" class="drop-image"></image>
</view>
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{surveyInfo.content}}</view>
</view>

4
pages/common/im_chat_info.vue

@ -48,12 +48,12 @@
<view class="right_box">
<!--发送-->
<view class="img_box">
<image @click="submitTextForm()" class="send_img" src="@/static/images/common/fa_song.png"></image>
<image @click="submitTextForm()" class="send_img" :src="$util.img('/uniapp_src/static/images/common/fa_song.png')"></image>
</view>
<!--更多选择-->
<view class="img_box">
<image @click="openMore()" class="send_img" src="@/static/images/common/jia_hao.png"></image>
<image @click="openMore()" class="send_img" :src="$util.img('/uniapp_src/static/images/common/jia_hao.png')"></image>
</view>
</view>
</view>

6
pages/common/my_message.vue

@ -7,7 +7,7 @@
<!-- <view class="item" @click="openViewSysMsgList()">-->
<!-- <view class="left">-->
<!-- <image class="pic" src="@/static/images/common/xi_tong_xiao_xi.png"></image>-->
<!-- <image class="pic" :src="$util.img('/uniapp_src/static/images/common/xi_tong_xiao_xi.png')"></image>-->
<!-- <view>系统消息</view>-->
<!-- </view>-->
<!-- <view class="right">-->
@ -26,11 +26,11 @@
<image
v-if="(['1','2','3'].includes(String(userType)))"
class="pic"
src="@/static/images/common/yong_hu.png"
:src="$util.img('/uniapp_src/static/images/common/yong_hu.png')"
model="aspectFit"
></image>
<image v-else class="pic" src="@/static/images/common/xi_tong_xiao_xi.png"></image>
<image v-else class="pic" :src="$util.img('/uniapp_src/static/images/common/xi_tong_xiao_xi.png')"></image>
<view>{{v.name}}</view>
</view>

14
pages/market/clue/add_clues.vue

@ -442,7 +442,7 @@
<scroll-view scroll-y class="section_ul">
<!--暂无数据时展示-->
<view class="not_list" v-if="clientUserList.length == 0">
<image src="@/static/images/index/zan_wu.png" class="img"></image>
<image :src="$util.img('/uniapp_src/static/images/index/zan_wu.png')" class="img"></image>
<view class="title">暂无重复客户</view>
</view>
@ -453,7 +453,7 @@
<view class="box_1">
<image
class="img"
src="@/static/images/index/myk.png"></image>
:src="$util.img('/uniapp_src/static/images/index/myk.png')"></image>
<view class="name">{{v.name}}</view>
<!-- <view class="tag">{{ v.is_status == 1 ? '试听' : '成交' }}</view>-->
</view>
@ -477,17 +477,17 @@
<image
v-if="v.initial_intent == 'high'"
src="@/static/images/index/intention3.png"
:src="$util.img('/uniapp_src/static/images/index/intention3.png')"
class="img"
></image>
<image
v-else-if="v.initial_intent == 'medium'"
src="@/static/images/index/intention2.png"
:src="$util.img('/uniapp_src/static/images/index/intention2.png')"
class="img"
></image>
<image
v-else
src="@/static/images/index/intention1.png"
:src="$util.img('/uniapp_src/static/images/index/intention1.png')"
class="img"
></image>
@ -496,8 +496,8 @@
</view>
</view>
<view class="right_box">
<image v-if="v.member_id" class="img" src="@/static/images/index/message.png" @click="openViewMyMessage(v)"></image>
<image v-if="v.phone_number" class="img" src="@/static/images/index/phone.png" @click="dialTel(v)"></image>
<image v-if="v.member_id" class="img" :src="$util.img('/uniapp_src/static/images/index/message.png')" @click="openViewMyMessage(v)"></image>
<image v-if="v.phone_number" class="img" :src="$util.img('/uniapp_src/static/images/index/phone.png')" @click="dialTel(v)"></image>
</view>
</view>
</view>

10
pages/market/clue/clue_info.vue

@ -9,7 +9,7 @@
<view class="course_box">
<view class="course_box_top">
<view class="course_box_top_top">
<image class="pic" src="@/static/images/index/myk.png"></image>
<image class="pic" :src="$util.img('/uniapp_src/static/images/index/myk.png')"></image>
<view class="name">{{ clientInfo.customerResource.name }}</view>
</view>
<view class="course_box_top_below">
@ -19,12 +19,12 @@
<view style="display: flex;align-items: center;">
<view style="padding-left: 30rpx;">
<image v-if="clientInfo.customerResource.initial_intent == 'high'"
src="@/static/images/index/lvs.png" class="drop-image-x"></image>
:src="$util.img('/uniapp_src/static/images/index/lvs.png')" class="drop-image-x"></image>
<image v-else-if="clientInfo.customerResource.initial_intent == 'medium'"
src="@/static/images/index/intention2.png" class="drop-image-x"></image>
:src="$util.img('/uniapp_src/static/images/index/intention2.png')" class="drop-image-x"></image>
<image
v-else
src="@/static/images/index/intention1.png"
:src="$util.img('/uniapp_src/static/images/index/intention1.png')"
class="drop-image-x">
</image>
</view>
@ -34,7 +34,7 @@
</view>
<view class="course_box_top_below-right">
<!-- <view v-if="clientInfo.customerResource.is_zdgz == 1">-->
<!-- <image src="@/static/images/index/star.png" class="drop-image-star"></image>-->
<!-- <image :src="$util.img('/uniapp_src/static/images/index/star.png')" class="drop-image-star"></image>-->
<!-- </view>-->
<!-- <view class="title-x">重点关注</view>-->
</view>

14
pages/market/clue/edit_clues.vue

@ -488,7 +488,7 @@
<scroll-view scroll-y class="section_ul">
<!--暂无数据时展示-->
<view class="not_list" v-if="clientUserList.length == 0">
<image src="@/static/images/index/zan_wu.png" class="img"></image>
<image :src="$util.img('/uniapp_src/static/images/index/zan_wu.png')" class="img"></image>
<view class="title">暂无重复客户</view>
</view>
@ -499,7 +499,7 @@
<view class="box_1">
<image
class="img"
src="@/static/images/index/myk.png"></image>
:src="$util.img('/uniapp_src/static/images/index/myk.png')"></image>
<view class="name">{{v.student_name}}</view>
<view class="tag">{{ v.is_status == 1 ? '试听' : '成交' }}</view>
</view>
@ -517,17 +517,17 @@
<image
v-if="['A+','A','A-'].includes(v.follow && v.follow.initial_customer_intent || '')"
src="@/static/images/index/intention3.png"
:src="$util.img('/uniapp_src/static/images/index/intention3.png')"
class="img"
></image>
<image
v-else-if="['B+','B','B-'].includes(v.follow && v.follow.initial_customer_intent || '')"
src="@/static/images/index/intention2.png"
:src="$util.img('/uniapp_src/static/images/index/intention2.png')"
class="img"
></image>
<image
v-else
src="@/static/images/index/intention1.png"
:src="$util.img('/uniapp_src/static/images/index/intention1.png')"
class="img"
></image>
@ -536,8 +536,8 @@
</view>
</view>
<view class="right_box">
<image class="img" src="@/static/images/index/message.png" @click="openViewMyMessage(v)"></image>
<image class="img" src="@/static/images/index/phone.png" @click="dialTel(v)"></image>
<image class="img" :src="$util.img('/uniapp_src/static/images/index/message.png')" @click="openViewMyMessage(v)"></image>
<image class="img" :src="$util.img('/uniapp_src/static/images/index/phone.png')" @click="dialTel(v)"></image>
</view>
</view>
</view>

22
pages/market/clue/index.vue

@ -23,7 +23,7 @@
<view style="width: 70%;" @click="clue_info(v)">
<view style="display: flex;align-items: center;padding: 20rpx;">
<view>
<image src="@/static/images/index/myk.png" class="card-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/myk.png')" class="card-image"></image>
</view>
<view class="card-text">{{ v.customerResource.name }}</view>
<!-- <view class="card-label">{{ v.is_status == 1 ? '试听' : '成交' }}</view>-->
@ -40,17 +40,17 @@
<view style="padding: 12rpx;">
<image
v-if="v.customerResource.initial_intent == 'high'"
src="@/static/images/index/intention3.png"
:src="$util.img('/uniapp_src/static/images/index/intention3.png')"
class="drop-image-x"
></image>
<image
v-else-if="v.customerResource.initial_intent == 'medium'"
src="@/static/images/index/intention2.png"
:src="$util.img('/uniapp_src/static/images/index/intention2.png')"
class="drop-image-x"
></image>
<image
v-else
src="@/static/images/index/intention1.png"
:src="$util.img('/uniapp_src/static/images/index/intention1.png')"
class="drop-image-x"
></image>
</view>
@ -61,10 +61,10 @@
</view>
<!--只有注册了member表的账号才可操作IM对话-->
<view style="width: 15%;">
<image v-if="v.customerResource.member_id" src="@/static/images/index/message.png" class="image" @click="openViewMyMessage(v)"></image>
<image v-if="v.customerResource.member_id" :src="$util.img('/uniapp_src/static/images/index/message.png')" class="image" @click="openViewMyMessage(v)"></image>
</view>
<view style="width: 15%;">
<image v-if="v.customerResource.phone_number" src="@/static/images/index/phone.png" class="image" @click="dialTel(v)"></image>
<image v-if="v.customerResource.phone_number" :src="$util.img('/uniapp_src/static/images/index/phone.png')" class="image" @click="dialTel(v)"></image>
</view>
</view>
</scroll-view>
@ -89,7 +89,7 @@
<view style="width: 70%;">
<view style="display: flex;align-items: center;padding: 20rpx;">
<view>
<image src="@/static/images/index/myk.png" class="card-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/myk.png')" class="card-image"></image>
</view>
<view class="card-text">{{v.customerResource.name}}</view>
<!-- <view class="card-label">{{v.is_status == 1 ? '试听' : '成交'}}</view>-->
@ -104,17 +104,17 @@
<view style="padding: 12rpx;">
<image
v-if="v.customerResource.initial_intent == 'high'"
src="@/static/images/index/intention3.png"
:src="$util.img('/uniapp_src/static/images/index/intention3.png')"
class="drop-image-x"
></image>
<image
v-else-if="v.customerResource.initial_intent == 'medium'"
src="@/static/images/index/intention2.png"
:src="$util.img('/uniapp_src/static/images/index/intention2.png')"
class="drop-image-x"
></image>
<image
v-else
src="@/static/images/index/intention1.png"
:src="$util.img('/uniapp_src/static/images/index/intention1.png')"
class="drop-image-x"
></image>
</view>
@ -124,7 +124,7 @@
</view>
</view>
<view style="width: 15%;">
<!-- <image src="@/static/images/index/message.png" class="image"></image>-->
<!-- <image :src="$util.img('/uniapp_src/static/images/index/message.png')" class="image"></image>-->
</view>
<view style="width: 15%;" @click="openAssign(v)">
<view class="ling"></view>

44
pages/market/index/index.vue

@ -13,7 +13,7 @@
<view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view>
<image src="@/static/images/index/danlan.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlan.png')" class="drop-image"></image>
</view>
<view class="title">本月业绩</view>
</view>
@ -22,7 +22,7 @@
<view style="padding: 20rpx 0;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/huang.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/huang.png')" class="drop-image-x"></image>
</view>
<view class="title-x">拉新总数</view>
</view>
@ -32,7 +32,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/lvs.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lvs.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已分配</view>
</view>
@ -42,7 +42,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/shenlan.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/shenlan.png')" class="drop-image-x"></image>
</view>
<view class="title-x">昨日拉新</view>
</view>
@ -52,7 +52,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/lan.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lan.png')" class="drop-image-x"></image>
</view>
<view class="title-x">今日拉新</view>
</view>
@ -99,7 +99,7 @@
<view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view>
<image src="@/static/images/index/danlv.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image"></image>
</view>
<view class="title">上月业绩</view>
</view>
@ -110,7 +110,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">拉新总数</view>
</view>
@ -120,7 +120,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已分配</view>
</view>
@ -132,7 +132,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">昨日拉新</view>
</view>
@ -142,7 +142,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">今日拉新</view>
</view>
@ -159,7 +159,7 @@
<view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view>
<image src="@/static/images/index/danlan.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlan.png')" class="drop-image"></image>
</view>
<view class="title">本月业绩</view>
</view>
@ -168,7 +168,7 @@
<view style="padding: 20rpx 0;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/huang.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/huang.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已分配</view>
</view>
@ -178,7 +178,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/lvs.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lvs.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已沟通</view>
</view>
@ -188,7 +188,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/shenlan.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/shenlan.png')" class="drop-image-x"></image>
</view>
<view class="title-x">未成交</view>
</view>
@ -198,7 +198,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/lan.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lan.png')" class="drop-image-x"></image>
</view>
<view class="title-x">待续费</view>
</view>
@ -208,7 +208,7 @@
<view>
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/lan.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lan.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已关单</view>
</view>
@ -259,7 +259,7 @@
<view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view>
<image src="@/static/images/index/danlv.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image"></image>
</view>
<view class="title">上月业绩</view>
</view>
@ -270,7 +270,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已分配</view>
</view>
@ -279,7 +279,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已沟通</view>
</view>
@ -291,7 +291,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">未成交</view>
</view>
@ -300,7 +300,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">待续费</view>
</view>
@ -313,7 +313,7 @@
<view style="width: 48%;">
<view style="display: flex;align-items: center;">
<view style="padding: 12rpx;">
<image src="@/static/images/index/danlv.png" class="drop-image-x"></image>
<image :src="$util.img('/uniapp_src/static/images/index/danlv.png')" class="drop-image-x"></image>
</view>
<view class="title-x">已关单</view>
</view>

2
pages/market/my/signed_client_list.vue

@ -24,7 +24,7 @@
<view class="box_1">
<image class="pic"
v-if="v.header" :src="$util.img(v.header)"></image>
<image v-else class="pic" src="@/static/images/index/myk.png"></image>
<image v-else class="pic" :src="$util.img('/uniapp_src/static/images/index/myk.png')"></image>
<!-- <view class="tag_box">-->
<!-- 即将到期-->
<!-- </view>-->

2
pages/student/index/index.vue

@ -28,7 +28,7 @@
<view class="card-con-txt1">
<view class="card-con-txt1-left">
<image src="@/static/images/index/score.png" class="overlay-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/score.png')" class="overlay-image"></image>
<view class="card-con-txt1-left-txt top">{{memberIndexData.tx.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view>
</view>

2
pages/student/index/job_list.vue

@ -24,7 +24,7 @@
</view>
<!--是否已经完成作业-->
<view class="mark" v-if="v.status == 2">
<image class="check_mark" src="@/static/images/index/check_mark.png"></image>
<image class="check_mark" :src="$util.img('/uniapp_src/static/images/index/check_mark.png')"></image>
</view>
</view>

4
pages/student/index/physical_examination.vue

@ -15,7 +15,7 @@
<view class="content">
<view class="circle-container">
<view class="card-con-txt1-left">
<image src="@/static/images/index/score.png" class="overlay-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/score.png')" class="overlay-image"></image>
</view>
<view class="card-con-txt1-left-txt">{{v.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view>
@ -33,7 +33,7 @@
</view>
<view class="coach-message">
<view>
<image src="@/static/images/index/lv.png" class="drop-image"></image>
<image :src="$util.img('/uniapp_src/static/images/index/lv.png')" class="drop-image"></image>
</view>
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{v.content}}</view>
</view>

67
pages/student/login/login.vue

@ -3,8 +3,8 @@
<view style="height: 500rpx;background-color:#fff;">
<view style="height: 150rpx;"></view>
<view class="image-container;">
<image src="@/static/images/login/login1.png" class="base-image"></image>
<image src="@/static/images/login/login2.png" class="overlay-image"></image>
<image :src="$util.img('/uniapp_src/static/images/login/login1.png')" class="base-image"></image>
<image :src="$util.img('/uniapp_src/static/images/login/login2.png')" class="overlay-image"></image>
</view>
<view style="width: 100%;font-size: 60rpx;color: #ccc;text-align: center;margin-top: 60rpx;">
运动课堂
@ -67,6 +67,7 @@ export default {
password: true,
user: '', //
password1: '', //
mini_wx_openid:'',//openid
loginType:'',//|1=,2=,3=
loginType_str:'',//
@ -93,8 +94,12 @@ export default {
this.loginType_str = selectedItem ? selectedItem.text : '未知类型';
// uni.hideHomeButton()
// console.log(uni.getStorageSync('um_id'))
this.init()
},
methods: {
async init(){
await this.getWxConfig()
},
input(e) {
console.log(e)
},
@ -196,28 +201,56 @@ export default {
url: url_path
})
},
loginWx() {
uni.login({
provider: 'weixin',
success: (res) => {
console.log(res)
medication.wechatminilogin({
code: res.code
}).then(res1 => {
if (res1.status == 200) {
uni.setStorageSync('um_id', res1.data.um_id);
uni.setStorageSync('user', res1.data);
uni.switchTab({
url: '/pages/my/my'
})
} else {
async getWxConfig(){
let params = {
config_key: 'WECHAT'
}
let res = await apiRoute.common_getConfig(params)
if ( res.code != 1){
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
let appid = res.data.app_id || ''
let secret = res.data.app_secret || ''
if(!appid || !secret){
uni.showToast({
title: '请配置微信小程序信息',
icon: 'none'
})
}
await this.loginWx(appid, secret)
},
async loginWx(appid,secret) {
uni.login({
provider: 'weixin',
success: (res) => {
console.log(res.code); // code
// code openid
uni.request({
url: 'https://api.weixin.qq.com/sns/jscode2session',
data: {
appid: '你的AppID', // AppID
secret: '你的AppSecret', // AppSecret
js_code: res.code,
grant_type: 'authorization_code'
},
success: (wxRes) => {
console.log('获取到的 openid:', wxRes.data.openid); // openid
},
fail: () => {
console.error('请求失败');
}
});
},
fail: () => {
console.error('uni.login 失败');
}
});
},

2
pages/student/my/my.vue

@ -13,7 +13,7 @@
<view class="name">{{member_info.name}}</view>
</view>
<view class="right" @click="setup">
<image src="@/static/images/index/setup.png" style="width: 50rpx;height: 50rpx;"></image>
<image :src="$util.img('/uniapp_src/static/images/index/setup.png')" style="width: 50rpx;height: 50rpx;"></image>
</view>
</view>
</view>

Loading…
Cancel
Save