|
|
@@ -4,20 +4,14 @@
|
|
|
<image :src="imgUrl" class="img_url"></image>
|
|
|
</view>
|
|
|
<view style="margin:50upx 0 0 30upx;font-size:30upx;">保存图片到手机,可分享或打印张贴</view>
|
|
|
- <div class="confirm-btn">
|
|
|
+ <view class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" @click="downloadImg">保存图片</button>
|
|
|
- </div>
|
|
|
- <!-- #ifdef MP-WEIXIN -->
|
|
|
- <view style="margin:50upx 0 0 30upx;font-size:30upx;">打开直接分享给客户</view>
|
|
|
- <div class="confirm-btn1">
|
|
|
- <button class="admin-button-com big blue" @click="goToMallPt('pages/home/index')">打开商城</button>
|
|
|
- </div>
|
|
|
- <!-- #endif -->
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { mainGetMallPoster } from '@/api/main/index'
|
|
|
-import { getWeixinId } from "@/api/invite/index";
|
|
|
+import { mainGetMemberPoster } from '@/api/main'
|
|
|
+import { getWeixinId } from "@/api/invite";
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -54,30 +48,13 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getImg() {
|
|
|
- mainGetMallPoster().then(res => {
|
|
|
- console.log(res)
|
|
|
+ mainGetMemberPoster().then(res => {
|
|
|
this.imgUrl = res.data.imgUrl
|
|
|
- }).catch(err => {})
|
|
|
- },
|
|
|
- goToMallPt (url) {
|
|
|
- let self = this
|
|
|
- console.log(url + '?account=' + self.loginInfo.shopId)
|
|
|
- uni.navigateToMiniProgram({
|
|
|
- appId: this.getappIdList.mall.miniAppId,
|
|
|
- path: url + '?account=' + self.loginInfo.shopId,
|
|
|
- //develop 开发版 trial 体验版 release 正式版
|
|
|
- envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
- extraData: {
|
|
|
- 'hdShopAdminId': self.loginInfo.shopAdminId
|
|
|
- },
|
|
|
- success (res) {
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.app-content{
|
|
|
overflow: hidden;
|