@ -1,5 +1,6 @@
|
||||
.hbuilderx/
|
||||
.history/
|
||||
unpackage/
|
||||
unpackage/dist/dev/
|
||||
unpackage/dist/build/.automator/
|
||||
node_moudel/
|
||||
package-lock.json
|
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* @Author: ch
|
||||
* @Date: 2022-04-13 14:30:33
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-04-13 14:31:55
|
||||
* @Description: file content
|
||||
*/
|
||||
|
||||
import {ToAsyncAwait, MsbRequestTk} from '@/common/utils';
|
||||
|
||||
const BASE_URL = '/oss/oss';
|
||||
export const ApiPostGetOssConfig = (data) =>
|
||||
ToAsyncAwait(MsbRequestTk.post(`${BASE_URL}/generateOssSignature`, data));
|
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* @Author: ch
|
||||
* @Date: 2022-04-12 13:56:24
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-04-14 15:19:22
|
||||
* @Description: file content
|
||||
*/
|
||||
import {ToAsyncAwait, MsbRequest} from '@/common/utils';
|
||||
|
||||
const BASE_URL = '/mall/marketing';
|
||||
|
||||
export const ApiGetHomeSeckill = () =>
|
||||
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/home`));
|
||||
|
||||
/**
|
||||
* 获取当天秒杀时段
|
||||
*/
|
||||
export const ApiGetSeckillTimes = () =>
|
||||
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/time`));
|
||||
/**
|
||||
* 获取当天秒杀时段
|
||||
*/
|
||||
export const ApiGetSeckillGoods = (params) =>
|
||||
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/product`, params));
|
||||
|
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
/*
|
||||
* @Author: ch
|
||||
* @Date: 2022-03-23 14:07:07
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-03-23 14:14:37
|
||||
* @Description: file content
|
||||
*/
|
||||
import { ToAsyncAwait } from '@/common/utils';
|
||||
|
||||
const getStorageSync = (key )=> ToAsyncAwait(async ()=>{
|
||||
return Promise((resolve, reject)=>{
|
||||
try{
|
||||
cosnt val = await uni.getStorageSync(key);
|
||||
resolve(val)
|
||||
}catch (e){
|
||||
reject(e)
|
||||
}
|
||||
|
||||
})
|
||||
})
|
@ -0,0 +1,88 @@
|
||||
<!--
|
||||
* @Author: ch
|
||||
* @Date: 2022-04-12 10:37:24
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-04-12 13:37:57
|
||||
* @Description: file content
|
||||
-->
|
||||
<template>
|
||||
<u-popup :show="show" @close="close" round="16rpx" closeable>
|
||||
<view class="ui-select--title" v-if="title">{{title}}</view>
|
||||
<radio-group class="ui-select--cell" @change="change">
|
||||
<UiCell :title="item.label" v-for="item in options" :key="item.value">
|
||||
<radio slot="right-icon" class="ui-select--radio" color="#FF875B"
|
||||
:value="item.value" :checked="item.value === selected.value"/>
|
||||
</UiCell>
|
||||
</radio-group>
|
||||
<view class="ui-select--footer">
|
||||
<UiButton type="gradual" size="max" @click="confirm">确认</UiButton>
|
||||
</view>
|
||||
|
||||
</u-popup>
|
||||
</template>
|
||||
<script>
|
||||
import UiCell from '@/components/UiCell.vue';
|
||||
import UiButton from '@/components/UiButton.vue';
|
||||
export default {
|
||||
components: { UiButton, UiCell },
|
||||
props : {
|
||||
options : {
|
||||
type : Array,
|
||||
default : []
|
||||
},
|
||||
title : {
|
||||
type : String,
|
||||
default : ''
|
||||
},
|
||||
value : {
|
||||
type : [Object, String, Number],
|
||||
default (){
|
||||
return {}
|
||||
}
|
||||
},
|
||||
show : {
|
||||
type : Boolean,
|
||||
default : false
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
selected : {}
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods:{
|
||||
change(val){
|
||||
this.selected = this.options.find(item => val.detail.value === item.value);
|
||||
},
|
||||
confirm(){
|
||||
this.close();
|
||||
this.$emit('input', this.selected);
|
||||
},
|
||||
close(){
|
||||
this.$emit('update:show', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.ui-select{
|
||||
&--title{
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
margin: 40rpx 0 30rpx;
|
||||
}
|
||||
&--cell{
|
||||
padding: 0 40rpx;
|
||||
}
|
||||
&--radio{
|
||||
transform: scale(60%);
|
||||
}
|
||||
&--footer{
|
||||
padding: 68rpx 40rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>马士兵严选</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.a572362a.js></script><script src=/static/js/index.918519ee.js></script></body></html>
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.a572362a.js></script><script src=/static/js/index.31aa826a.js></script></body></html>
|
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 984 B |
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 607 B |
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.0 KiB |