V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  justyeh  ›  全部回复第 2 页 / 共 4 页
回复总数  71
1  2  3  4  
洋房,一栋楼人越少遇到傻逼的几率越小
@15855pm 我目前就在用,ios 小程序可以正常抓到,注意证书安装正确并且关闭你手机里的代理工具
275 天前
回复了 ccadb 创建的主题 程序员 公司内部物品统计
之前在北京公司用的是“给到”,和你的需求挺契合
但是其实员工最想要的是现金、购物卡,之前“给到”可以卖京东 E 卡,后面不能买了,公司一堆人骂
277 天前
回复了 justyeh 创建的主题 分享发现 分享爱回收卖 mbp 的经历
@poporange630 我的本来报价 4000 ,后面也是在屏幕上找出来轻微痕迹,扣了 200
chrome 插件:自选基金助手
分子
290 天前
回复了 sunny1688 创建的主题 问与答 Stash 有没有拼车的?
抓包的话,我最近在用 proxyman ,免费
能 bba 就 bba
v2 也有发帖员了?老是在热门看见,点了一下个人主页,好家伙,你的帖子很有“话题性”,👍👍👍👍
303 天前
回复了 zhonj 创建的主题 前端开发 大家公司里面写前端样式都是咋写的?
@zhonj 不是无脑 copy ,会选择性的删除一些用不到的属性,经常用到的是 fontSzie 、color 、border 、background ,真的很方便
react 就 taro ,另外小程序支持 ci

// 自动将代码上传到小程序
const ci = require('miniprogram-ci')
const path = require('path')
const mainfest = require('../src/manifest.json')
const slog = require('single-line-log').stdout
const robot = Number(process.env.ROBOT) || 1
const buildVersion = process.env.npm_config_build_version || mainfest.versionName

function getUploadDesc() {
// dev
if (robot === 1) {
return 'build by robot --dev'
}

// test
if (robot === 2) {
return 'build by robot --test'
}

// release
if (robot === 3) {
return 'build by robot --release'
}

// uat
if (robot === 4) {
return 'build by robot --uat'
}

return mainfest.description
}

async function main() {
const project = new ci.Project({
appid: mainfest['mp-weixin'].appid, //appid
type: 'miniProgram',
projectPath: path.resolve(__dirname, '../dist/build/mp-weixin'), //项目路径
privateKeyPath: path.resolve(__dirname, `./private.${mainfest['mp-weixin'].appid}.key`), //小程序后台的上传密匙
ignores: ['node_modules/**/*']
})

let slogIndex = 0

try {
await ci.upload({
project,
version: buildVersion,
desc: getUploadDesc(),
setting: mainfest['mp-weixin'].setting,
robot,
onProgressUpdate: () => {
slog('上传中' + (slogIndex === 0 ? '.' : slogIndex === 1 ? '..' : '...') + '\n')
slogIndex++
if (slogIndex === 3) {
slogIndex = 0
}
}
})
console.log(`上传成功 版本${buildVersion}`)
} catch (error) {
console.error(`上传失败 版本${buildVersion}`, error)
}
}

main()
304 天前
回复了 zhonj 创建的主题 前端开发 大家公司里面写前端样式都是咋写的?
@zhonj 为什么会有去维护一个类名的需求,写 vue scoped ,写 react 就 css module ,我写样式除了 @include text-ellipsis;这样的仅有的几个代码,几乎不复用

定位要么一眼就观察到了,要么 cmd+f

还有一个很重要的点,类似于蓝湖这样的工具已经能生成很多样式代码,拷贝+简单的修改就可以活,效率和心智负担比 tailwindcss 之类的玩意强太多了
304 天前
回复了 zhonj 创建的主题 前端开发 大家公司里面写前端样式都是咋写的?
```js
// 头部导航栏样式
setInnerClass(idx) {
const isBefore = idx < this.active
const isCurrent = idx === this.active
const isAfter = idx > this.active
const beforeClassInner =
'min-w-[22px] max-w-[22px] w-[22px] h-[22px] bg-[#ffffff] text-[#3F7AFF] text-center text-[12px] font-semibold leading-[18px] rounded-full border-[2px] border-[#C8D7F9]'
const currentClassInner =
'min-w-[22px] max-w-[22px] w-[22px] h-[22px] bg-[#3F7AFF] text-[#fff] text-center text-[12px] font-semibold leading-[18px] rounded-full border-[2px] border-[#124FDA]'
const afterClassInner =
'min-w-[22px] max-w-[22px] w-[22px] h-[22px] bg-[#ECECEC] text-[#CBCBCB] text-center text-[12px] font-semibold leading-[18px] rounded-full border-[2px] border-[#ECECEC]'
return (isBefore && beforeClassInner) || (isCurrent && currentClassInner) || (isAfter && afterClassInner)
},
setOuterClass(idx) {
const isBefore = idx < this.active
const isCurrent = idx === this.active
const isAfter = idx > this.active
const beforeClassWarp = 'z-[2] max-w-[26px] relative rounded-full border-[2px] border-[#C8D7F9]'
const currentClassWarp = 'z-[2] max-w-[26px] relative rounded-full border-[2px] border-[#C8D7F9]'
const afterClassWarp = 'z-[2] max-w-[26px] relative rounded-full border-[2px] border-[#ECECEC] custom-linear-box-shadow'
return (isBefore && beforeClassWarp) || (isCurrent && currentClassWarp) || (isAfter && afterClassWarp)
},
```
304 天前
回复了 zhonj 创建的主题 前端开发 大家公司里面写前端样式都是咋写的?
我不理解用 taildcss 是赶时髦还是怎么的,这种代码真的好吗?

```
<div
v-for="(group, idx) in schema"
:key="idx"
class="min-h-[70px] relative"
>
<div
:class="setOuterClass(idx)"
@click="() => {
active = idx
}">
<div :class="setInnerClass(idx)">
<div>{{ idx + 1 }}</div>
</div>
</div>
<div class="absolute text-[12px] left-[50%] top-[32px] min-w-[70px] translate-x-[-35px] text-center" :style="{ color: active >= idx ? '#3F7AFF' : '#CBCBCB'}">{{ group.label }}</div>
</div>
```
304 天前
回复了 zhonj 创建的主题 前端开发 大家公司里面写前端样式都是咋写的?
之前一个同事用了 tailwindcss ,UI 设计的花哨点,样式代码比标签长
我去改样式,p-8 、f12 都是什么鬼,还要一个个的去看

没有成熟的设计规范,tailwindcss 请自己玩玩就好
361 天前
回复了 nu1l 创建的主题 Vue.js 请教一个 Vue 动态组件问题
1  2  3  4  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2271 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.