diff --git a/manifest.json b/manifest.json
index 9ec8201..918f544 100644
--- a/manifest.json
+++ b/manifest.json
@@ -26,7 +26,8 @@
"Share" : {},
"iBeacon" : {},
"Geolocation" : {},
- "Maps" : {}
+ "Maps" : {},
+ "Barcode" : {}
},
"safearea" : {
"bottom" : {
diff --git a/pages.json b/pages.json
index ae224ae..55d41bf 100644
--- a/pages.json
+++ b/pages.json
@@ -56,16 +56,14 @@
{
"path": "pages/shop/index",
"style": {
- "navigationStyle": "custom"
- // #ifdef MP || APP-PLUS
- ,
- "navigationBarBackgroundColor": "#F2F2F2"
- // #endif
+ "enablePullDownRefresh": true,
+ "navigationBarTitleText": "门店"
}
},
{
"path": "pages/shop_details/index",
"style": {
+ "navigationStyle": "custom",
"navigationStyle": "custom"
// #ifdef MP || APP-PLUS
,
diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue
index 126872b..d716b94 100644
--- a/pages/goods_details/index.vue
+++ b/pages/goods_details/index.vue
@@ -1557,6 +1557,7 @@
// #ifdef H5
arr2 = [that.posterbackgd, await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
// #endif
+ console.log(arr2);
//生成推广海报
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
that.$set(that, 'posterImage', tempFilePath);
diff --git a/pages/shop_details/index.vue b/pages/shop_details/index.vue
index 25bc3a0..586981c 100644
--- a/pages/shop_details/index.vue
+++ b/pages/shop_details/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -15,7 +15,7 @@
评分4.5分
位置好找,菜味道不错,价格实惠
- 北京市东城区朝阳门内大街···
+ 北京市东城区朝阳门内大街···
@@ -34,27 +34,74 @@
- 信息
- 评论
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ 欢迎来到我们的火锅店!我们是一个有着悠久历史和传统美食文化的品牌,我们的火锅是采用新鲜的食材和秘制的调料烹饪而成,每一口都充满了浓郁的鲜香和醇厚的口感。
+
+
+ 我们的品牌特色在于选用上等食材,如草原鲜嫩肥羊、天然海鲜等,以及秘制香料和特色锅底。店内环境优雅舒适,服务周到细致,为您打造一处独具特色的火锅天地。
+
+ 去付款
@@ -149,11 +196,35 @@
flex-direction: row;
}
&_item{
+ font-size: 32rpx;
+ color: #999;
& + .tabs_item{
margin-left: 68rpx;
}
}
+ .active{
+ color: #333;
+ }
}
+ .conter{
+ margin-top: 28rpx;
+ .product_content{
+ color: #666;
+ }
+ }
+ }
+ .btn{
+ position: fixed;
+ bottom: 30rpx;
+ width: 80%;
+ height: 92rpx;
+ background: #1372F5;
+ border-radius: 60rpx;
+ text-align: center;
+ line-height: 92rpx;
+ color: #fff;
+ left: 50%;
+ transform: translateX(-50%);
}
}
\ No newline at end of file
diff --git a/pages/user/index.vue b/pages/user/index.vue
index 769ba52..b306612 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -94,6 +94,7 @@
{{userInfo.total_unread}}
+
@@ -347,6 +348,17 @@
}, 500)
},
methods: {
+ handleBorcode() {
+ // 从相机和相册扫码
+ // #ifdef APP-PLUS
+ uni.scanCode({
+ scanType:['qrCode'],
+ success: function (res) {
+ console.log('二维码信息:' + res);
+ }
+ });
+ // #endif
+ },
authTo(url){
if(this.isLogin){
uni.navigateTo({
diff --git a/static/images/5-001.png b/static/images/5-001.png
index 12dbfe7..845cc63 100644
Binary files a/static/images/5-001.png and b/static/images/5-001.png differ
diff --git a/static/images/5-002.png b/static/images/5-002.png
index ffd4e51..ffa5e80 100644
Binary files a/static/images/5-002.png and b/static/images/5-002.png differ
diff --git a/utils/util.js b/utils/util.js
index d2c0dc5..51aecb2 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -327,17 +327,21 @@ export default {
that.handleBorderRect(ctx, 30, 108, WIDTH-60, WIDTH-20, 12);
ctx.clip();
ctx.drawImage(arr2[1], 30, 108, WIDTH-60, WIDTH-20);
+ console.log(ctx);
ctx.draw(true, function() {
+ console.log('sss');
uni.canvasToTempFilePath({
canvasId: 'myCanvas',
fileType: 'png',
destWidth: WIDTH,
destHeight: HEIGHT,
success: function(res) {
+ console.log(res);
uni.hideLoading();
successFn && successFn(res.tempFilePath);
},
fail: function(err) {
+ console.log(res);
uni.hideLoading();
errFun && errFun(err);
}