├── static
├── female.png
├── logo.png
├── male.png
├── tab
│ ├── my.png
│ ├── gwc.png
│ ├── gwcl.png
│ ├── home.png
│ ├── lou.png
│ ├── shop.png
│ ├── circle.png
│ ├── lou-cur.png
│ ├── my_cur.png
│ ├── qingdan.png
│ ├── gouwudai.png
│ ├── home_cur.png
│ ├── shop_cur.png
│ ├── circle_cur.png
│ ├── gouwudai-cur.png
│ └── qingdan-cur.png
├── splash.9.png
├── errorImage.jpg
├── splash.9bak.png
└── refresh
│ ├── loading.png
│ └── xiangxia.png
├── unpackage
└── res
│ └── icons
│ ├── 20x20.png
│ ├── 29x29.png
│ ├── 40x40.png
│ ├── 58x58.png
│ ├── 60x60.png
│ ├── 72x72.png
│ ├── 76x76.png
│ ├── 80x80.png
│ ├── 87x87.png
│ ├── 96x96.png
│ ├── 120x120.png
│ ├── 144x144.png
│ ├── 152x152.png
│ ├── 167x167.png
│ ├── 180x180.png
│ ├── 192x192.png
│ └── 1024x1024.png
├── config.js
├── pages
├── dongdongqiang
│ ├── midrouter.vue
│ └── index.vue
├── webview
│ └── index.vue
├── product
│ ├── list.vue
│ └── product.vue
├── active
│ └── index.vue
├── search
│ ├── result.vue
│ └── search.vue
├── halfPrice
│ └── index.vue
├── halfgoodslist
│ └── index.vue
├── rank
│ └── rank.vue
├── nine
│ └── nine.vue
├── public
│ └── guide.vue
├── category
│ └── category.vue
└── index
│ └── index.vue
├── .hbuilderx
└── launch.json
├── components
├── Loading
│ └── index.vue
├── Tab
│ └── index.vue
├── ProductList
│ ├── HorizontalLayout2.vue
│ ├── HorizontalScrollLayout.vue
│ ├── BoxLayoutHalf.vue
│ ├── BoxLayout.vue
│ └── HorizontalLayout.vue
├── Tab2
│ └── index.vue
├── ListCell
│ └── index.vue
├── SortNavbar
│ └── index.vue
├── SortNavbar2
│ └── index.vue
├── lyg-popup
│ └── lyg-popup.vue
├── LoadMore
│ └── index.vue
├── Share
│ └── index.vue
├── Refresh
│ └── index.vue
└── FabBtn
│ └── index.vue
├── utils
├── mcUtils.js
├── cache.js
└── http.js
├── uni.scss
├── main.js
├── App.vue
├── README.md
├── app.js
├── style
└── app.scss
├── pages.json
├── colorui
├── components
│ └── cu-custom.vue
└── animation.css
├── store
└── index.js
├── api
└── backend.js
├── manifest.json
└── LICENSE
/static/female.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/female.png
--------------------------------------------------------------------------------
/static/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/logo.png
--------------------------------------------------------------------------------
/static/male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/male.png
--------------------------------------------------------------------------------
/static/tab/my.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/my.png
--------------------------------------------------------------------------------
/static/splash.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/splash.9.png
--------------------------------------------------------------------------------
/static/tab/gwc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/gwc.png
--------------------------------------------------------------------------------
/static/tab/gwcl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/gwcl.png
--------------------------------------------------------------------------------
/static/tab/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/home.png
--------------------------------------------------------------------------------
/static/tab/lou.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/lou.png
--------------------------------------------------------------------------------
/static/tab/shop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/shop.png
--------------------------------------------------------------------------------
/static/errorImage.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/errorImage.jpg
--------------------------------------------------------------------------------
/static/splash.9bak.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/splash.9bak.png
--------------------------------------------------------------------------------
/static/tab/circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/circle.png
--------------------------------------------------------------------------------
/static/tab/lou-cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/lou-cur.png
--------------------------------------------------------------------------------
/static/tab/my_cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/my_cur.png
--------------------------------------------------------------------------------
/static/tab/qingdan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/qingdan.png
--------------------------------------------------------------------------------
/static/tab/gouwudai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/gouwudai.png
--------------------------------------------------------------------------------
/static/tab/home_cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/home_cur.png
--------------------------------------------------------------------------------
/static/tab/shop_cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/shop_cur.png
--------------------------------------------------------------------------------
/static/refresh/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/refresh/loading.png
--------------------------------------------------------------------------------
/static/refresh/xiangxia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/refresh/xiangxia.png
--------------------------------------------------------------------------------
/static/tab/circle_cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/circle_cur.png
--------------------------------------------------------------------------------
/static/tab/gouwudai-cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/gouwudai-cur.png
--------------------------------------------------------------------------------
/static/tab/qingdan-cur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/static/tab/qingdan-cur.png
--------------------------------------------------------------------------------
/unpackage/res/icons/20x20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/20x20.png
--------------------------------------------------------------------------------
/unpackage/res/icons/29x29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/29x29.png
--------------------------------------------------------------------------------
/unpackage/res/icons/40x40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/40x40.png
--------------------------------------------------------------------------------
/unpackage/res/icons/58x58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/58x58.png
--------------------------------------------------------------------------------
/unpackage/res/icons/60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/60x60.png
--------------------------------------------------------------------------------
/unpackage/res/icons/72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/72x72.png
--------------------------------------------------------------------------------
/unpackage/res/icons/76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/76x76.png
--------------------------------------------------------------------------------
/unpackage/res/icons/80x80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/80x80.png
--------------------------------------------------------------------------------
/unpackage/res/icons/87x87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/87x87.png
--------------------------------------------------------------------------------
/unpackage/res/icons/96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/96x96.png
--------------------------------------------------------------------------------
/unpackage/res/icons/120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/120x120.png
--------------------------------------------------------------------------------
/unpackage/res/icons/144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/144x144.png
--------------------------------------------------------------------------------
/unpackage/res/icons/152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/152x152.png
--------------------------------------------------------------------------------
/unpackage/res/icons/167x167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/167x167.png
--------------------------------------------------------------------------------
/unpackage/res/icons/180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/180x180.png
--------------------------------------------------------------------------------
/unpackage/res/icons/192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/192x192.png
--------------------------------------------------------------------------------
/unpackage/res/icons/1024x1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunqitao/mall-cheap-app/HEAD/unpackage/res/icons/1024x1024.png
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | APIHOST: "https://mallcheapapi.hiio.cn",
3 | // APIHOST: "http://192.168.31.253:9091"
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/pages/dongdongqiang/midrouter.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
19 |
--------------------------------------------------------------------------------
/.hbuilderx/launch.json:
--------------------------------------------------------------------------------
1 | { // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
2 | // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
3 | "version": "0.0",
4 | "configurations": [{
5 | "type": "uniCloud",
6 | "default": {
7 | "launchtype": "remote"
8 | }
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/components/Loading/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
17 |
18 |
21 |
--------------------------------------------------------------------------------
/utils/mcUtils.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | getShareInfo: (shareTicket, callback) => {
3 | if (!shareTicket) {
4 | return;
5 | }
6 | // #ifdef MP-WEIXIN
7 | wx.getShareInfo({
8 | shareTicket: shareTicket,
9 | timeout: 5000,
10 | success: callback
11 | })
12 | // #endif
13 | // #ifdef MP-QQ
14 | qq.getShareInfo({
15 | shareTicket: shareTicket,
16 | timeout: 5000,
17 | success: callback
18 | })
19 | // #endif
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/uni.scss:
--------------------------------------------------------------------------------
1 | /* 页面左右间距 */
2 | $page-row-spacing: 30upx;
3 | $page-color-base: #f8f8f8;
4 | $page-color-light: #f8f6fc;
5 | $base-color: #fa436a;
6 |
7 | /* 文字尺寸 */
8 | $font-sm: 24upx;
9 | $font-base: 28upx;
10 | $font-lg: 32upx;
11 | /*文字颜色*/
12 | $font-color-dark: #303133;
13 | $font-color-base: #606266;
14 | $font-color-light: #909399;
15 | $font-color-disabled: #C0C4CC;
16 | $font-color-spec: #4399fc;
17 | /* 边框颜色 */
18 | $border-color-dark: #DCDFE6;
19 | $border-color-base: #E4E7ED;
20 | $border-color-light: #EBEEF5;
21 | /* 图片加载中颜色 */
22 | $image-bg-color: #eee;
23 | /* 行为相关颜色 */
24 | $uni-color-primary:#fa436a;
25 | $uni-color-success: #4cd964;
26 | $uni-color-warning: #f0ad4e;
27 | $uni-color-error: #dd524d;
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import store from './store'
3 | import App from './App.vue'
4 |
5 | import backend from './api/backend'
6 | import cache from './utils/cache'
7 | import mcUtils from './utils/mcUtils'
8 |
9 | import TitleNav from './colorui/components/cu-custom.vue'
10 |
11 | Vue.component('title-nav',TitleNav)
12 |
13 | const message = (title, duration=1500, mask=false, icon='none')=>{
14 | //统一提示方便全局修改
15 | if(Boolean(title) === false){
16 | return;
17 | }
18 | uni.showToast({
19 | title,
20 | duration,
21 | mask,
22 | icon
23 | });
24 | }
25 |
26 | Vue.config.productionTip = false
27 | Vue.prototype.$store = store;
28 | Vue.prototype.$cache = cache;
29 | Vue.prototype.$utils = mcUtils;
30 | Vue.prototype.$message = message;
31 | Vue.prototype.$api = { backend };
32 |
33 | App.mpType = 'app'
34 |
35 | const app = new Vue({
36 | ...App
37 | })
38 | app.$mount()
39 |
--------------------------------------------------------------------------------
/App.vue:
--------------------------------------------------------------------------------
1 |
34 |
35 |
44 |
--------------------------------------------------------------------------------
/components/Tab/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | {{item[textProp]}}
9 |
10 |
11 |
12 |
13 |
40 |
41 |
43 |
--------------------------------------------------------------------------------
/components/ProductList/HorizontalLayout2.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
40 |
41 |
42 |
45 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # mall-cheap-app
2 | 淘宝客 前端 使用uniapp编写
3 |
4 |
5 |
6 |
7 |
8 | ## 项目介绍
9 | mall-cheap-app是用uniapp开发的淘宝客前端项目,无需用户登录、无需用户授权、主打便宜、好玩
10 |
11 | ### Github地址:
12 | - 后端项目地址:[https://github.com/sunqitao/mall-cheap-server](https://github.com/sunqitao/mall-cheap-server)
13 | - 前端项目地址:[https://github.com/sunqitao/mall-cheap-app](https://github.com/sunqitao/mall-cheap-app)
14 |
15 | ## 功能列表
16 | - 后续补充
17 |
18 | ## 在线体验地址
19 |
20 |
21 |
22 |
23 | | App下载地址 |
24 | 微信小程序 |
25 |
26 |
27 |  |
28 |  |
29 |
30 |
31 |
32 |
33 |
34 | ## 技术选型
35 |
36 | ## 捐赠研发
37 |
38 | ## 参考项目
39 | #### Mall-Coupons
40 |
41 |
--------------------------------------------------------------------------------
/components/Tab2/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | {{item[textProp]+':00'}}
8 | {{item[textStatus] | formatStatus}}
9 |
10 |
11 |
12 |
13 |
66 |
67 |
73 |
--------------------------------------------------------------------------------
/app.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 |
3 | export default {
4 | initTitleNav() {
5 | uni.getSystemInfo({
6 | success: function (e) {
7 | // #ifndef MP
8 | Vue.prototype.StatusBar = e.statusBarHeight;
9 | if (e.platform === 'android') {
10 | Vue.prototype.CustomBar = e.statusBarHeight + 50;
11 | } else {
12 | Vue.prototype.CustomBar = e.statusBarHeight + 45;
13 | }
14 | // #endif
15 | // #ifdef MP-WEIXIN
16 | Vue.prototype.StatusBar = e.statusBarHeight;
17 | let custom = wx.getMenuButtonBoundingClientRect();
18 | Vue.prototype.Custom = custom;
19 | Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
20 | // #endif
21 | // #ifdef MP-ALIPAY
22 | // Vue.prototype.StatusBar = e.statusBarHeight;
23 | // Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
24 | // #endif
25 | // #ifdef MP-QQ
26 | Vue.prototype.StatusBar = e.statusBarHeight;
27 | let customQQ = qq.getMenuButtonBoundingClientRect();
28 | Vue.prototype.Custom = customQQ;
29 | Vue.prototype.CustomBar = customQQ.bottom + customQQ.top - e.statusBarHeight;
30 | if (e.model.indexOf("iPhone X") > -1) {
31 | Vue.prototype.CustomBar = 82;
32 | } else {
33 | Vue.prototype.CustomBar = 60;
34 | }
35 | // #endif
36 | // #ifdef MP-TOUTIAO
37 | // Vue.prototype.StatusBar = e.statusBarHeight;
38 | // let customTT = tt.getMenuButtonBoundingClientRect();
39 | // Vue.prototype.Custom = customTT;
40 | // Vue.prototype.CustomBar = customTT.bottom + customTT.top - e.statusBarHeight
41 | // #endif
42 | }
43 | })
44 | },
45 | initShareMenu() {
46 | // #ifdef MP-WEIXIN
47 | wx.showShareMenu({
48 | withShareTicket: true,
49 | menus: ['shareAppMessage', 'shareTimeline']
50 | })
51 | // #endif
52 | // #ifdef MP-QQ
53 | uni.showShareMenu({
54 | withShareTicket: true
55 | })
56 | // #endif
57 | }
58 |
59 | };
60 |
--------------------------------------------------------------------------------
/utils/cache.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 缓存数据优化
3 | * var cache = require('utils/cache.js');
4 | * import cache from '../cache'
5 | * 使用方法 【
6 | * 一、设置缓存
7 | * string cache.put('k', 'string你好啊');
8 | * json cache.put('k', { "b": "3" }, 2);
9 | * array cache.put('k', [1, 2, 3]);
10 | * boolean cache.put('k', true);
11 | * 二、读取缓存
12 | * 默认值 cache.get('k')
13 | * string cache.get('k', '你好')
14 | * json cache.get('k', { "a": "1" })
15 | * 三、移除/清理
16 | * 移除: cache.remove('k');
17 | * 清理:cache.clear();
18 | * 】
19 | * @type {String}
20 | */
21 | var postfix = '_mallStore'; // 缓存前缀
22 | /**
23 | * 设置缓存
24 | * @param {[type]} k [键名]
25 | * @param {[type]} v [键值]
26 | * @param {[type]} t [时间、单位秒]
27 | */
28 | function put(k, v, t) {
29 | uni.setStorageSync(k, v)
30 | var seconds = parseInt(t);
31 | if (seconds > 0) {
32 | var timestamp = Date.parse(new Date());
33 | timestamp = timestamp / 1000 + seconds;
34 | uni.setStorageSync(k + postfix, timestamp + "")
35 | } else {
36 | uni.removeStorageSync(k + postfix)
37 | }
38 | }
39 |
40 |
41 | /**
42 | * 获取缓存
43 | * @param {[type]} k [键名]
44 | * @param {[type]} def [获取为空时默认]
45 | */
46 | function get(k, def) {
47 | var deadtime = parseInt(uni.getStorageSync(k + postfix))
48 | if (deadtime) {
49 | if (parseInt(deadtime) < Date.parse(new Date()) / 1000) {
50 | if (def) {
51 | return def;
52 | } else {
53 | return false;
54 | }
55 | }
56 | }
57 | var res = uni.getStorageSync(k);
58 | if (res) {
59 | return res;
60 | } else {
61 | if (def === undefined || def === "") {
62 | def = false;
63 | }
64 | return def;
65 | }
66 | }
67 |
68 | function remove(k) {
69 | uni.removeStorageSync(k);
70 | uni.removeStorageSync(k + postfix);
71 | }
72 |
73 | /**
74 | * 清理所有缓存
75 | * @return {[type]} [description]
76 | */
77 | function clear() {
78 | uni.clearStorageSync();
79 | }
80 |
81 |
82 | module.exports = {
83 | put: put,
84 | get: get,
85 | remove: remove,
86 | clear: clear,
87 | }
--------------------------------------------------------------------------------
/utils/http.js:
--------------------------------------------------------------------------------
1 | import configdata from '../config'
2 | import cache from './cache'
3 | import store from '../store/index';
4 |
5 | module.exports = {
6 | config: function(name) {
7 | var info = null;
8 | if (name) {
9 | var name2 = name.split("."); //字符分割
10 | if (name2.length > 1) {
11 | info = configdata[name2[0]][name2[1]] || null;
12 | } else {
13 | info = configdata[name] || null;
14 | }
15 | if (info == null) {
16 | let web_config = cache.get("web_config");
17 | if (web_config) {
18 | if (name2.length > 1) {
19 | info = web_config[name2[0]][name2[1]] || null;
20 | } else {
21 | info = web_config[name] || null;
22 | }
23 | }
24 | }
25 | }
26 | return info;
27 | },
28 | post: function(url, data, xAuthToken = true) {
29 | url = this.config("APIHOST")+url;
30 | let header = {
31 | "content-type": "application/x-www-form-urlencoded"
32 | }
33 | if (xAuthToken) {
34 | header = {
35 | "content-type": "application/x-www-form-urlencoded",
36 | "X-Auth-Token": store.getters.accessToken
37 | }
38 | }
39 | return new Promise((succ, error) => {
40 | uni.request({
41 | url: url,
42 | data: data,
43 | method: "POST",
44 | header: header,
45 | success: function(result) {
46 | succ.call(self, result.data)
47 | },
48 | fail: function(e) {
49 | error.call(self, e)
50 | }
51 | })
52 | })
53 | },
54 | get: function(url, data, xAuthToken = true) {
55 | url = this.config("APIHOST")+url;
56 | let header = {
57 | "content-type": "application/x-www-form-urlencoded"
58 | }
59 | if (xAuthToken) {
60 | header = {
61 | "content-type": "application/x-www-form-urlencoded",
62 | "X-Auth-Token": store.getters.accessToken
63 | }
64 | }
65 | return new Promise((succ, error) => {
66 | uni.request({
67 | url: url,
68 | data: data,
69 | method: "GET",
70 | header: header,
71 | success: function(result) {
72 | succ.call(self, result.data)
73 | },
74 | fail: function(e) {
75 | error.call(self, e)
76 | }
77 | })
78 | })
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/pages/webview/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/pages/dongdongqiang/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 达人捡漏-每天就那么几件
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
81 |
82 |
88 |
--------------------------------------------------------------------------------
/style/app.scss:
--------------------------------------------------------------------------------
1 | view,
2 | scroll-view,
3 | swiper,
4 | swiper-item,
5 | cover-view,
6 | cover-image,
7 | icon,
8 | text,
9 | rich-text,
10 | progress,
11 | button,
12 | checkbox,
13 | form,
14 | input,
15 | label,
16 | radio,
17 | slider,
18 | switch,
19 | textarea,
20 | navigator,
21 | audio,
22 | camera,
23 | image,
24 | video {
25 | box-sizing: border-box;
26 | }
27 |
28 | /* 图片载入替代方案 */
29 | .image-wrapper {
30 | font-size: 0;
31 | background: #f3f3f3;
32 | border-radius: 4px;
33 |
34 | image {
35 | width: 100%;
36 | height: 100%;
37 | transition: .6s;
38 | opacity: 0;
39 |
40 | &.loaded {
41 | opacity: 1;
42 | }
43 | }
44 | }
45 |
46 | .clamp {
47 | overflow: hidden;
48 | text-overflow: ellipsis;
49 | white-space: nowrap;
50 | display: block;
51 | }
52 |
53 | .common-hover {
54 | background: #f5f5f5;
55 | }
56 |
57 | /*边框*/
58 | .b-b:after,
59 | .b-t:after {
60 | position: absolute;
61 | z-index: 3;
62 | left: 0;
63 | right: 0;
64 | height: 0;
65 | content: '';
66 | transform: scaleY(.5);
67 | border-bottom: 1px solid $border-color-base;
68 | }
69 |
70 | .b-b:after {
71 | bottom: 0;
72 | }
73 |
74 | .b-t:after {
75 | top: 0;
76 | }
77 |
78 | /* button样式改写 */
79 | uni-button,
80 | button {
81 | height: 80upx;
82 | line-height: 80upx;
83 | font-size: $font-lg + 2upx;
84 | font-weight: normal;
85 |
86 | &.no-border:before,
87 | &.no-border:after {
88 | border: 0;
89 | }
90 | }
91 |
92 | uni-button[type=default],
93 | button[type=default] {
94 | color: $font-color-dark;
95 | }
96 |
97 | /* input 样式 */
98 | .input-placeholder {
99 | color: #999999;
100 | }
101 |
102 | .placeholder {
103 | color: #999999;
104 | }
105 |
106 | .tm {
107 | min-width: 23px;
108 | height: 13px;
109 | border-radius: 2px;
110 | background-image: url(https://cmsstatic.ffquan.cn/wap_new/common/images/tm.png);
111 | display: inline-block;
112 | margin-right: 3px;
113 | background-size: 23px 13px;
114 | background-repeat: no-repeat;
115 | background-position: center;
116 | }
117 |
118 | .tb {
119 | min-width: 29px;
120 | height: 13px;
121 | background-color: linear-gradient(142deg,#ff8c02 0,#ff5000 100%);
122 | border-radius: 2px;
123 | background-image: url(https://cmsstatic.ffquan.cn/wap_new/common/images/tb.png);
124 | display: inline-block;
125 | background-size: 29px 13px;
126 | background-repeat: no-repeat;
127 | background-position: center;
128 | margin-right: 2px;
129 | }
130 |
--------------------------------------------------------------------------------
/components/ListCell/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 | {{title}}
14 | {{tips}}
15 |
18 |
19 |
20 |
21 |
22 |
23 |
76 |
77 |
120 |
--------------------------------------------------------------------------------
/pages/product/list.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 懂你清单-只推对的
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
81 |
82 |
88 |
--------------------------------------------------------------------------------
/pages/active/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 主题清单最懂你,购物袋已就位
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
73 |
74 |
80 |
--------------------------------------------------------------------------------
/pages.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | {
4 | "path": "pages/index/index",
5 | "style": {
6 | }
7 | },
8 |
9 | {
10 | "path": "pages/webview/index",
11 | "style": {
12 | "navigationStyle": "default",
13 | "app-plus": {
14 | "titleNView": {
15 | "titleText": "加载中"
16 | }
17 | }
18 | }
19 | },
20 | {
21 | "path": "pages/nine/nine",
22 | "style": {
23 | }
24 | },
25 | {
26 | "path": "pages/halfgoodslist/index",
27 | "style": {
28 | }
29 | },
30 | {
31 | "path": "pages/rank/rank",
32 | "style": {
33 | }
34 | },
35 | {
36 | "path": "pages/active/index",
37 | "style": {
38 | }
39 | },
40 | {
41 | "path": "pages/halfPrice/index",
42 | "style": {
43 | }
44 | },
45 | {
46 | "path": "pages/product/product",
47 | "style": {}
48 | },
49 | {
50 | "path": "pages/public/guide",
51 | "style": {}
52 | },
53 | {
54 | "path": "pages/category/category",
55 | "style": {}
56 | },
57 | {
58 | "path": "pages/dongdongqiang/index",
59 | "style": {}
60 | },
61 | {
62 | "path": "pages/dongdongqiang/midrouter",
63 | "style": {}
64 | },
65 | {
66 | "path": "pages/product/list",
67 | "style": {}
68 | },
69 | {
70 | "path": "pages/search/search",
71 | "style": {}
72 | },
73 | {
74 | "path": "pages/search/result",
75 | "style": {}
76 | }
77 | ],
78 | "globalStyle": {
79 | "navigationBarTextStyle": "black",
80 | "navigationBarTitleText": "便宜买了",
81 | "navigationBarBackgroundColor": "#FFFFFF",
82 | "backgroundColor": "#f8f8f8",
83 | "navigationStyle": "custom"
84 | },
85 | "tabBar": {
86 | "backgroundColor": "#f0f0f0",
87 | "color": "#8799a3",
88 | "selectedColor": "#000000",
89 | "list": [
90 | {
91 | "pagePath": "pages/index/index",
92 | "iconPath": "static/tab/gouwudai.png",
93 | "text": "购物袋",
94 | "selectedIconPath": "static/tab/gouwudai-cur.png"
95 | },
96 | {
97 | "pagePath": "pages/category/category",
98 | "iconPath": "static/tab/qingdan.png",
99 | "text": "购物单",
100 | "selectedIconPath": "static/tab/qingdan-cur.png"
101 | }
102 | ,
103 | {
104 | "pagePath": "pages/dongdongqiang/index",
105 | "iconPath": "static/tab/lou.png",
106 | "text": "捡漏",
107 | "selectedIconPath": "static/tab/lou-cur.png"
108 | }
109 | ]
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/pages/search/result.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 给你所需-好物如下
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
87 |
88 |
94 |
--------------------------------------------------------------------------------
/pages/halfPrice/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 每日半价
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
84 |
85 |
91 |
--------------------------------------------------------------------------------
/pages/halfgoodslist/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 每天准时半价,只这几个
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
99 |
100 |
106 |
--------------------------------------------------------------------------------
/colorui/components/cu-custom.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
89 |
90 |
93 |
--------------------------------------------------------------------------------
/pages/rank/rank.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 其他人买了,你要不要
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
81 |
82 |
88 |
--------------------------------------------------------------------------------
/pages/nine/nine.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 低价没邮费,要不要
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
103 |
104 |
110 |
--------------------------------------------------------------------------------
/pages/public/guide.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 新手引导
5 |
6 |
7 |
8 |
9 |
10 |
78 |
79 |
82 |
--------------------------------------------------------------------------------
/colorui/animation.css:
--------------------------------------------------------------------------------
1 | /*
2 | Animation 微动画
3 | 基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28
4 | */
5 |
6 | /* css 滤镜 控制黑白底色gif的 */
7 | .gif-black{
8 | mix-blend-mode: screen;
9 | }
10 | .gif-white{
11 | mix-blend-mode: multiply;
12 | }
13 |
14 |
15 | /* Animation css */
16 | [class*=animation-] {
17 | animation-duration: .5s;
18 | animation-timing-function: ease-out;
19 | animation-fill-mode: both
20 | }
21 |
22 | .animation-fade {
23 | animation-name: fade;
24 | animation-duration: .8s;
25 | animation-timing-function: linear
26 | }
27 |
28 | .animation-scale-up {
29 | animation-name: scale-up
30 | }
31 |
32 | .animation-scale-down {
33 | animation-name: scale-down
34 | }
35 |
36 | .animation-slide-top {
37 | animation-name: slide-top
38 | }
39 |
40 | .animation-slide-bottom {
41 | animation-name: slide-bottom
42 | }
43 |
44 | .animation-slide-left {
45 | animation-name: slide-left
46 | }
47 |
48 | .animation-slide-right {
49 | animation-name: slide-right
50 | }
51 |
52 | .animation-shake {
53 | animation-name: shake
54 | }
55 |
56 | .animation-reverse {
57 | animation-direction: reverse
58 | }
59 |
60 | @keyframes fade {
61 | 0% {
62 | opacity: 0
63 | }
64 |
65 | 100% {
66 | opacity: 1
67 | }
68 | }
69 |
70 | @keyframes scale-up {
71 | 0% {
72 | opacity: 0;
73 | transform: scale(.2)
74 | }
75 |
76 | 100% {
77 | opacity: 1;
78 | transform: scale(1)
79 | }
80 | }
81 |
82 | @keyframes scale-down {
83 | 0% {
84 | opacity: 0;
85 | transform: scale(1.8)
86 | }
87 |
88 | 100% {
89 | opacity: 1;
90 | transform: scale(1)
91 | }
92 | }
93 |
94 | @keyframes slide-top {
95 | 0% {
96 | opacity: 0;
97 | transform: translateY(-100%)
98 | }
99 |
100 | 100% {
101 | opacity: 1;
102 | transform: translateY(0)
103 | }
104 | }
105 |
106 | @keyframes slide-bottom {
107 | 0% {
108 | opacity: 0;
109 | transform: translateY(100%)
110 | }
111 |
112 | 100% {
113 | opacity: 1;
114 | transform: translateY(0)
115 | }
116 | }
117 |
118 | @keyframes shake {
119 |
120 | 0%,
121 | 100% {
122 | transform: translateX(0)
123 | }
124 |
125 | 10% {
126 | transform: translateX(-9px)
127 | }
128 |
129 | 20% {
130 | transform: translateX(8px)
131 | }
132 |
133 | 30% {
134 | transform: translateX(-7px)
135 | }
136 |
137 | 40% {
138 | transform: translateX(6px)
139 | }
140 |
141 | 50% {
142 | transform: translateX(-5px)
143 | }
144 |
145 | 60% {
146 | transform: translateX(4px)
147 | }
148 |
149 | 70% {
150 | transform: translateX(-3px)
151 | }
152 |
153 | 80% {
154 | transform: translateX(2px)
155 | }
156 |
157 | 90% {
158 | transform: translateX(-1px)
159 | }
160 | }
161 |
162 | @keyframes slide-left {
163 | 0% {
164 | opacity: 0;
165 | transform: translateX(-100%)
166 | }
167 |
168 | 100% {
169 | opacity: 1;
170 | transform: translateX(0)
171 | }
172 | }
173 |
174 | @keyframes slide-right {
175 | 0% {
176 | opacity: 0;
177 | transform: translateX(100%)
178 | }
179 |
180 | 100% {
181 | opacity: 1;
182 | transform: translateX(0)
183 | }
184 | }
--------------------------------------------------------------------------------
/store/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Vuex from 'vuex'
3 | import api from "../api/backend";
4 |
5 | Vue.use(Vuex)
6 |
7 | const store = new Vuex.Store({
8 | state: {
9 | accessToken: undefined,
10 | hasLogin: false,
11 | userInfo: undefined,
12 | shareTicket: undefined
13 | },
14 | getters: {
15 | accessToken: state => {
16 | if (state.accessToken) {
17 | return state.accessToken;
18 | }
19 | return uni.getStorageSync('mall_coupons_access_token');
20 | },
21 | hasLogin: state => {
22 | if (state.hasLogin) {
23 | return state.hasLogin;
24 | }
25 | return uni.getStorageSync('mall_coupons_has_login');
26 | },
27 | userInfo: state => {
28 | if (state.userInfo) {
29 | return state.userInfo;
30 | }
31 | return uni.getStorageSync('mall_coupons_user_info')
32 | },
33 | avatar: state => {
34 | if (state.userInfo && state.userInfo.avatarUrl) {
35 | return state.userInfo.avatarUrl;
36 | }
37 | return 'http://file.szjx.top/fashion/missing-face.png';
38 | }
39 | },
40 | mutations: {
41 | login(state, param) {
42 | uni.login({
43 | provider: param.provider,
44 | success: (response) => {
45 | api.login(param.provider, response.code).then(resp => {
46 | let token = resp.data.xAuthToken
47 | state.accessToken = token;
48 | uni.setStorage({key: 'mall_coupons_access_token', data: token});
49 |
50 | api.getLoginUser().then(resp => {
51 | state.hasLogin = true;
52 | state.userInfo = resp.data
53 | if (!resp.data.nick) {
54 | api.initUserInfo({
55 | nick: param.userInfo.nickName,
56 | avatarUrl: param.userInfo.avatarUrl,
57 | city: param.userInfo.city,
58 | country: param.userInfo.country,
59 | province: param.userInfo.province,
60 | sex: param.userInfo.gender
61 | }).then((user) => {
62 | let userinfo = user.data
63 | state.hasLogin = true;
64 | state.userInfo = userinfo;
65 | uni.setStorage({key: 'mall_coupons_has_login', data: true});
66 | uni.setStorage({key: 'mall_coupons_user_info', data: userinfo});
67 | });
68 | }
69 | })
70 | })
71 | }
72 | });
73 | },
74 | storeShareTicket(state, shareTicket) {
75 | state.shareTicket = shareTicket;
76 | },
77 | storeToken(state, token) {
78 | state.accessToken = token;
79 | uni.setStorage({key: 'mall_coupons_access_token', data: token});
80 | },
81 | storeUser(state, user) {
82 | state.hasLogin = true;
83 | state.userInfo = user;
84 | uni.setStorage({key: 'mall_coupons_has_login', data: true});
85 | uni.setStorage({key: 'mall_coupons_user_info', data: user});
86 | },
87 | logout(state) {
88 | api.logout();
89 | state.hasLogin = false;
90 | state.userInfo = undefined;
91 | uni.removeStorage({
92 | key: 'mall_coupons_access_token'
93 | });
94 | uni.removeStorage({
95 | key: 'mall_coupons_has_login'
96 | });
97 | uni.removeStorage({
98 | key: 'mall_coupons_user_info'
99 | });
100 | }
101 | },
102 | actions: {}
103 | })
104 |
105 | export default store
106 |
--------------------------------------------------------------------------------
/components/SortNavbar/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 人气
5 |
6 |
7 | 销量
8 |
9 |
10 | 最新
11 |
12 |
13 | 价格
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
57 |
58 |
138 |
--------------------------------------------------------------------------------
/components/ProductList/HorizontalScrollLayout.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.title}}
12 |
13 |
14 | 券后
15 | {{item.actualPrice}}
16 |
17 |
18 | {{item.brandName}}
19 | 淘抢购
20 | 聚划算
21 | 劵{{item.couponPrice}}元
22 |
23 |
24 |
25 |
26 |
27 |
47 |
48 |
142 |
--------------------------------------------------------------------------------
/components/SortNavbar2/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 人气
5 |
6 |
7 | 销量
8 |
9 |
10 | 价格
11 |
12 |
13 |
15 |
16 |
17 |
18 |
19 | 优惠券
20 |
21 |
22 |
23 |
24 |
67 |
68 |
148 |
--------------------------------------------------------------------------------
/components/lyg-popup/lyg-popup.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
34 |
35 |
36 |
37 |
110 |
111 |
181 |
--------------------------------------------------------------------------------
/components/LoadMore/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | {{status === 'more' ? contentText.contentdown : (status === 'loading' ? contentText.contentrefresh : contentText.contentnomore)}}
24 |
25 |
26 |
27 |
60 |
61 |
196 |
--------------------------------------------------------------------------------
/components/ProductList/BoxLayoutHalf.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.name}}
12 |
13 |
14 | {{item.yijuhua}}{{item.preferential}}
15 | ¥
16 | {{item.price}}
17 |
18 |
24 |
25 |
26 | 开抢时间:{{item.startTime}}
27 |
28 |
29 |
30 |
31 |
32 |
33 |
54 |
55 |
181 |
--------------------------------------------------------------------------------
/components/Share/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
13 |
14 |
17 |
18 |
23 |
24 | {{item.text}}
25 |
26 |
27 |
28 | 取消
29 |
30 |
31 |
32 |
33 |
119 |
120 |
203 |
--------------------------------------------------------------------------------
/components/ProductList/BoxLayout.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.title}}
12 |
13 |
14 | 券后
15 | ¥
16 | {{item.actualPrice}}
17 |
18 |
19 | {{item.brandName}}
20 |
21 | 淘抢购
22 | 聚划算
23 | 劵{{item.couponPrice}}元
24 |
25 | {{item.shopName}}
26 |
27 | 30天销量:{{item.monthSales}}
28 | 领券量:{{item.couponReceiveNum}}
29 |
30 |
31 |
32 |
33 |
34 |
55 |
56 |
182 |
--------------------------------------------------------------------------------
/api/backend.js:
--------------------------------------------------------------------------------
1 | import httpRequest from '../utils/http'
2 |
3 | module.exports = {
4 | login: function (provider, code) {
5 | let url = '/auth/miniprogram';
6 | if (provider === 'qq') {
7 | url = '/auth/QQMiniProgram'
8 | }
9 | return httpRequest.get(url, {code: code})
10 | },
11 | htmlLogin: function (mobile, code) {
12 | return httpRequest.post('/login', {mobile: mobile, code: code})
13 | },
14 | logout: function () {
15 | return httpRequest.get('/user/logout')
16 | },
17 | getLoginUser: function () {
18 | return httpRequest.get('/user/currentUser', {})
19 | },
20 | sendEmailCode: function (params) {
21 | return httpRequest.post('/mi/send_email_code', params)
22 | },
23 | updatePassword: function (params) {
24 | return httpRequest.post('/mi/update_password', params)
25 | },
26 | register: function (user) {
27 | return httpRequest.post('/mi/register', user)
28 | },
29 | updateUserInfo: function (user) {
30 | return httpRequest.post('/user/update', user)
31 | },
32 | initUserInfo: function (user) {
33 | return httpRequest.post('/user/init_current_user', user)
34 | },
35 | getCate: function () {
36 | return httpRequest.get('/carousel/loadCate', {})
37 | },
38 | recommendGoods: function (page) {
39 | return httpRequest.get('/carousel/loadRecommendGoods', {page: page})
40 | },
41 | getGoodsDetail: function (id, goodsId) {
42 | let params = {};
43 | if (id) {
44 | params.id = id
45 | }
46 | if (goodsId) {
47 | params.goodsId = goodsId
48 | }
49 | return httpRequest.get('/carousel/goodsDetail', params)
50 | },
51 | getGoodsByCate: function (subcid, page, sort) {
52 | return httpRequest.get('/carousel/loadGoodsByCate', {subcid: subcid, page: page, sort: sort})
53 | },
54 | getPrivilegeLink: function (goodsId) {
55 | return httpRequest.get('/carousel/getPrivilegeLink', {goodsId: goodsId})
56 | },
57 | getHotSearch: function () {
58 | return httpRequest.get('/carousel/getHotSearch', {})
59 | },
60 | search: function (keyword, page, sort) {
61 | return httpRequest.get('/mi/search', {keyword: keyword, page: page, sort: sort})
62 | },
63 | search2: function (keyword, page, sort, hasCoupon) {
64 | return httpRequest.get('/carousel/search2', {keyword: keyword, page: page, sort: sort, hasCoupon: hasCoupon})
65 | },
66 | favoriteGoods: function (goodsId) {
67 | return httpRequest.get('/collection/product/add', {productId: goodsId})
68 | },
69 | unFavoriteGoods: function (goodsId) {
70 | return httpRequest.get('/collection/product/remove', {productId: goodsId})
71 | },
72 | favoriteList: function (page, size) {
73 | return httpRequest.get('/collection/product/list', {page: page, size: size})
74 | },
75 | getNineGoods: function (page, size, nineCid) {
76 | return httpRequest.get('/carousel/loadNineGoods', {page: page, size: size, nineCid: nineCid})
77 | },
78 | getRankGoods: function (cid) {
79 | return httpRequest.get('/carousel/loadRankGoods', {cid: cid})
80 | },
81 | getSimilarGoods: function (daTaoKeGoodsId) {
82 | return httpRequest.get('/carousel/getSimilarGoods', {daTaoKeGoodsId: daTaoKeGoodsId})
83 | },
84 | listCarousel: function () {
85 | return httpRequest.post('/carousel/listCarousel', {})
86 | },
87 | listMenus: function () {
88 | return httpRequest.post('/carousel/listMenus', {})
89 | },
90 | recommendCollocations: function (page) {
91 | return httpRequest.get('/mi/collocation/load_recommend', {page})
92 | },
93 | collocationsList: function (page, sex) {
94 | if (sex) {
95 | return httpRequest.get('/mi/collocation/list', {page: page, sex: sex})
96 | }
97 | return httpRequest.get('/mi/collocation/list', {page})
98 | },
99 | recommendCollocations2: function (page) {
100 | return httpRequest.get('/mi/collocation/load_recommend2', {page})
101 | },
102 | addCollocationAppreciate: function (collocationId) {
103 | return httpRequest.get('/collocation/add_appreciate', {collocationId})
104 | },
105 | cancelCollocationAppreciate: function (collocationId) {
106 | return httpRequest.get('/collocation/cancel_appreciate', {collocationId})
107 | },
108 | collocationSimpleDetail: function (collocationId) {
109 | return httpRequest.get('/mi/collocation/simple_detail', {collocationId})
110 | },
111 | collocationProduct: function (collocationId) {
112 | return httpRequest.get('/mi/collocation/product', {collocationId})
113 | },
114 | getPrivilegeLink: function (goodsId) {
115 | return httpRequest.get('/carousel/getPrivilegeLink', {goodsId: goodsId})
116 | },
117 | getActiveGoodsList: function (page, activeId) {
118 | return httpRequest.get('/carousel/getActiveGoodsList', {page: page,activeId: activeId})
119 | },
120 | getHalfGoodsList: function () {
121 | return httpRequest.get('/carousel/getHalfGoodsList', {})
122 | },
123 |
124 |
125 | getDongdongGoodsList: function () {
126 | return httpRequest.get('/carousel/getDongList', {})
127 | },
128 | }
129 |
130 |
--------------------------------------------------------------------------------
/pages/category/category.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 购物单-全好货任凭挑
5 |
6 |
7 |
8 | {{item.cname}}
13 |
14 |
15 |
17 |
18 |
19 |
20 | {{item.cname}}
21 |
22 |
23 |
24 |
25 |
27 |
28 | {{subItem.subcname}}
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
109 |
110 |
171 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "便宜买了",
3 | "appid" : "__UNI__B8F186D",
4 | "description" : "淘购物,在这便宜买了",
5 | "versionName" : "1.2",
6 | "versionCode" : 12,
7 | "transformPx" : false,
8 | "app-plus" : {
9 | /* 5+App特有相关 */
10 | "usingComponents" : true,
11 | "splashscreen" : {
12 | "alwaysShowBeforeRender" : true,
13 | "waiting" : true,
14 | "autoclose" : true,
15 | "delay" : 0
16 | },
17 | "modules" : {},
18 | /* 模块配置 */
19 | "distribute" : {
20 | /* 应用发布信息 */
21 | "android" : {
22 | /* android打包配置 */
23 | "permissions" : [
24 | "",
25 | "",
26 | "",
27 | "",
28 | "",
29 | ""
30 | ],
31 | "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
32 | "autoSdkPermissions" : false
33 | },
34 | "ios" : {
35 | "idfa" : false
36 | },
37 | /* ios打包配置 */
38 | "sdkConfigs" : {
39 | "ad" : {}
40 | },
41 | "icons" : {
42 | "android" : {
43 | "hdpi" : "unpackage/res/icons/72x72.png",
44 | "xhdpi" : "unpackage/res/icons/96x96.png",
45 | "xxhdpi" : "unpackage/res/icons/144x144.png",
46 | "xxxhdpi" : "unpackage/res/icons/192x192.png"
47 | },
48 | "ios" : {
49 | "appstore" : "unpackage/res/icons/1024x1024.png",
50 | "ipad" : {
51 | "app" : "unpackage/res/icons/76x76.png",
52 | "app@2x" : "unpackage/res/icons/152x152.png",
53 | "notification" : "unpackage/res/icons/20x20.png",
54 | "notification@2x" : "unpackage/res/icons/40x40.png",
55 | "proapp@2x" : "unpackage/res/icons/167x167.png",
56 | "settings" : "unpackage/res/icons/29x29.png",
57 | "settings@2x" : "unpackage/res/icons/58x58.png",
58 | "spotlight" : "unpackage/res/icons/40x40.png",
59 | "spotlight@2x" : "unpackage/res/icons/80x80.png"
60 | },
61 | "iphone" : {
62 | "app@2x" : "unpackage/res/icons/120x120.png",
63 | "app@3x" : "unpackage/res/icons/180x180.png",
64 | "notification@2x" : "unpackage/res/icons/40x40.png",
65 | "notification@3x" : "unpackage/res/icons/60x60.png",
66 | "settings@2x" : "unpackage/res/icons/58x58.png",
67 | "settings@3x" : "unpackage/res/icons/87x87.png",
68 | "spotlight@2x" : "unpackage/res/icons/80x80.png",
69 | "spotlight@3x" : "unpackage/res/icons/120x120.png"
70 | }
71 | }
72 | },
73 | "splashscreen" : {
74 | "android" : {
75 | "hdpi" : "/static/splash.9.png",
76 | "xhdpi" : "/static/splash.9.png",
77 | "xxhdpi" : "/static/splash.9.png"
78 | },
79 | "ios" : {
80 | "iphone" : {
81 | "retina55" : "/Users/huaan9527/Desktop/170券/引导页.png",
82 | "retina55l" : "/Users/huaan9527/Desktop/170券/引导页.png",
83 | "retina47" : "/Users/huaan9527/Desktop/170券/引导页.png",
84 | "retina47l" : "/Users/huaan9527/Desktop/170券/引导页.png",
85 | "portrait-896h@2x" : "/Users/huaan9527/Desktop/170券/引导页.png",
86 | "landscape-896h@3x" : "/Users/huaan9527/Desktop/170券/引导页.png"
87 | },
88 | "storyboard" : ""
89 | },
90 | "iosStyle" : "common",
91 | "androidStyle" : "default"
92 | }
93 | },
94 | "uniStatistics" : {
95 | "enable" : false
96 | },
97 | "nativePlugins" : {}
98 | },
99 | /* SDK配置 */
100 | "quickapp" : {},
101 | /* 快应用特有相关 */
102 | "mp-weixin" : {
103 | /* 小程序特有相关 */
104 | "usingComponents" : true,
105 | "appid" : "wx00b80a832b048560",
106 | "setting" : {
107 | "urlCheck" : true,
108 | "es6" : true,
109 | "postcss" : true,
110 | "minified" : true
111 | },
112 | "uniStatistics" : {
113 | "enable" : false
114 | }
115 | },
116 | "mp-qq" : {
117 | "appid" : "",
118 | "setting" : {
119 | "minified" : true,
120 | "es6" : true,
121 | "postcss" : true,
122 | "urlCheck" : true
123 | },
124 | "uniStatistics" : {
125 | "enable" : false
126 | }
127 | },
128 | "mp-toutiao" : {
129 | "appid" : "tt6cf61a4bf3cec299",
130 | "setting" : {
131 | "es6" : true,
132 | "postcss" : true,
133 | "minified" : true
134 | },
135 | "uniStatistics" : {
136 | "enable" : false
137 | }
138 | },
139 | "uniStatistics" : {
140 | "enable" : false
141 | },
142 | "h5" : {
143 | "uniStatistics" : {
144 | "enable" : false
145 | },
146 | "domain" : "http://m.szjx.top",
147 | "title" : "便宜买了",
148 | "router" : {
149 | "mode" : "hash"
150 | }
151 | },
152 | "mp-alipay" : {
153 | "uniStatistics" : {
154 | "enable" : false
155 | }
156 | },
157 | "mp-baidu" : {
158 | "uniStatistics" : {
159 | "enable" : false
160 | }
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/components/Refresh/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
12 |
13 |
14 |
15 | {{dropDownInfo.downText}}
16 |
17 |
18 |
19 | {{dropDownInfo.upText}}
20 |
21 |
22 |
23 | {{dropDownInfo.refreshText}}
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
191 |
192 |
193 |
264 |
--------------------------------------------------------------------------------
/components/ProductList/HorizontalLayout.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | TOP
8 | {{index+1}}
9 |
10 |
17 |
18 |
19 | {{item.dtitle}}
20 |
21 |
22 |
23 | 券后:
24 | {{item.actualPrice}}
25 |
26 | 劵{{item.couponPrice - 0}}元
27 |
28 |
29 | 30天销量:{{item.monthSales}}
30 | 领券量:{{item.couponReceiveNum}}
31 |
32 |
33 |
36 | 商铺: {{item.shopName?item.shopName:item.guideName}}
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
74 |
75 |
76 |
210 |
--------------------------------------------------------------------------------
/pages/index/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
28 |
29 | {{menu.label}}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | 源自购物单
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
60 |
61 |
62 |
204 |
205 |
347 |
--------------------------------------------------------------------------------
/pages/search/search.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | 搜索
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
48 |
49 | {{ keyword }}
50 |
51 |
52 |
53 |
57 |
58 | {{ keyword }}
59 |
60 | 当前搜热门搜索已隐藏
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
223 |
309 |
--------------------------------------------------------------------------------
/components/FabBtn/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
20 |
21 |
23 |
24 | {{ item.text }}
25 |
26 |
27 |
28 |
29 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
214 |
215 |
434 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 |
294 | Copyright (C)
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, write to the Free Software Foundation, Inc.,
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309 |
310 | Also add information on how to contact you by electronic and paper mail.
311 |
312 | If the program is interactive, make it output a short notice like this
313 | when it starts in an interactive mode:
314 |
315 | Gnomovision version 69, Copyright (C) year name of author
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 | This is free software, and you are welcome to redistribute it
318 | under certain conditions; type `show c' for details.
319 |
320 | The hypothetical commands `show w' and `show c' should show the appropriate
321 | parts of the General Public License. Of course, the commands you use may
322 | be called something other than `show w' and `show c'; they could even be
323 | mouse-clicks or menu items--whatever suits your program.
324 |
325 | You should also get your employer (if you work as a programmer) or your
326 | school, if any, to sign a "copyright disclaimer" for the program, if
327 | necessary. Here is a sample; alter the names:
328 |
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
331 |
332 | , 1 April 1989
333 | Ty Coon, President of Vice
334 |
335 | This General Public License does not permit incorporating your program into
336 | proprietary programs. If your program is a subroutine library, you may
337 | consider it more useful to permit linking proprietary applications with the
338 | library. If this is what you want to do, use the GNU Lesser General
339 | Public License instead of this License.
340 |
--------------------------------------------------------------------------------
/pages/product/product.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 都到这一步了,得买
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{detail.title}}
22 |
23 |
24 | 券后价
25 | ¥
26 | {{detail.actualPrice}}
27 | 原价 ¥{{detail.originalPrice}}
28 |
29 |
30 | 30天销量: {{detail.monthSales}}
31 | 当天销量: {{detail.dailySales}}
32 | 已领券量: {{detail.couponReceiveNum}}
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | {{detail.couponPrice}}
42 | 元优惠券
43 |
44 | {{detail.couponStartTime | formatDate}} ~ {{detail.couponEndTime | formatDate}}
45 |
46 |
47 | 立即领券
48 |
49 |
50 | 立即领券
51 |
52 |
53 |
54 |
55 |
56 | {{detail.desc}}
57 |
58 |
59 |
60 |
61 |
62 | 店铺: {{detail.shopName}}
63 |
64 |
65 |
66 | 宝贝描述:{{detail.descScore}}
67 | 卖家服务:{{detail.serviceScore}}
68 | 物流服务:{{detail.shipScore}}
69 |
70 |
71 |
72 |
73 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | 首页
93 |
94 |
95 |
96 |
97 |
98 |
99 |
103 |
104 |
105 |
106 |
109 |
110 |
111 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
156 |
157 |
158 |
159 |
366 |
367 |
771 |
--------------------------------------------------------------------------------