@alu008/test_yuanqikaixiang 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.vue +294 -0
- package/Local/en.json +3 -0
- package/Local/indian.json +3 -0
- package/Local/zh-Hans.json +3 -0
- package/Local/zh-Hant.json +3 -0
- package/README.md +1 -0
- package/androidPrivacy.json +28 -0
- package/components/ball/ball.vue +230 -0
- package/components/cardDetails/cardDetails.vue +273 -0
- package/components/confirmModal/confirmModal.vue +125 -0
- package/components/fillInfo/fillInfo.vue +255 -0
- package/components/header/header.vue +92 -0
- package/components/selectAddress/selectAddress.vue +156 -0
- package/components/signDetail/signDetail.vue +33 -0
- package/components/skeleton/skeleton.vue +62 -0
- package/index.html +20 -0
- package/index.template.html +35 -0
- package/jsconfig.json +9 -0
- package/main.js +48 -0
- package/manifest.json +159 -0
- package/package.json +14 -0
- package/pages/index/index.vue +5421 -0
- package/pages.json +173 -0
- package/project.config.json +25 -0
- package/project.private.config.json +14 -0
- package/static/fonts/Alibaba-PuHuiTi-Bold.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Medium.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Regular.ttf +0 -0
- package/static/fonts/fxlh.ttf +0 -0
- package/static/img/R.png +0 -0
- package/static/img/SR.png +0 -0
- package/static/img/SSR.png +0 -0
- package/static/img/bottomBgc1.png +0 -0
- package/static/img/centerBgc.png +0 -0
- package/static/img/goldBgc.png +0 -0
- package/static/img/goldText.png +0 -0
- package/static/img/home/calendar/bgc0.png +0 -0
- package/static/img/home/calendar/bgc1.png +0 -0
- package/static/img/home/calendar/bgc2.png +0 -0
- package/static/img/home/calendar/bgc3.png +0 -0
- package/static/img/home/calendar/progress0.png +0 -0
- package/static/img/home/calendar/progress1.png +0 -0
- package/static/img/home/calendar/progress2.png +0 -0
- package/static/img/home/calendar/progress3.png +0 -0
- package/static/img/kuang.gif +0 -0
- package/static/img/luckyBgc.png +0 -0
- package/static/img/lucyText.png +0 -0
- package/static/img/top_Bgc.png +0 -0
- package/subpackages/article/article.vue +64 -0
- package/subpackages/confirmSendLogistics/confirmSendLogistics.vue +1035 -0
- package/subpackages/coupon/coupon.vue +276 -0
- package/subpackages/fragment/fragment.vue +1592 -0
- package/subpackages/myAddress/myAddress.vue +656 -0
- package/subpackages/myCards/myCards.vue +1250 -0
- package/subpackages/myOrder/myOrder.vue +779 -0
- package/subpackages/myOrderDetail/myOrderDetail.vue +659 -0
- package/subpackages/poster/poster.vue +130 -0
- package/subpackages/selectCoupon/selectCoupon.vue +251 -0
- package/subpackages/sendLogistics/sendLogistics.vue +1097 -0
- package/subpackages/vote/vote.vue +877 -0
- package/uni.promisify.adaptor.js +10 -0
- package/uni.scss +114 -0
- package/uni_modules/qf-image-cropper/changelog.md +72 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.render.js +855 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue +749 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.wxs +727 -0
- package/uni_modules/qf-image-cropper/package.json +81 -0
- package/uni_modules/qf-image-cropper/readme.md +97 -0
- package/uni_modules/uni-data-select/changelog.md +51 -0
- package/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +837 -0
- package/uni_modules/uni-data-select/package.json +106 -0
- package/uni_modules/uni-data-select/readme.md +8 -0
- package/uni_modules/uni-icons/changelog.md +44 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue +91 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +110 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.css +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.ttf +0 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js +649 -0
- package/uni_modules/uni-icons/package.json +111 -0
- package/uni_modules/uni-icons/readme.md +8 -0
- package/uni_modules/uni-load-more/changelog.md +23 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js +8 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue +404 -0
- package/uni_modules/uni-load-more/package.json +105 -0
- package/uni_modules/uni-load-more/readme.md +14 -0
- package/uni_modules/uni-scss/changelog.md +8 -0
- package/uni_modules/uni-scss/index.scss +1 -0
- package/uni_modules/uni-scss/package.json +82 -0
- package/uni_modules/uni-scss/readme.md +4 -0
- package/uni_modules/uni-scss/styles/index.scss +7 -0
- package/uni_modules/uni-scss/styles/setting/_border.scss +3 -0
- package/uni_modules/uni-scss/styles/setting/_color.scss +66 -0
- package/uni_modules/uni-scss/styles/setting/_radius.scss +55 -0
- package/uni_modules/uni-scss/styles/setting/_space.scss +56 -0
- package/uni_modules/uni-scss/styles/setting/_styles.scss +167 -0
- package/uni_modules/uni-scss/styles/setting/_text.scss +24 -0
- package/uni_modules/uni-scss/styles/setting/_variables.scss +146 -0
- package/uni_modules/uni-scss/styles/tools/functions.scss +19 -0
- package/uni_modules/uni-scss/theme.scss +31 -0
- package/uni_modules/uni-scss/variables.scss +62 -0
- package/utils/addressData.js +6042 -0
- package/utils/api.js +160 -0
- package/utils/fetch.js +548 -0
- package/utils/index.js +994 -0
- package/utils/navigator.js +17 -0
- package/utils/request.js +162 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<view
|
|
4
|
+
class="header"
|
|
5
|
+
:style="{
|
|
6
|
+
paddingTop: statusBarHeight + 'px',
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<view>
|
|
10
|
+
<view @click="backPage" class="back">
|
|
11
|
+
<image src="https://img.shinemang.com/static/img/back.png" mode="scaleToFill" />
|
|
12
|
+
</view>
|
|
13
|
+
<text>{{ title }}</text>
|
|
14
|
+
</view>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import { navagatorBack, isMTVapp } from "@/utils";
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
props: {
|
|
24
|
+
index: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
title: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
statusBarHeight: uni.getStorageSync("safeTop")
|
|
36
|
+
? Number(uni.getStorageSync("safeTop"))
|
|
37
|
+
: 0,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
backPage() {
|
|
42
|
+
if (this.index) {
|
|
43
|
+
MgtvApi.closeWebView();
|
|
44
|
+
} else {
|
|
45
|
+
navagatorBack();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
onReady() {},
|
|
50
|
+
mounted() {
|
|
51
|
+
this.$nextTick(() => {
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
this.statusBarHeight = uni.getStorageSync("safeTop")
|
|
54
|
+
}, 400);
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
created() {},
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="less" scoped>
|
|
62
|
+
.header {
|
|
63
|
+
> view {
|
|
64
|
+
height: 44px;
|
|
65
|
+
width: 100%;
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
line-height: 44px;
|
|
71
|
+
font-size: 36rpx;
|
|
72
|
+
color: #000;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
position: relative;
|
|
75
|
+
|
|
76
|
+
.back {
|
|
77
|
+
width: 44px;
|
|
78
|
+
height: 44px;
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0;
|
|
81
|
+
left: 32rpx;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
line-height: 44px;
|
|
85
|
+
image {
|
|
86
|
+
width: 48rpx;
|
|
87
|
+
height: 48rpx;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
</style>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<view class="input" type="text" placeholder="请选择地区">
|
|
4
|
+
<picker class="pickerList" mode="multiSelector"
|
|
5
|
+
:range="newProvinceDataList"
|
|
6
|
+
:value="multiIndex"
|
|
7
|
+
@change="pickerChange"
|
|
8
|
+
@columnchange="pickerColumnchange">
|
|
9
|
+
<!-- <view>{{provinceDataList[0].name}}--{{provinceDataList[0].city[0].name}}--{{provinceDataList[0].city[0].area[0]}}</view> -->
|
|
10
|
+
<view v-if="select" class="address">{{select}}</view>
|
|
11
|
+
<view v-else class="address" style="color: #999999;">请选择地区</view>
|
|
12
|
+
|
|
13
|
+
</picker>
|
|
14
|
+
</view>
|
|
15
|
+
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import provinceData from '@/utils/addressData';
|
|
20
|
+
export default {
|
|
21
|
+
props: {
|
|
22
|
+
defaultLocation:{
|
|
23
|
+
type: String,
|
|
24
|
+
default: ''
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
oldpProvinceDataList: provinceData.data,
|
|
30
|
+
newProvinceDataList:[
|
|
31
|
+
[],[],[]
|
|
32
|
+
],
|
|
33
|
+
multiIndex: [0, 0, 0],
|
|
34
|
+
select:'',
|
|
35
|
+
|
|
36
|
+
addressData:{
|
|
37
|
+
name:'',
|
|
38
|
+
phone:'',
|
|
39
|
+
address:''
|
|
40
|
+
},
|
|
41
|
+
binhao:'1'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
created(){
|
|
45
|
+
if(this.defaultLocation){
|
|
46
|
+
this.select = this.defaultLocation
|
|
47
|
+
}
|
|
48
|
+
// console.log(this.oldpProvinceDataList);
|
|
49
|
+
for(let i=0; i<this.oldpProvinceDataList.length; i++){
|
|
50
|
+
// console.log(this.oldpProvinceDataList[i].name);
|
|
51
|
+
this.newProvinceDataList[0].push(this.oldpProvinceDataList[i].name);
|
|
52
|
+
}
|
|
53
|
+
for(let i=0; i<this.oldpProvinceDataList[0].city.length; i++){
|
|
54
|
+
// console.log(this.oldpProvinceDataList[0].city[i].name)
|
|
55
|
+
this.newProvinceDataList[1].push(this.oldpProvinceDataList[0].city[i].name);
|
|
56
|
+
}
|
|
57
|
+
for(let i=0; i<this.oldpProvinceDataList[0].city[0].area.length; i++){
|
|
58
|
+
// console.log(this.oldpProvinceDataList[0].city[0].area)
|
|
59
|
+
this.newProvinceDataList[2].push(this.oldpProvinceDataList[0].city[0].area[i]);
|
|
60
|
+
}
|
|
61
|
+
// console.log(this.newProvinceDataList)
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
// 省市区确认事件
|
|
65
|
+
pickerChange(e){
|
|
66
|
+
this.multiIndex = e.detail.value;
|
|
67
|
+
// 数组内的下标
|
|
68
|
+
// console.log(this.multiIndex);
|
|
69
|
+
// 获取省
|
|
70
|
+
// console.log(this.newProvinceDataList[0][this.multiIndex[0]])
|
|
71
|
+
// 获取市
|
|
72
|
+
// console.log(this.newProvinceDataList[1][this.multiIndex[1]])
|
|
73
|
+
// 获取区
|
|
74
|
+
// console.log(this.newProvinceDataList[2][this.multiIndex[2]])
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
this.select = `${this.newProvinceDataList[0][this.multiIndex[0]]} ${this.newProvinceDataList[1][this.multiIndex[1]]} ${this.newProvinceDataList[2][this.multiIndex[2]]}`
|
|
78
|
+
|
|
79
|
+
this.$emit("changeLocation", {
|
|
80
|
+
location: [this.newProvinceDataList[0][this.multiIndex[0]], this.newProvinceDataList[1][this.multiIndex[1]], this.newProvinceDataList[2][this.multiIndex[2]]],
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
pickerColumnchange(e){
|
|
84
|
+
// 第几列滑动
|
|
85
|
+
// console.log(e.detail.column);
|
|
86
|
+
// 第几列滑动的下标
|
|
87
|
+
// console.log(e.detail.value)
|
|
88
|
+
// 第一列滑动
|
|
89
|
+
if(e.detail.column === 0){
|
|
90
|
+
this.multiIndex[0] = e.detail.value
|
|
91
|
+
// console.log('第一列滑动');
|
|
92
|
+
// this.newProvinceDataList[1] = [];
|
|
93
|
+
this.multiIndex.splice(1, 1, 0)
|
|
94
|
+
this.multiIndex.splice(2, 1, 0)
|
|
95
|
+
this.newProvinceDataList[1] = this.oldpProvinceDataList[this.multiIndex[0]].city.map((item,index)=>{
|
|
96
|
+
// console.log(item)
|
|
97
|
+
return item.name
|
|
98
|
+
})
|
|
99
|
+
// console.log(this.multiIndex)
|
|
100
|
+
if(this.oldpProvinceDataList[this.multiIndex[0]].city.length === 1){
|
|
101
|
+
this.newProvinceDataList[2] = this.oldpProvinceDataList[this.multiIndex[0]].city[0].area.map((item,index)=>{
|
|
102
|
+
// console.log(item)
|
|
103
|
+
return item
|
|
104
|
+
})
|
|
105
|
+
}else{
|
|
106
|
+
this.newProvinceDataList[2] = this.oldpProvinceDataList[this.multiIndex[0]].city[this.multiIndex[1]].area.map((item,index)=>{
|
|
107
|
+
// console.log(item)
|
|
108
|
+
return item
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
// 第一列滑动 第二列 和第三列 都变为第一个
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
// 第二列滑动
|
|
115
|
+
if(e.detail.column === 1){
|
|
116
|
+
this.multiIndex[1] = e.detail.value
|
|
117
|
+
this.multiIndex.splice(2, 1, 0)
|
|
118
|
+
// console.log('第二列滑动');
|
|
119
|
+
// console.log(this.multiIndex)
|
|
120
|
+
this.newProvinceDataList[2] = this.oldpProvinceDataList[this.multiIndex[0]].city[this.multiIndex[1]].area.map((item,index)=>{
|
|
121
|
+
// console.log(item)
|
|
122
|
+
return item
|
|
123
|
+
})
|
|
124
|
+
// 第二列 滑动 第三列 变成第一个
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
// 第三列滑动
|
|
128
|
+
if(e.detail.column === 2){
|
|
129
|
+
this.multiIndex[2] = e.detail.value
|
|
130
|
+
// console.log('第三列滑动')
|
|
131
|
+
// console.log(this.multiIndex)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
</script>
|
|
138
|
+
|
|
139
|
+
<style lang="less" >
|
|
140
|
+
.pickerList{
|
|
141
|
+
z-index: 9999999;
|
|
142
|
+
}
|
|
143
|
+
.input{
|
|
144
|
+
height: 80rpx;
|
|
145
|
+
margin-top: 20rpx;
|
|
146
|
+
.address{
|
|
147
|
+
height: 80rpx;
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
font-size: 28rpx;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.pickerList{
|
|
154
|
+
z-index: 99999999;
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<view>
|
|
4
|
+
|
|
5
|
+
</view>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
props: {
|
|
10
|
+
value: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: {}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
created() {
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
// afterTop: -20, //-60 满,40 空
|
|
20
|
+
// stars: null,
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
computed: {},
|
|
24
|
+
mounted() {
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
<style lang='scss' scoped>
|
|
32
|
+
|
|
33
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :style="{width:width,height:height,borderRadius:borderRadius,marginTop:marginTop,marginLeft:marginLeft}" class="skeletonStyle"> </view>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
// 登录组件是否需要检查手机号码
|
|
9
|
+
width: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: '100%',
|
|
12
|
+
|
|
13
|
+
},
|
|
14
|
+
height:{
|
|
15
|
+
type: String,
|
|
16
|
+
default: '100%',
|
|
17
|
+
},
|
|
18
|
+
borderRadius:{
|
|
19
|
+
type: String,
|
|
20
|
+
default: '0',
|
|
21
|
+
},
|
|
22
|
+
marginTop:{
|
|
23
|
+
type: String,
|
|
24
|
+
default: '0',
|
|
25
|
+
},
|
|
26
|
+
marginLeft:{
|
|
27
|
+
type: String,
|
|
28
|
+
default: '0',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
},
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
created() {
|
|
38
|
+
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
methods: {},
|
|
42
|
+
};
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<style lang="less" scoped>
|
|
46
|
+
.skeletonStyle {
|
|
47
|
+
animation: skeletonAnimation 1.8s ease infinite;
|
|
48
|
+
background: linear-gradient(90deg, #f1f2f4 25%, #e6e6e6 37%, #f1f2f4 50%);
|
|
49
|
+
background-size: 400% 100%;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes skeletonAnimation {
|
|
55
|
+
0% {
|
|
56
|
+
background-position: 100% 50%;
|
|
57
|
+
}
|
|
58
|
+
100% {
|
|
59
|
+
background-position: 0 50%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</style>
|
package/index.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<script>
|
|
6
|
+
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
|
7
|
+
CSS.supports('top: constant(a)'))
|
|
8
|
+
document.write(
|
|
9
|
+
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
|
10
|
+
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
|
11
|
+
</script>
|
|
12
|
+
<title></title>
|
|
13
|
+
<!--preload-links-->
|
|
14
|
+
<!--app-context-->
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div id="app"><!--app-html--></div>
|
|
18
|
+
<script type="module" src="/main.js"></script>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!DOCTYPE html>
|
|
6
|
+
<html lang="zh-CN">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
10
|
+
<title>
|
|
11
|
+
<%= htmlWebpackPlugin.options.title %>
|
|
12
|
+
</title>
|
|
13
|
+
<link rel="shortcut icon" type="image/png" href="https://lego.mgtv.com/tpl/favicon.ico"/>
|
|
14
|
+
<!-- Open Graph data -->
|
|
15
|
+
<!-- <meta property="og:title" content="Title Here" /> -->
|
|
16
|
+
<!-- <meta property="og:url" content="http://www.example.com/" /> -->
|
|
17
|
+
<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
|
|
18
|
+
<!-- <meta property="og:description" content="Description Here" /> -->
|
|
19
|
+
<script>
|
|
20
|
+
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
|
21
|
+
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' : '') + '" />')
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<script src="https://club.mgtv.com/act/jssdk/mgtv-js-sdk-third-0.0.1.js"></script>
|
|
25
|
+
<script src="https://vipcdn.mgtv.com/jslib/vipsdk/vip-sdk.1.0.1.js"></script>
|
|
26
|
+
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<noscript>
|
|
30
|
+
<strong>Please enable JavaScript to continue.</strong>
|
|
31
|
+
</noscript>
|
|
32
|
+
<div id="app"></div>
|
|
33
|
+
<!-- built files will be auto injected -->
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
package/jsconfig.json
ADDED
package/main.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
import en from './Local/en.json'
|
|
3
|
+
import zhHans from './Local/zh-Hans.json'
|
|
4
|
+
import zhHant from './Local/zh-Hant.json'
|
|
5
|
+
import indian from './Local/indian.json'
|
|
6
|
+
|
|
7
|
+
const messages = {
|
|
8
|
+
en,
|
|
9
|
+
'zh-Hans': zhHans,
|
|
10
|
+
'zh-Hant': zhHant,
|
|
11
|
+
'indian':indian
|
|
12
|
+
}
|
|
13
|
+
let i18nConfig = {
|
|
14
|
+
locale:'en',// 获取已设置的语言
|
|
15
|
+
messages
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import App from './App'
|
|
22
|
+
import VueI18n from 'vue-i18n'
|
|
23
|
+
// #ifndef VUE3
|
|
24
|
+
import Vue from 'vue'
|
|
25
|
+
import './uni.promisify.adaptor'
|
|
26
|
+
import uView from "uview-ui";
|
|
27
|
+
Vue.use(VueI18n)
|
|
28
|
+
const i18n = new VueI18n(i18nConfig)
|
|
29
|
+
|
|
30
|
+
Vue.use(uView);
|
|
31
|
+
Vue.config.productionTip = false
|
|
32
|
+
App.mpType = 'app'
|
|
33
|
+
const app = new Vue({
|
|
34
|
+
i18n,
|
|
35
|
+
...App
|
|
36
|
+
})
|
|
37
|
+
app.$mount()
|
|
38
|
+
// #endif
|
|
39
|
+
|
|
40
|
+
// #ifdef VUE3
|
|
41
|
+
import { createSSRApp } from 'vue'
|
|
42
|
+
export function createApp() {
|
|
43
|
+
const app = createSSRApp(App)
|
|
44
|
+
return {
|
|
45
|
+
app
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// #endif
|
package/manifest.json
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name" : "集好运赢入场券",
|
|
3
|
+
"appid" : "__UNI__33AFFD7",
|
|
4
|
+
"description" : "",
|
|
5
|
+
"versionName" : "1.0.2",
|
|
6
|
+
"versionCode" : "102",
|
|
7
|
+
"transformPx" : false,
|
|
8
|
+
"sassImplementationName" : "node-sass",
|
|
9
|
+
/* 5+App特有相关 */
|
|
10
|
+
"app-plus" : {
|
|
11
|
+
"usingComponents" : true,
|
|
12
|
+
"nvueStyleCompiler" : "uni-app",
|
|
13
|
+
"compilerVersion" : 3,
|
|
14
|
+
"splashscreen" : {
|
|
15
|
+
"alwaysShowBeforeRender" : true,
|
|
16
|
+
"waiting" : true,
|
|
17
|
+
"autoclose" : true,
|
|
18
|
+
"delay" : 0
|
|
19
|
+
},
|
|
20
|
+
/* 模块配置 */
|
|
21
|
+
"modules" : {
|
|
22
|
+
"Camera" : {}
|
|
23
|
+
},
|
|
24
|
+
/* 应用发布信息 */
|
|
25
|
+
"distribute" : {
|
|
26
|
+
/* android打包配置 */
|
|
27
|
+
"android" : {
|
|
28
|
+
"permissions" : [
|
|
29
|
+
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
30
|
+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
|
31
|
+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
|
32
|
+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
|
33
|
+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
34
|
+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
|
35
|
+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
|
36
|
+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
|
37
|
+
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
|
38
|
+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
|
39
|
+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
40
|
+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
|
41
|
+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
42
|
+
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
|
43
|
+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
|
44
|
+
],
|
|
45
|
+
"minSdkVersion" : 21
|
|
46
|
+
},
|
|
47
|
+
/* ios打包配置 */
|
|
48
|
+
"ios" : {
|
|
49
|
+
"dSYMs" : false,
|
|
50
|
+
"privacyDescription" : {
|
|
51
|
+
"NSPhotoLibraryUsageDescription" : "编辑个人头像时从相册中获取图片作为头像",
|
|
52
|
+
"NSCameraUsageDescription" : "编辑个人头像时用相机拍摄照片作为头像"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/* SDK配置 */
|
|
56
|
+
"sdkConfigs" : {
|
|
57
|
+
"oauth" : {
|
|
58
|
+
"weixin" : {
|
|
59
|
+
"appid" : "",
|
|
60
|
+
"UniversalLinks" : ""
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"payment" : {},
|
|
64
|
+
"share" : {
|
|
65
|
+
"weixin" : {
|
|
66
|
+
"appid" : "",
|
|
67
|
+
"UniversalLinks" : ""
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"icons" : {
|
|
72
|
+
"android" : {
|
|
73
|
+
"hdpi" : "unpackage/res/icons/72x72.png",
|
|
74
|
+
"xhdpi" : "unpackage/res/icons/96x96.png",
|
|
75
|
+
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
|
76
|
+
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
|
77
|
+
},
|
|
78
|
+
"ios" : {
|
|
79
|
+
"appstore" : "unpackage/res/icons/1024x1024.png",
|
|
80
|
+
"ipad" : {
|
|
81
|
+
"app" : "unpackage/res/icons/76x76.png",
|
|
82
|
+
"app@2x" : "unpackage/res/icons/152x152.png",
|
|
83
|
+
"notification" : "unpackage/res/icons/20x20.png",
|
|
84
|
+
"notification@2x" : "unpackage/res/icons/40x40.png",
|
|
85
|
+
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
|
86
|
+
"settings" : "unpackage/res/icons/29x29.png",
|
|
87
|
+
"settings@2x" : "unpackage/res/icons/58x58.png",
|
|
88
|
+
"spotlight" : "unpackage/res/icons/40x40.png",
|
|
89
|
+
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
|
90
|
+
},
|
|
91
|
+
"iphone" : {
|
|
92
|
+
"app@2x" : "unpackage/res/icons/120x120.png",
|
|
93
|
+
"app@3x" : "unpackage/res/icons/180x180.png",
|
|
94
|
+
"notification@2x" : "unpackage/res/icons/40x40.png",
|
|
95
|
+
"notification@3x" : "unpackage/res/icons/60x60.png",
|
|
96
|
+
"settings@2x" : "unpackage/res/icons/58x58.png",
|
|
97
|
+
"settings@3x" : "unpackage/res/icons/87x87.png",
|
|
98
|
+
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
|
99
|
+
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"splashscreen" : {
|
|
104
|
+
"useOriginalMsgbox" : true
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
/* 快应用特有相关 */
|
|
109
|
+
"quickapp" : {},
|
|
110
|
+
/* 小程序特有相关 */
|
|
111
|
+
"mp-weixin" : {
|
|
112
|
+
"appid" : "",
|
|
113
|
+
"setting" : {
|
|
114
|
+
"urlCheck" : false,
|
|
115
|
+
"minified" : true
|
|
116
|
+
},
|
|
117
|
+
"usingComponents" : true,
|
|
118
|
+
"optimization" : {
|
|
119
|
+
"subPackages" : true
|
|
120
|
+
},
|
|
121
|
+
"unipush" : {
|
|
122
|
+
"enable" : false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
// "permission" : {
|
|
126
|
+
// "scope.address" : {
|
|
127
|
+
// "desc" : "获取收货地址用于发货"
|
|
128
|
+
// }
|
|
129
|
+
// },
|
|
130
|
+
// "requiredPrivateInfos" : [ "chooseAddress" ]
|
|
131
|
+
"mp-alipay" : {
|
|
132
|
+
"usingComponents" : true
|
|
133
|
+
},
|
|
134
|
+
"mp-baidu" : {
|
|
135
|
+
"usingComponents" : true
|
|
136
|
+
},
|
|
137
|
+
"mp-toutiao" : {
|
|
138
|
+
"usingComponents" : true
|
|
139
|
+
},
|
|
140
|
+
"uniStatistics" : {
|
|
141
|
+
"enable" : false
|
|
142
|
+
},
|
|
143
|
+
"vueVersion" : "2",
|
|
144
|
+
// 渠道包配置
|
|
145
|
+
"channel_list" : [],
|
|
146
|
+
"locale" : "zh-Hans",
|
|
147
|
+
"h5" : {
|
|
148
|
+
"publicPath" : "./",
|
|
149
|
+
"router" : {
|
|
150
|
+
"base" : "./",
|
|
151
|
+
"mode" : "hash"
|
|
152
|
+
},
|
|
153
|
+
"template" : "index.template.html",
|
|
154
|
+
"devServer" : {
|
|
155
|
+
"disableHostCheck" : true
|
|
156
|
+
},
|
|
157
|
+
"title" : "集好运赢入场券"
|
|
158
|
+
}
|
|
159
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name":"@alu008/test_yuanqikaixiang",
|
|
3
|
+
"version":"1.0.0",
|
|
4
|
+
"main":"main.js",
|
|
5
|
+
"private": false,
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"bignumber.js": "^9.3.1",
|
|
8
|
+
"html2canvas": "^1.4.1",
|
|
9
|
+
"lottie-miniprogram": "^1.0.12",
|
|
10
|
+
"qrcode": "^1.5.4",
|
|
11
|
+
"uview-ui": "2.0.38",
|
|
12
|
+
"vue-i18n": "8"
|
|
13
|
+
}
|
|
14
|
+
}
|