清理冗余代码

This commit is contained in:
唐明明
2022-06-15 16:31:57 +08:00
parent 7d8b0994f5
commit 5357b0fde6
26 changed files with 32 additions and 684 deletions

View File

@@ -18,7 +18,6 @@ const dt = (data) =>{
// 充值 // 充值
const recharge = (data) => { const recharge = (data) => {
console.log(data)
return request({ return request({
url: "user/transaction/recharge", url: "user/transaction/recharge",
method: "POST", method: "POST",

View File

@@ -106,13 +106,8 @@
let passwordInput = this.passwordInput let passwordInput = this.passwordInput
this.passwordInput = passwordInput + id + '|' this.passwordInput = passwordInput + id + '|'
console.log(this.passwordInput);
this.initPass() this.initPass()
if(this.passwordInput.length === 12){ // 输入完毕 if(this.passwordInput.length === 12){ // 输入完毕
console.log(this.passwordInput);
this.testPassword() this.testPassword()
} }
}, },
@@ -131,8 +126,6 @@
initPass() { initPass() {
let arr = this.passwordInput.split('|'); let arr = this.passwordInput.split('|');
arr.pop() arr.pop()
console.log(arr);
let arr_ = [] let arr_ = []
for(let i = 0; i< 6; i++){ for(let i = 0; i< 6; i++){
if(i < arr.length){ if(i < arr.length){

View File

@@ -1,208 +0,0 @@
<!--
* @Description:运动列表
* @Author: Aimee·Zhang
* @Date: 2022-01-19 15:07:02
* @LastEditors: Aimee·Zhang
* @LastEditTime: 2022-01-20 09:09:59
-->
<template>
<view class="foods--lists">
<u-popup
:show="addSportsShow"
:round="4"
mode="center"
>
<view class="popup">
<view class="popup-title">
<span @click="cancleSport">取消</span>
<span class="title">{{selectSports.title || '新增运动'}}</span>
<span @click="comfirmSport">确认</span>
</view>
<view class="popup-item">
<u-image
:lazy-load="true"
:src="selectSports.cover?selectSports.cover:require('../../static/imgs/apple.png')"
radius="10"
width="140rpx"
height="140rpx"
class="goods-img"
/>
<view class="popup-item-title">
{{selectSports.name}}
<view class="des"><span>{{selectSports.calory || '0.0'}}</span> 千卡/60分钟</view>
</view>
<u-icon
v-if="selectSports.title === '编辑运动'"
name="trash"
color="#ddd"
size="16"
label="删除这条数据"
labelColor="#ddd"
:bold="true"
@click="delSport"
style="padding-top: 30rpx;"
/>
</view>
<u-input
placeholder="60"
class="select-time"
v-model="duration"
type="number"
>
<u--text
text="运动时间:"
slot="prefix"
margin="0 3px 0 0"
type="tips"
/>
<u--text
text="分钟"
slot="suffix"
margin="0 3px 0 0"
type="tips"
/>
</u-input>
<view class="all-calory"> <span> {{total}} </span> 千卡</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
data() {
return {
duration: 60,
};
},
props: {
selectSports: {
type: Object,
default: {},
},
addSportsShow: {
type: Boolean,
default: false,
},
},
computed: {
total() {
return ((this.selectSports.calory * this.duration) / 60).toFixed(0);
},
},
watch: {
addSportsShow() {
this.duration = 60;
},
selectSports(val) {
console.log(val);
this.duration = val.duration;
console.log("监听传过来的参数");
},
},
methods: {
// 弹窗确认和取消功能
comfirmSport() {
this.$emit("comfirmSport", true, this.duration);
},
// 取消按钮触发事件
cancleSport() {
this.$emit("cancleSport", false);
},
// 删除按钮触发事件
delSport() {
this.$emit("delSport");
},
},
};
</script>
<style lang="scss" scoped>
// 列表
.foods--lists {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
margin-top: $margin;
// 弹窗样式
.popup {
width: 600rpx;
// min-height: 700rpx;
position: relative;
.popup-title {
color: $main-color;
font-size: $title-size-m;
border-bottom: solid 1rpx #f9f9f9;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
span {
padding: $padding + 10 $padding;
}
.title {
color: $text-color;
font-size: $title-size;
font-weight: bold;
}
}
.popup-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: $padding * 2 $padding $padding $padding;
font-size: $title-size-m;
color: $text-color;
border-bottom: solid 1rpx #f9f9f9;
.popup-item-title {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding-top: $padding;
.des {
padding-top: $padding * 0.4;
span {
color: $text-price;
padding-right: $padding * 0.3;
}
}
}
}
.select-time {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: $padding 0;
// background: $main-color;
color: #fff;
margin: $margin * 3 0 $margin * 2 0;
width: 90%;
border-radius: 10rpx;
margin-left: 5%;
}
.all-calory {
position: absolute;
bottom: $padding * 6;
right: $padding;
font-size: $title-size-m;
color: $text-gray-m;
span {
padding: 0 $padding * 0.4;
font-size: $title-size + 10;
color: $main-color;
}
}
}
}
</style>

View File

@@ -1,212 +0,0 @@
<!--
* @Description:运动列表
* @Author: Aimee·Zhang
* @Date: 2022-01-19 15:07:02
* @LastEditors: Aimee·Zhang
* @LastEditTime: 2022-01-20 10:03:27
-->
<template>
<view class="foods--lists">
<view
class="foods-lists"
v-for="sportItem in lists"
:key="sportItem.sport_id"
>
<view class="lists-left">
<u-image
:src="sportItem.cover?sportItem.cover:require('../../static/imgs/apple.png')"
:lazy-load="true"
v-if="type === 'add'"
radius="10rpx"
width="100rpx"
height="100rpx"
class="goods-img"
/>
<!-- 新增-->
<view
class="lists-right"
v-if="type === 'add'"
@click="addSport(sportItem)"
>
<view class="lists-title">
{{sportItem.name}}
<view class="des"><span>{{sportItem.calory}}</span> 千卡/60分钟</view>
</view>
<u-icon
name="arrow-right"
color="#ddd"
size="13"
:bold="true"
/>
</view>
<!-- 显示结果 -->
<u-image
:src="sportItem.sport.cover?sportItem.sport.cover:require('../../static/imgs/apple.png')"
:lazy-load="true"
v-if="type === 'edit'"
radius="10rpx"
width="100rpx"
height="100rpx"
class="goods-img"
/>
<view
class="lists-right"
v-if="type==='edit'"
@click.stop="editSport(sportItem)"
@longpress.stop="longClick(sportItem)"
>
<view class="lists-title">
{{sportItem.sport.name}}
<view class="des">{{sportItem.duration}}分钟</view>
</view>
<view class="lists-right1">
{{sportItem.calory}}<span class="dw">千卡</span>
<u-icon
name="arrow-right"
color="#ddd"
size="13"
:bold="true"
/>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {};
},
props: {
lists: {
type: Array,
default: [],
},
type: {
type: String,
default: "add",
},
},
methods: {
// 添加运动模块
addSport(item) {
this.$emit("addSport", item);
},
// 编辑运动
editSport(item) {
this.$emit("editSport", item);
},
// 长按删除触发事件
longClick(item) {
this.$emit("longClick", item);
},
},
};
</script>
<style lang="scss" scoped>
// 列表
.foods-lists {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
margin-top: $margin;
.lists-right {
flex: 1;
font-size: $title-size-m - 6;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
color: $text-gray-m;
border-bottom: solid 1rpx #f7f7f7;
margin-left: $margin * 0.8;
padding: $padding 0;
.dw {
margin: 0 $margin * 0.6 0 $margin * 0.4;
}
.lists-right1 {
font-size: $title-size-m - 6;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
color: $text-gray-m;
font-weight: normal;
.dw {
margin: 0 $margin * 0.6 0 $margin * 0.4;
}
}
}
.goods-img {
box-shadow: 0 0 10rpx 4rpx rgba($color: $main-color, $alpha: 0.1);
border-radius: 20rpx;
opacity: 0.4;
}
.lists-left {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
box-sizing: border-box;
font-size: $title-size - 2;
color: $text-color;
font-weight: bold;
flex: 1;
.lists-title {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
box-sizing: border-box;
font-size: $title-size-m;
color: $text-color;
.des {
margin-top: 10rpx;
}
span {
color: $text-price;
font-size: $title-size-m - 6;
font-weight: normal;
padding-right: $padding * 0.3;
}
.des {
color: $text-gray-m;
font-size: $title-size-m - 6;
font-weight: normal;
}
}
}
.dian {
width: 20rpx;
height: 20rpx;
border-radius: 50%;
margin-right: $margin;
}
.dian1 {
background: #fbbf0f;
}
.dian2 {
background: #fa624d;
}
.dian3 {
background: #02c7bd;
}
.dianlists {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
}
}
</style>

View File

@@ -1,188 +0,0 @@
<template xlang="wxml" minapp="mpvue">
<view>
</view>
</template>
<script>
export default {
name: 'tki-file-manager',
props: {},
data() {
return {}
},
methods: {
_openFile() {
// #ifdef APP-PLUS
if (plus.os.name.toLowerCase() != "android") {
uni.showModal({
title: '提示',
content: '仅支持Android平台',
success: function(res) {}
});
return false
}
let that = this
// java 代码来自 http://www.cnblogs.com/panhouye/archive/2017/04/23/6751710.html
let main = plus.android.runtimeMainActivity();
let Intent = plus.android.importClass("android.content.Intent");
//
let fileIntent = new Intent(Intent.ACTION_GET_CONTENT)
//fileIntent.setType(“image/*”);//选择图片
//fileIntent.setType(“audio/*”); //选择音频
//fileIntent.setType(“video/*”); //选择视频 mp4 3gp 是android支持的视频格式
//fileIntent.setType(“video/*;image/*”);//同时选择视频和图片
fileIntent.setType("*/*"); //无类型限制
fileIntent.addCategory(Intent.CATEGORY_OPENABLE);
main.startActivityForResult(fileIntent, 1);
// 获取回调
main.onActivityResult = function(requestCode, resultCode, data) {
let Activity = plus.android.importClass("android.app.Activity");
let ContentUris = plus.android.importClass("android.content.ContentUris");
let Cursor = plus.android.importClass("android.database.Cursor");
let Uri = plus.android.importClass("android.net.Uri");
let Build = plus.android.importClass("android.os.Build");
let Environment = plus.android.importClass("android.os.Environment");
let DocumentsContract = plus.android.importClass("android.provider.DocumentsContract");
let MediaStore = plus.android.importClass("android.provider.MediaStore");
// 给系统导入 contentResolver
let contentResolver = main.getContentResolver()
plus.android.importClass(contentResolver);
// 返回路径
let path = '';
if (resultCode == Activity.RESULT_OK) {
let uri = data.getData()
if ("file" == uri.getScheme().toLowerCase()) { //使用第三方应用打开
path = uri.getPath();
return;
}
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { //4.4以后
path = getPath(this, uri);
} else { //4.4以下下系统调用方法
path = getRealPathFromURI(uri)
}
// 回调
that.$emit('result', path)
}
// 4.4 以上 从Uri 获取文件绝对路径
function getPath(context, uri) {
let isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
let scheme = uri.getScheme().toLowerCase()
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
// ExternalStorageProvider
if (isExternalStorageDocument(uri)) {
let docId = DocumentsContract.getDocumentId(uri);
let split = docId.split(":");
let type = split[0];
// 如果是手机内部存储
if ("primary" == type.toLowerCase()) {
return Environment.getExternalStorageDirectory() + "/" + split[1];
} else {
return '/storage/' + type + "/" + split[1];
}
}
// DownloadsProvider
else if (isDownloadsDocument(uri)) {
let docId = DocumentsContract.getDocumentId(uri);
let split = docId.split(":");
return split[1]
// console.log(id)
// let contentUri = ContentUris.withAppendedId(Uri.parse("content://downloads/public_downloads"), id);
// return getDataColumn(context, contentUri, null, null);
}
// MediaProvider
else if (isMediaDocument(uri)) {
let docId = DocumentsContract.getDocumentId(uri);
let split = docId.split(":");
let type = split[0];
let contentUri = null;
if ("image" == type.toLowerCase()) {
contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
} else if ("video" == type.toLowerCase()) {
contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
} else if ("audio" == type.toLowerCase()) {
contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
}
let selection = "_id=?";
let selectionArgs = [split[1]];
return getDataColumn(context, contentUri, selection, selectionArgs);
}
}
// MediaStore (and general)
else if ("content" == scheme) {
return getDataColumn(context, uri, null, null);
}
// File
else if ("file" == scheme) {
return uri.getPath();
}
}
// 4.4 以下 获取 绝对路径
function getRealPathFromURI(uri) {
let res = null
let proj = [MediaStore.Images.Media.DATA]
let cursor = contentResolver.query(uri, proj, null, null, null);
if (null != cursor && cursor.moveToFirst()) {
;
let column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
res = cursor.getString(column_index);
cursor.close();
}
return res;
}
// 通过uri 查找出绝对路径
function getDataColumn(context, uri, selection, selectionArgs) {
let cursor = null;
let column = "_data";
let projection = [column];
// let contentResolver = context.getContentResolver()
// plus.android.importClass(contentResolver);
cursor = contentResolver.query(uri, projection, selection, selectionArgs, null);
if (cursor != null && cursor.moveToFirst()) {
let column_index = cursor.getColumnIndexOrThrow(column);
return cursor.getString(column_index);
}
}
function isExternalStorageDocument(uri) {
return "com.android.externalstorage.documents" == uri.getAuthority() ? true : false
}
function isDownloadsDocument(uri) {
return "com.android.providers.downloads.documents" == uri.getAuthority() ? true : false
}
function isMediaDocument(uri) {
return "com.android.providers.media.documents" == uri.getAuthority() ? true : false
}
}
// #endif
// #ifndef APP-PLUS
uni.showModal({
title: '提示',
content: '仅支持Android平台',
success: function(res) {
}
});
// #endif
},
},
onLoad() {
// plus.io.resolveLocalFileSystemURL( '/storage/emulated/0', function(fs) {
// var directoryReader = fs.createReader();
// directoryReader.readEntries(function(entries) {
// var i;
// for (i = 0; i < entries.length; i++) {
// console.log(entries[i].name);
// }
// }, function(e) {
// console.log("Read entries failed: " + e.message);
// });
// }, function(e) {
// console.log("Request file system failed: " + e.message);
// });
}
}
</script>

View File

@@ -1,18 +1,13 @@
{ {
"id": "mi-payKeyboard", "name": "dtx_store",
"name": "支付密码输入安全模拟键盘", "version": "1.0.0",
"version": "1.1.0", "description": "共力生态",
"description": "支付密码输入模拟键盘,代码简单,拿来即用。可以作为一个弹出层在任何需要输入密码的页面进行使用。", "main": "main.js",
"keywords": [
"支付",
"密码输入",
"模拟键盘",
"6位数字密码",
"安全键盘"
],
"dependencies": { "dependencies": {
"uni-read-pages": "^1.0.5", "uni-read-pages": "^1.0.5",
"uni-simple-router": "^2.0.8-beta.4", "uni-simple-router": "^2.0.8-beta.4",
"uview-ui": "^2.0.31" "uview-ui": "^2.0.31"
} },
"author": "唐明明",
"license": "ISC"
} }

View File

@@ -53,7 +53,6 @@
this.male = res.male this.male = res.male
this.storageId = res.male[0].storage_id this.storageId = res.male[0].storage_id
}).catch(err => { }).catch(err => {
console.log(err)
uni.showToast({ uni.showToast({
title: err.status_code + ':' + err.message, title: err.status_code + ':' + err.message,
icon : 'none' icon : 'none'

View File

@@ -73,7 +73,6 @@
this.getOrder() this.getOrder()
eventBus.$on('paySuccess', function(data) { eventBus.$on('paySuccess', function(data) {
let index = this.array.findIndex((item) => item.no === data); let index = this.array.findIndex((item) => item.no === data);
console.log(typeof this.index, this.index)
if (this.index == '0') { if (this.index == '0') {
this.array[index].stateText = '待发货' this.array[index].stateText = '待发货'
this.array[index].cans = { this.array[index].cans = {
@@ -92,7 +91,6 @@
}.bind(this)); }.bind(this));
eventBus.$on('applyRefundMoney', (data)=> { eventBus.$on('applyRefundMoney', (data)=> {
console.log(data,'data....');
let index = this.array.findIndex((item) => item.no === data); let index = this.array.findIndex((item) => item.no === data);
this.array.splice(index, 1); this.array.splice(index, 1);
}); });
@@ -264,8 +262,6 @@
} }
if (!onFount) return if (!onFount) return
onFount.then(res => { onFount.then(res => {
console.log(res)
let orderIndex = this.array.findIndex(val => val.no === e.order.no) let orderIndex = this.array.findIndex(val => val.no === e.order.no)
if (e.type === 'delete' || e.type === 'sign') { if (e.type === 'delete' || e.type === 'sign') {
this.array.splice(orderIndex, 1) this.array.splice(orderIndex, 1)

View File

@@ -73,7 +73,6 @@
payIndex() { payIndex() {
payIndex().then(res => { payIndex().then(res => {
console.log(res);
this.has_transfer_password = res.has_transfer_password; this.has_transfer_password = res.has_transfer_password;
this.coins = res.score this.coins = res.score
}).catch(err => { }).catch(err => {
@@ -112,7 +111,6 @@
// 输入正确的回调 // 输入正确的回调
enterSuccess(password) { enterSuccess(password) {
console.log(password) // 输入的密码
this.password = password this.password = password
this.showKeyBoard = false this.showKeyBoard = false
this.getDTPAY(); this.getDTPAY();
@@ -125,10 +123,8 @@
// 调用 dt 支付 // 调用 dt 支付
getDTPAY() { getDTPAY() {
console.log('dt 支付。。。')
if (this.canpay) { if (this.canpay) {
this.canpay = false this.canpay = false
console.log(this.password,this.payNo,'//////////')
dtPAY(this.payNo, this.password).then(res => { dtPAY(this.payNo, this.password).then(res => {
if (res.state === 'warning') { if (res.state === 'warning') {
uni.showModal({ uni.showModal({

View File

@@ -68,14 +68,12 @@
} }
}, },
onLoad() { onLoad() {
console.log(this.$Route.query.id);
this.id = this.$Route.query.id; this.id = this.$Route.query.id;
this.getBaseInfo(); this.getBaseInfo();
}, },
methods: { methods: {
getBaseInfo(){ getBaseInfo(){
refundpre(this.id).then(res=>{ refundpre(this.id).then(res=>{
console.log(res)
this.goodsInfo = res.order.items[0].sku; this.goodsInfo = res.order.items[0].sku;
this.goodsInfo.shop =res.order.shop; this.goodsInfo.shop =res.order.shop;
this.refundTime = res.refundTime; this.refundTime = res.refundTime;

View File

@@ -59,10 +59,12 @@
}, },
onLoad() { onLoad() {
deliverpre().then(res=>{ deliverpre().then(res=>{
console.log(res)
this.state.array = res.expresses this.state.array = res.expresses
}).catch(err=>{ }).catch(err=>{
console.log(err); uni.showToast({
title: err.message,
icon : 'none'
})
}) })
}, },
methods: { methods: {

View File

@@ -120,7 +120,6 @@
methods: { methods: {
refund() { refund() {
refundsInfo(this.$Route.query.id).then(res => { refundsInfo(this.$Route.query.id).then(res => {
console.log(res);
this.goodsInfo = res.items[0]; this.goodsInfo = res.items[0];
this.refundInfo = res; this.refundInfo = res;
this.type = res.type.state; this.type = res.type.state;

View File

@@ -78,7 +78,6 @@
this.getOrder() this.getOrder()
}, },
onPullDownRefresh() { onPullDownRefresh() {
console.log('onPullDownRefresh.....')
this.page = 1; this.page = 1;
this.getOrder(); this.getOrder();
}, },

View File

@@ -45,7 +45,6 @@
}, },
onLoad() { onLoad() {
refundsLogs(this.$Route.query.id).then(res => { refundsLogs(this.$Route.query.id).then(res => {
console.log(res)
this.logs = res.logs this.logs = res.logs
this.goodsInfo = res.refund.items[0] this.goodsInfo = res.refund.items[0]
this.refund_total = res.refund.refund_total this.refund_total = res.refund.refund_total

View File

@@ -71,7 +71,6 @@
} }
}, },
onLoad(e) { onLoad(e) {
console.log(this.$Route.query.id)
this.id = this.$Route.query.id; this.id = this.$Route.query.id;
this.refund(this.id, 'get'); this.refund(this.id, 'get');
}, },
@@ -131,9 +130,6 @@
itemList: this.title, itemList: this.title,
success: (res) => { success: (res) => {
this.ttext = this.title[res.tapIndex] this.ttext = this.title[res.tapIndex]
},
fail: (res) => {
console.log(res.errMsg);
} }
}); });
} }

View File

@@ -154,9 +154,6 @@
itemList: this.title, itemList: this.title,
success: (res) => { success: (res) => {
this.ttext = this.title[res.tapIndex] this.ttext = this.title[res.tapIndex]
},
fail: (res) => {
console.log(res.errMsg);
} }
}); });
}, },

View File

@@ -120,7 +120,6 @@
address_id : this.address.address_id, address_id : this.address.address_id,
remark : this.remark || '' remark : this.remark || ''
}).then(res => { }).then(res => {
console.log(res);
this.$store.commit('setAddress', {}) this.$store.commit('setAddress', {})
this.$Router.replace({ this.$Router.replace({
name: 'Pay', name: 'Pay',

View File

@@ -74,8 +74,7 @@
}, },
methods:{ methods:{
getGoods(){ getGoods(){
goods(this.$Route.query.id || 55).then(res => { goods(this.$Route.query.id).then(res => {
console.log(res);
this.goods = res this.goods = res
}) })
}, },

View File

@@ -34,7 +34,6 @@
methods:{ methods:{
getMeals(){ getMeals(){
meals(this.$Route.query.id, this.categoryId).then(res => { meals(this.$Route.query.id, this.categoryId).then(res => {
console.log(res)
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: res.meal.subtitle title: res.meal.subtitle
}) })

View File

@@ -46,8 +46,6 @@
name: this.searchVlaue, name: this.searchVlaue,
page: this.page page: this.page
}).then(res => { }).then(res => {
console.log(res.page)
if(res.page.current === 1){ if(res.page.current === 1){
this.goodsArr = [] this.goodsArr = []
} }

View File

@@ -77,7 +77,6 @@
onLoad(e) { onLoad(e) {
this.ShopId = this.$Route.query.ShopId this.ShopId = this.$Route.query.ShopId
shopsDetail(this.ShopId).then(res => { shopsDetail(this.ShopId).then(res => {
console.log(res);
this.classify = [{ this.classify = [{
category_id: '', category_id: '',
name: '全部商品', name: '全部商品',

View File

@@ -56,7 +56,6 @@
methods: { methods: {
getShops() { getShops() {
shops(this.categoryId, this.page).then(res => { shops(this.categoryId, this.page).then(res => {
console.log(res)
if (this.page == 1) { if (this.page == 1) {
this.shopsArr = []; this.shopsArr = [];
this.classify = [{ this.classify = [{

View File

@@ -13,7 +13,6 @@
}; };
}, },
onLoad(e) { onLoad(e) {
console.log(e.id);
agreement(e.id).then(res => { agreement(e.id).then(res => {
this.content = res.content this.content = res.content
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({

View File

@@ -1,8 +1,5 @@
'use strict'; 'use strict';
exports.main = async (event, context) => { exports.main = async (event, context) => {
//event为客户端上传的参数
console.log('event : ', event)
let res = {}; let res = {};
let data = event.data; let data = event.data;

File diff suppressed because one or more lines are too long

View File

@@ -56,7 +56,6 @@ export default {
}, },
handleTimeCustomCN(val) { handleTimeCustomCN(val) {
val = this.timeStamp(val, 'Y-m-d H:i:s') val = this.timeStamp(val, 'Y-m-d H:i:s')
console.log(val, '时间0000000');
let currentDate = new Date(); let currentDate = new Date();
let currentD = currentDate.getDate(); let currentD = currentDate.getDate();
let currentYear = currentDate.getFullYear(); let currentYear = currentDate.getFullYear();