Commit 9411997e authored by 和慭琛's avatar 和慭琛

Merge branch 'dev-photo-tools'

parents 43d5f1df ad702724
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
//https://system.dev.banshouhui.com //https://system.dev.banshouhui.com
//正式环境 //正式环境
domain_Name: 'https://system.banshouhui.com', //domain_Name: 'https://system.banshouhui.com',
//测试环境 //测试环境
//domain_Name: 'https://system.dev.banshouhui.com', domain_Name: 'https://system.dev.banshouhui.com',
//http://192.168.0.208:8192 //http://192.168.0.208:8192
//小青本地环境 //小青本地环境
...@@ -190,6 +190,76 @@ ...@@ -190,6 +190,76 @@
getProtocolContent: function() { getProtocolContent: function() {
this.protocolContent this.protocolContent
}, },
/* ------------------------- 数据埋点begin ------------------------------ */
track(event, properties) {
if (AnalysysAgent) {
// 易观添加事件
let AnalysysAgent = wx.AnalysysAgent;
AnalysysAgent.track("take_order_" + event, properties);
}
},
identify(userInfo, openid, unionid = null) {
// 设备身份表示
if (AnalysysAgent) {
let setProfile = {
'openid': openid,
'unionid': unionid,
}
setProfile = Object.assign(setProfile, userInfo)
AnalysysAgent.profileSet(setProfile);
}
},
setUserId(userId) {
// 用户id设置
if (AnalysysAgent) {
AnalysysAgent.alias(userId + '')
}
},
setUser(user) {
// 用户附加属性
if (AnalysysAgent) {
let userInfo = {
'mobile':user.mobile,
'userfrom_id':user.uid,
'userfrom':'家维广场',
'avatar':user.avatar,
'nickname':user.nickname,
'username':user.username,
'wxhuid':user.wxhuid,
'id':user.id,
'money': user.money,
'score':user.score
};
Object.keys(userInfo).map(key=>{
if(key && userInfo[key]){
AnalysysAgent.profileAppend(key,userInfo[key])
}
})
}
},
share(toShareProperties, trackProperties) {
if (AnalysysAgent) {
AnalysysAgent.share(toShareProperties, trackProperties);
}
},
trackPage(pageName, properties){
if (AnalysysAgent) {
AnalysysAgent.pageView(pageName, properties);
}
},
initShare(option){
console.log(option,'option-initShare')
option = option || {}
if (AnalysysAgent && option.user_id) {
let shareUserInfo = {
'share_from_id':option.user_id || '',
'share_from_nickname':option.user_name || '',
}
AnalysysAgent.registerSuperProperties(shareUserInfo);
}
},
/* ------------------------- 数据埋点end ------------------------------ */
}, },
......
...@@ -8,13 +8,58 @@ ...@@ -8,13 +8,58 @@
{ {
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
}
},
{
"path": "pages/settle/base",
"style": {
"navigationBarTitleText": "入驻信息"
}
},
{
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "下单" "navigationBarTitleText": "下单"
} }
}, },
{
"path": "pages/sign/index",
"style": {
"navigationBarTitleText": "入驻签约"
}
},
{
"path": "pages/exam/index",
"style": {
"navigationBarTitleText": "入驻考试"
}
},
{
"path": "pages/video/index",
"style": {
"navigationBarTitleText": "培训&考试"
}
},
{ {
"path": "pages/photo/product", "path": "pages/photo/product",
...@@ -25,7 +70,7 @@ ...@@ -25,7 +70,7 @@
{ {
"path": "pages/take/detail", "path": "pages/take/detail",
...@@ -41,9 +86,7 @@ ...@@ -41,9 +86,7 @@
"navigationBarTitleText": "拍照", "navigationBarTitleText": "拍照",
"navigationBarBackgroundColor":"#333333", "navigationBarBackgroundColor":"#333333",
"navigationBarTextStyle":"#FFFFFF", "navigationBarTextStyle":"#FFFFFF",
"app-plus": {//app平台 "disableScroll":true
"bounce": "none"//禁止滚动
}
} }
}, },
...@@ -54,7 +97,8 @@ ...@@ -54,7 +97,8 @@
"style": { "style": {
"navigationBarTitleText": "图片展示", "navigationBarTitleText": "图片展示",
"navigationBarBackgroundColor":"#333333", "navigationBarBackgroundColor":"#333333",
"navigationBarTextStyle":"#FFFFFF" "navigationBarTextStyle":"#FFFFFF",
"disableScroll":true
} }
}, },
...@@ -90,27 +134,14 @@ ...@@ -90,27 +134,14 @@
{ {
"path": "pages/photo/take", "path": "pages/photo/take",
"style": { "style": {
"navigationBarTitleText": "拍照-ljd" "navigationBarTitleText": "拍照-ljd",
"disableScroll":true
} }
}, },
// {
// "path": "pages/photo/index",
// "style": {
// "navigationBarTitleText": "拍照"
// }
// },
{ {
"path": "pages/index/success", "path": "pages/index/success",
"style": { "style": {
...@@ -120,16 +151,6 @@ ...@@ -120,16 +151,6 @@
// {
// "path": "pages/take/try",
// "style": {
// "navigationBarTitleText": "接单",
// "enablePullDownRefresh": true
// }
// },
{ {
"path": "pages/login/wxlogin", "path": "pages/login/wxlogin",
"style": { "style": {
......
<template>
<view class="backView">
<template v-if="isStart==false">
<view class="noticeView">
<text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
</text>
</view>
<view class="bottomView">
<view class="bottomBtn" @click="startClick()">
<text class="bottomTitle">开始考试答题</text>
</view>
</view>
</template>
<template v-if="isStart==true">
<view class="bottom-padding">
<view class="numberView">
<text class="numberText">{{progress}}</text>
</view>
<view class="topicView">
<text class="topicText">{{currentItem.topic}}</text>
</view>
<view class="itemView" v-for="(item,ikey) in currentItem.answerList":key="ikey">
<text :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' "
@click="itemClick(item,ikey)">{{item.content}}</text>
</view>
<view class="answerBottomView">
<image class="timeIcon" src="" mode=""></image>
<text class="timeText">{{currentTime}}</text>
<view :class="isSelect ? 'nextBtn selectedColor' : 'nextBtn defaultColor' "
@click="nextClick()">
<text class="bottomTitle">{{bottomTitle}}</text>
</view>
</view>
</view>
</template>
</view>
</template>
<script>
export default {
data() {
return {
examId:1,
userExamId:0,
userAnswerIds:'',
isStart:false,
currentNumber:1,
currentItem:null,
isSelect:false,
currentTime:30,
progress:'',
bottomTitle:'下一题',
isStop:false,
}
},
onLoad(e) {
},
methods: {
//开始考试 点击
startClick: function () {
this.isStart = true
//this.getData()
//this.applyExam()
this.getUserExamInfo()
},
//获取考试信息
getUserExamInfo: function () {
uni.showLoading({
title:'请稍候'
})
let that = this
uni.request({
url: getApp().globalData.domain_Name
+'/wxh-worker-rest/rest/exam'
+'/serviceRule/userExamInfo/'
+getApp().globalData.token
+'?examId='+this.examId,
method: 'POST',
data: {
//examId:this.examId,
},
header:{
'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => {
uni.hideLoading()
console.log('获取考试信息 成功')
console.log(res)
if(res.statusCode==401){
uni.navigateTo({
url:'/pages/login/wxlogin'
})
return
}
if(res.data.code==200){
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if(res.data.data.examStatus == 2){
that.applyExam()
}
if(res.data.data.examStatus == 0
||res.data.data.examStatus == 1){
that.userExamId = res.data.data.id
that.getNext()
}
// console.log('code=200')
//this.handleList(res)
}else{
uni.showToast({
icon:'none',
title:res.data.message
})
}
},
fail: (e) => {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'获取考试信息失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
//申请考试
applyExam: function () {
uni.showLoading({
title:'请稍候'
})
let that = this
uni.request({
url: getApp().globalData.domain_Name
+'/wxh-worker-rest/rest/exam'
+'/serviceRule/'
+getApp().globalData.token
+'?examId=' + this.examId,
method: 'POST',
data: {
//examId:this.examId,
},
header:{
'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => {
uni.hideLoading()
console.log('申请考试 成功')
console.log(res)
if(res.statusCode==401){
uni.navigateTo({
url:'/pages/login/wxlogin'
})
return
}
if(res.data.code==200){
if(res.data.data.userExamId){
that.userExamId = res.data.data.userExamId
that.getNext()
}
// console.log('code=200')
//this.handleList(res)
}else{
uni.showToast({
icon:'none',
title:res.data.message
})
}
},
fail: (e) => {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'申请考试 失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
//获取下一题
getNext: function () {
var questionId = ''
if(this.currentItem
&&this.currentItem.question
&&this.currentItem.question.id){
questionId = this.currentItem.question.id
}
uni.showLoading({
title:'请稍候'
})
let that = this
uni.request({
url: getApp().globalData.domain_Name
+'/wxh-worker-rest/rest/exam'
+'/serviceRule/next/'
+getApp().globalData.token
+'?userExamId='+this.userExamId
+'&questionId='+questionId
+'&userAnswerIds='+this.userAnswerIds,
method: 'POST',
data: {
// userExamId:this.userExamId,
// questionId:this.currentItem.question.id,
// userAnswerIds:this.userAnswerIds,
},
header:{
'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => {
uni.hideLoading()
console.log('获取下一题 成功')
console.log(res)
if(res.statusCode==401){
uni.navigateTo({
url:'/pages/login/wxlogin'
})
return
}
if(res.data.code==200){
that.currentItem = res.data.data
that.progress = res.data.data.progress
if(res.data.data.answerList){
that.handleData()
that.currentTime = 30
that.startCounting()
}else{
that.isSelect = true
that.bottomTitle = '完成考试,现在签约'
}
// console.log('code=200')
//this.handleList(res)
}else{
uni.showToast({
icon:'none',
title:res.data.message
})
}
},
fail: (e) => {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'获取下一题 失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
handleData: function () {
this.currentItem.answerList.forEach(item => {
item.isSelect = false
})
console.log(this.currentItem)
},
startCounting : function () {
if(this.isStop){
return
}
this.currentTime = this.currentTime - 1
if(this.currentTime > 0){
setTimeout(this.startCounting, 1000);
}else{
this.currentTime = 30
this.nextClick()
}
},
itemClick: function (currentItem , ikey) {
this.isSelect = true
//answerType 题目类型,1单选,2多选,3简答,
for (let i = 0; i < this.currentItem.answerList.length; i++) {
var item = this.currentItem.answerList[i]
if(this.currentItem.answerType == 2){//多选
if(ikey == i){
item.isSelect = !item.isSelect
}
}else{//单选/简答
if(ikey == i){
item.isSelect = !item.isSelect
}else{
item.isSelect = false
}
}
}
var isSelect = false
this.currentItem.answerList.forEach(item => {
if(item.isSelect){
isSelect = true
}
})
//有选答案
this.isSelect = isSelect
},
//下一题
nextClick: function () {
console.log(this.bottomTitle)
if(this.bottomTitle == '完成考试,现在签约'){
uni.navigateTo({
url:'/pages/sign/index'
})
return
}
this.currentNumber = this.currentNumber + 1
//this.getData()
this.handleAnswer()
//this.getNext()
},
//所选答案
handleAnswer: function () {
/*
userAnswerIds
本题回答。
多选题时id按从小到大排序,并英文逗号,分隔;
简答题时直接存问题答案。
如果是第一次答题,不需要传。
*/
// var idList = []
// idList.push(item.id)
this.currentItem.answerList.forEach(item => {
// if(this.currentItem.answerType == 2){//多选}
if(item.isSelect){
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
///*
if(this.userAnswerIds.length == 0){
this.userAnswerIds = item.id
}else{ // if(this.userAnswerIds.length == 1)
this.userAnswerIds = item.id + ',' + this.userAnswerIds
}
//*/
}
})
console.log('所选答案:')
console.log(this.userAnswerIds)
this.getNext()
},
}
}
</script>
<style>
.backView{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
.noticeView{
margin-top: 100rpx;
width: 100%;
display: flex;
}
.noticeText{
font-size: 32rpx;
color: #555555;
padding-left: 40rpx;
padding-right: 40rpx;
}
.numberView{
margin-top: 100rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.numberText{
font-size: 28rpx;
font-weight: bold;
}
.topicView{
margin-top: 100rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.topicText{
font-size: 28rpx;
padding-left: 40rpx;
padding-right: 40rpx;
}
.itemView{
margin-top: 100rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.itemText{
font-size: 28rpx;
padding-top: 40rpx;
padding-bottom: 40rpx;
padding-left: 40rpx;
padding-right: 40rpx;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 140rpx;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
}
.bottomBtn{
background-color: #007AFF;
width: 60%;
height: 80rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bottomTitle{
font-size: 32rpx;
color: #FFFFFF;
}
.answerBottomView{
background-color: #FFFFFF;
width: 100%;
height: 140rpx;
display: flex;
flex-direction: row;
align-items: center;
position: fixed;
bottom: 0;
}
.timeIcon{
background-color: #999999;
margin-left: 80rpx;
width: 80rpx;
height: 80rpx;
border-radius: 40rpx;
}
.timeText{
margin-left: 20rpx;
font-size: 32rpx;
color: #999999;
}
.nextBtn{
width: 400rpx;
height: 80rpx;
border-radius: 40rpx;
margin-left: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.defaultColor{
background-color: #999999;
}
.selectedColor{
background-color: #007AFF;
}
.bottom-padding{
padding-bottom: 180rpx;
}
</style>
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
<text class="agreeTitle" @click="agreeClick(isAgree)">我已阅读并同意</text> <text class="agreeTitle" @click="agreeClick(isAgree)">我已阅读并同意</text>
<text class="agreeProtocol" @click="protocolClick()">《服务协议》</text> <text class="agreeProtocol" @click="protocolClick()">《服务协议》</text>
</view> </view>
</view> </view>
<view class="bottomView"> <view class="bottomView">
<view class="bottomLeftView" @click="mineClick()"> <view class="bottomLeftView" @click="mineClick()">
...@@ -123,6 +122,7 @@ ...@@ -123,6 +122,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('下单页')
//+ '?orderId=' + this.orderId + '&toWhere=detail' //+ '?orderId=' + this.orderId + '&toWhere=detail'
if(e && e.toWhere){ if(e && e.toWhere){
this.toWhere(e) this.toWhere(e)
...@@ -229,6 +229,12 @@ ...@@ -229,6 +229,12 @@
methods: { methods: {
hideClick:function(){
uni.navigateTo({
url: '/pages/exam/index',
})
},
doNothing:function(){}, doNothing:function(){},
toWhere: function(e){ toWhere: function(e){
...@@ -445,8 +451,10 @@ ...@@ -445,8 +451,10 @@
return return
} }
// yuan /pages/take/index
uni.navigateTo({ uni.navigateTo({
url: '/pages/take/index' url: '/pages/exam/index'
}) })
...@@ -700,6 +708,8 @@ ...@@ -700,6 +708,8 @@
checkClean: function (){ checkClean: function (){
console.log('checkClean:' + this.isClean)
// uni.getStorage({ // uni.getStorage({
// key: 'token', // key: 'token',
// success: function (res) { // success: function (res) {
...@@ -1247,4 +1257,10 @@ ...@@ -1247,4 +1257,10 @@
justify-content: center; justify-content: center;
} }
.hideBtn{
background-color: #007AFF;
width: 100%;
height: 80rpx;
}
</style> </style>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
} }
}, },
onLoad() { onLoad() {
getApp().trackPage('下单列表页')
this.icon_noData = getApp().globalData.icon_noData this.icon_noData = getApp().globalData.icon_noData
this.icon_i = getApp().globalData.icon_i this.icon_i = getApp().globalData.icon_i
}, },
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('下单成功页')
if(e && e.activeService && e.activeService.length>0){ if(e && e.activeService && e.activeService.length>0){
//console.log(e.activeService) //console.log(e.activeService)
this.activeService = e.activeService this.activeService = e.activeService
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
} }
}, },
onLoad() { onLoad() {
getApp().trackPage('授权登录页')
this.icon_notice = getApp().globalData.icon_auth_notice this.icon_notice = getApp().globalData.icon_auth_notice
this.icon_auth_notice_new = getApp().globalData.icon_auth_notice_new this.icon_auth_notice_new = getApp().globalData.icon_auth_notice_new
//this.domain_name = getApp().globalData.domain_Name //this.domain_name = getApp().globalData.domain_Name
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('选择品牌页')
if(e && e.product_code){ if(e && e.product_code){
this.product_code = e.product_code this.product_code = e.product_code
} }
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
// } // }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('照片规范详情页')
this.initData(e) this.initData(e)
}, },
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('照片规范列表页')
if(e && e.product){ if(e && e.product){
this.product = e.product this.product = e.product
} }
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('照片预览页')
console.log(e,'e') console.log(e,'e')
if(e.img){ if(e.img){
this.images = [e.img] this.images = [e.img]
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('选择产品页')
this.getProductList() this.getProductList()
}, },
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('拍照页')
this.ctx = uni.createCameraContext(); this.ctx = uni.createCameraContext();
this.date = '时间:' + this.getTime() this.date = '时间:' + this.getTime()
this.getLocation() this.getLocation()
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('拍照页')
this.ctx = uni.createCameraContext(); this.ctx = uni.createCameraContext();
this.date = this.getTime() this.date = this.getTime()
this.getLocation() this.getLocation()
......
<template>
<view class="back_view">
入驻基本信息
</view>
</template>
<script>
export default {
data() {
return {
protocolContent:''
}
},
onLoad(e) {
if(e && e.activeService && e.activeService.length>0){
//console.log(e.activeService)
this.activeService = e.activeService
}
},
methods: {
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
.back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
</style>
<template>
<view class="back_view">
<image class="theme_image" :src="theme_url" mode="aspectFill"></image>
<view class="bottom_view">
<view :class="isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@click="applyClick()">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
theme_url:'https://qn-static.banshouhui.com/settle_theme.png',
count:8,
isStop:false,
}
},
onLoad(e) {
this.startCounting()
},
methods: {
startCounting : function () {
if(this.isStop){
return
}
this.count = this.count - 1
if(this.count > 0){
setTimeout(this.startCounting, 1000);
}else{
this.isStop = true
}
},
applyClick: function () {
if(!this.isStop){
return
}
uni.navigateTo({
url:'/pages/settle/base'
})
},
}
}
</script>
<style>
.back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
.theme_image{
width: 100%;
height: 3000rpx;
}
.bottom_view{
background-color: #002CC0;
width: 100%;
height: 200rpx;
display: flex;
align-content: center;
justify-content: center;
}
.bottom_btn{
margin-top: 30rpx;
width: 600rpx;
height: 100rpx;
border: 4rpx solid #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.bottom_title{
font-size: 32rpx;
color: #FFFFFF;
}
.default_color{
background-color: #002CC0;
}
.apply_color{
background-color: #2272FF;
}
</style>
<template>
<view class="">
签约界面
</view>
</template>
<script>
export default {
data() {
return {
protocolContent:''
}
},
onLoad(e) {
},
methods: {
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
</style>
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
TimeID:-1, TimeID:-1,
userType:'', userType:'',
isContentShow:true, isContentShow:true,
fromWhere:'',
//退单弹窗相关 //退单弹窗相关
isCancelShow:false, isCancelShow:false,
result:{ result:{
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('工单详情页')
console.log(e) console.log(e)
if(e && e.orderId){ if(e && e.orderId){
this.orderId = e.orderId this.orderId = e.orderId
...@@ -205,6 +206,11 @@ ...@@ -205,6 +206,11 @@
this.isBottomShow = e.isBottomShow this.isBottomShow = e.isBottomShow
} }
if(e && e.fromWhere){
this.fromWhere = e.fromWhere
}
this.datetime = this.getTime() this.datetime = this.getTime()
//console.log('当前时间:'+this.datetime) //console.log('当前时间:'+this.datetime)
...@@ -570,7 +576,7 @@ ...@@ -570,7 +576,7 @@
}, },
//退单点击
cancelClick: function () { cancelClick: function () {
clearTimeout(this.TimeID); clearTimeout(this.TimeID);
...@@ -605,6 +611,8 @@ ...@@ -605,6 +611,8 @@
//退单请求 //退单请求
cancelPost: function (rejectReason) { cancelPost: function (rejectReason) {
let that = this
uni.showLoading({ uni.showLoading({
title:'请稍候' title:'请稍候'
...@@ -633,8 +641,14 @@ ...@@ -633,8 +641,14 @@
title:'退单成功', title:'退单成功',
}) })
var delta = 1
if(that.fromWhere == '抢单页'){
delta = 2
}
setTimeout(function() { setTimeout(function() {
uni.navigateBack({}) uni.navigateBack({
delta:delta
})
}, 1000); }, 1000);
}else{ }else{
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('工单完工页')
this.icon_close_new = getApp().globalData.icon_close_new this.icon_close_new = getApp().globalData.icon_close_new
this.getTopInfo(e) this.getTopInfo(e)
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
}, },
onLoad() { onLoad() {
getApp().trackPage('抢单广场页')
this.icon_noData = getApp().globalData.icon_noData this.icon_noData = getApp().globalData.icon_noData
this.icon_trangle_up = getApp().globalData.icon_trangle_up this.icon_trangle_up = getApp().globalData.icon_trangle_up
this.icon_selected = getApp().globalData.icon_selected this.icon_selected = getApp().globalData.icon_selected
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('服务措施页')
if(e && e.orderId){ if(e && e.orderId){
this.orderId = e.orderId this.orderId = e.orderId
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<view class="itemView u-m-t-30"> <view class="itemView u-m-t-30">
<view class="u-p-l-30 u-p-r-30"> <view class="u-p-l-30 u-p-r-30">
<text class="titleText">产品:</text> <text class="titleText">产品:</text>
<text class="contentText u-m-l-10" v-if="orderInfo.brandName">{{orderInfo.brandName}}-{{categoryName}}</text> <text class="contentText u-m-l-10" v-if="orderInfo.brandName">{{orderInfo.brandName}}-{{orderInfo.categoryName}}</text>
</view> </view>
</view> </view>
<view class="itemView u-m-t-30"> <view class="itemView u-m-t-30">
...@@ -96,6 +96,8 @@ ...@@ -96,6 +96,8 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('抢单页')
if(e && e.orderId){ if(e && e.orderId){
this.orderId = e.orderId this.orderId = e.orderId
...@@ -521,7 +523,8 @@ ...@@ -521,7 +523,8 @@
setTimeout(function() { setTimeout(function() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/take/detail' url: '/pages/take/detail'
+'?orderId='+that.orderId, +'?orderId='+that.orderId
+'&fromWhere=抢单页',
}) })
}, 1000); }, 1000);
......
...@@ -13,7 +13,14 @@ ...@@ -13,7 +13,14 @@
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('内置网页')
if(e && e.url){
this.webUrl = e.url
return
}
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40 //https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
getApp().trackPage('师傅入驻页')
this.webUrl = getApp().globalData.domain_Name this.webUrl = getApp().globalData.domain_Name
+ '/weixiuapp/site/index.html#/?pioneerId=40' + '/weixiuapp/site/index.html#/?pioneerId=40'
//console.log(this.webUrl) //console.log(this.webUrl)
......
<template>
<view class="backView">
<view class="itemView" v-for="(item,ikey) in dataList":key="ikey"
@click="itemClick(item,ikey)">
<view class="titleView">
<text class="title">{{item.title}}</text>
<image class="arrow" :src="icon_arrow_right" mode=""></image>
</view>
<text class="notice">时长:5分钟,已完成学习</text>
</view>
<view class="bottomView">
<view class="bottomBtn" @click="examClick()">
<text class="bottomTitle">完成学习后,可参加考试</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
icon_arrow_right:'',
dataList:[],
}
},
onLoad(e) {
this.icon_arrow_right = getApp().globalData.icon_arrow_right
this.getData()
},
methods: {
//获取数据
getData: function () {
this.dataList = [
{
'title':'第一章 希望的终结',
},
{
'title':'第二章 困惑的浪漫',
},
{
'title':'第三章 诸神的黄昏',
},
];
},
itemClick: function (item , ikey) {
uni.navigateTo({
url:'/pages/take/web'
+'?url=' + 'https://www.baidu.com',
})
},
//参加考试
examClick: function () {
uni.navigateTo({
url:'/pages/exam/index'
})
}
}
}
</script>
<style>
.backView{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
.itemView{
background-color: #FAFAFA;
width: 100%;
display: flex;
flex-direction: column;
border-bottom: 2rpx solid #999999;
}
.titleView{
background-color: #FFFFFF;
width: 100%;
height: 80rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #999999;
}
.title{
font-size: 28rpx;
margin-left: 40rpx;
}
.arrow{
width: 16rpx;
height: 28rpx;
margin-right: 40rpx;
}
.notice{
padding-left: 40rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
font-size: 28rpx;
color: #999999;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 140rpx;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
}
.bottomBtn{
background-color: #007AFF;
width: 60%;
height: 80rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bottomTitle{
font-size: 32rpx;
color: #FFFFFF;
}
</style>
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 to comment