马士兵严选商城app前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
陈辉 5ffa53ead5
已删除 unpackage/debug/.roid.ins, unpackage/debug/android_debug.apk, unpackage/dist/build/h5/static/account/bg.png, unpackage/dist/build/h5/static/account/dz.png, unpackage/dist/build/h5/static/account/edit.png, unpackage/dist/build/h5/static/account/fh.png, unpackage/dist/build/h5/static/account/fk.png, unpackage/dist/build/h5/static/account/kf.png, unpackage/dist/build/h5/static/account/sh.png, unpackage/dist/build/h5/static/account/sz.png, unpackage/dist/build/h5/static/account/tk.png, unpackage/dist/build/h5/static/account/tx.png, unpackage/dist/build/h5/static/account/xx.png, unpackage/dist/build/h5/static/common/tabbar/account-active.png, unpackage/dist/build/h5/static/common/tabbar/account.png, unpackage/dist/build/h5/static/common/tabbar/category-active.png, unpackage/dist/build/h5/static/common/tabbar/category.png, unpackage/dist/build/h5/static/common/tabbar/home-active.png, unpackage/dist/build/h5/static/common/tabbar/home.png, unpackage/dist/build/h5/static/common/tabbar/shopping-cart-active.png, unpackage/dist/build/h5/static/common/tabbar/shopping-cart.png, unpackage/dist/build/h5/static/common/arrow.png, unpackage/dist/build/h5/static/common/back.png, unpackage/dist/build/h5/static/common/back_white.png, unpackage/dist/build/h5/static/common/dz.png, unpackage/dist/build/h5/static/common/empty_goods.png, unpackage/dist/build/h5/static/goods/back.png, unpackage/dist/build/h5/static/goods/buy.png, unpackage/dist/build/h5/static/goods/buy_max.png, unpackage/dist/build/h5/static/goods/cart.png, unpackage/dist/build/h5/static/goods/cart_icon.png, unpackage/dist/build/h5/static/goods/category_banner.jpg, unpackage/dist/build/h5/static/goods/seckill.png, unpackage/dist/build/h5/static/goods/seckill_start.png, unpackage/dist/build/h5/static/goods/service_icon.png, unpackage/dist/build/h5/static/goods/tag1.png, unpackage/dist/build/h5/static/goods/tag2.png, unpackage/dist/build/h5/static/goods/tag3.png, unpackage/dist/build/h5/static/goods/tag4.png, unpackage/dist/build/h5/static/goods/tag5.png, unpackage/dist/build/h5/static/im/add-icon1.png, unpackage/dist/build/h5/static/im/add-icon2.png, unpackage/dist/build/h5/static/im/aitbtn1.png, unpackage/dist/build/h5/static/im/aitbtn2.png, unpackage/dist/build/h5/static/im/audio1.png, unpackage/dist/build/h5/static/im/audio2.png, unpackage/dist/build/h5/static/im/audio3.png, unpackage/dist/build/h5/static/im/class.png, unpackage/dist/build/h5/static/im/close.png, unpackage/dist/build/h5/static/im/close2.png, unpackage/dist/build/h5/static/im/collect.png, unpackage/dist/build/h5/static/im/expression.png, unpackage/dist/build/h5/static/im/fail.png, unpackage/dist/build/h5/static/im/file-icon.png, unpackage/dist/build/h5/static/im/file.png, unpackage/dist/build/h5/static/im/gif.gif, unpackage/dist/build/h5/static/im/group.png, unpackage/dist/build/h5/static/im/inform.png, unpackage/dist/build/h5/static/im/key.png, unpackage/dist/build/h5/static/im/loading.gif, unpackage/dist/build/h5/static/im/more.png, unpackage/dist/build/h5/static/im/no.png, unpackage/dist/build/h5/static/im/permission.png, unpackage/dist/build/h5/static/im/picture.png, unpackage/dist/build/h5/static/im/reply.png, unpackage/dist/build/h5/static/im/session-head.png, unpackage/dist/build/h5/static/im/ship@2x.png, unpackage/dist/build/h5/static/im/voice-a.png, unpackage/dist/build/h5/static/im/voice-b.gif, unpackage/dist/build/h5/static/im/voice-bg.png, unpackage/dist/build/h5/static/im/voice-bg2.png, unpackage/dist/build/h5/static/im/voice-c.png, unpackage/dist/build/h5/static/im/voice-d.gif, unpackage/dist/build/h5/static/im/voice.png, unpackage/dist/build/h5/static/im/xiazai.png, unpackage/dist/build/h5/static/img/banner.d90fa59b.png, unpackage/dist/build/h5/static/img/bg.8abe32c0.png, unpackage/dist/build/h5/static/img/bz.72a9717e.png, unpackage/dist/build/h5/static/img/cart.5b9fd199.png, unpackage/dist/build/h5/static/img/empty.bdec362e.png, unpackage/dist/build/h5/static/img/empty.c4b1f0ad.png, unpackage/dist/build/h5/static/img/empty_goods.3495ba6d.png, unpackage/dist/build/h5/static/img/logo.187a7a64.png, unpackage/dist/build/h5/static/img/payFail.56d373f0.png, unpackage/dist/build/h5/static/img/paySuccess.c4840d30.png, unpackage/dist/build/h5/static/img/seckill_start.fd9b3d6d.png, unpackage/dist/build/h5/static/img/tx.71ed472a.png, unpackage/dist/build/h5/static/img/xt.5199e39b.png, unpackage/dist/build/h5/static/imxx/.DS_Store, unpackage/dist/build/h5/static/imxx/close.png, unpackage/dist/build/h5/static/imxx/emoji.png, unpackage/dist/build/h5/static/imxx/img.png, unpackage/dist/build/h5/static/imxx/more.png, unpackage/dist/build/h5/static/imxx/video.png, unpackage/dist/build/h5/static/index/.DS_Store, unpackage/dist/build/h5/static/index/arrow.png, unpackage/dist/build/h5/static/index/banner.png, unpackage/dist/build/h5/static/index/bz.png, unpackage/dist/build/h5/static/index/logo.png, unpackage/dist/build/h5/static/index/logo3.png, unpackage/dist/build/h5/static/index/msg.png, unpackage/dist/build/h5/static/index/search.png, unpackage/dist/build/h5/static/index/search1.png, unpackage/dist/build/h5/static/index/tag1.png, unpackage/dist/build/h5/static/index/tag2.png, unpackage/dist/build/h5/static/index/tag3.png, unpackage/dist/build/h5/static/index/time.png, unpackage/dist/build/h5/static/index/time_bg.png, unpackage/dist/build/h5/static/js/chunk-vendors.b5602bf5.js, unpackage/dist/build/h5/static/js/index.0e74cf6a.js, unpackage/dist/build/h5/static/js/pages-account-address-create.c23000b3.js, unpackage/dist/build/h5/static/js/pages-account-address-create~pages-account-address-edit.72d712d7.js, unpackage/dist/build/h5/static/js/pages-account-address-create~pages-account-address-edit~pages-account-setting-setUserInfo~pages-orde~bbb2dfdd.4e838375.js, unpackage/dist/build/h5/static/js/pages-account-address-edit.dc6e68c4.js, unpackage/dist/build/h5/static/js/pages-account-address-list.ced7f183.js, unpackage/dist/build/h5/static/js/pages-account-index.108363a0.js, unpackage/dist/build/h5/static/js/pages-account-message-chat-index.f9aa8aac.js, unpackage/dist/build/h5/static/js/pages-account-message-chat-index~pages-account-setting-setUserInfo~pages-order-saleAfter-saleAfterAp~6199978e.f1624132.js, unpackage/dist/build/h5/static/js/pages-account-message-group.5d05be0b.js, unpackage/dist/build/h5/static/js/pages-account-message-system.b46195c8.js, unpackage/dist/build/h5/static/js/pages-account-setting-index.fb4d1d6f.js, unpackage/dist/build/h5/static/js/pages-account-setting-setName.ee9cf170.js, unpackage/dist/build/h5/static/js/pages-account-setting-setName~pages-goods-category~pages-goods-list-index~pages-goods-search.0c67b988.js, unpackage/dist/build/h5/static/js/pages-account-setting-setUserInfo.ec73603b.js, unpackage/dist/build/h5/static/js/pages-cart-cart.4c776d59.js, unpackage/dist/build/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.730e5d29.js, unpackage/dist/build/h5/static/js/pages-cart-cart~pages-cart-tabBarCart~pages-goods-detail-index.2ab9c3b1.js, unpackage/dist/build/h5/static/js/pages-cart-cart~pages-cart-tabBarCart~pages-goods-list-index~pages-index-index~pages-order-payResult.bae82e9f.js, unpackage/dist/build/h5/static/js/pages-cart-tabBarCart.f79753f0.js, unpackage/dist/build/h5/static/js/pages-goods-category.c515cf1a.js, unpackage/dist/build/h5/static/js/pages-goods-detail-index.9793bec9.js, unpackage/dist/build/h5/static/js/pages-goods-list-index.a3d62af2.js, unpackage/dist/build/h5/static/js/pages-goods-search.4d576377.js, unpackage/dist/build/h5/static/js/pages-index-index.c4964c63.js, unpackage/dist/build/h5/static/js/pages-login.e20b5ed0.js, unpackage/dist/build/h5/static/js/pages-order-detail-index.8479d566.js, unpackage/dist/build/h5/static/js/pages-order-detail-index~pages-order-list.4fe35ade.js, unpackage/dist/build/h5/static/js/pages-order-detail-index~pages-order-list~pages-order-logisitcsInfo~pages-order-saleAfter-saleAfterD~c7d0fdfd.c6904d3c.js, unpackage/dist/build/h5/static/js/pages-order-detail-index~pages-order-saleAfter-saleAfterDetail-index~pages-order-submit.1cf08428.js, unpackage/dist/build/h5/static/js/pages-order-list.f3a69989.js, unpackage/dist/build/h5/static/js/pages-order-list~pages-order-saleAfter-saleAfterList.70500a4a.js, unpackage/dist/build/h5/static/js/pages-order-logisitcsInfo.9da2ceaa.js, unpackage/dist/build/h5/static/js/pages-order-orderSuccess.887209a8.js, unpackage/dist/build/h5/static/js/pages-order-payResult.01eff2a1.js, unpackage/dist/build/h5/static/js/pages-order-saleAfter-saleAfterApply.9ecd8e2a.js, unpackage/dist/build/h5/static/js/pages-order-saleAfter-saleAfterDetail-index.41332831.js, unpackage/dist/build/h5/static/js/pages-order-saleAfter-saleAfterEdit.f1743a5c.js, unpackage/dist/build/h5/static/js/pages-order-saleAfter-saleAfterList.8dedcb6d.js, unpackage/dist/build/h5/static/js/pages-order-saleAfter-saleAfterSelect.ed81abf6.js, unpackage/dist/build/h5/static/js/pages-order-submit.84c756f7.js, unpackage/dist/build/h5/static/js/pages-seckill.112d30f3.js, unpackage/dist/build/h5/static/message/empty.png, unpackage/dist/build/h5/static/message/xt.png, unpackage/dist/build/h5/static/order/cg.png, unpackage/dist/build/h5/static/order/dw.png, unpackage/dist/build/h5/static/order/dw2.png, unpackage/dist/build/h5/static/order/empty.png, unpackage/dist/build/h5/static/order/fh.png, unpackage/dist/build/h5/static/order/fj.png, unpackage/dist/build/h5/static/order/fk.png, unpackage/dist/build/h5/static/order/payFail.png, unpackage/dist/build/h5/static/order/paySuccess.png, unpackage/dist/build/h5/static/order/qx.png, unpackage/dist/build/h5/static/order/wx.png, unpackage/dist/build/h5/static/order/zfb.png, unpackage/dist/build/h5/static/search/arrow.png, unpackage/dist/build/h5/static/search/del.png, unpackage/dist/build/h5/static/search/search.png, unpackage/dist/build/h5/static/seckill/banner.png, unpackage/dist/build/h5/static/seckill/btn.png, unpackage/dist/build/h5/static/seckill/btn2.png, unpackage/dist/build/h5/static/seckill/jz.png, unpackage/dist/build/h5/static/.DS_Store, unpackage/dist/build/h5/static/index.a5c69d49.css, unpackage/dist/build/h5/index.html, unpackage/res/icons/1024x1024.png, unpackage/res/icons/120x120.png, unpackage/res/icons/144x144.png, unpackage/res/icons/152x152.png, unpackage/res/icons/167x167.png, unpackage/res/icons/180x180.png, unpackage/res/icons/192x192.png, unpackage/res/icons/20x20.png, unpackage/res/icons/29x29.png, unpackage/res/icons/40x40.png, unpackage/res/icons/58x58.png, unpackage/res/icons/60x60.png, unpackage/res/icons/72x72.png, unpackage/res/icons/76x76.png, unpackage/res/icons/80x80.png, unpackage/res/icons/87x87.png, unpackage/res/icons/96x96.png
3 years ago
common 选择 3 years ago
components 修改地区选择控件 3 years ago
pages 修改if 3 years ago
static IM 3 years ago
.gitignore APP微信支付 3 years ago
App.vue 打包 3 years ago
Dockerfile 修改部署目录 3 years ago
README.md 仓库迁移 3 years ago
deploy.yaml 更新 deploy.yaml 3 years ago
index.html 修改商品详情按钮距离底部距离 3 years ago
main.js 心跳 3 years ago
manifest.json 修改 3 years ago
nginx.conf 更新 nginx.conf 3 years ago
package.json 修改主题色 3 years ago
pages.json banner 3 years ago
uni.scss IM 3 years ago
vue.config.js 仓库迁移 3 years ago

README.md

shopping-app

严选移动端

公共方法utils

  • 公共方法统一放置utils文件夹内可以按分类建方法文件 如验证类verify.js 请求类request.js
  • 所有公共方法采用大驼峰命名法
  • 所有的方法都从index.js输出引入时统一引入index不允许直接引入方法文件
  • 所有方法文件如果导出的是多个方法,不允许在定义方法时导出,必须在文件底部一一导出,并附上方法简单的注释
// 正确
import {Req, IsPhone} from '@/common/utils';

// 错误
import {Req} from '@/common/utils/request';
import {IsPhone} from '@/common/utils/utils';

// 正确
const IsPhone = (str) => {....}
const IsEmail = (str) => {....}
export {
	// 判断手机号
	IsPhone,
	// 判断邮箱
	IsEmail
}

// 错误
export const IsPhone = (str) => {....}
export const IsEmail = (str) => {....}

组件

  • 请务必使用easycom模式引入第三方组件
  • 根目录的components 只放置真正的组件某个页面的业务模块应该在pages的相应目录下新建components目录放置
  • 所有的自定义组件文件名以大驼峰命名且在templet中使用也用大驼峰形式使用

请求

  • 所有请求方法命名以Api+请求类型+具体方) 法命名
  • 所有请求使用ToAsyncAwait 包裹
  • 不允许使用try catch 和 then 处理返回结果
// 使用示例
	// xxapi.js
	import {ToAsyncAwait, ReqestTk} from '@/common/utils'
	const ApiGetUserInfo = (parapms) => ToAsyncAwait(ReqestTk.get('xxxxUrl',{params}));
	exprot {
		// 获取用户信息
		ApiGetUserInfo
	}
	// user.vue
	improt {ApiGetUserInfo} from '@/common/api/xxapi.js';
	
	const getUserInfo = async () =>{
		const {error, result} = await ApiGetUserInfo();
		if(error){
			alert(error);
			return false;
		}
		app.userInfo = result;
	}

图片

  • 按pages目录结果放置图片
  • 有公共使用的图片请放到static/common文件夹内