diff --git a/manifest.json b/manifest.json
index 0b6f37c..c6353ad 100644
--- a/manifest.json
+++ b/manifest.json
@@ -81,7 +81,7 @@
"disableHostCheck" : true,
"proxy" : {
"/api" : {
- "target" : "http://47.103.142.123:1010/", //目标接口域名
+ "target" : "https://guide.sz-trip.com/", //目标接口域名
"changeOrigin" : true, //是否跨域
"secure" : true, // 设置支持https协议的代理
"pathRewrite" : {
diff --git a/pages.json b/pages.json
index 733c14f..d1b4d55 100644
--- a/pages.json
+++ b/pages.json
@@ -65,6 +65,12 @@
"navigationBarTitleText": "账号密码"
}
},
+ {
+ "path": "user/changePassword",
+ "style": {
+ "navigationBarTitleText": "修改密码"
+ }
+ },
{
"path": "video/index",
"style": {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 52abefd..9c48da4 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -57,7 +57,8 @@
url: this.$store.state.user.toPath
})
} else {
- uni.navigateBack({})
+ // uni.navigateBack({})
+ this.goBack()
}
})
}
diff --git a/pages/user/user.vue b/pages/user/user.vue
index 7070be8..b4294a6 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/verification/index.vue b/pages/verification/index.vue
index a43d5f1..dc15f67 100644
--- a/pages/verification/index.vue
+++ b/pages/verification/index.vue
@@ -10,7 +10,7 @@
-
+
点击扫码核销
@@ -36,41 +36,41 @@
订单详情
-
- 下单日期:
- 2024-11-21
-
-
- 订单号:
- 2024-11-21
-
-
- 订单名称:
- 订单名称订单名称订单名称订单名称 订单名称订单名称订单名称订单名称
-
-
- 数量:
- 2024-11-21
-
-
- 订单状态:
- 2024-11-21
-
-
- 时段:
- 2024-11-21
-
-
- 出行人:
- 2024-11-21
-
-
- 出行人手机号:
- 2024-11-21
-
-
+
+ 下单日期:
+ {{item.create_time}}
+
+
+ 订单号:
+ {{item.order_id}}
+
+
+ 订单名称:
+ {{item.name}}
+
+
+ 数量:
+ {{item.num}}
+
+
+ 订单状态:
+ {{item.status_text}}
+
+
+ 时段:
+
+
+
+ 出行人:
+ {{item.nickname}}
+
+
+ 出行人手机号:
+ {{item.phone}}
+
+
出行人身份证:
- 2024-11-21
+ {{item.user_id_number}}
核销
@@ -84,42 +84,44 @@
确认是否核销
-
- 下单日期:
- 2024-11-21
-
-
- 订单号:
- 2024-11-21
-
-
- 订单名称:
- 订单名称
-
-
- 数量:
- 2024-11-21
-
-
- 订单状态:
- 2024-11-21
-
-
- 时段:
- 2024-11-21
-
-
- 出行人:
- 2024-11-21
-
-
- 出行人手机号:
- 2024-11-21
-
-
+
+
+ 下单日期:
+ {{item.create_time}}
+
+
+ 订单号:
+ {{item.order_id}}
+
+
+ 订单名称:
+ {{item.name}}
+
+
+ 数量:
+ {{item.num}}
+
+
+ 订单状态:
+ {{item.status_text}}
+
+
+ 时段:
+
+
+
+ 出行人:
+ {{item.nickname}}
+
+
+ 出行人手机号:
+ {{item.phone}}
+
+
出行人身份证:
- 2024-11-21
+ {{item.user_id_number}}
+
@@ -141,7 +143,7 @@
components:{scanCodeVue},
data() {
return {
- type: 0,
+ type: 1,
HXCode: '', // 核销码
HXPhone:"",
orderList: [],
@@ -155,7 +157,6 @@
},
methods: {
-
scanCode () {
this.showScan = true
},
@@ -177,20 +178,38 @@
// 微信扫码获取订单详情
getOrderByCode (code) {
this.Post({
-
- }, '/api/wx/jsSdk')
+ code: code
+ }, '/api/wx/jsSdk').then(res=>{
+ if (res && res.code == 1 && res.data) {
+ this.orderList = [res.data]
+ this.$refs.popup.open()
+ }
+ })
},
// 核销码核销
verifyByCode () {
- this.$refs.popup.open()
+ if (this.HXCode.trim() == '') {
+ uni.showToast({title:'请输入核销码',icon:"none"})
+ return
+ }
+ this.getOrderByCode(this.HXCode)
},
+ // 确认核销
confirmVerify () {
-
+ this.Post({code: this.HXCode}, '/api/').then(res=>{
+ uni.showToast({
+ title:'核销成功',
+ icon:'none'
+ })
+ this.HXCode = ""
+ this.$refs.popup.close()
+ this.orderList = []
+ })
},
// 手机搜索核销单
searchByPhone () {
- if (this.HXPhone == '') {
+ if (this.HXPhone.trim() == '') {
uni.showToast({title:'请输入手机号',icon:"none"})
return
} else if (this.HXPhone.length < 4) {
@@ -213,7 +232,6 @@
confirmColor: '#96684F',
success: function (res) {
if (res.confirm) {
-
// todo
uni.showToast({title:'核销成功'})
_this.orderList = []
@@ -223,27 +241,46 @@
},
- getInfo() {
- this.Post({
- scenic_id: this.scenicId,
- goods_id: this.goodsId,
- offset: this.list.length,
- limit: 10
- }, '/api/scenic/getGoodsCommentByScenicId').then(res => {
- if (res) {
- this.list = [...this.list, ...res.data]
- this.list.forEach(item => {
- item.close = false
- item.needShowExpande = false
- })
- console.log('添加close的list',this.list);
- if (res.data.length < 10) {
- this.finished = true
+ // 微信扫码
+ initWX () {
+ try {
+ // if (window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger") {
+ let that = this
+ this.Post({
+ web_url: encodeURIComponent(window.location.href.split('#')[0]),
+ apis: 'scanQRCode'
+ }, '').then(res => {
+ if (res) {
+ let data = res.jssdk
+ //初始化微信功能
+ wx.config({
+ debug: false,
+ appId: data.appId,
+ timestamp: data.timestamp,
+ nonceStr: data.nonceStr,
+ signature: data.signature,// + "asdfasdf",//测试获取地理位置失败
+ jsApiList: ['scanQRCode']
+ });
}
- }
- })
+ })
+ // }
+ } catch (e) {}
+ },
+ // 调起微信扫码
+ saoma() {
+ let that = this
+ wx.scanQRCode({
+ needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
+ scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
+ success: function (res) {
+ that.getOrderByCode(res.resultStr.split('?')[1].split('=')[1])
+ },
+ fail: function (error) {
+ console.log(error)
+ }
+ });
+
},
-
},
}
diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index bacc431..7b9045c 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -66,7 +66,7 @@ Vue.prototype.showImg = img => {
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img;
} else {
- return 'http://47.103.142.123:1010' + img;
+ return 'https://guide.sz-trip.com' + img;
}
}
@@ -164,4 +164,9 @@ Vue.prototype.ShowDateDay = day => {
break;
}
return stateTxt
+}
+
+// 手机号显示加密
+Vue.prototype.encryptPhone = (phone) =>{
+ return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
}
\ No newline at end of file
diff --git a/static/js/request.js b/static/js/request.js
index 9320389..63b8bd9 100644
--- a/static/js/request.js
+++ b/static/js/request.js
@@ -10,6 +10,7 @@ Vue.prototype.NEWAPIURL = NEWAPIURL
Vue.prototype.Post = (params, apiurl) => {
if (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo')).token) params.merchants_token = JSON.parse(uni.getStorageSync('userInfo')).token
else if (store.state.user.userInfo.token) params.merchants_token = store.state.user.userInfo.token
+ params.merchants_token = "f6339f83-a62a-4030-81d3-34429c7d4c95"
return new Promise((resolve, reject) => {
uni.showLoading({
title: '加载中'
diff --git a/subPackages/user/accountPassword.vue b/subPackages/user/accountPassword.vue
index 8edf664..34fb196 100644
--- a/subPackages/user/accountPassword.vue
+++ b/subPackages/user/accountPassword.vue
@@ -5,9 +5,9 @@
{{userInfo.mobile}}
-
+
密码
- ******
+ ******
@@ -39,12 +39,7 @@
font-size: 28rpx;
color: #000000;
border-bottom: 1rpx solid #D8D8D8;
-
- image {
- width: 11.33rpx;
- height: 20rpx;
- margin-left: 20rpx;
- vertical-align: middle;
- }
}
+
+
\ No newline at end of file
diff --git a/subPackages/user/changePassword.vue b/subPackages/user/changePassword.vue
new file mode 100644
index 0000000..af053f8
--- /dev/null
+++ b/subPackages/user/changePassword.vue
@@ -0,0 +1,141 @@
+
+
+
+ 导游ID
+ {{userInfo.mobile}}
+
+
+ 手机号
+ {{userInfo.mobile}}
+
+
+ 短信验证码
+
+
+ {{ getCodeBtnTxt }}
+
+
+
+
+ 新密码
+
+
+
+
+
+ 确认密码
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/user/infoFilling.vue b/subPackages/user/infoFilling.vue
index 7eafa02..6218a24 100644
--- a/subPackages/user/infoFilling.vue
+++ b/subPackages/user/infoFilling.vue
@@ -22,7 +22,7 @@
-
+
x
@@ -62,7 +62,7 @@
-
@@ -119,9 +119,7 @@
{{item.name}}
-
-
@@ -151,18 +149,19 @@
{key: 'scenic_ids',value: '擅长景区'},
{key: 'lingo_ids',value: '语言能力'},
{key: 'sparkle_text', value: '核心亮点'},
- {key:'video_list', value: '讲解视频'}
+ {key:'video_list', value: '讲解视频'},
+ {key:'honor', value: '荣誉称号'}
],
lingoIds: [],
scenicIds: [],
speakText: [],
+ honor: [],
selectionItem: null, // 景点选中更改的值
selection: {arr: [], value: [], valueStr: ''}, //弹窗值
fileList: [],
deleteIndex: [],
-
deleteMode: false, // 视频删除
}
},
@@ -201,6 +200,9 @@
if (this.valueType == 'video_list') {
this.initVideo()
}
+ if (this.valueType == 'honor') {
+ this.initHonor()
+ }
} else {
this.goBack()
@@ -263,6 +265,15 @@
this.fileList = []
}
},
+ initHonor () {
+ try {
+ let fileList = uni.getStorageSync('userVideofileList')
+ this.fileList = JSON.parse(fileList)
+ console.log(this.fileList)
+ } catch(e) {
+ this.fileList = []
+ }
+ },
addText () {
this.speakText.push({text:''})
@@ -325,7 +336,8 @@
try {
let res = JSON.parse(uploadFileRes.data)
if (res.code == 1) {
- _this.fileList.push(res.data.fullurl)
+ // _this.fileList.push(res.data.fullurl)
+ _this.fileList.push(res.data.url)
}
} catch(e) {}
@@ -371,7 +383,7 @@
try {
let res = JSON.parse(uploadFileRes.data)
if (res.code == 1) {
- _this.fileList.push(res.data.fullurl)
+ _this.fileList.push(res.data.url)
}
} catch(e) {}
diff --git a/subPackages/user/register.vue b/subPackages/user/register.vue
index 8636ce1..3839ed8 100644
--- a/subPackages/user/register.vue
+++ b/subPackages/user/register.vue
@@ -75,6 +75,22 @@
保存修改
+
+
+
@@ -97,7 +113,13 @@
},
groupIds: [], // 导游等级
-
+
+ popData: {
+ selection: [],
+ value: null,
+ valueStr: '',
+ keyName: '',
+ },
}
},
mounted() {
@@ -203,38 +225,38 @@
});
},
selectSex () {
- let _this = this
- let itemList = ['男','女']
- let valueList = ['1','2']
- uni.showActionSheet({
- itemList: itemList,
- success: function (res) {
- let index = res.tapIndex;
- _this.info.genderStr = itemList[index]
- _this.info.gender = valueList[index]
-
- },
- fail: function (res) {
- console.log(res.errMsg);
- }
- });
+ this.popData = {
+ selection: [{id: 1, name: "男"}, {id: 2,name:"女"}],
+ value: this.info.gender,
+ valueStr: this.info.genderStr,
+ keyName:"gender"
+ }
+ this.$refs.popup.open()
+
},
selectRank () {
- let _this = this
- let itemList = this.groupIds.map(v=>v.name)
- let valueList = this.groupIds.map(v=>v.id)
- uni.showActionSheet({
- itemList: itemList,
- success: function (res) {
- let index = res.tapIndex;
- _this.info.group_idStr = itemList[index]
- _this.info.group_id = valueList[index]
-
- },
- fail: function (res) {
- console.log(res.errMsg);
- }
- });
+ this.popData = {
+ selection: this.groupIds,
+ value: this.info.group_id,
+ valueStr: this.info.group_idStr,
+ keyName:"group_id"
+ }
+ this.$refs.popup.open()
+ },
+
+ // 单个选中
+ changeItemSelect (item) {
+ if (this.popData.value == item.id) {
+ this.popData.value = null
+ } else {
+ this.popData.value = item.id
+ this.popData.valueStr = item.name
+ }
+ },
+ popSubmit () {
+ this.info[this.popData.keyName] = this.popData.value
+ this.info[this.popData.keyName+"Str"] = this.popData.valueStr
+ this.$refs.popup.close()
},
// 跳转修改数据
@@ -531,31 +553,65 @@
}
.popup-box {
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- background: #fff;
- overflow: hidden;
-
- .popup-item {
- width: 697rpx;
- height: 99rpx;
- font-weight: 500;
- font-size: 31rpx;
- color: #12293C;
- margin: auto;
- }
- .popup-item:nth-child(2) {
- border: none;
- border-bottom: 1rpx solid #D8D8D8;
- border-top: 1rpx solid #D8D8D8;
- }
-
- .popup-items {
- width: 100%;
- height: 99rpx;
- font-weight: 500;
- font-size: 31rpx;
- color: #12293C;
- border-top: 13rpx solid #F2F2F2;
+ border-radius: 0rpx;
+ background: #fff;
+ overflow: hidden;
+ .btn-top{
+ padding: 26rpx 26rpx 0 26rpx;
+ color: #999999;
+ font-size: 31rpx;
+ box-sizing: border-box;
+ }
+ .popup-content{
+ max-height: 500rpx;
+ width: 100%;
+ overflow-x: hidden;
+ overflow-y: auto;
+ }
+
+ .popup-item {
+ width: 697rpx;
+ height: 99rpx;
+ font-weight: 500;
+ font-size: 31rpx;
+ color: #12293C;
+ margin: auto;
+ border-bottom: 1rpx solid #D8D8D8;
+ position: relative;
+ }
+ .popup-item.active{
+ color: #96684F;
+ }
+ .popup-item:last-of-type {
+ border: none;
+ }
+ .active-img{
+ position: absolute;
+ right: 10rpx;
+
+ }
+
+ .popup-btns {
+ width: 100%;
+ height: 153rpx;
+ background: #FFFFFF;
+ color: #12293C;
+ border-top: 13rpx solid #F2F2F2;
+ box-shadow: 0rpx 0rpx 13rpx 0rpx rgba(82,82,82,0.25);
+ padding: 40rpx 26rpx;
+ box-sizing: border-box;
+ view{
+ box-sizing: border-box;
+ width: 100%;
+ height: 73.33rpx;
+ line-height: 73.33rpx;
+ background: #DC2525;
+ border-radius: 11rpx;
+ font-weight: bold;
+ font-size: 32rpx;
+ color: #FFFFFF;
+ text-align: center;
+ }
+ }
}
- }
diff --git a/subPackages/user/userInfo.vue b/subPackages/user/userInfo.vue
index 2eca7a6..8f38c88 100644
--- a/subPackages/user/userInfo.vue
+++ b/subPackages/user/userInfo.vue
@@ -29,7 +29,7 @@
·工作相关
-
+
导游等级
{{info.group_idStr}}
请选择
@@ -39,34 +39,39 @@
{{info.certificate_number}}
请填写
-
+
+ 荣誉称号
+ {{info.honorStr}}
+ 请选择
+
+
工作年限
{{info.duration}}
请填写
-
+
语言能力
{{info.lingo_idsStr}}
请选择
-
+
擅长景区
{{info.scenic_idsStr}}
请选择
-
+
个性签名
{{info.bio}}
请填写
-
+
核心亮点
{{info.sparkle_textStr}}
请填写
·讲解视频
-
+
讲解视频
{{info.video_list.length}}
请选择
@@ -75,6 +80,24 @@
保存修改
+
+
+
+
+
@@ -94,9 +117,17 @@
bio:'', video_list: [],
sparkle_text: [],
sparkle_textStr: '',
+ honor: [], honorStr: ''
},
groupIds: [], // 导游等级
+
+ popData: {
+ selection: [],
+ value: null,
+ valueStr: '',
+ keyName: '',
+ },
}
},
@@ -147,6 +178,7 @@
sparkle_textStr:(resData.sparkle_text || []).map(v=>v.text).join(','),
video_list: video_list,
+ honor: [], honorStr: ''
}
})
},
@@ -203,38 +235,38 @@
});
},
selectSex () {
- let _this = this
- let itemList = ['男','女']
- let valueList = ['1','2']
- uni.showActionSheet({
- itemList: itemList,
- success: function (res) {
- let index = res.tapIndex;
- _this.info.genderStr = itemList[index]
- _this.info.gender = valueList[index]
-
- },
- fail: function (res) {
- console.log(res.errMsg);
- }
- });
+ this.popData = {
+ selection: [{id: 1, name: "男"}, {id: 2,name:"女"}],
+ value: this.info.gender,
+ valueStr: this.info.genderStr,
+ keyName:"gender"
+ }
+ this.$refs.popup.open()
+
},
selectRank () {
- let _this = this
- let itemList = this.groupIds.map(v=>v.name)
- let valueList = this.groupIds.map(v=>v.id)
- uni.showActionSheet({
- itemList: itemList,
- success: function (res) {
- let index = res.tapIndex;
- _this.info.group_idStr = itemList[index]
- _this.info.group_id = valueList[index]
-
- },
- fail: function (res) {
- console.log(res.errMsg);
- }
- });
+ this.popData = {
+ selection: this.groupIds,
+ value: this.info.group_id,
+ valueStr: this.info.group_idStr,
+ keyName:"group_id"
+ }
+ this.$refs.popup.open()
+ },
+
+ // 单个选中
+ changeItemSelect (item) {
+ if (this.popData.value == item.id) {
+ this.popData.value = null
+ } else {
+ this.popData.value = item.id
+ this.popData.valueStr = item.name
+ }
+ },
+ popSubmit () {
+ this.info[this.popData.keyName] = this.popData.value
+ this.info[this.popData.keyName+"Str"] = this.popData.valueStr
+ this.$refs.popup.close()
},
// 跳转修改数据
@@ -484,7 +516,7 @@
color: #999999;
}
- .userinfo-item {
+ .userinfo-item.edit {
& view::after {
content: "";
width: 20rpx;
@@ -539,9 +571,21 @@
}
.popup-box {
- border-radius: 20rpx 20rpx 0rpx 0rpx;
+ border-radius: 0rpx;
background: #fff;
overflow: hidden;
+ .btn-top{
+ padding: 26rpx 26rpx 0 26rpx;
+ color: #999999;
+ font-size: 31rpx;
+ box-sizing: border-box;
+ }
+ .popup-content{
+ max-height: 500rpx;
+ width: 100%;
+ overflow-x: hidden;
+ overflow-y: auto;
+ }
.popup-item {
width: 697rpx;
@@ -550,20 +594,42 @@
font-size: 31rpx;
color: #12293C;
margin: auto;
+ border-bottom: 1rpx solid #D8D8D8;
+ position: relative;
+ }
+ .popup-item.active{
+ color: #96684F;
}
- .popup-item:nth-child(2) {
+ .popup-item:last-of-type {
border: none;
- border-bottom: 1rpx solid #D8D8D8;
- border-top: 1rpx solid #D8D8D8;
+ }
+ .active-img{
+ position: absolute;
+ right: 10rpx;
+
}
- .popup-items {
+ .popup-btns {
width: 100%;
- height: 99rpx;
- font-weight: 500;
- font-size: 31rpx;
+ height: 153rpx;
+ background: #FFFFFF;
color: #12293C;
border-top: 13rpx solid #F2F2F2;
+ box-shadow: 0rpx 0rpx 13rpx 0rpx rgba(82,82,82,0.25);
+ padding: 40rpx 26rpx;
+ box-sizing: border-box;
+ view{
+ box-sizing: border-box;
+ width: 100%;
+ height: 73.33rpx;
+ line-height: 73.33rpx;
+ background: #DC2525;
+ border-radius: 11rpx;
+ font-weight: bold;
+ font-size: 32rpx;
+ color: #FFFFFF;
+ text-align: center;
+ }
}
}