diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue
index e3bf2b8..c4f0b23 100644
--- a/src/pages/me/index.vue
+++ b/src/pages/me/index.vue
@@ -81,11 +81,16 @@
-
+
+
+
+
+
+
@@ -146,6 +151,12 @@ export default {
this.carName = storage.get('carName') || '小车C1/C2/C3'
},
methods: {
+ // 拨打电话
+ callPhoneNumber() {
+ uni.makePhoneCall({
+ phoneNumber: '15105693067'
+ });
+ },
toChangeCarType() {
uni.navigateTo({
url: "/pages/me/changeCarType"
diff --git a/src/pages/questionBank/components/Question.vue b/src/pages/questionBank/components/Question.vue
index 08331a4..4777f26 100644
--- a/src/pages/questionBank/components/Question.vue
+++ b/src/pages/questionBank/components/Question.vue
@@ -7,9 +7,8 @@
:class="tCurrent==item.value?'checked':'unchecked'" @tap="sectionChange(item.value)">{{item.label}}
-
+
@@ -17,8 +16,10 @@
{{getQuestType(quesItem.type)}}
{{quesItem.question}}
-
-
+
+
+
答案:{{getRightOp(quesItem.trueAnswer)}}
- 答题技巧:{{quesItem.skillInfo}}
+
+ 答题技巧:{{quesItem.skillInfo}}
@@ -50,7 +52,10 @@
- 题目解析
+ 题目解析
+
{{quesItem.bestAnswer}}
@@ -92,24 +97,29 @@
答案:{{getRightOp(quesItem.trueAnswer)}}
- 答题技巧:{{quesItem.skillInfo}}
-
-
-
- 试题详解
-
-
-
-
- 题目解析
- {{quesItem.bestAnswer}}
+
+ 答题技巧:{{quesItem.skillInfo}}
+
+
+
+ 试题详解
+
+
+
+
+ 题目解析
+ {{quesItem.bestAnswer}}
+
+
@@ -232,8 +242,8 @@
-
+
{{index+1}}
-
+
@@ -317,10 +327,11 @@
},
data() {
return {
- subject:'1',
- showSkillInfo:'hidden',
- currentType:storage.get('carType') || '1001',
- onoff:'0',
+ imgs: [],
+ subject: '1',
+ showSkillInfo: 'hidden',
+ currentType: storage.get('carType') || '1001',
+ onoff: '0',
navTitle: '',
originArray: '',
showBestAnswer: false,
@@ -333,7 +344,7 @@
tCurrent: 0,
index: 0,
qIndex: 0,
- storageRightList:storage.get(`rightList_subject${this.subject}`) || [],
+ storageRightList: storage.get(`rightList_subject${this.subject}`) || [],
storageWrongList: storage.get(`wrongList_subject${this.subject}`) || [],
rightList: [],
wrongList: [],
@@ -348,9 +359,9 @@
}
},
created() {
- const carType=storage.get('carType') || '1001'
- querySysConfig(carType, 'NeedSkillInfo').then(resp=>{
- if(resp.code === '0000'){
+ const carType = storage.get('carType') || '1001'
+ querySysConfig(carType, 'NeedSkillInfo').then(resp => {
+ if (resp.code === '0000') {
this.showSkillInfo = resp.data.configValue
}
})
@@ -377,12 +388,27 @@
},
timeCount() {
- const time = 45 * 60 * 1000
+ const time = 45 * 60 * 1000
return time
}
},
methods: {
...mapActions(useQuestionStore, ['getCurrentIndex']),
+ open() {
+
+ },
+ preview(url) {
+ this.imgs = [url] //设置图片数组
+ // #ifdef MP-WEIXIN
+ this.$nextTick(() => {
+ this.imgs = [url]
+ setTimeout(()=>{
+ this.$refs.previewRef.open(url);
+ },500)
+ })
+ // #endif
+
+ },
getOriginArr(val) {
const arr = JSON.parse(val)
let arr1 = []
@@ -536,11 +562,11 @@
toSubmit() {
const restTime = this.time.hours * 60 * 60 + this.time.minutes * 60 + this.time.seconds
const score = (this.rightList.length / this.questionList.length * 100).toFixed(0)
- if(this.rightList.length+this.wrongList.length==0){
+ if (this.rightList.length + this.wrongList.length == 0) {
uni.navigateBack({
- delta:1
+ delta: 1
})
- }else{
+ } else {
submitTest({
"carTypeId": storage.get('carType') || '1001',
"score": score,
@@ -769,12 +795,12 @@
if (title) {
this.navTitle = title
}
- if(subject){
+ if (subject) {
this.subject = subject
console.log(this.subject);
- this.storageRightList=storage.get(`rightList_subject${subject}`) || []
- this.storageWrongList=storage.get(`wrongList_subject${subject}`) || []
- this.collectList=storage.get(`collectList_subject${subject}`) || []
+ this.storageRightList = storage.get(`rightList_subject${subject}`) || []
+ this.storageWrongList = storage.get(`wrongList_subject${subject}`) || []
+ this.collectList = storage.get(`collectList_subject${subject}`) || []
}
if (val && val.length) {
this.questionList = JSON.parse(val)
@@ -783,12 +809,12 @@
}
console.log(this.questionList);
if (this.navTitle === '顺序答题') {
- if(subject){
+ if (subject) {
this.pickerTopic(this[`currentIndex_subject${subject}`])
- }else{
+ } else {
this.pickerTopic(this[`currentIndex_subject${this.subject}`])
}
-
+
} else {
this.pickerTopic(this.topicIndex)
}
diff --git a/src/static/image/mine/callme.png b/src/static/image/mine/callme.png
new file mode 100644
index 0000000..fce9119
Binary files /dev/null and b/src/static/image/mine/callme.png differ
diff --git a/src/uni_modules/g-preview-img/changelog.md b/src/uni_modules/g-preview-img/changelog.md
new file mode 100644
index 0000000..a688afc
--- /dev/null
+++ b/src/uni_modules/g-preview-img/changelog.md
@@ -0,0 +1,11 @@
+## 1.0.4(2022-12-07)
+修改:判断在APP端不监听document的滚动
+## 1.0.3(2022-12-05)
+新增:支持视频预览,视频图片混用
+新增:支持预览单张,handlePreviewImg方法直接传入图片或视频地址即可单张预览
+## 1.0.2(2022-12-05)
+
+## 1.0.1(2022-12-05)
+文档错误修改
+## 1.0.0(2022-11-29)
+初始化插件
diff --git a/src/uni_modules/g-preview-img/components/g-preview-img/g-preview-img.vue b/src/uni_modules/g-preview-img/components/g-preview-img/g-preview-img.vue
new file mode 100644
index 0000000..f235e7f
--- /dev/null
+++ b/src/uni_modules/g-preview-img/components/g-preview-img/g-preview-img.vue
@@ -0,0 +1,235 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ curDot + 1 }}/{{ imgList.length }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/g-preview-img/package.json b/src/uni_modules/g-preview-img/package.json
new file mode 100644
index 0000000..a37a659
--- /dev/null
+++ b/src/uni_modules/g-preview-img/package.json
@@ -0,0 +1,84 @@
+{
+ "id": "g-preview-img",
+ "displayName": "g-preview-img一款兼容vue2,vue3的图片预览插件,视频预览,支持单张多张,左右滑动,放大缩小",
+ "version": "1.0.4",
+ "description": "g-preview-img一款兼容vue2,vue3的图片预览插件,视频预览,支持单张多张,左右滑动,放大缩小",
+ "keywords": [
+ "vue2",
+ "vue3",
+ "图片预览",
+ "视频预览"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "type": "component-vue",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u",
+ "钉钉": "u",
+ "快手": "u",
+ "飞书": "u",
+ "京东": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/g-preview-img/readme.md b/src/uni_modules/g-preview-img/readme.md
new file mode 100644
index 0000000..202bf5e
--- /dev/null
+++ b/src/uni_modules/g-preview-img/readme.md
@@ -0,0 +1,64 @@
+
+### 一款兼容vue2,vue3的图片预览插件,视频预览,支持图片视频混用,支持单张多张,左右滑动,放大缩小
+
+### 基础使用方法
+
+```javascript
+
+
+
+
+
+
+
+```
+
+| 属性名/事件 | 类型 | 默认值 | 说明 |
+| ----------------- | ------------ | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| modeClass | Array/String | \['fade', 'zoom-out'] | uni-transition组件过渡效果,可选值见 |
+| indicatorDotsType | Boolean | false | 多张图片的指示器,ture为圆点,false数字,当图片列表只有一张图片时,默认不展示指示器 |
+| imgList | Array | | 图片列表 |
+| disabledScale | Boolean | false | 是否禁止双指放大缩小 |
+| @preview | 打开关闭事件 | | 接受一个参数,ture为开启,false为关闭 |
+| @changeImg | 图片切换的事件 | | 参数为当前的图片索引 |
+
+#### 插槽,自定义翻页按钮
+
+```js
+
+
+
+
+ 上一页
+ 下一页
+
+
+
+
+```
+
+#### 支持uniapp原生swiper的属性
+
+ 插件内部swiper标签上绑定了$attrs,所以在使用时可以传入一些swiper的属性
+ 注意:不要传disable-touch这个属性,会有意想不到的错误
+
+**插件bug会及时修复!!**
diff --git a/src/uni_modules/q-previewImage/changelog.md b/src/uni_modules/q-previewImage/changelog.md
new file mode 100644
index 0000000..cd4026c
--- /dev/null
+++ b/src/uni_modules/q-previewImage/changelog.md
@@ -0,0 +1,24 @@
+## 1.1.1(2023-08-01)
+优化文档
+## 1.1.0(2023-08-01)
+优化文档
+## 1.0.9(2023-07-10)
+优化文档
+## 1.0.8(2023-06-25)
+优化文档
+## 1.0.7(2023-06-25)
+优化文档
+## 1.0.6(2023-05-26)
+优化文档
+## 1.0.5(2023-05-22)
+优化文档
+## 1.0.4(2023-04-30)
+新增图片放大功能,解决原生组件和tabbar导航栏等无法覆盖的问题
+## 1.0.3(2023-04-28)
+优化文档
+## 1.0.2(2023-04-28)
+优化文档
+## 1.0.1(2023-04-28)
+新增长按事件
+## 1.0.0(2023-04-28)
+插件上线
diff --git a/src/uni_modules/q-previewImage/components/q-previewImage/q-previewImage.vue b/src/uni_modules/q-previewImage/components/q-previewImage/q-previewImage.vue
new file mode 100644
index 0000000..5386aa1
--- /dev/null
+++ b/src/uni_modules/q-previewImage/components/q-previewImage/q-previewImage.vue
@@ -0,0 +1,121 @@
+
+
+
+ {{ current + 1 }} / {{ urls.length }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/q-previewImage/package.json b/src/uni_modules/q-previewImage/package.json
new file mode 100644
index 0000000..3550c3f
--- /dev/null
+++ b/src/uni_modules/q-previewImage/package.json
@@ -0,0 +1,81 @@
+{
+ "id": "q-previewImage",
+ "displayName": "图片预览、多图左右滑动、图片放大、支持覆盖原生组件、原生导航栏、tabbar",
+ "version": "1.1.1",
+ "description": "最简洁的模拟图片预览,支持长按事件,多图左右滑动,大图上下滑动查看,支持图片放大,支持覆盖原生组件/原生导航栏/tabbar 支持vue2/vue3/app/小程序/h5",
+ "keywords": [
+ "图片预览"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.4.14"
+ },
+ "dcloudext": {
+ "type": "component-vue",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "n"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u",
+ "钉钉": "u",
+ "快手": "u",
+ "飞书": "u",
+ "京东": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/q-previewImage/readme.md b/src/uni_modules/q-previewImage/readme.md
new file mode 100644
index 0000000..76c9508
--- /dev/null
+++ b/src/uni_modules/q-previewImage/readme.md
@@ -0,0 +1,244 @@
+# 最简洁的模拟图片预览,支持长按事件,多图左右滑动,大图上下滑动查看,支持图片放大,支持覆盖原生组件/原生导航栏/tabbar 支持vue2/vue3/app/小程序/h5
+
+ - 为了解决项目中因一些特殊原因无法使用uni.previewImage,例如App.onShow或者页面的oShow中写了方法。
+ - 如果用uni.previewImage,每次预览图片都会进到onShow的方法里
+ - 可以基本实现官方的预览图片功能,但是体验不如uni.previewImage()
+ - 如没有特殊原因,还是推荐官方的uni.previewImage()
+
+## 安装指引
+
+##1. 在插件市场打开本插件页面,在右侧点击`使用 HBuilderX 导入插件`,选择要导入的项目点击确定
+
+##2. 使用方法 vue2写法
+
+```
+
+
+
+
+
+
+
+
+
+
+
+```
+
+##3. vue3 setup写法
+
+```
+
+
+
+
+
+
+
+
+
+
+
+```
+
+##4. 项目示例 (一般返回的数据图片是以逗号或特殊字符分割的字符串,点击时就需要传两个参数,一个是图片数组,一个是当前图片的index)
+## 注意q-previewImage不要写在循环体中,imgs其实就是用来存放当前图片的数组,每次点击每次赋值就行
+
+```
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+
+## 如果插件对您有一点帮助,请给个五星好评,感谢支持
+
+
+## 如有问题,请加qq 965969604
\ No newline at end of file