Compare commits
No commits in common. "436c94b9a8a17e1f8c385f095515a4851b9c3802" and "e01f4865e630a4c005355d5928ad7334a6d1f247" have entirely different histories.
436c94b9a8
...
e01f4865e6
|
|
@ -7,8 +7,7 @@
|
|||
<view class="box">
|
||||
<view class="info" v-if="!isExchange">
|
||||
<view :style="styles">
|
||||
<uni-easyinput :styles="styles" v-model="code" placeholder="请输入兑换码" :inputBorder="false"
|
||||
placeholderStyle="text-align: center;"></uni-easyinput>
|
||||
<uni-easyinput :styles="styles" v-model="code" placeholder="请输入兑换码" :inputBorder="false" placeholderStyle="text-align: center;"></uni-easyinput>
|
||||
</view>
|
||||
<view class="btn" :class="{'noValue':code==''}" @click="getExchange">
|
||||
兑换
|
||||
|
|
@ -38,9 +37,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
postJson
|
||||
} from "@/utils/requests.js"
|
||||
import { postJson } from "@/utils/requests.js"
|
||||
export default {
|
||||
name: "exchange",
|
||||
data() {
|
||||
|
|
@ -95,10 +92,10 @@
|
|||
code: this.code
|
||||
})
|
||||
if(exchangeRes.code!=0){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "券已使用过了"
|
||||
})
|
||||
// uni.showToast({
|
||||
// icon:"none",
|
||||
// title:exchangeRes.message
|
||||
// })
|
||||
return
|
||||
}else{
|
||||
uni.showToast({
|
||||
|
|
@ -160,14 +157,12 @@
|
|||
padding: 18px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title{
|
||||
font-size: 20px;
|
||||
color: #1a1a1a;
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.time{
|
||||
font-size: 16px;
|
||||
color: #AAAAAA;
|
||||
|
|
@ -185,11 +180,9 @@
|
|||
border-radius: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn2{
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.noValue{
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
@ -214,7 +207,6 @@
|
|||
z-index: 1;
|
||||
width: 54px;
|
||||
height: 26px;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
|
|||
|
|
@ -6,14 +6,6 @@
|
|||
"versionCode": 100,
|
||||
"transformPx": false,
|
||||
/* 5+App特有相关 */
|
||||
"app-harmony" : {
|
||||
"distribute" : {
|
||||
"splashScreens" : {
|
||||
"startWindowIcon" : "resource/icon.png", // 启动页图标路径
|
||||
"startWindowBackground" : "#123456" // 启动页背景颜色
|
||||
}
|
||||
}
|
||||
},
|
||||
"app-plus": {
|
||||
"darkmode": false,
|
||||
"usingComponents": true,
|
||||
|
|
@ -29,7 +21,6 @@
|
|||
"subPackages": true
|
||||
},
|
||||
"runmode": "liberate", // 开启分包优化后,必须配置资源释放模式
|
||||
|
||||
/* 模块配置 */
|
||||
"modules": {
|
||||
"Camera": {},
|
||||
|
|
@ -66,12 +57,18 @@
|
|||
"sdkConfigs": {
|
||||
"payment": {
|
||||
"weixin": {
|
||||
"__platform__" : [ "ios", "android" ],
|
||||
"__platform__": [
|
||||
"ios",
|
||||
"android"
|
||||
],
|
||||
"appid": "123456",
|
||||
"UniversalLinks": "https://hhhhh.com/apple-app-site-association/"
|
||||
},
|
||||
"alipay": {
|
||||
"__platform__" : [ "ios", "android" ]
|
||||
"__platform__": [
|
||||
"ios",
|
||||
"android"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -287,14 +287,6 @@
|
|||
"navigationBarTitleText": "从夯倒拉排名",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "certificate/graduate",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "证书",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ onLoad(async () => {
|
|||
})
|
||||
|
||||
onShow(() => {
|
||||
// #ifdef APP-PLUS&&!APP-HARMONY
|
||||
// #ifdef APP-PLUS
|
||||
util.setAndroidSystemBarColor('#F0F3F8')
|
||||
setTimeout(() => {
|
||||
plus.navigator.setStatusBarStyle("light");
|
||||
|
|
|
|||
|
|
@ -285,11 +285,6 @@ const otherList = [{
|
|||
name: "购物",
|
||||
path: "/pages/shopping/index"
|
||||
},
|
||||
{
|
||||
icon: "/static/image/other/certificate/certificate.png",
|
||||
name: "证书",
|
||||
path: "/pages/other/certificate/graduate"
|
||||
},
|
||||
]
|
||||
|
||||
const data = reactive({
|
||||
|
|
|
|||
|
|
@ -4,10 +4,6 @@
|
|||
<ZdyNavbar @right-click="edit" isRightButton rightButtonText="编辑" :title="data.navbar.title"
|
||||
:bgColor="data.navbar.bgColor" :isBack="true" />
|
||||
|
||||
<view style="display: flex;align-items: center;background: #fff;border-radius: 10px;margin: 10px;padding: 2px 5px;">
|
||||
<image src="/static/image/other/notice.png" style="width: 16px;height: 16px;margin-right: 10rpx;"></image>
|
||||
此功能不具备真实性,仅供娱乐
|
||||
</view>
|
||||
<image :src="data.code" mode="widthFix" style="width: 100vw;" @click="previewImage"></image>
|
||||
<view class="button-container">
|
||||
<button class="btn-save-image" @click="saveImage">保存图片</button>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<qf-image-cropper :src="data.src" :width="data.width" :height="data.height" :radius="0" @crop="handleCrop"
|
||||
<qf-image-cropper :src="data.src" :width="196" :height="230" :radius="0" @crop="handleCrop"
|
||||
:reverseRotatable="true"></qf-image-cropper>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -25,26 +25,14 @@
|
|||
proxy
|
||||
} = getCurrentInstance();
|
||||
const data = reactive({
|
||||
src: "",
|
||||
width:196,
|
||||
height:230,
|
||||
isCard:true
|
||||
src: ""
|
||||
})
|
||||
onLoad((option) => {
|
||||
console.log(option)
|
||||
data.src = option.src
|
||||
if(option.width){
|
||||
data.width=option.width*2
|
||||
data.isCard=false
|
||||
}
|
||||
if(option.height){
|
||||
data.height=option.height*2
|
||||
data.isCard=false
|
||||
}
|
||||
})
|
||||
|
||||
function handleCrop(e) {
|
||||
if(data.isCard){
|
||||
uni.showLoading({
|
||||
title:"抠图中"
|
||||
})
|
||||
|
|
@ -66,19 +54,13 @@
|
|||
}).catch(err => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
}else{
|
||||
uni.saveFile({
|
||||
tempFilePath: e.tempFilePath,
|
||||
success: function(res) {
|
||||
console.log(res)
|
||||
uni.$emit("editFormPhoto", decodeURI(res.savedFilePath))
|
||||
uni.navigateBack()
|
||||
// res.avatar = res.savedFilePath
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// uni.saveFile({
|
||||
// tempFilePath: e.tempFilePath,
|
||||
// success: function(res) {
|
||||
// console.log(res)
|
||||
// // res.avatar = res.savedFilePath
|
||||
// }
|
||||
// });
|
||||
}
|
||||
/**
|
||||
* 将本地图片路径通过 Canvas 转换为 File 对象
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 109 KiB |
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 289 B |
|
Before Width: | Height: | Size: 377 B |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -222,13 +222,13 @@ const request = (method = 'GET', serverUrl, domainUrl, params, dataType = "json"
|
|||
res: res
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.message
|
||||
})
|
||||
}
|
||||
|
||||
uni.hideLoading();
|
||||
return reject(res);
|
||||
}
|
||||
|
||||
|
|
|
|||