Browse Source

refactor(images): 更新图片资源引用方式

- 将静态图片资源引用方式改为动态引用
- 使用 $util.img() 方法统一处理图片路径
- 更新部分组件和页面的图片资源路径
master
王泽彦 10 months ago
parent
commit
5e681a2503
  1. 7
      api/apiRoute.js
  2. 8
      common/config.js
  3. 53
      components/AQ/AQTabber.vue
  4. 2
      components/list-cell/list-cell.vue
  5. 4
      manifest.json
  6. 4
      pages/coach/student/physical_examination.vue
  7. 4
      pages/common/im_chat_info.vue
  8. 6
      pages/common/my_message.vue
  9. 14
      pages/market/clue/add_clues.vue
  10. 10
      pages/market/clue/clue_info.vue
  11. 14
      pages/market/clue/edit_clues.vue
  12. 22
      pages/market/clue/index.vue
  13. 44
      pages/market/index/index.vue
  14. 2
      pages/market/my/signed_client_list.vue
  15. 2
      pages/student/index/index.vue
  16. 2
      pages/student/index/job_list.vue
  17. 4
      pages/student/index/physical_examination.vue
  18. 67
      pages/student/login/login.vue
  19. 2
      pages/student/my/my.vue

7
api/apiRoute.js

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

8
common/config.js

@ -7,11 +7,11 @@
// const img_domian = 'http://zhjwxt.test/' // const img_domian = 'http://zhjwxt.test/'
// const Api_url='https://zh.hnhbty.cn/api' const Api_url='https://zh.hnhbty.cn/api'
// const img_domian = 'https://zh.hnhbty.cn/' const img_domian = 'https://zh.hnhbty.cn/'
const Api_url='http://146.56.228.75:20024/api' // const Api_url='http://146.56.228.75:20024/api'
const img_domian = 'http://146.56.228.75:20024/' // const img_domian = 'http://146.56.228.75:20024/'
const IsDemo = false const IsDemo = false

53
components/AQ/AQTabber.vue

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

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

@ -8,7 +8,7 @@
@tap="handleClick" @tap="handleClick"
> >
<slot></slot> <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> </view>
</template> </template>

4
manifest.json

@ -1,6 +1,6 @@
{ {
"name" : "智慧教务", "name" : "智慧教务",
"appid" : "__UNI__D7D400A", "appid" : "__UNI__530CC7A",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
@ -62,7 +62,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxdaf2fffe7e397c01", "appid" : "wx675f2696abf932c5",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : true, "minified" : true,

4
pages/coach/student/physical_examination.vue

@ -6,7 +6,7 @@
<view class="content"> <view class="content">
<view class="circle-container"> <view class="circle-container">
<view class="card-con-txt1-left"> <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>
<view class="card-con-txt1-left-txt">{{surveyInfo.score}}</view> <view class="card-con-txt1-left-txt">{{surveyInfo.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view> <view class="card-con-txt1-left-txt top1">综合评分</view>
@ -24,7 +24,7 @@
</view> </view>
<view class="coach-message"> <view class="coach-message">
<view> <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>
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{surveyInfo.content}}</view> <view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{surveyInfo.content}}</view>
</view> </view>

4
pages/common/im_chat_info.vue

@ -48,12 +48,12 @@
<view class="right_box"> <view class="right_box">
<!--发送--> <!--发送-->
<view class="img_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>
<!--更多选择--> <!--更多选择-->
<view class="img_box"> <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> </view>
</view> </view>

6
pages/common/my_message.vue

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

14
pages/market/clue/add_clues.vue

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

10
pages/market/clue/clue_info.vue

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

14
pages/market/clue/edit_clues.vue

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

22
pages/market/clue/index.vue

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

44
pages/market/index/index.vue

@ -13,7 +13,7 @@
<view style="height: 38vh;"> <view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;"> <view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view> <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>
<view class="title">本月业绩</view> <view class="title">本月业绩</view>
</view> </view>
@ -22,7 +22,7 @@
<view style="padding: 20rpx 0;"> <view style="padding: 20rpx 0;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">拉新总数</view> <view class="title-x">拉新总数</view>
</view> </view>
@ -32,7 +32,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已分配</view> <view class="title-x">已分配</view>
</view> </view>
@ -42,7 +42,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">昨日拉新</view> <view class="title-x">昨日拉新</view>
</view> </view>
@ -52,7 +52,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">今日拉新</view> <view class="title-x">今日拉新</view>
</view> </view>
@ -99,7 +99,7 @@
<view style="height: 38vh;"> <view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;"> <view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view> <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>
<view class="title">上月业绩</view> <view class="title">上月业绩</view>
</view> </view>
@ -110,7 +110,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">拉新总数</view> <view class="title-x">拉新总数</view>
</view> </view>
@ -120,7 +120,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已分配</view> <view class="title-x">已分配</view>
</view> </view>
@ -132,7 +132,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">昨日拉新</view> <view class="title-x">昨日拉新</view>
</view> </view>
@ -142,7 +142,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">今日拉新</view> <view class="title-x">今日拉新</view>
</view> </view>
@ -159,7 +159,7 @@
<view style="height: 38vh;"> <view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;"> <view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view> <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>
<view class="title">本月业绩</view> <view class="title">本月业绩</view>
</view> </view>
@ -168,7 +168,7 @@
<view style="padding: 20rpx 0;"> <view style="padding: 20rpx 0;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已分配</view> <view class="title-x">已分配</view>
</view> </view>
@ -178,7 +178,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已沟通</view> <view class="title-x">已沟通</view>
</view> </view>
@ -188,7 +188,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">未成交</view> <view class="title-x">未成交</view>
</view> </view>
@ -198,7 +198,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">待续费</view> <view class="title-x">待续费</view>
</view> </view>
@ -208,7 +208,7 @@
<view> <view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已关单</view> <view class="title-x">已关单</view>
</view> </view>
@ -259,7 +259,7 @@
<view style="height: 38vh;"> <view style="height: 38vh;">
<view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;"> <view style="display: flex;align-items: center;padding: 20rpx 0 0 20rpx;">
<view> <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>
<view class="title">上月业绩</view> <view class="title">上月业绩</view>
</view> </view>
@ -270,7 +270,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已分配</view> <view class="title-x">已分配</view>
</view> </view>
@ -279,7 +279,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已沟通</view> <view class="title-x">已沟通</view>
</view> </view>
@ -291,7 +291,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">未成交</view> <view class="title-x">未成交</view>
</view> </view>
@ -300,7 +300,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">待续费</view> <view class="title-x">待续费</view>
</view> </view>
@ -313,7 +313,7 @@
<view style="width: 48%;"> <view style="width: 48%;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="padding: 12rpx;"> <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>
<view class="title-x">已关单</view> <view class="title-x">已关单</view>
</view> </view>

2
pages/market/my/signed_client_list.vue

@ -24,7 +24,7 @@
<view class="box_1"> <view class="box_1">
<image class="pic" <image class="pic"
v-if="v.header" :src="$util.img(v.header)"></image> 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 class="tag_box">-->
<!-- 即将到期--> <!-- 即将到期-->
<!-- </view>--> <!-- </view>-->

2
pages/student/index/index.vue

@ -28,7 +28,7 @@
<view class="card-con-txt1"> <view class="card-con-txt1">
<view class="card-con-txt1-left"> <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 top">{{memberIndexData.tx.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view> <view class="card-con-txt1-left-txt top1">综合评分</view>
</view> </view>

2
pages/student/index/job_list.vue

@ -24,7 +24,7 @@
</view> </view>
<!--是否已经完成作业--> <!--是否已经完成作业-->
<view class="mark" v-if="v.status == 2"> <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>
</view> </view>

4
pages/student/index/physical_examination.vue

@ -15,7 +15,7 @@
<view class="content"> <view class="content">
<view class="circle-container"> <view class="circle-container">
<view class="card-con-txt1-left"> <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>
<view class="card-con-txt1-left-txt">{{v.score}}</view> <view class="card-con-txt1-left-txt">{{v.score}}</view>
<view class="card-con-txt1-left-txt top1">综合评分</view> <view class="card-con-txt1-left-txt top1">综合评分</view>
@ -33,7 +33,7 @@
</view> </view>
<view class="coach-message"> <view class="coach-message">
<view> <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>
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{v.content}}</view> <view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{v.content}}</view>
</view> </view>

67
pages/student/login/login.vue

@ -3,8 +3,8 @@
<view style="height: 500rpx;background-color:#fff;"> <view style="height: 500rpx;background-color:#fff;">
<view style="height: 150rpx;"></view> <view style="height: 150rpx;"></view>
<view class="image-container;"> <view class="image-container;">
<image src="@/static/images/login/login1.png" class="base-image"></image> <image :src="$util.img('/uniapp_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/login2.png')" class="overlay-image"></image>
</view> </view>
<view style="width: 100%;font-size: 60rpx;color: #ccc;text-align: center;margin-top: 60rpx;"> <view style="width: 100%;font-size: 60rpx;color: #ccc;text-align: center;margin-top: 60rpx;">
运动课堂 运动课堂
@ -67,6 +67,7 @@ export default {
password: true, password: true,
user: '', // user: '', //
password1: '', // password1: '', //
mini_wx_openid:'',//openid
loginType:'',//|1=,2=,3= loginType:'',//|1=,2=,3=
loginType_str:'',// loginType_str:'',//
@ -93,8 +94,12 @@ export default {
this.loginType_str = selectedItem ? selectedItem.text : '未知类型'; this.loginType_str = selectedItem ? selectedItem.text : '未知类型';
// uni.hideHomeButton() // uni.hideHomeButton()
// console.log(uni.getStorageSync('um_id')) // console.log(uni.getStorageSync('um_id'))
this.init()
}, },
methods: { methods: {
async init(){
await this.getWxConfig()
},
input(e) { input(e) {
console.log(e) console.log(e)
}, },
@ -196,28 +201,56 @@ export default {
url: url_path url: url_path
}) })
}, },
loginWx() {
uni.login({ async getWxConfig(){
provider: 'weixin', let params = {
success: (res) => { config_key: 'WECHAT'
console.log(res) }
medication.wechatminilogin({ let res = await apiRoute.common_getConfig(params)
code: res.code if ( res.code != 1){
}).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 {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none' 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 class="name">{{member_info.name}}</view>
</view> </view>
<view class="right" @click="setup"> <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> </view>
</view> </view>

Loading…
Cancel
Save