diff --git a/.eslintrc.js b/.eslintrc.js index e0b044f..a2dc5d1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -13,6 +13,7 @@ module.exports = { "Atomics": "readonly", "SharedArrayBuffer": "readonly", "uni": true, + "wx": true, "module": true }, "parserOptions": { diff --git a/src/components/uni-popup/popup.js b/src/components/uni-popup/popup.js new file mode 100644 index 0000000..27beddf --- /dev/null +++ b/src/components/uni-popup/popup.js @@ -0,0 +1,25 @@ +// import message from './message.js' +// 定义 type 类型:弹出类型:top/bottom/center +const config = { + // 顶部弹出 + top: 'top', + // 底部弹出 + bottom: 'bottom', + // 居中弹出 + center: 'center', + // 消息提示 + message: 'top', + // 对话框 + dialog: 'center', + // 分享 + share: 'bottom', +} + +export default { + data() { + return { + config: config, + } + }, + // mixins: [message], +} diff --git a/src/components/uni-popup/uni-popup-post.vue b/src/components/uni-popup/uni-popup-post.vue new file mode 100644 index 0000000..7a8dcf5 --- /dev/null +++ b/src/components/uni-popup/uni-popup-post.vue @@ -0,0 +1,207 @@ + + + + diff --git a/src/components/uni-popup/uni-popup-share.vue b/src/components/uni-popup/uni-popup-share.vue new file mode 100644 index 0000000..200d5b2 --- /dev/null +++ b/src/components/uni-popup/uni-popup-share.vue @@ -0,0 +1,185 @@ + + + + diff --git a/src/components/uni-popup/uni-popup.vue b/src/components/uni-popup/uni-popup.vue new file mode 100644 index 0000000..508fd04 --- /dev/null +++ b/src/components/uni-popup/uni-popup.vue @@ -0,0 +1,313 @@ + + + + diff --git a/src/pages/details/components/Introduce.vue b/src/pages/details/components/Introduce.vue index 6529807..d99ef9c 100644 --- a/src/pages/details/components/Introduce.vue +++ b/src/pages/details/components/Introduce.vue @@ -120,12 +120,8 @@ export default { tag: Object, }, created() { - console.log('lalal') - console.log('tag', this) }, updated() { - console.log('lalal-2') - console.log('tag-2', this.tag) }, } diff --git a/src/pages/details/details.vue b/src/pages/details/details.vue index 726f27f..c983aff 100644 --- a/src/pages/details/details.vue +++ b/src/pages/details/details.vue @@ -31,7 +31,10 @@ {{goodsInfo.name || '暂无'}} - + 分享 @@ -164,19 +167,51 @@ >立即购买 + + + + + + @@ -293,6 +434,7 @@ export default { .info_pay_number { color: #999; font-size: 14px; + font-family: PingFangSC-Regular; } } // 产品名称 @@ -459,6 +601,10 @@ export default { justify-content: space-between; align-content: center; margin: 0; + /* iphonex 等安全区设置,底部安全区适配 */ + /* #ifndef APP-NVUE */ + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); .menu_1 { width: 20%; height: 100%; diff --git a/src/static/img/share/friend.png b/src/static/img/share/friend.png new file mode 100644 index 0000000000000000000000000000000000000000..ed64045fd46f9379e3b15109ab59e2a4c0460087 GIT binary patch literal 6558 zcmV;P8DZv$P)Py3SV=@dRCodHU2Ciz)pg!;uZw1I>WXiF=#goLL>5;Y*T zqAG<3ic?Bkq((F#6GEYdyx<2Y;SpNmrc$d4h-lR$G$N1`D$;-vp_E4mHU``HUZ3gr zt-ZcIYv#vWcrewwJWySH z-3!p}@U}w>i(>AcHjSK_()hJtiXMJ673&{sBwF!B&q z`5kH3S@%^JUbjvjws+6y+r6QnOVik31!jA08Vu&!q`L)C76k`T>Q{swjE2;ED!ZGYpOr|+~d*pwv@L^Ve2nlxnCL^TZsvL%no%PmMqrLgl*;- zFGcW_$QL%LJ!=}cX4JtZvad$&M3Bp?OK*H>TNahRd=}frZGF!@qv_S}U4%D|&!C74 zN+l;MD8p)Xs_NoeNHA>0|zv%Z@uiJX{>$}6U;?r;#NFO1pQD^#W4@uG_BY>q_GNN zFu(y7JciCas$sWI_%&ULm2uXn#xQ7M*ETK#&pohm(AqV;F*;W zQx@vmub!JWtos@!dqy@YnKcDyvdt5Uvnms$z!vQ@lDDq!(pY3Op+eK>aLs}1TRVk{ z4sKk>O;z2W7Vf*e`sCFci)tEzGMa`7Qu@M*1!;VI6{M4jp-mL-Gy$JuTaS_9KB+v& zlmfXRKh!cy9=7bMR#8e%Nczd_-GTX_pV0d3tMqW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ajlx6zCCh{8)fNT{7r{<#TUgmpl^74hJuA8^H!lPxtu6>CnVA}Bi3 zs$x)&?QLeGk*K@Ezvd0LiUh5tt;>kNL<#P9u++_WDDK$6_U@Qq^I=2PhRQgzj4|m{hdr!o(8$ z58l(R9v|DspKiO*f;B}3tcww*neLIQl*D{g0V=HA zNw$SS23EEJGJxZmz!rdWoOP<03f-cqeUMi-{QAO;>w6onTvC+%IZR!~{L(we z@KbL6&*J0ICkWIEoG=p!C|ORlf0g8^XSZ3DD2t=;XpdJWo$|6Evt<SZ zpIuM-0WBpH7%AalFbuHRcWH+}QO|J!1qSd>z?!;)M8hVlb&!3^k-Egzq`mlz>c?@9 z`Kd!a#fLq4y2Io{pI>(8zL!qS_OC}~@0XP-!9k!raVO?V1Ufdh&;-tai~&j80bad_ ziY~{CAFznGtZcg<-S)n@zYeyz=HlEV4rsW0&+YqOm-@5#U8Cl`s3UwZjnDur`~?73 zNdb@pS?`s;7?kG)C|7OBn8{p{W-lU`+rtii6$}4$Mbo`*z88n*YAl~})Buf8F23{m z(W$9)6@K#o|G7%Dmh=EOWC#Rl0$L|5!r}r1aN>uwu^^nA)+*2D4q)a0WNvGEoh^4= zvSHvopt;hAN2$U(JVOW5zTi%L!EAEuBGlRk@P8w6CdR0I;K|+)?oH z4QYI-H>Hubk8h`S(6cz(G{pi23njNOpIf1!r|J`JB7Zqmv}?z-&w{}*ci2kkwy UAn?h$&j0`b07*qoM6N<$f^2r8SpWb4 literal 0 HcmV?d00001 diff --git a/src/static/img/share/recommend.png b/src/static/img/share/recommend.png new file mode 100644 index 0000000000000000000000000000000000000000..ac38dfa84588dae2676188de9620c42763cea68b GIT binary patch literal 7558 zcmV;19eLu3P)Py7KuJVFRCod1U3rjQRhd8c^_GM*30VjvA!LyR1O`MDRF)WOj4L2J4l2S}Gdg4G z42&qk{4s;fP(qCi7L?_mqQj7)AGNj1>L;S__Cl-OCQEX6|11!HbQW9891CY`au6yLgSDUH4B z^pe$2v~Jzfes-Q$KO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32 zD;ntJL{WQK5+2`GFlj~WVde(Dos8YTx^f-=blaH>SXR(6T<(HwqO-@3uQ=&0t1&jl zXRk?$sL*#6Il#oKr(T~vVF@D9ee@4mvn+AiOoxb=Id#|yIbHkCIpC1-7Y=kcHw(7i zr3!ULIy&)$L(V~fH#*G&;>z=vaoV;70Fqz=q?0c>%_S^TOu7sviIS&+^j({_NMtj6 zL|M`-&ZtW>YWa;HI{C131_LJ5<2sqC!E7f!b^Te$>-z|KBm+zp;Km{d z<_f__V3Z|g62C~ALJpPl{bHT^tir^H2?AU8E1*+mr3IyIohAcF`WtX(cX-a**WLXXTCM1tD4_|Sl_E9irKPDRTMqhoD(8roy3JS=DtfOUNi<4o5aBD z1!4j!Dn{7?K+;{$dRrOBk(ZfwlUZWwS?{yE6sKDFcvxOTe+52i*K zSPE7m30TZ5Nugpe6c`wf7#iC^rv)HMGFxPqWTSBGlB5e#N6JQUKB~Swt7KQrK6(1S z^=H?WW!y}8`rG4hUwu7NxX5xy@EHI=O5jEi$@SgY?MN?8JpJu}1mBC=z^~JCZGo?9 zrhKAuowD184yjze>cnsK`P8T+x=TZ*wO87K&)jfK-rbGAYm}dZ@GIpCO#m=MR+UFU zgnX9=&FKu%j?bV)9S)qoow{V5R@d_;3Lo(_R`P2%ocyo79uC*Z4sx>B0QGprKXKiR z?i_!$0!pa%9bK0tFJ0_6IirPd;{)IJWju^mUr;m7MQL@^}URj2^Qi^y|B_$S+L=KUvJya c^jkjtKeE$)Gj**mDgXcg07*qoM6N<$g0Nbd5C8xG literal 0 HcmV?d00001 diff --git a/src/store/modules/details.js b/src/store/modules/details.js index 46d0d18..4b250d8 100644 --- a/src/store/modules/details.js +++ b/src/store/modules/details.js @@ -4,6 +4,7 @@ import request from '../request' const { read, cartList, + makePost, } = urlAlias const state = { @@ -44,20 +45,27 @@ const state = { more: '', // 购物车数目 cartNumber: 0, + // skuList + skuList: [], + postUrl: 'https://api.glass.xiuyetang.com/adv_pic/428_0_7.png', } const mutations = { - INIT: (state, { carousel, goodsInfo, tag, specification, evaluate, more }) => { + INIT: (state, { carousel, goodsInfo, tag, specification, evaluate, more, skuList }) => { state.carousel = carousel state.goodsInfo = goodsInfo state.tag = tag state.specification = specification state.evaluate = evaluate state.more = more + state.skuList = skuList }, CART: (state, number) => { state.cartNumber = number }, + POST: (state, url) => { + state.postUrl = url + }, } const actions = { @@ -87,6 +95,7 @@ const actions = { } commit('INIT', { + skuList: data.skuList, carousel: data.pics, goodsInfo: { name: data.p_name, @@ -101,6 +110,7 @@ const actions = { tag: data.judge_tag, star: parseInt(5 * Number(data.judgeInfo.good.slice(0, -1)) / 100), }, + // eslint-disable-next-line more: data.prodIntro1.replace(/\ { - console.log('cartData', data) let number = 0 for (let index = 0; index < data.length; index++) { number += Number(data[index].num) @@ -125,6 +134,17 @@ const actions = { }, })) }, + // 生成分享海报 + post({ commit }, param) { + return new Promise((resolve) => request({ + url: makePost, + data: param, + success: ({ data }) => { + commit('POST', data.data) + resolve() + }, + })) + }, } export default { diff --git a/src/store/url.js b/src/store/url.js index 7a4c687..bb52b32 100644 --- a/src/store/url.js +++ b/src/store/url.js @@ -35,6 +35,7 @@ const urlAlias = { detailStandardList: '/app/prod/read', // 获取商品的详细信息 // 选购页 detailStandardUrl: '/app/prod/read', // 获取商品的详细信息 + makePost: '/app/glass/makeProdAdvPic', // 生成分享海报 // 地址管理 editAddress: '/app/address/edit_address', // 编辑地址