├── .editorconfig ├── README.md ├── bbgshop_admin ├── .babelrc ├── .editorconfig ├── .gitignore ├── .postcssrc.js ├── README.md ├── build │ ├── build.js │ ├── check-versions.js │ ├── logo.png │ ├── utils.js │ ├── vue-loader.conf.js │ ├── webpack.base.conf.js │ ├── webpack.dev.conf.js │ └── webpack.prod.conf.js ├── config │ ├── dev.env.js │ ├── index.js │ └── prod.env.js ├── index.html ├── package.json ├── src │ ├── App.vue │ ├── assets │ │ └── logo.png │ ├── components │ │ ├── Brand │ │ │ ├── BrandAddPage.vue │ │ │ └── BrandPage.vue │ │ ├── CartRules │ │ │ ├── CartRulesAdd.vue │ │ │ └── CartRulesPage.vue │ │ ├── Category │ │ │ ├── CategoryPage.vue │ │ │ └── CategoryUpdatePage.vue │ │ ├── Collage │ │ │ ├── CollageAdd.vue │ │ │ └── CollagePage.vue │ │ ├── Common │ │ │ ├── Navbar.vue │ │ │ └── Sidebar.vue │ │ ├── Coupon │ │ │ ├── AddCoupon.vue │ │ │ └── CouponPage.vue │ │ ├── DashboardPage.vue │ │ ├── Distribution │ │ │ ├── DistributionApply.vue │ │ │ ├── DistributionCash.vue │ │ │ ├── DistributionConfig.vue │ │ │ ├── DistributionDetail.vue │ │ │ └── DistributionUser.vue │ │ ├── Freight │ │ │ ├── AddFreightTem.vue │ │ │ └── FreightTemPage.vue │ │ ├── Goods │ │ │ ├── GoodsPage.vue │ │ │ └── GoodsUpdatePage.vue │ │ ├── Guide │ │ │ ├── AftersaleGuide.vue │ │ │ └── NoviceGuide.vue │ │ ├── Keywords │ │ │ └── KeywordSetting.vue │ │ ├── LoginPage.vue │ │ ├── LuckDraw │ │ │ ├── LuckDrawAdd.vue │ │ │ └── LuckDrawPage.vue │ │ ├── Order │ │ │ ├── AllOrderPage.vue │ │ │ └── OrderDetailPage.vue │ │ ├── Other │ │ │ ├── GoodsQuestionUpdate.vue │ │ │ └── LoopIndexPage.vue │ │ ├── ReportFrom │ │ │ └── ReportFrom.vue │ │ ├── Supplier │ │ │ └── SupplierPage.vue │ │ ├── Topic │ │ │ ├── TopicAddPage.vue │ │ │ └── TopicPage.vue │ │ ├── User │ │ │ ├── ComplaintPage.vue │ │ │ └── UserPage.vue │ │ ├── WelcomePage.vue │ │ └── bargain │ │ │ ├── BargainAdd.vue │ │ │ └── BargainPage.vue │ ├── config │ │ └── api.js │ ├── main.js │ ├── router │ │ └── index.js │ └── vendor │ │ ├── Blob.js │ │ └── Export2Excel.js ├── static │ ├── .gitkeep │ ├── images │ │ ├── 123.png │ │ ├── add.png │ │ ├── beibao_logo.png │ │ ├── dewei_logo.png │ │ ├── indexlogo.png │ │ └── logo13.png │ └── ship.css └── yarn.lock ├── bbgshop_miniprogram ├── .gitignore ├── LICENSE ├── README.md ├── app.js ├── app.json ├── app.wxss ├── config │ └── api.js ├── image │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── CorporateData │ │ ├── bbg_goods_simple.png │ │ ├── bbg_share_logo.png │ │ ├── dw_goods_simple.png │ │ ├── dw_share_logo.png │ │ ├── yt_goods_simple.png │ │ └── yt_share_logo.png │ ├── allgoods.png │ ├── arrows.png │ ├── backtop.png │ ├── cart.png │ ├── cart_select.png │ ├── collage_bange.png │ ├── coumse.png │ ├── dw_goods_simple1.png │ ├── dw_mini_logo.png │ ├── friend.png │ ├── halfstart.png │ ├── level.png │ ├── like.png │ ├── liked.png │ ├── lucky.png │ ├── member_bg.png │ ├── nomalstart.png │ ├── phonebing.png │ ├── qq.png │ ├── qzone.png │ ├── refund.png │ ├── selectstart.png │ ├── simple.png │ ├── tab_cart.png │ ├── tab_cart_select.png │ ├── tab_catelog.png │ ├── tab_catelog_select.png │ ├── tab_home.png │ ├── tab_home_select.png │ ├── tab_my.png │ ├── tab_my_select.png │ ├── tip.png │ ├── top.png │ ├── ucenter_address.png │ ├── ucenter_aftersaleguide.png │ ├── ucenter_bank.png │ ├── ucenter_bargain.png │ ├── ucenter_bingphone.png │ ├── ucenter_collage.png │ ├── ucenter_collect.png │ ├── ucenter_constrem.png │ ├── ucenter_coupon.png │ ├── ucenter_couponcenter.png │ ├── ucenter_distribution.png │ ├── ucenter_feedback.png │ ├── ucenter_footprint.png │ ├── ucenter_newsguides.png │ ├── ucenter_order.png │ └── weix.png ├── lib │ └── wxParse │ │ ├── html2json.js │ │ ├── htmlparser.js │ │ ├── showdown.js │ │ ├── wxDiscode.js │ │ ├── wxParse.js │ │ ├── wxParse.wxml │ │ └── wxParse.wxss ├── miniprogram.NOTE.md ├── pages │ ├── AwxChageUserInfoGet │ │ ├── wxChageUserInfoGet.js │ │ ├── wxChageUserInfoGet.json │ │ ├── wxChageUserInfoGet.wxml │ │ └── wxChageUserInfoGet.wxss │ ├── Resagin_bargain │ │ ├── Resagin_bargain.js │ │ ├── Resagin_bargain.json │ │ ├── Resagin_bargain.wxml │ │ └── Resagin_bargain.wxss │ ├── Resagin_bargain_goods │ │ ├── Resagin_bargain_goods.js │ │ ├── Resagin_bargain_goods.json │ │ ├── Resagin_bargain_goods.wxml │ │ └── Resagin_bargain_goods.wxss │ ├── brand │ │ ├── brand.js │ │ ├── brand.json │ │ ├── brand.wxml │ │ └── brand.wxss │ ├── brandDetail │ │ ├── brandDetail.js │ │ ├── brandDetail.json │ │ ├── brandDetail.wxml │ │ └── brandDetail.wxss │ ├── cart │ │ ├── cart.js │ │ ├── cart.json │ │ ├── cart.wxml │ │ └── cart.wxss │ ├── catalog │ │ ├── catalog.js │ │ ├── catalog.json │ │ ├── catalog.wxml │ │ └── catalog.wxss │ ├── category │ │ ├── category.js │ │ ├── category.json │ │ ├── category.wxml │ │ └── category.wxss │ ├── collageUserIn_pay │ │ ├── collageUserIn_pay.js │ │ ├── collageUserIn_pay.json │ │ ├── collageUserIn_pay.wxml │ │ └── collageUserIn_pay.wxss │ ├── collagecheckout │ │ ├── collagecheckout.js │ │ ├── collagecheckout.json │ │ ├── collagecheckout.wxml │ │ └── collagecheckout.wxss │ ├── collagegoods │ │ ├── collagegoods.js │ │ ├── collagegoods.json │ │ ├── collagegoods.wxml │ │ └── collagegoods.wxss │ ├── comment │ │ ├── comment.js │ │ ├── comment.json │ │ ├── comment.wxml │ │ └── comment.wxss │ ├── couponCenter │ │ ├── couponcenter.js │ │ ├── couponcenter.json │ │ ├── couponcenter.wxml │ │ └── couponcenter.wxss │ ├── goods │ │ ├── goods.js │ │ ├── goods.json │ │ ├── goods.wxml │ │ └── goods.wxss │ ├── hotGoods │ │ ├── hotGoods.js │ │ ├── hotGoods.json │ │ ├── hotGoods.wxml │ │ └── hotGoods.wxss │ ├── index │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── logs │ │ ├── logs.js │ │ ├── logs.json │ │ ├── logs.wxml │ │ └── logs.wxss │ ├── luckdraw │ │ ├── luckdraw.js │ │ ├── luckdraw.json │ │ ├── luckdraw.wxml │ │ └── luckdraw.wxss │ ├── luckdraw_all │ │ ├── luckdraw_all.js │ │ ├── luckdraw_all.json │ │ ├── luckdraw_all.wxml │ │ └── luckdraw_all.wxss │ ├── newGoods │ │ ├── newGoods.js │ │ ├── newGoods.json │ │ ├── newGoods.wxml │ │ └── newGoods.wxss │ ├── pay │ │ ├── pay.js │ │ ├── pay.json │ │ ├── pay.wxml │ │ └── pay.wxss │ ├── payResult │ │ ├── payResult.js │ │ ├── payResult.json │ │ ├── payResult.wxml │ │ └── payResult.wxss │ ├── search │ │ ├── search.js │ │ ├── search.json │ │ ├── search.wxml │ │ └── search.wxss │ ├── shopping │ │ ├── address │ │ │ ├── address.js │ │ │ ├── address.json │ │ │ ├── address.wxml │ │ │ └── address.wxss │ │ ├── addressAdd │ │ │ ├── addressAdd.js │ │ │ ├── addressAdd.json │ │ │ ├── addressAdd.wxml │ │ │ └── addressAdd.wxss │ │ ├── checkout │ │ │ ├── checkout.js │ │ │ ├── checkout.json │ │ │ ├── checkout.wxml │ │ │ └── checkout.wxss │ │ └── shcoupon │ │ │ ├── shcoupon.js │ │ │ ├── shcoupon.json │ │ │ ├── shcoupon.wxml │ │ │ └── shcoupon.wxss │ └── ucenter │ │ ├── AftersaleGuide │ │ ├── AftersaleGuide.js │ │ ├── AftersaleGuide.json │ │ ├── AftersaleGuide.wxml │ │ └── AftersaleGuide.wxss │ │ ├── NoviceGuide │ │ ├── NoviceGuide.js │ │ ├── NoviceGuide.json │ │ ├── NoviceGuide.wxml │ │ └── NoviceGuide.wxss │ │ ├── address │ │ ├── address.js │ │ ├── address.json │ │ ├── address.wxml │ │ └── address.wxss │ │ ├── addressAdd │ │ ├── addressAdd.js │ │ ├── addressAdd.json │ │ ├── addressAdd.wxml │ │ └── addressAdd.wxss │ │ ├── bankcard │ │ ├── bankcard.js │ │ ├── bankcard.json │ │ ├── bankcard.wxml │ │ └── bankcard.wxss │ │ ├── bingbankcard │ │ ├── bingbankcard.js │ │ ├── bingbankcard.json │ │ ├── bingbankcard.wxml │ │ └── bingbankcard.wxss │ │ ├── bingphone │ │ ├── bingphone.js │ │ ├── bingphone.json │ │ ├── bingphone.wxml │ │ └── bingphone.wxss │ │ ├── collage │ │ ├── collage.js │ │ ├── collage.json │ │ ├── collage.wxml │ │ └── collage.wxss │ │ ├── collect │ │ ├── collect.js │ │ ├── collect.json │ │ ├── collect.wxml │ │ └── collect.wxss │ │ ├── coupon │ │ ├── coupon.js │ │ ├── coupon.json │ │ ├── coupon.wxml │ │ └── coupon.wxss │ │ ├── customer │ │ ├── customer.js │ │ ├── customer.json │ │ ├── customer.wxml │ │ └── customer.wxss │ │ ├── distribution │ │ ├── distribution.js │ │ ├── distribution.json │ │ ├── distribution.wxml │ │ └── distribution.wxss │ │ ├── distribution_catch │ │ ├── distribution_catch.js │ │ ├── distribution_catch.json │ │ ├── distribution_catch.wxml │ │ └── distribution_catch.wxss │ │ ├── express │ │ ├── express.js │ │ ├── express.json │ │ ├── express.wxml │ │ └── express.wxss │ │ ├── feedback │ │ ├── feedback.js │ │ ├── feedback.json │ │ ├── feedback.wxml │ │ └── feedback.wxss │ │ ├── footprint │ │ ├── footprint.js │ │ ├── footprint.json │ │ ├── footprint.wxml │ │ └── footprint.wxss │ │ ├── index │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ │ ├── level_page │ │ ├── level_page.js │ │ ├── level_page.json │ │ ├── level_page.wxml │ │ └── level_page.wxss │ │ ├── luckdraw │ │ ├── luckdraw.js │ │ ├── luckdraw.json │ │ ├── luckdraw.wxml │ │ └── luckdraw.wxss │ │ ├── order │ │ ├── order.js │ │ ├── order.json │ │ ├── order.wxml │ │ └── order.wxss │ │ ├── orderDetail │ │ ├── orderDetail.js │ │ ├── orderDetail.json │ │ ├── orderDetail.wxml │ │ └── orderDetail.wxss │ │ └── ordercomment │ │ ├── ordercomment.js │ │ ├── ordercomment.json │ │ ├── ordercomment.wxml │ │ └── ordercomment.wxss ├── project.config.json ├── services │ ├── pay.js │ └── user.js ├── sitemap.json ├── static │ └── images │ │ ├── address-bg-bd.png │ │ ├── address_right.png │ │ ├── checkbox.png │ │ ├── clear_input.png │ │ ├── del-address.png │ │ ├── detail_back.png │ │ ├── detail_kefu.png │ │ ├── go.png │ │ ├── ic_menu_choice_nor.png │ │ ├── ic_menu_choice_pressed.png │ │ ├── ic_menu_me_nor.png │ │ ├── ic_menu_me_pressed.png │ │ ├── ic_menu_shoping_nor.png │ │ ├── ic_menu_shoping_pressed.png │ │ ├── ic_menu_sort_nor.png │ │ ├── ic_menu_sort_pressed.png │ │ ├── ic_menu_topic_nor.png │ │ ├── ic_menu_topic_pressed.png │ │ ├── icon_collect.png │ │ ├── icon_collect_checked.png │ │ ├── icon_error.png │ │ ├── icon_go_more.png │ │ ├── selnum.png │ │ └── wxpay.png └── utils │ ├── qiniuUploader.js │ └── util.js └── bbgshop_nodemaster ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── development.js ├── dwshop.sql ├── nginx.conf ├── nodemaster.NOTE.md ├── package.json ├── pm2.json ├── production.js ├── src ├── admin │ ├── config │ │ └── config.js │ ├── controller │ │ ├── auth.js │ │ ├── bargain.js │ │ ├── base.js │ │ ├── brand.js │ │ ├── cartRules.js │ │ ├── category.js │ │ ├── categoryUpdate.js │ │ ├── collage.js │ │ ├── coupon.js │ │ ├── crontab.js │ │ ├── currency.js │ │ ├── distribution.js │ │ ├── echarts.js │ │ ├── freight.js │ │ ├── goods.js │ │ ├── goodsUpdate.js │ │ ├── guide.js │ │ ├── index.js │ │ ├── keywords.js │ │ ├── luckdraw.js │ │ ├── order.js │ │ ├── pay.js │ │ ├── supplier.js │ │ ├── topic.js │ │ ├── upload.js │ │ └── user.js │ ├── logic │ │ ├── auth.js │ │ ├── brand.js │ │ ├── category.js │ │ ├── goods.js │ │ ├── index.js │ │ ├── order.js │ │ ├── topic.js │ │ ├── upload.js │ │ └── user.js │ ├── model │ │ ├── index.js │ │ ├── order.js │ │ └── order_express.js │ └── service │ │ ├── token.js │ │ └── weixin.js ├── api │ ├── config │ │ └── config.js │ ├── controller │ │ ├── address.js │ │ ├── auth.js │ │ ├── bankcard.js │ │ ├── bargain.js │ │ ├── base.js │ │ ├── bingphone.js │ │ ├── brand.js │ │ ├── cart.js │ │ ├── catalog.js │ │ ├── collage.js │ │ ├── collagegoods.js │ │ ├── collageuserin_pay.js │ │ ├── collect.js │ │ ├── comment.js │ │ ├── coupon.js │ │ ├── distribution.js │ │ ├── feedback.js │ │ ├── footprint.js │ │ ├── goods.js │ │ ├── guide.js │ │ ├── index.js │ │ ├── luckdraw.js │ │ ├── order.js │ │ ├── pay.js │ │ ├── region.js │ │ ├── search.js │ │ ├── topic.js │ │ ├── upload.js │ │ └── user.js │ ├── logic │ │ ├── address.js │ │ ├── auth.js │ │ ├── bingphone.js │ │ ├── brand.js │ │ ├── cart.js │ │ ├── catalog.js │ │ ├── collect.js │ │ ├── comment.js │ │ ├── footprint.js │ │ ├── goods.js │ │ ├── index.js │ │ ├── order.js │ │ ├── pay.js │ │ ├── region.js │ │ ├── search.js │ │ ├── topic.js │ │ └── user.js │ ├── model │ │ ├── bargain.js │ │ ├── cart.js │ │ ├── category.js │ │ ├── collect.js │ │ ├── footprint.js │ │ ├── goods.js │ │ ├── order.js │ │ ├── order_express.js │ │ ├── region.js │ │ └── shipper.js │ └── service │ │ ├── express.js │ │ ├── token.js │ │ └── weixin.js ├── common │ ├── bootstrap │ │ ├── master.js │ │ └── worker.js │ └── config │ │ ├── adapter.js │ │ ├── config.js │ │ ├── config.production.js │ │ ├── crontab.js │ │ ├── database.js │ │ ├── extend.js │ │ ├── middleware.js │ │ ├── router.js │ │ └── upload.js └── weixinpay │ └── index.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = false 9 | insert_final_newline = false -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # online-mall 2 | 3 | 一个全栈的在线商城示例,包括了管理后台的前端与后端,微信小程序和对应的接口后端 4 | 5 | ## 使用到的技术 6 | 7 | element-ui 组件库 8 | vant 组件库: https://youzan.github.io/vant/#/zh-CN/intro 9 | vue 10 | 11 | ## 后边要整个梳理一下,似乎还是挺有用的。 12 | -------------------------------------------------------------------------------- /bbgshop_admin/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /bbgshop_admin/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /bbgshop_admin/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | .vscode 11 | *.suo 12 | *.ntvs* 13 | *.njsproj 14 | *.sln 15 | -------------------------------------------------------------------------------- /bbgshop_admin/.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bbgshop_admin/build/build.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | require('./check-versions')() 3 | 4 | process.env.NODE_ENV = 'production' 5 | 6 | const ora = require('ora') 7 | const rm = require('rimraf') 8 | const path = require('path') 9 | const chalk = require('chalk') 10 | const webpack = require('webpack') 11 | const config = require('../config') 12 | const webpackConfig = require('./webpack.prod.conf') 13 | 14 | const spinner = ora('building for production...') 15 | spinner.start() 16 | 17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 18 | if (err) throw err 19 | webpack(webpackConfig, (err, stats) => { 20 | spinner.stop() 21 | if (err) throw err 22 | process.stdout.write(stats.toString({ 23 | colors: true, 24 | modules: false, 25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. 26 | chunks: false, 27 | chunkModules: false 28 | }) + '\n\n') 29 | 30 | if (stats.hasErrors()) { 31 | console.log(chalk.red(' Build failed with errors.\n')) 32 | process.exit(1) 33 | } 34 | 35 | console.log(chalk.cyan(' Build complete.\n')) 36 | console.log(chalk.yellow( 37 | ' Tip: built files are meant to be served over an HTTP server.\n' + 38 | ' Opening index.html over file:// won\'t work.\n' 39 | )) 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /bbgshop_admin/build/check-versions.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const chalk = require('chalk') 3 | const semver = require('semver') 4 | const packageConfig = require('../package.json') 5 | const shell = require('shelljs') 6 | 7 | function exec (cmd) { 8 | return require('child_process').execSync(cmd).toString().trim() 9 | } 10 | 11 | const versionRequirements = [ 12 | { 13 | name: 'node', 14 | currentVersion: semver.clean(process.version), 15 | versionRequirement: packageConfig.engines.node 16 | } 17 | ] 18 | 19 | if (shell.which('npm')) { 20 | versionRequirements.push({ 21 | name: 'npm', 22 | currentVersion: exec('npm --version'), 23 | versionRequirement: packageConfig.engines.npm 24 | }) 25 | } 26 | 27 | module.exports = function () { 28 | const warnings = [] 29 | 30 | for (let i = 0; i < versionRequirements.length; i++) { 31 | const mod = versionRequirements[i] 32 | 33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 34 | warnings.push(mod.name + ': ' + 35 | chalk.red(mod.currentVersion) + ' should be ' + 36 | chalk.green(mod.versionRequirement) 37 | ) 38 | } 39 | } 40 | 41 | if (warnings.length) { 42 | console.log('') 43 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 44 | console.log() 45 | 46 | for (let i = 0; i < warnings.length; i++) { 47 | const warning = warnings[i] 48 | console.log(' ' + warning) 49 | } 50 | 51 | console.log() 52 | process.exit(1) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /bbgshop_admin/build/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/build/logo.png -------------------------------------------------------------------------------- /bbgshop_admin/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const config = require('../config') 4 | const isProduction = process.env.NODE_ENV === 'production' 5 | const sourceMapEnabled = isProduction 6 | ? config.build.productionSourceMap 7 | : config.dev.cssSourceMap 8 | 9 | module.exports = { 10 | loaders: utils.cssLoaders({ 11 | sourceMap: sourceMapEnabled, 12 | extract: isProduction 13 | }), 14 | cssSourceMap: sourceMapEnabled, 15 | cacheBusting: config.dev.cacheBusting, 16 | transformToRequire: { 17 | video: ['src', 'poster'], 18 | source: 'src', 19 | img: 'src', 20 | image: 'xlink:href' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /bbgshop_admin/config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /bbgshop_admin/config/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // Template version: 1.3.1 3 | // see http://vuejs-templates.github.io/webpack for documentation. 4 | 5 | const path = require('path') 6 | 7 | module.exports = { 8 | dev: { 9 | 10 | // Paths 11 | assetsSubDirectory: 'static', 12 | assetsPublicPath: '/', 13 | proxyTable: {}, 14 | 15 | // Various Dev Server settings 16 | host: 'localhost', // can be overwritten by process.env.HOST 17 | // host: '0.0.0.0', 18 | port: 9080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined 19 | autoOpenBrowser: false, 20 | errorOverlay: true, 21 | notifyOnErrors: true, 22 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- 23 | 24 | 25 | /** 26 | * Source Maps 27 | */ 28 | 29 | // https://webpack.js.org/configuration/devtool/#development 30 | devtool: 'cheap-module-eval-source-map', 31 | 32 | // If you have problems debugging vue-files in devtools, 33 | // set this to false - it *may* help 34 | // https://vue-loader.vuejs.org/en/options.html#cachebusting 35 | cacheBusting: true, 36 | 37 | cssSourceMap: true 38 | }, 39 | 40 | build: { 41 | // Template for index.html 42 | index: path.resolve(__dirname, '../dist/index.html'), 43 | 44 | // Paths 45 | assetsRoot: path.resolve(__dirname, '../dist'), 46 | assetsSubDirectory: 'static', 47 | assetsPublicPath: './', 48 | 49 | /** 50 | * Source Maps 51 | */ 52 | 53 | productionSourceMap: true, 54 | // https://webpack.js.org/configuration/devtool/#production 55 | devtool: '#source-map', 56 | 57 | // Gzip off by default as many popular static hosts such as 58 | // Surge or Netlify already gzip all static assets for you. 59 | // Before setting to `true`, make sure to: 60 | // npm install --save-dev compression-webpack-plugin 61 | productionGzip: false, 62 | productionGzipExtensions: ['js', 'css'], 63 | 64 | // Run the build command with an extra argument to 65 | // View the bundle analyzer report after build finishes: 66 | // `npm run build --report` 67 | // Set to `true` or `false` to always turn it on or off 68 | bundleAnalyzerReport: process.env.npm_config_report 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /bbgshop_admin/config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /bbgshop_admin/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bbgshop", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project", 5 | "author": "yuanbon ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", 9 | "start": "npm run dev", 10 | "build": "node build/build.js" 11 | }, 12 | "dependencies": { 13 | "axios": "^0.18.1", 14 | "babel-helper-vue-jsx-merge-props": "^2.0.3", 15 | "babel-plugin-syntax-jsx": "^6.18.0", 16 | "babel-plugin-transform-vue-jsx": "^3.7.0", 17 | "cfonts": "^1.1.3", 18 | "file-saver": "^1.3.8", 19 | "vant": "2.1.8", 20 | "vue": "^2.5.2", 21 | "vue-axios": "^2.0.2", 22 | "vue-quill-editor": "^3.0.5", 23 | "vue-router": "^2.5.3", 24 | "vuex": "^2.3.1", 25 | "xlsx": "^0.13.3" 26 | }, 27 | "devDependencies": { 28 | "autoprefixer": "^7.1.2", 29 | "babel-core": "^6.22.1", 30 | "babel-helper-vue-jsx-merge-props": "^2.0.3", 31 | "babel-loader": "^7.1.1", 32 | "babel-plugin-syntax-jsx": "^6.18.0", 33 | "babel-plugin-transform-runtime": "^6.22.0", 34 | "babel-plugin-transform-vue-jsx": "^3.5.0", 35 | "babel-preset-env": "^1.3.2", 36 | "babel-preset-stage-2": "^6.22.0", 37 | "chalk": "^2.0.1", 38 | "copy-webpack-plugin": "^4.0.1", 39 | "css-loader": "^0.28.0", 40 | "extract-text-webpack-plugin": "^3.0.0", 41 | "file-loader": "^1.1.4", 42 | "friendly-errors-webpack-plugin": "^1.6.1", 43 | "html-webpack-plugin": "^2.30.1", 44 | "node-notifier": "^5.1.2", 45 | "optimize-css-assets-webpack-plugin": "^3.2.0", 46 | "ora": "^1.2.0", 47 | "portfinder": "^1.0.13", 48 | "postcss-import": "^11.0.0", 49 | "postcss-loader": "^2.0.8", 50 | "postcss-url": "^7.2.1", 51 | "rimraf": "^2.6.0", 52 | "script-loader": "^0.7.2", 53 | "semver": "^5.3.0", 54 | "shelljs": "^0.7.6", 55 | "uglifyjs-webpack-plugin": "^1.2.7", 56 | "url-loader": "^0.5.8", 57 | "vue-easytable": "^1.7.0", 58 | "vue-loader": "^13.3.0", 59 | "vue-style-loader": "^3.0.1", 60 | "vue-template-compiler": "^2.5.2", 61 | "webpack": "^3.6.0", 62 | "webpack-bundle-analyzer": "2.13.1", 63 | "webpack-dev-server": "2.9.1", 64 | "webpack-merge": "^4.1.0" 65 | }, 66 | "engines": { 67 | "node": ">= 6.0.0", 68 | "npm": ">= 3.0.0" 69 | }, 70 | "browserslist": [ 71 | "> 1%", 72 | "last 2 versions", 73 | "not ie <= 8" 74 | ] 75 | } 76 | -------------------------------------------------------------------------------- /bbgshop_admin/src/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 20 | 21 | 109 | -------------------------------------------------------------------------------- /bbgshop_admin/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/src/assets/logo.png -------------------------------------------------------------------------------- /bbgshop_admin/src/components/DashboardPage.vue: -------------------------------------------------------------------------------- 1 | 27 | 40 | 65 | -------------------------------------------------------------------------------- /bbgshop_admin/src/config/api.js: -------------------------------------------------------------------------------- 1 | const CorporateName = 'dw' 2 | const UploadAddress = '' 3 | export default { 4 | CorporateName, 5 | UploadAddress 6 | } 7 | -------------------------------------------------------------------------------- /bbgshop_admin/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Axios from 'axios' 3 | // 针对vue的axios封装吧 4 | import VueAxios from 'vue-axios' 5 | 6 | // import 'element-ui/lib/theme-default/index.css' 7 | // 引入样式 8 | // import 'vue-easytable/libs/themes-base/index.css' 9 | // 导入 table 和 分页组件 10 | // import {VTable,VPagination} from 'vue-easytable' 11 | 12 | // 富文本编辑器的相关文件 13 | import VueQuillEditor from 'vue-quill-editor' 14 | import 'quill/dist/quill.core.css' 15 | import 'quill/dist/quill.snow.css' 16 | import 'quill/dist/quill.bubble.css' 17 | // import 'layui/css/layui.css' 18 | // import 'layui/layui.js' 19 | // import Vant from 'vant'; 20 | // import 'vant/lib/vant-css/index.css'; 21 | 22 | // import E from 'wangeditor' 23 | // import echarts from 'echarts' 24 | 25 | import App from './App' 26 | import router from './router' 27 | 28 | //引入echarts 29 | // import echarts from 'echarts' 30 | 31 | // Vue.prototype.$echarts = echarts 32 | 33 | 34 | // import { vaptcha } from './config/v'; 35 | 36 | // 37 | 38 | // import 'https://cdn.vaptcha.com/v.js' 39 | // 注册到全局 40 | // Vue.component(VTable.name, VTable) 41 | // Vue.component(VPagination.name, VPagination) 42 | // 全局注入 43 | Vue.use(VueQuillEditor) /* { default global options } */ 44 | // 添加到Vue中, 45 | // This wrapper bind axios to Vue or this if you're using single file component. 46 | Vue.use(VueAxios, Axios); 47 | // Vue.use(Vant); 48 | // Vue.use(Element); 49 | // import api from '@/config/api'; 50 | 51 | // 直接在main中来处理token失效的问题,这个地方可以拿到router对象 52 | // token失效就直接删除 53 | router.beforeEach((to, from, next) => { 54 | let token = sessionStorage.getItem('token') || ''; 55 | // 配置接口信息 56 | Axios.defaults.baseURL = 'http://127.0.0.1:8360/admin/'; //本地测试接口 57 | // Axios.defaults.baseURL = 'https://xxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx.com/admin/';//易天数据接口 58 | Axios.defaults.headers.common['X-Nideshop-Token'] = token; 59 | // 如果token不存在切不是去login的就定向到login 60 | if (!token && to.name !== 'login') { 61 | console.log('重定向'); 62 | next({ 63 | path: '/login', 64 | // 机制,如果登录完成就重新定向到之前的页面,其实是一个跳转了 65 | query: { redirect: to.fullPath } 66 | }) 67 | } else { 68 | next() 69 | } 70 | }); 71 | 72 | Vue.config.productionTip = false 73 | 74 | /* eslint-disable no-new */ 75 | new Vue({ 76 | components: { App }, 77 | router, 78 | template: '' 79 | }).$mount('#app') 80 | -------------------------------------------------------------------------------- /bbgshop_admin/static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/.gitkeep -------------------------------------------------------------------------------- /bbgshop_admin/static/images/123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/123.png -------------------------------------------------------------------------------- /bbgshop_admin/static/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/add.png -------------------------------------------------------------------------------- /bbgshop_admin/static/images/beibao_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/beibao_logo.png -------------------------------------------------------------------------------- /bbgshop_admin/static/images/dewei_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/dewei_logo.png -------------------------------------------------------------------------------- /bbgshop_admin/static/images/indexlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/indexlogo.png -------------------------------------------------------------------------------- /bbgshop_admin/static/images/logo13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_admin/static/images/logo13.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/.gitignore -------------------------------------------------------------------------------- /bbgshop_miniprogram/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 tumobi(tumobi@163.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/app.js: -------------------------------------------------------------------------------- 1 | var util = require('./utils/util.js'); 2 | var api = require('./config/api.js'); 3 | var user = require('./services/user.js'); 4 | 5 | // 程序入口,第一次加载的时候调用 6 | App({ 7 | onLaunch: function () { 8 | //获取用户的登录信息 9 | console.log('action') 10 | user.checkLogin().then(res => { 11 | console.log('app login') 12 | // console.log(res) 13 | this.globalData.userInfo = wx.getStorageSync('userInfo'); 14 | this.globalData.token = wx.getStorageSync('token'); 15 | console.log(this.globalData.token) 16 | }).catch(() => { 17 | console.log('login faild') 18 | // this.globalData.token = wx.getStorageSync('token'); 19 | console.log(this.globalData.token) 20 | }); 21 | // //动态加载字体 22 | // wx.loadFontFace({ 23 | // family: 'GoodNight', 24 | // source: 'url("http://resource.bbgshop.com/font/%EF%BD%87%EF%BD%8F%EF%BD%8F%EF%BD%84%EF%BD%8E%EF%BD%89%EF%BD%87%EF%BD%88%EF%BD%94.ttf")', 25 | // success: function (res) { 26 | // console.log(res.status) // loaded 27 | // console.log(res) 28 | // }, 29 | // fail: function (res) { 30 | // console.log(res.status) // error 31 | // }, 32 | // complete: function (res) { 33 | // console.log(res.status); 34 | // } 35 | // }); 36 | }, 37 | 38 | globalData: { 39 | userInfo: { 40 | nickname: 'Hi,游客', 41 | username: 'login', 42 | avatar: 'http://yanxuan.nosdn.127.net/8945ae63d940cc42406c3f67019c5cb6.png' 43 | }, 44 | token: '', 45 | }, 46 | CorporateData: { 47 | name: 'bbg', 48 | title: '贝堡商城' 49 | } 50 | }) 51 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/1.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/2.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/3.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/4.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/5.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/bbg_goods_simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/bbg_goods_simple.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/bbg_share_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/bbg_share_logo.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/dw_goods_simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/dw_goods_simple.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/dw_share_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/dw_share_logo.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/yt_goods_simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/yt_goods_simple.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/CorporateData/yt_share_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/CorporateData/yt_share_logo.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/allgoods.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/allgoods.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/arrows.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/backtop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/backtop.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/cart.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/cart_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/cart_select.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/collage_bange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/collage_bange.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/coumse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/coumse.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/dw_goods_simple1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/dw_goods_simple1.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/dw_mini_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/dw_mini_logo.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/friend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/friend.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/halfstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/halfstart.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/level.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/like.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/liked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/liked.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/lucky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/lucky.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/member_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/member_bg.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/nomalstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/nomalstart.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/phonebing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/phonebing.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/qq.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/qzone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/qzone.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/refund.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/refund.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/selectstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/selectstart.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/simple.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_cart.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_cart_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_cart_select.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_catelog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_catelog.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_catelog_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_catelog_select.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_home.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_home_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_home_select.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_my.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_my.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tab_my_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tab_my_select.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/tip.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/top.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_address.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_aftersaleguide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_aftersaleguide.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_bank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_bank.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_bargain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_bargain.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_bingphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_bingphone.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_collage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_collage.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_collect.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_constrem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_constrem.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_coupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_coupon.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_couponcenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_couponcenter.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_distribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_distribution.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_feedback.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_footprint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_footprint.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_newsguides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_newsguides.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/ucenter_order.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/ucenter_order.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/image/weix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiuwww/online-mall/29ebbb120f9cf4cc8bc1c9668208449436f11d21/bbgshop_miniprogram/image/weix.png -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/AwxChageUserInfoGet/wxChageUserInfoGet.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "授权" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/AwxChageUserInfoGet/wxChageUserInfoGet.wxml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 微信官方接口调整,您的微信版本过低,请先升级微信版本 14 | Tip:拒绝授权会导致部分功能缺失 ! 15 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/AwxChageUserInfoGet/wxChageUserInfoGet.wxss: -------------------------------------------------------------------------------- 1 | /* pages/AwxChageUserInfoGet/wxChageUserInfoGet.wxss */ 2 | page{ 3 | position: fixed; 4 | } 5 | .tip { 6 | font-size: 24rpx; 7 | text-align: center; 8 | margin-top: 40vh; 9 | } 10 | .tiptwo { 11 | font-size: 20rpx; 12 | color: #757575; 13 | text-align: center; 14 | margin-top: 50vh; 15 | } 16 | .login_box_img_area { 17 | position: absolute; 18 | display: flex; 19 | justify-content: center; 20 | align-items: center; 21 | left: 0; 22 | width: 100vw; 23 | top: 18vh; 24 | /* border: 1px solid black; */ 25 | } 26 | .login_box_img { 27 | /* position: absolute; */ 28 | /* border: 1px solid black; */ 29 | width: 108rpx; 30 | height: 108rpx; 31 | } 32 | .login_box_imgtext { 33 | padding: 0 10rpx; 34 | font-size: 32rpx; 35 | font-weight: bold; 36 | } 37 | .login_tip_area { 38 | /* border: 1px solid black; */ 39 | position: fixed; 40 | top: 30vh; 41 | left: 0; 42 | width: 100vw; 43 | height: 88rpx; 44 | line-height: 44rpx; 45 | text-align: center; 46 | } 47 | .login_btn { 48 | position: fixed; 49 | width: 80vw; 50 | border-radius: 15rpx; 51 | font-size: 26rpx; 52 | top: calc(30vh + 88rpx + 18rpx); 53 | left: 10vw; 54 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/Resagin_bargain/Resagin_bargain.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "砍价" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/Resagin_bargain_goods/Resagin_bargain_goods.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "砍价" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brand/brand.js: -------------------------------------------------------------------------------- 1 | var util = require('../../utils/util.js'); 2 | var api = require('../../config/api.js'); 3 | var app = getApp(); 4 | Page({ 5 | data: { 6 | brandList: [], 7 | page: 1, 8 | size: 10, 9 | totalPages: 1 10 | }, 11 | onLoad: function (options) { 12 | // 页面初始化 options为页面跳转所带来的参数 13 | this.getBrandList(); 14 | }, 15 | getBrandList: function () { 16 | wx.showLoading({ 17 | title: '加载中...', 18 | }); 19 | let that = this; 20 | util.request(api.BrandList, { page: that.data.page, size: that.data.size }).then(function (res) { 21 | if (res.errno === 0) { 22 | that.setData({ 23 | brandList: that.data.brandList.concat(res.data.data), 24 | totalPages: res.data.totalPages 25 | }); 26 | } 27 | wx.hideLoading(); 28 | }); 29 | }, 30 | onReachBottom (){ 31 | if (this.data.totalPages > this.data.page) { 32 | this.setData({ 33 | page: this.data.page + 1 34 | }); 35 | } else { 36 | return false; 37 | } 38 | 39 | this.getBrandList(); 40 | }, 41 | onReady: function () { 42 | 43 | }, 44 | onShow: function () { 45 | // 页面显示 46 | 47 | }, 48 | onHide: function () { 49 | // 页面隐藏 50 | 51 | }, 52 | onUnload: function () { 53 | // 页面关闭 54 | 55 | } 56 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brand/brand.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brand/brand.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{item.name}} 10 | | 11 | {{item.floor_price}}元起 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brand/brand.wxss: -------------------------------------------------------------------------------- 1 | .brand-list .item{ 2 | display: block; 3 | width: 750rpx; 4 | height: 416rpx; 5 | position: relative; 6 | margin-bottom: 4rpx; 7 | } 8 | 9 | .brand-list .item .img-bg{ 10 | position: absolute; 11 | left:0; 12 | top:0; 13 | z-index: 0; 14 | width: 750rpx; 15 | height: 417rpx; 16 | overflow: hidden; 17 | } 18 | 19 | .brand-list .item .img-bg image{ 20 | width: 750rpx; 21 | height: 416rpx; 22 | } 23 | 24 | .brand-list .item .txt-box{ 25 | position: absolute; 26 | left:0; 27 | top:0; 28 | display: table; 29 | z-index: 0; 30 | width: 750rpx; 31 | height: 417rpx; 32 | } 33 | 34 | .brand-list .item .line{ 35 | display: table-cell; 36 | vertical-align: middle; 37 | text-align: center; 38 | height: 63rpx; 39 | line-height: 63rpx; 40 | } 41 | 42 | .brand-list .item .line text{ 43 | font-size: 35rpx; 44 | font-weight: 700; 45 | text-shadow: 1rpx 1rpx rgba(0,0,0,.32); 46 | color: #fff; 47 | } 48 | 49 | .brand-list .item .line .s{ 50 | padding: 0 10rpx; 51 | font-size: 40rpx; 52 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brandDetail/brandDetail.js: -------------------------------------------------------------------------------- 1 | var util = require('../../utils/util.js'); 2 | var api = require('../../config/api.js'); 3 | 4 | 5 | var app = getApp(); 6 | 7 | Page({ 8 | data: { 9 | id: 0, 10 | brand: {}, 11 | goodsList: [], 12 | page: 1, 13 | size: 1000 14 | }, 15 | onLoad: function (options) { 16 | // 页面初始化 options为页面跳转所带来的参数 17 | var that = this; 18 | that.setData({ 19 | id: parseInt(options.id) 20 | }); 21 | this.getBrand(); 22 | }, 23 | getBrand: function () { 24 | let that = this; 25 | util.request(api.BrandDetail, { id: that.data.id }).then(function (res) { 26 | if (res.errno === 0) { 27 | that.setData({ 28 | brand: res.data.brand 29 | }); 30 | 31 | that.getGoodsList(); 32 | } 33 | }); 34 | }, 35 | getGoodsList() { 36 | var that = this; 37 | 38 | util.request(api.GoodsList, { brandId: that.data.id, page: that.data.page, size: that.data.size}) 39 | .then(function (res) { 40 | if (res.errno === 0) { 41 | that.setData({ 42 | goodsList: res.data.goodsList 43 | }); 44 | } 45 | }); 46 | }, 47 | onReady: function () { 48 | // 页面渲染完成 49 | 50 | }, 51 | onShow: function () { 52 | // 页面显示 53 | 54 | }, 55 | onHide: function () { 56 | // 页面隐藏 57 | 58 | }, 59 | onUnload: function () { 60 | // 页面关闭 61 | 62 | } 63 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brandDetail/brandDetail.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brandDetail/brandDetail.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{brand.name}} 8 | 9 | 10 | 11 | 12 | 13 | {{brand.simple_desc}} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | {{iitem.name}} 23 | ¥{{iitem.retail_price}} 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/brandDetail/brandDetail.wxss: -------------------------------------------------------------------------------- 1 | page{ 2 | background: #f4f4f4; 3 | } 4 | .brand-info .name{ 5 | width: 100%; 6 | height: 290rpx; 7 | position: relative; 8 | } 9 | 10 | .brand-info .img{ 11 | position: absolute; 12 | top:0; 13 | left:0; 14 | width: 100%; 15 | height: 290rpx; 16 | } 17 | 18 | .brand-info .info-box{ 19 | position: absolute; 20 | top:0; 21 | left:0; 22 | width: 100%; 23 | height: 290rpx; 24 | text-align: center; 25 | display: flex; 26 | justify-content: center; 27 | align-items: center; 28 | } 29 | 30 | .brand-info .info{ 31 | display: block; 32 | } 33 | 34 | .brand-info .txt{ 35 | display: block; 36 | height: 37.5rpx; 37 | font-size: 37.5rpx; 38 | color: #fff; 39 | } 40 | 41 | .brand-info .line{ 42 | margin: 0 auto; 43 | margin-top: 16rpx; 44 | display: block; 45 | height: 2rpx; 46 | width: 145rpx; 47 | background: #fff; 48 | } 49 | 50 | .brand-info .desc{ 51 | background: #fff; 52 | width: 100%; 53 | height: auto; 54 | overflow: hidden; 55 | padding: 41.5rpx 31.25rpx; 56 | font-size: 30rpx; 57 | color: #666; 58 | line-height: 41.5rpx; 59 | text-align: center; 60 | } 61 | 62 | .cate-item .b{ 63 | width: 750rpx; 64 | height: auto; 65 | overflow: hidden; 66 | border-top: 1rpx solid #f4f4f4; 67 | margin-top: 20rpx; 68 | } 69 | 70 | .cate-item .b .item{ 71 | float: left; 72 | background: #fff; 73 | width: 375rpx; 74 | padding-bottom: 33.333rpx; 75 | border-bottom: 1rpx solid #f4f4f4; 76 | height: auto; 77 | overflow: hidden; 78 | text-align: center; 79 | } 80 | 81 | .cate-item .b .item-b{ 82 | border-right: 1rpx solid #f4f4f4; 83 | } 84 | 85 | .cate-item .item .img{ 86 | margin-top: 10rpx; 87 | width: 302rpx; 88 | height: 302rpx; 89 | } 90 | 91 | .cate-item .item .name{ 92 | display: block; 93 | width: 365.625rpx; 94 | height: 35rpx; 95 | padding: 0 20rpx; 96 | overflow: hidden; 97 | margin: 11.5rpx 0 22rpx 0; 98 | text-align: center; 99 | font-size: 30rpx; 100 | color: #333; 101 | } 102 | 103 | .cate-item .item .price{ 104 | display: block; 105 | width: 365.625rpx; 106 | height: 30rpx; 107 | text-align: center; 108 | font-size: 30rpx; 109 | color: #b4282d; 110 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/cart/cart.json: -------------------------------------------------------------------------------- 1 | { 2 | "backgroundColor": "#f4f4f4" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/cart/cart.wxml: -------------------------------------------------------------------------------- 1 | 2 | 7 |
8 | 9 | 10 | 11 | 去添加点什么吧 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | {{item.goods_name}} 20 | {{item.goods_specifition_name_value}} 21 | x{{item.number}} 22 | ¥ 23 | {{item.retail_price}} 24 | 25 | 26 | 27 | - 28 | 29 | + 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 共 {{cartGoods.length}} 件商品 38 | 39 | 40 | 全选({{cartTotal.checkedGoodsCount}}) 41 | ¥ 42 | {{!isEditCart ? cartTotal.checkedGoodsAmount : ''}} 43 | 44 | 45 | {{!isEditCart ? '编辑' : '完成'}} 46 | 删除({{cartTotal.checkedGoodsCount}}) 47 | 下单 48 | 49 | 50 | 51 | 52 |
53 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/catalog/catalog.js: -------------------------------------------------------------------------------- 1 | var util = require('../../utils/util.js'); 2 | var api = require('../../config/api.js'); 3 | 4 | Page({ 5 | data: { 6 | // navList: [], 7 | // categoryList: [], 8 | // currentCategory: {}, 9 | allcatelog: [], 10 | bindid: 0, 11 | selectindex: 0, 12 | scrollLeft: 0, 13 | scrollTop: 0, 14 | goodsCount: 0, 15 | scrollHeight: 0, 16 | showSkeleton: false, 17 | }, 18 | onLoad: function (options) { 19 | // this.getCatalog(); 20 | wx.showLoading({ 21 | title: '获取中...', 22 | mask: true, 23 | }) 24 | this.getAllCatelog(0) 25 | }, 26 | getAllCatelog(typec){ 27 | let that = this 28 | util.request(api.getAllCatelog,'POST').then(function (res) { 29 | console.log(res) 30 | that.setData({ 31 | allcatelog: res.data.main_catelog, 32 | bindid: res.data.main_catelog[that.data.selectindex].id, 33 | activelist: res.data.main_catelog[that.data.selectindex] 34 | }) 35 | wx.hideLoading() 36 | if (typec == 1){ 37 | wx.stopPullDownRefresh() 38 | wx.showToast({ 39 | title: '更新成功 !', 40 | icon: 'none', 41 | duration: 500, 42 | mask: true, 43 | }) 44 | } 45 | }) 46 | }, 47 | //下拉刷新 48 | onPullDownRefresh: function () { 49 | let that = this 50 | // if(op == '0'){ 51 | // this.checkauth('1') 52 | wx.showLoading({ 53 | title: '更新中...', 54 | mask: true, 55 | }) 56 | that.getAllCatelog(1) 57 | // that.getCatalog(); 58 | }, 59 | onReady: function () { 60 | // 页面渲染完成 61 | }, 62 | onShow: function () { 63 | // 页面显示 64 | }, 65 | onHide: function () { 66 | // 页面隐藏 67 | }, 68 | onUnload: function () { 69 | // 页面关闭 70 | }, 71 | JumpUrl(e) { 72 | let url = e.currentTarget.dataset.url 73 | let title = '商品分类' 74 | wx.navigateTo({ 75 | url: url + '&title=' + title, 76 | success: function (res) { }, 77 | fail: function (res) { }, 78 | complete: function (res) { }, 79 | }) 80 | }, 81 | switchCate: function (event) { 82 | var that = this; 83 | var currentTarget = event.currentTarget; 84 | that.setData({ 85 | bindid: event.currentTarget.dataset.id, 86 | selectindex: event.currentTarget.dataset.index, 87 | }) 88 | for (let j = 0; j < that.data.allcatelog.length; j++) { 89 | if (event.currentTarget.dataset.id == that.data.allcatelog[j].id){ 90 | that.setData({ 91 | activelist: that.data.allcatelog[j] 92 | }) 93 | } 94 | } 95 | } 96 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/catalog/catalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "enablePullDownRefresh": true 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/catalog/catalog.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{item.name}} 5 | 6 | 7 | 11 | 12 | 13 | {{activelist.name}}分类 14 | 15 | 16 | 17 | 18 | 19 | {{iitem.name}} 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/catalog/catalog.wxss: -------------------------------------------------------------------------------- 1 | page { 2 | height: 100%; 3 | } 4 | 5 | .container { 6 | background: #f9f9f9; 7 | height: 100%; 8 | width: 100%; 9 | display: flex; 10 | flex-direction: column; 11 | } 12 | 13 | 14 | .catalog { 15 | flex: 1; 16 | width: 100%; 17 | background: #fff; 18 | display: flex; 19 | border-top: 1px solid #fafafa; 20 | } 21 | 22 | .catalog .nav { 23 | width: 162rpx; 24 | height: 100%; 25 | } 26 | 27 | .catalog .nav .item { 28 | text-align: center; 29 | line-height: 90rpx; 30 | width: 162rpx; 31 | height: 90rpx; 32 | color: #333; 33 | font-size: 28rpx; 34 | border-left: 6rpx solid #fff; 35 | } 36 | 37 | .catalog .nav .item.active { 38 | color: #ff990f; 39 | font-size: 34.5rpx; 40 | font-weight: bold; 41 | /* padding-left: 12rpx; */ 42 | border-left: 6rpx solid #ff990f; 43 | /* border-bottom: 6rpx solid #ff990f; */ 44 | /* border-top: 6rpx solid #ff990f; */ 45 | } 46 | 47 | .catalog .cate { 48 | border-left: 1px solid #fafafa; 49 | flex: 1; 50 | height: 100%; 51 | padding: 0 30rpx 0 30rpx; 52 | } 53 | 54 | .banner { 55 | display: block; 56 | height: 222rpx; 57 | width: 100%; 58 | position: relative; 59 | } 60 | 61 | .banner .image { 62 | position: absolute; 63 | top: 30rpx; 64 | left: 0; 65 | border-radius: 4rpx; 66 | height: 192rpx; 67 | width: 100%; 68 | } 69 | 70 | .banner .txt { 71 | position: absolute; 72 | top: 30rpx; 73 | text-align: center; 74 | color: #fff; 75 | font-size: 28rpx; 76 | left: 0; 77 | height: 192rpx; 78 | line-height: 192rpx; 79 | width: 100%; 80 | } 81 | 82 | .catalog .hd { 83 | height: 108rpx; 84 | width: 100%; 85 | display: flex; 86 | justify-content: center; 87 | align-items: center; 88 | } 89 | 90 | .catalog .hd .txt { 91 | font-size: 24rpx; 92 | text-align: center; 93 | color: #333; 94 | padding: 0 10rpx; 95 | width: auto; 96 | } 97 | 98 | .catalog .hd .line { 99 | width: 40rpx; 100 | height: 1px; 101 | background: #d9d9d9; 102 | } 103 | 104 | .catalog .bd { 105 | height: auto; 106 | width: 100%; 107 | overflow: hidden; 108 | } 109 | 110 | .catalog .bd .iitem { 111 | display: block; 112 | float: left; 113 | height: 216rpx; 114 | width: 144rpx; 115 | margin-right: 34rpx; 116 | } 117 | 118 | .catalog .bd .iitem.last { 119 | margin-right: 0; 120 | } 121 | 122 | .catalog .bd .iitem .icon { 123 | height: 144rpx; 124 | width: 144rpx; 125 | } 126 | 127 | .catalog .bd .iitem .txt { 128 | display: block; 129 | text-align: center; 130 | font-size: 24rpx; 131 | color: #333; 132 | height: 72rpx; 133 | width: 144rpx; 134 | } 135 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/category/category.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "商品分类", 3 | "enablePullDownRefresh": true 4 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/collageUserIn_pay/collageUserIn_pay.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "拼团支付" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/collagecheckout/collagecheckout.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "拼团" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/collagegoods/collagegoods.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "拼团" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/comment/comment.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "商品评论" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/comment/comment.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 全部({{allCount.length}}) 5 | 6 | 7 | 有图({{hasPicCount.length}}) 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {{item.user_info.nickname}} 16 | 17 | {{item.add_time}} 18 | 19 | {{item.content}} 20 | 21 | 22 | 23 | 24 | {{item.skuvalue}} 25 | {{item.score}} ' 26 | 27 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/couponCenter/couponcenter.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "领券中心" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/goods/goods.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "商品详情" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/hotGoods/hotGoods.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "人气推荐" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/hotGoods/hotGoods.wxml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 综合 17 | 18 | 19 | 价格 20 | 21 | 22 | 分类 23 | 24 | 25 | 26 | {{item.name}} 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | {{iitem.name}} 35 | ¥{{iitem.retail_price}} 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "enablePullDownRefresh": true 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/logs/logs.js: -------------------------------------------------------------------------------- 1 | //logs.js 2 | var util = require('../../utils/util.js') 3 | Page({ 4 | data: { 5 | logs: [] 6 | }, 7 | onLoad: function () { 8 | this.setData({ 9 | logs: (wx.getStorageSync('logs') || []).map(function (log) { 10 | return util.formatTime(new Date(log)) 11 | }) 12 | }) 13 | } 14 | }) 15 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/logs/logs.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看启动日志" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/logs/logs.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{index + 1}}. {{log}} 5 | 6 | 7 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/logs/logs.wxss: -------------------------------------------------------------------------------- 1 | .log-list { 2 | display: flex; 3 | flex-direction: column; 4 | padding: 40rpx; 5 | } 6 | .log-item { 7 | margin: 10rpx; 8 | } 9 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/luckdraw/luckdraw.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "抽奖详情" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/luckdraw_all/luckdraw_all.js: -------------------------------------------------------------------------------- 1 | // pages/luckdraw_all/luckdraw_all.js 2 | const util = require('../../utils/util.js'); 3 | const api = require('../../config/api.js'); 4 | const user = require('../../services/user.js'); 5 | Page({ 6 | 7 | /** 8 | * 页面的初始数据 9 | */ 10 | data: { 11 | id: 0 , 12 | all_join:[], 13 | }, 14 | 15 | /** 16 | * 生命周期函数--监听页面加载 17 | */ 18 | onLoad: function (options) { 19 | console.log(options) 20 | if (options){ 21 | this.setData({ 22 | id: options.id 23 | }) 24 | this.selectAllJoin() 25 | } 26 | }, 27 | selectAllJoin(){ 28 | let that = this 29 | util.request(api.SelectAllJoiner,{ 30 | id: that.data.id 31 | },'POST').then(res => { 32 | console.log(res) 33 | if(res.errno === 0){ 34 | that.setData({ 35 | all_join: res.data 36 | }) 37 | } 38 | }) 39 | }, 40 | /** 41 | * 生命周期函数--监听页面初次渲染完成 42 | */ 43 | onReady: function () { 44 | 45 | }, 46 | 47 | /** 48 | * 生命周期函数--监听页面显示 49 | */ 50 | onShow: function () { 51 | 52 | }, 53 | 54 | /** 55 | * 生命周期函数--监听页面隐藏 56 | */ 57 | onHide: function () { 58 | 59 | }, 60 | 61 | /** 62 | * 生命周期函数--监听页面卸载 63 | */ 64 | onUnload: function () { 65 | 66 | }, 67 | 68 | /** 69 | * 页面相关事件处理函数--监听用户下拉动作 70 | */ 71 | onPullDownRefresh: function () { 72 | 73 | }, 74 | 75 | /** 76 | * 页面上拉触底事件的处理函数 77 | */ 78 | onReachBottom: function () { 79 | 80 | }, 81 | 82 | /** 83 | * 用户点击右上角分享 84 | */ 85 | onShareAppMessage: function () { 86 | 87 | } 88 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/luckdraw_all/luckdraw_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "抽奖参与者" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/luckdraw_all/luckdraw_all.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/luckdraw_all/luckdraw_all.wxss: -------------------------------------------------------------------------------- 1 | /* pages/luckdraw_all/luckdraw_all.wxss */ 2 | page { 3 | padding: 10rpx; 4 | } 5 | .img { 6 | width: 8vw; 7 | height: 8vw; 8 | margin: calc((80vw - 20rpx) / 85); 9 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/newGoods/newGoods.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "新品首发" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/newGoods/newGoods.wxml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 综合 17 | 18 | 19 | 价格 20 | 21 | 22 | 分类 23 | 24 | 25 | 26 | {{item.name}} 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | {{iitem.name}} 35 | ¥{{iitem.retail_price}} 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/pay/pay.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "支付订单" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/pay/pay.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 订单编号 4 | {{orderId}} 5 | 6 | 7 | 订单金额 8 | {{actualPrice}}元 9 | 10 | 11 | 请选择支付方式 12 | 13 | 23 | 24 | 25 | 26 | 微信支付 27 | 28 | 29 | 30 | 小程序只支持微信支付,如需其它支付方式,请在网页版支付 31 | 32 | 33 | 支付 34 | 35 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/payResult/payResult.js: -------------------------------------------------------------------------------- 1 | var util = require('../../utils/util.js'); 2 | var api = require('../../config/api.js'); 3 | const pay = require('../../services/pay.js'); 4 | 5 | var app = getApp(); 6 | Page({ 7 | data: { 8 | // status: true, 9 | paystatues:true, 10 | orderId: 0 11 | }, 12 | onLoad: function (options) { 13 | var that = this 14 | // 页面初始化 options为页面跳转所带来的参数 15 | console.log(options) 16 | that.setData({ 17 | orderId: options.orderId || 0, 18 | paystatues: options.status 19 | }) 20 | console.log(that.data.paystatues) 21 | 22 | }, 23 | onReady: function () { 24 | 25 | }, 26 | onShow: function () { 27 | // 页面显示 28 | 29 | }, 30 | onHide: function () { 31 | // 页面隐藏 32 | 33 | }, 34 | onUnload: function () { 35 | // 页面关闭 36 | 37 | }, 38 | seeorder() { 39 | wx.redirectTo({ 40 | url: '/pages/ucenter/order/order', 41 | success: function(res) {}, 42 | fail: function(res) {}, 43 | complete: function(res) {}, 44 | }) 45 | }, 46 | content() { 47 | wx.switchTab({ 48 | url: '/pages/index/index', 49 | success: function(res) {}, 50 | fail: function(res) {}, 51 | complete: function(res) {}, 52 | }) 53 | }, 54 | payOrder() { 55 | pay.payOrder(this.data.orderId).then(res => { 56 | wx.redirectTo({ 57 | url: '/pages/payResult/payResult?status=true', 58 | }) 59 | this.setData({ 60 | paystatues: true 61 | }); 62 | }).catch(res => { 63 | util.showErrorToast('支付失败'); 64 | }); 65 | } 66 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/payResult/payResult.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "付款结果" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/payResult/payResult.wxml: -------------------------------------------------------------------------------- 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 |
-------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/payResult/payResult.wxss: -------------------------------------------------------------------------------- 1 | page { 2 | min-height: 100%; 3 | width: 100%; 4 | background: #fff; 5 | } 6 | 7 | .container { 8 | height: 100%; 9 | background: #fff; 10 | } 11 | 12 | .pay-result { 13 | background: #fff; 14 | } 15 | 16 | .pay-result .msg { 17 | text-align: center; 18 | margin: 100rpx auto; 19 | font-size: 36rpx; 20 | } 21 | .pay-result .tips { 22 | text-align: center; 23 | margin: 100rpx auto; 24 | font-size: 20rpx; 25 | } 26 | 27 | .pay-result .btns { 28 | display: flex; 29 | align-items: center; 30 | justify-content: center; 31 | font-size: 29rpx; 32 | color: #444; 33 | } 34 | 35 | .pay-result .btn { 36 | text-align: center; 37 | height: 80rpx; 38 | margin: 0 20rpx; 39 | width: 200rpx; 40 | line-height: 78rpx; 41 | border: 1px solid #868686; 42 | color: #000000; 43 | border-radius: 5rpx; 44 | } 45 | 46 | .pay-result .error .msg { 47 | color: #F56C6C; 48 | } 49 | 50 | .pay-result .success .msg { 51 | color: #67C23A; 52 | } 53 | 54 | .pay-result .error,.success .tips .p { 55 | font-size: 24rpx; 56 | line-height: 42rpx; 57 | text-align: center; 58 | } 59 | 60 | .pay-result .error,.success .tips .p { 61 | line-height: 42rpx; 62 | text-align: center; 63 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/search/search.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "商品搜索" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/address/address.js: -------------------------------------------------------------------------------- 1 | var util = require('../../../utils/util.js'); 2 | var api = require('../../../config/api.js'); 3 | var app = getApp(); 4 | 5 | Page({ 6 | data: { 7 | addressList: [], 8 | }, 9 | onLoad: function (options) { 10 | // 页面初始化 options为页面跳转所带来的参数 11 | this.getAddressList(); 12 | }, 13 | onReady: function () { 14 | // 页面渲染完成 15 | }, 16 | onShow: function () { 17 | // 页面显示 18 | this.onLoad() 19 | }, 20 | getAddressList (){ 21 | let that = this; 22 | util.request(api.AddressList).then(function (res) { 23 | if (res.errno === 0) { 24 | that.setData({ 25 | addressList: res.data 26 | }); 27 | } 28 | }); 29 | }, 30 | addressAddOrUpdate (event) { 31 | console.log(event) 32 | wx.navigateTo({ 33 | url: '/pages/shopping/addressAdd/addressAdd?id=' + event.currentTarget.dataset.addressId 34 | }) 35 | }, 36 | selectAddress(event){ 37 | console.log(event.currentTarget.dataset.addressId); 38 | 39 | try { 40 | wx.setStorageSync('addressId', event.currentTarget.dataset.addressId); 41 | } catch (e) { 42 | 43 | } 44 | 45 | //选择该收货地址 46 | // wx.redirectTo({ 47 | // url: '/pages/shopping/checkout/checkout' 48 | // }) 49 | wx.navigateBack({ 50 | delta: 1, 51 | }) 52 | }, 53 | onHide: function () { 54 | // 页面隐藏 55 | }, 56 | onUnload: function () { 57 | // 页面关闭 58 | } 59 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/address/address.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "收货地址" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/address/address.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{item.name}} 6 | 默认 7 | 8 | 9 | {{item.mobile}} 10 | {{item.full_region + item.address}} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 收货地址在哪里 20 | 21 | 22 | 新建 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/addressAdd/addressAdd.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "添加收货地址" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/addressAdd/addressAdd.wxml: -------------------------------------------------------------------------------- 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 | {{item.name}} 29 | 30 | 确定 31 | 32 | 33 | 34 | {{item.name}} 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/checkout/checkout.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "订单核实" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/shopping/shcoupon/shcoupon.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "选择优惠券" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/ucenter/AftersaleGuide/AftersaleGuide.js: -------------------------------------------------------------------------------- 1 | // pages/ucenter/AftersaleGuide/AftersaleGuide.js 2 | var WxParse = require('../../../lib/wxParse/wxParse.js'); 3 | var util = require('../../../utils/util.js'); 4 | var api = require('../../../config/api.js'); 5 | var user = require('../../../services/user.js'); 6 | 7 | var app = getApp(); 8 | Page({ 9 | 10 | /** 11 | * 页面的初始数据 12 | */ 13 | data: { 14 | have_guide: [], 15 | is_Skeleton: true, 16 | 17 | }, 18 | 19 | /** 20 | * 生命周期函数--监听页面加载 21 | */ 22 | onLoad: function (options) { 23 | this.getGuide() 24 | }, 25 | getGuide() { 26 | let that = this 27 | util.request(api.GetAfterGuide).then(res => { 28 | console.log(res) 29 | that.setData({ 30 | have_guide: res.data, 31 | is_Skeleton: false 32 | }) 33 | if (res.data.length > 0) { 34 | WxParse.wxParse('guide', 'html', res.data[0].rules_text, that); 35 | } 36 | }) 37 | }, 38 | /** 39 | * 生命周期函数--监听页面初次渲染完成 40 | */ 41 | onReady: function () { 42 | 43 | }, 44 | 45 | /** 46 | * 生命周期函数--监听页面显示 47 | */ 48 | onShow: function () { 49 | 50 | }, 51 | 52 | /** 53 | * 生命周期函数--监听页面隐藏 54 | */ 55 | onHide: function () { 56 | 57 | }, 58 | 59 | /** 60 | * 生命周期函数--监听页面卸载 61 | */ 62 | onUnload: function () { 63 | 64 | }, 65 | 66 | /** 67 | * 页面相关事件处理函数--监听用户下拉动作 68 | */ 69 | onPullDownRefresh: function () { 70 | 71 | }, 72 | 73 | /** 74 | * 页面上拉触底事件的处理函数 75 | */ 76 | onReachBottom: function () { 77 | 78 | }, 79 | 80 | /** 81 | * 用户点击右上角分享 82 | */ 83 | onShareAppMessage: function () { 84 | 85 | } 86 | }) -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/ucenter/AftersaleGuide/AftersaleGuide.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "售后指南" 3 | } -------------------------------------------------------------------------------- /bbgshop_miniprogram/pages/ucenter/AftersaleGuide/AftersaleGuide.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 还没有售后指南 ! 8 | 9 | 10 | 11 | 12 |